Home | Trees | Indices | Help |
|
---|
|
object --+ | Profile
States what attributes to delegate, and to which target attributes. Instance methods: - `has_readable`: Check for read-access mapping of attribute - `has_writable`: Check for read-access mapping of attribute - `has_deletable`: Check for read-access mapping of attribute - `get_readable`: Get read-access mapping for attribute - `get_writable`: Get read-access mapping for attribute - `get_deletable`: Get read-access mapping for attribute - `remove_mappings`: Remove attribute mappings - `add_mappings`: Add attribute mappings Operators: self |= b::Profile union of this profile and the other
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Check for read-access mapping of attribute Returns True if the mapping exists |
Check for write-access mapping of attribute Returns True if the mapping exists |
Check for delete-access mapping of attribute Returns True if the mapping exists |
Get the mapped value of a readable attribute Returns ::string |
Get the mapped value of a writable attribute Returns ::string |
Get the mapped value of a deletable attribute Returns ::string |
union of this profile and the other Parameters: - `other` :: Profile the other profile |
Remove attribute mappings Parameters: `modifiers` :: string the types of delegation access to the target to remove. Valid modifiers are combinations of: - `r`: read - `w`: write - `d`: delete `names` :: (source_name::string...) names of source_name parts of, the mappings to remove |
Map source to target attribute names, for delegation. Parameters: `modifiers` :: string the types of delegation access to the target. Valid modifiers are combinations of: - `r`: read - `w`: write - `d`: delete `names` :: (source_name::string...) names of the attribute names to delegate. The target attribute name is the same as `source_name`. This is the same as adding a {source_name : source_name} mapping, using the mapped_names argument. `mapped_names` :: {source_name::string : target_name::string ...} names of source and target attributes to map and delegate. `target_name`s will be mangled if they have a __ prefix. Mangling will occur every time it is delegated to, so you can change the target object any time. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Jul 19 11:49:29 2010 | http://epydoc.sourceforge.net |