Home | Trees | Indices | Help |
|
---|
|
object --+ | attributecollection.AttributeCollection --+ | Delegator
An AttributeCollection that delegates attributes of one object to another. Instance properties: - `target`: Write-only, target of delegation - `profile`: Read-write, profile to use for delegation
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
target Write-only, target for delegation. |
|||
profile Read-write, the profile to use for attribute mappings. |
|||
Inherited from |
|
Constructs a delegator. Parameters: `profile` :: Profile = None delegation profile. If None, an empty profile is created for you. `target` = None target of delegation
|
Try to get the value of an attribute Parameters: `name` :: string name of the attribute to get Returns whether the attribute was found, and if so, its value :: (found_attribute::bool, value)
|
Try to set the value of an attribute Parameters: `name` :: string name of the attribute to set `value` the new value Returns True, if the attribute was found, False otherwise
|
Try to delete an attribute Parameters: `name` :: string name of the attribute to delete Returns True, if the attribute was found, False otherwise
|
|
targetWrite-only, target for delegation. Delegated attributes will be delegated to this object. Overloaded, setter parameters: :a: `target_object` the object to delegate to :b: `args` :: (object, variable_name::string) target object will be resolved on every get/set/del by doing getattr(object, variable_name)
|
profileRead-write, the profile to use for attribute mappings. Returns ::Profile Setter parameters: `value` :: Profile the profile
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Jul 19 11:49:29 2010 | http://epydoc.sourceforge.net |