Message3378
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 |
|
Date |
User |
Action |
Args |
2009-02-03 14:23:58 | admin | link | issue1208946 messages |
2009-02-03 14:23:58 | admin | create | |
|