7 Apr
2003
7 Apr
'03
8:28 a.m.
Lennart Regebro wrote:
I agree, it's a good way to do it. I do think a name more unique then refresh is good though, because then you can simply traverse the hierarchy and call the upgrade method if it exists.
It would be nice to do this in a more interactive way. Like a small updater product (in Z2) wich could work like the following ascii art: ############################## meta_type(s): [___________] Python Script: ---------------------------------- if hasattr(obj, 'birthday'): return 'Not updated: %s' % obj.title_or_id() else: obj.birthday = 0 return 'Updated: %s' % obj.title_or_id() ---------------------------------- [ Save ] [ Execute ] [ Undo ] ############################## regards Max M