Changeset 1380


Ignore:
Timestamp:
02/19/07 13:26:02 (13 years ago)
Author:
pjotr
Message:

Fixes #1130, also does the same thing for Activity or Method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r1377 r1380  
    145145                target_f=new.schema[k] 
    146146                for chap in source_f.getKeys(base_obj): 
    147                     target_f.setValue(new, chap, source_f.getValue(base_obj, chap))             
     147                    target_f.setValue(new, chap, source_f.getValue(base_obj, chap))            
     148        if 'address' in base_obj.schema.keys(): 
     149            address_old_accessor = base_obj.schema['address'].getEditAccessor(base_obj) 
     150            address_new_mutator = new.schema['address'].getMutator(new) 
     151            address_old_value = address_old_accessor() 
     152            address_new_mutator(address_old_value) 
    148153 
    149154 
Note: See TracChangeset for help on using the changeset viewer.