[Setup] Modified CMFCore/MemberDataTool.py to facilitate 2.0.3 -> 2.5.1 migration, ok?

Alex Clark aclark at aclark.net
Tue Nov 28 13:57:21 UTC 2006


In addition to deleting a couple troublesome member folders (out of many so not
a big deal) I had to put a try/except around the following block of code from
CMFCore/MemberDataTool.py to get the migration to finish, anyone see a problem
with doing that?

starting at line 314:

            try:
              if mapping.has_key(id):
                  if not self.__class__.__dict__.has_key(id):
                      value = mapping[id]
                      if type(value)==type(''):
                          proptype = tool.getPropertyType(id) or 'string'
                          if type_converters.has_key(proptype):
                              value = type_converters[proptype](value)
                      setattr(self, id, value)
            except:
              pass


Thanks,

Alex





More information about the Setup mailing list