def _clone_attr(self, master, name, new_name=None):
    'Clones a single attribute from one in this list or another\n\n        Copies data and types from the master attribute to the new one\n\n        @param master: attribute list to copy attribute from\n        @type master: L{zAttrList}\n        @param name: name of attribute to copy\n        @type name: str\n        @param new_name: name of the new attribute, default L{name}\n        @type new_name: str\n        '
    if (new_name is None):
        new_name = name
    if (new_name in self):
        del self[new_name]
    self.new(new_name, master[name], (master.type(name) if hasattr(master, 'type') else None))
Clones a single attribute from one in this list or another

Copies data and types from the master attribute to the new one

@param master: attribute list to copy attribute from
@type master: L{zAttrList}
@param name: name of attribute to copy
@type name: str
@param new_name: name of the new attribute, default L{name}
@type new_name: str
def _clone_attr(self, master, name, new_name=None):
    'Clones a single attribute from one in this list or another\n\n        Copies data and types from the master attribute to the new one\n\n        @param master: attribute list to copy attribute from\n        @type master: L{zAttrList}\n        @param name: name of attribute to copy\n        @type name: str\n        @param new_name: name of the new attribute, default L{name}\n        @type new_name: str\n        '
    if (new_name is None):
        new_name = name
    if (new_name in self):
        del self[new_name]
    self.new(new_name, master[name], (master.type(name) if hasattr(master, 'type') else None))