Changeset 750 for ZMS/trunk/_copysupport.py
- Timestamp:
- 23.10.2009 16:12:55 (3 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/_copysupport.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_copysupport.py
r712 r750 144 144 145 145 copy_of_prefix = 'copy_of_' 146 _id = REQUEST.get( '_id')147 REQUEST.set( ' _id', None)146 id_prefix = REQUEST.get( 'id_prefix') 147 REQUEST.set( 'id_prefix', None) 148 148 ob_ids = copy.copy(self.objectIds( self.dGlobalAttrs.keys())) 149 149 for ob in self.objectValues( self.dGlobalAttrs.keys()): … … 152 152 _globals.writeBlock( self, '[_normalize_ids_after_copy]: %s(%s)'%(id,ob.meta_id)) 153 153 154 if _id is not None: 155 new_id = _globals.id_prefix(_id) 156 if new_id != _globals.id_prefix(id): 157 if new_id == 'e': 158 new_id = self.getNewId(new_id) 154 if id_prefix: 155 id_prefix = _globals.id_prefix(id_prefix) 156 if id_prefix != _globals.id_prefix(id): 157 new_id = self.getNewId(id_prefix) 159 158 _globals.writeBlock( self, '[_normalize_ids_after_copy]: Rename %s(%s) to %s'%(id,ob.meta_id,new_id)) 160 159 self.manage_renameObject(id=id,new_id=new_id) … … 197 196 198 197 copy_of_prefix = 'copy_of_' 199 _id = REQUEST.get( '_id')200 REQUEST.set( ' _id', None)198 id_prefix = REQUEST.get( 'id_prefix') 199 REQUEST.set( 'id_prefix', None) 201 200 ob_ids = copy.copy(self.objectIds( self.dGlobalAttrs.keys())) 202 201 for ob in self.objectValues( self.dGlobalAttrs.keys()): … … 205 204 _globals.writeBlock( self, '[_normalize_ids_after_move]: %s(%s)'%(id,ob.meta_id)) 206 205 207 if _id is not None: 208 new_id = _globals.id_prefix(_id) 209 if new_id != _globals.id_prefix(id): 210 if new_id == 'e': 211 new_id = self.getNewId(new_id) 206 if id_prefix: 207 id_prefix = _globals.id_prefix(id_prefix) 208 if id_prefix != _globals.id_prefix(id): 209 new_id = self.getNewId(id_prefix) 212 210 _globals.writeBlock( self, '[_normalize_ids_after_move]: Rename %s(%s) to %s'%(id,ob.meta_id,new_id)) 213 211 self.manage_renameObject(id=id,new_id=new_id)
Note: See TracChangeset
for help on using the changeset viewer.
