[Zope] Zope (X)3 FAQ
Max M
maxm@mxm.dk
Mon, 07 Apr 2003 10:28:24 +0200
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