Ignore:
Timestamp:
23.10.2009 16:12:55 (3 years ago)
Author:
chris
Message:

zms-2.11.4-01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_copysupport.py

    r712 r750  
    144144       
    145145      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) 
    148148      ob_ids = copy.copy(self.objectIds( self.dGlobalAttrs.keys())) 
    149149      for ob in self.objectValues( self.dGlobalAttrs.keys()): 
     
    152152          _globals.writeBlock( self, '[_normalize_ids_after_copy]: %s(%s)'%(id,ob.meta_id)) 
    153153           
    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) 
    159158              _globals.writeBlock( self, '[_normalize_ids_after_copy]: Rename %s(%s) to %s'%(id,ob.meta_id,new_id)) 
    160159              self.manage_renameObject(id=id,new_id=new_id) 
     
    197196       
    198197      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) 
    201200      ob_ids = copy.copy(self.objectIds( self.dGlobalAttrs.keys())) 
    202201      for ob in self.objectValues( self.dGlobalAttrs.keys()): 
     
    205204          _globals.writeBlock( self, '[_normalize_ids_after_move]: %s(%s)'%(id,ob.meta_id)) 
    206205           
    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) 
    212210              _globals.writeBlock( self, '[_normalize_ids_after_move]: Rename %s(%s) to %s'%(id,ob.meta_id,new_id)) 
    213211              self.manage_renameObject(id=id,new_id=new_id) 
Note: See TracChangeset for help on using the changeset viewer.