Roundup Tracker - Issues

Message3378

Author anonymous
Recipients
Date 2005-05-26.07:18:50
Message-id
In-reply-to
Hi Richard,

Could it be possible to define a default property value
in the schema?
We often need to add new properties to a class. This
will result in none set values for all existing nodes
in that class. To set them I need to create a update
script which will step trough all existing nodes. This
is time consuming (writing the script, test it and
finally run it).
Could it be made possible to define default values in
the schema like:

user = Class(db, 'user',
                   in_office=Boolean(default=True),
                   login_counts=Number(default=0),
                   company=String(default='Waltdisney'))

If 'default' isn't supplied, no default will be set.
But if supplied, then it will be honored.

Regards,
Marlon
History
Date User Action Args
2009-02-03 14:23:58adminlinkissue1208946 messages
2009-02-03 14:23:58admincreate