Function Summary |
|
clear_attr_cache ()
Clears the kgetattr cache. |
|
enable_attr_cache ()
Enables the use of the kgetattr cache when using Python versions that
do not support weakrefs (1.5.x and earlier). |
|
get_default_getter (model,
attr_name,
cache)
Obtains from model a callable through which attr_name can be
retrieved. |
|
get_default_setter (model,
attr_name,
cache)
Obtains from model a callable through which attr_name can be set. |
|
kgetattr (model,
attr_name,
default,
flat,
ref,
TupleType,
MethodType,
split,
kgetattr_guard,
getattr,
dummycache,
LAMBDA_ACCESS,
METHOD_ACCESS,
TUPLE_ACCESS,
NWR_METHOD_ACCESS,
NWR_TUPLE_ACCESS,
FAST_METHOD_ACCESS,
FAST_TUPLE_ACCESS)
Returns the value associated with the attribute in model named by
attr_name. |
|
kgetattr_guard(wref)
|
|
ksetattr (model,
attr_name,
value,
flat,
ref,
TupleType,
MethodType,
ksetattr_guard,
getattr,
dummycache,
LAMBDA_ACCESS,
METHOD_ACCESS,
TUPLE_ACCESS,
NWR_METHOD_ACCESS,
NWR_TUPLE_ACCESS,
FAST_METHOD_ACCESS,
FAST_TUPLE_ACCESS)
Set the value associated with the attribute in model named by
attr_name. |
|
ksetattr_guard(wref)
|
kgetattr(model,
attr_name,
default=<class kiwi.accessor._AttrUnset at 0x3bb10d7c>,
flat=0,
ref=<type 'weakref'>,
TupleType=<type 'tuple'>,
MethodType=<type 'instancemethod'>,
split=<function split at 0x3acc110c>,
kgetattr_guard=<function kgetattr_guard at 0x3bb246f4>,
getattr=<built-in function getattr>,
dummycache=<kiwi.accessor.CacheControl object at 0x3b97a44c>,
LAMBDA_ACCESS=0,
METHOD_ACCESS=1,
TUPLE_ACCESS=2,
NWR_METHOD_ACCESS=3,
NWR_TUPLE_ACCESS=4,
FAST_METHOD_ACCESS=5,
FAST_TUPLE_ACCESS=6)
Returns the value associated with the attribute in model named by
attr_name. If default is provided and model does not have an attribute
called attr_name, the default value is returned. If flat=1 is
specified, no dot path parsing will be done.
-
|
ksetattr(model,
attr_name,
value,
flat=0,
ref=<type 'weakref'>,
TupleType=<type 'tuple'>,
MethodType=<type 'instancemethod'>,
ksetattr_guard=<function ksetattr_guard at 0x3bb247d4>,
getattr=<built-in function getattr>,
dummycache=<kiwi.accessor.CacheControl object at 0x3bb1b14c>,
LAMBDA_ACCESS=0,
METHOD_ACCESS=1,
TUPLE_ACCESS=2,
NWR_METHOD_ACCESS=3,
NWR_TUPLE_ACCESS=4,
FAST_METHOD_ACCESS=5,
FAST_TUPLE_ACCESS=6)
Set the value associated with the attribute in model named by
attr_name. If flat=1 is specified, no dot path parsing will be
done.
-
|