Package mrv :: Package maya :: Package nt :: Module storage :: Class StorageBase :: Class PyPickleValue
[hide private]
[frames] | no frames]

Class PyPickleValue

source code

object --+
         |
        StorageBase.PyPickleValue

Wrapper object prividing native access to the wrapped python pickle object and to the corresponding value plug, providing utlity methods for easier handling
Instance Methods [hide private]
 
__init__(self, valueplug, pythondata)
value plug contains the plugin data in pythondata
source code
 
__len__(self) source code
 
__iter__(self) source code
 
__getattr__(self, attr) source code
 
__setattr__(self, attr, val)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
_valueChanged(self)
Will be called automatically if the underlying value changed if the node of the underlying plug is referenced
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

    Interface
 
isReferenced(self)
Returns: True if the data is from a referenced plug
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, valueplug, pythondata)
(Constructor)

source code 
value plug contains the plugin data in pythondata
Overrides: object.__init__

__setattr__(self, attr, val)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

_valueChanged(self)

source code 
Will be called automatically if the underlying value changed if the node of the underlying plug is referenced

Note: this method will only be called once during the lifetime of this object if it changes, as its enough to trigger reference to write the value if it changes once. Getting and setting data is expensive as there is a tracking dict in the background being spawned with internally created copies.

isReferenced(self)

source code 
Returns:
True if the data is from a referenced plug