From: <ru...@us...> - 2003-06-13 18:37:28
|
Update of /cvsroot/plone/CMFPlone/migrations In directory sc8-pr-cvs1:/tmp/cvs-serv23704/migrations Modified Files: one02_one03.py Log Message: robust Index: one02_one03.py =================================================================== RCS file: /cvsroot/plone/CMFPlone/migrations/one02_one03.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** one02_one03.py 13 Jun 2003 12:12:37 -0000 1.1 --- one02_one03.py 13 Jun 2003 18:37:25 -0000 1.2 *************** *** 5,10 **** def onezerothree(portal): """ Upgrade from Plone 1.0.2 to Plone 1.0.3""" ! sprops=portal.portal_properties.site_properties ! sprops.manage_addProperty('invalid_ids', ('actions',), 'lines') if __name__=='__main__': --- 5,13 ---- def onezerothree(portal): """ Upgrade from Plone 1.0.2 to Plone 1.0.3""" ! props=getToolByName(self, 'portal_properties') ! sprops=getattr(props,'site_properties') ! if sprops is not None: ! if not sprops.hasProperty('invalid_ids'): ! sprops.manage_addProperty('invalid_ids', ('actions',), 'lines') if __name__=='__main__': |