Changeset 271 for trunk/module/pg.py


Ignore:
Timestamp:
Mar 3, 2006, 8:28:34 PM (14 years ago)
Author:
darcy
Message:

Setting date to "now()" is not clearing it. Reverting to setting to blank.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/pg.py

    r250 r271  
    66# Improved by Christoph Zwerschke
    77#
    8 # $Id: pg.py,v 1.38 2006-02-11 21:13:32 cito Exp $
     8# $Id: pg.py,v 1.39 2006-03-04 01:28:34 darcy Exp $
    99#
    1010
     
    451451
    452452                This method clears all the attributes to values determined by the types.
    453                 Numeric types are set to 0, Booleans are set to 'f', dates are set
    454                 to 'now()' and everything else is set to the empty string.
    455                 If the array argument is present, it is used as the array and any entries
    456                 matching attribute names are cleared with everything else left unchanged.
     453                Numeric types are set to 0, Booleans are set to 'f', and everything
     454        else is set to the empty string.  If the array argument is present,
     455        it is used as the array and any entries matching attribute names are
     456        cleared with everything else left unchanged.
    457457
    458458                """
     
    468468                        elif t == 'bool':
    469469                                a[k] = 'f'
    470                         elif t == 'date':
    471                                 a[k] = 'now()'
    472470                        else:
    473471                                a[k] = ''
Note: See TracChangeset for help on using the changeset viewer.