Trees | Index | Help |
|
---|
Package persistent :: Class Persistent |
|
object
--+
|
Persistent
Persistent
Method Summary | |
---|---|
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Get the object serialization state | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
Reduce an object to contituent parts for serialization | |
x.__setattr__('name', value) <==> x.name = value | |
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state. | |
_p_activate() -- Activate the object | |
_p_deactivate() -- Deactivate the object | |
This method should be called by subclass __delattr__ implementations before doing anything else. | |
The method unghostifies the object, if necessary. | |
_p_invalidate() -- Invalidate the object | |
This method should be called by subclass __setattr__ implementations before doing anything else. | |
Inherited from object :
__init__ ,
__hash__ ,
__reduce_ex__ ,
__repr__ ,
__str__
|
Class Variable Summary | |
---|---|
getset_descriptor |
_p_changed = <attribute '_p_changed' of 'persistent.Pers...
|
getset_descriptor |
_p_jar = <attribute '_p_jar' of 'persistent.Persistent' ...
|
getset_descriptor |
_p_mtime = <attribute '_p_mtime' of 'persistent.Persiste...
|
getset_descriptor |
_p_oid = <attribute '_p_oid' of 'persistent.Persistent' ...
|
getset_descriptor |
_p_serial = <attribute '_p_serial' of 'persistent.Persis...
|
getset_descriptor |
_p_state = <attribute '_p_state' of 'persistent.Persiste...
|
Method Details |
---|
__delattr__(...)x.__delattr__('name') <==> del x.name
|
__getattribute__(...)x.__getattribute__('name') <==> x.name
|
__getstate__(...)Get the object serialization state If the object has no assigned slots and has no instance dictionary, then None is returned. If the object has no assigned slots and has an instance dictionary, then the a copy of the instance dictionary is returned. The copy has any items with names starting with '_v_' or '_p_' ommitted. If the object has assigned slots, then a two-element tuple is returned. The first element is either None or a copy of the instance dictionary, as described above. The second element is a dictionary with items for each of the assigned slots. |
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
__reduce__(...)Reduce an object to contituent parts for serialization
|
__setattr__(...)x.__setattr__('name', value) <==> x.name = value
|
__setstate__(...)Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state. - A two-tuple with a string as the first element. In this case, the method named by the string in the first element will be called with the second element. This form supports migration of data formats. - A two-tuple with None or a Dictionary as the first element and with a dictionary as the second element. If the first element is not None, then the object's instance dictionary will be cleared and updated with the value. The items in the second element will be assigned as attributes. |
_p_activate()_p_activate() -- Activate the object |
_p_deactivate()_p_deactivate() -- Deactivate the object |
_p_delattr(name)This method should be called by subclass __delattr__ implementations before doing anything else. If it returns true, then the attribute was handled by the base class. The method unghostifies the object, if necessary. The method records the object access, if necessary. |
_p_getattr(name)The method unghostifies the object, if necessary. The method records the object access, if necessary. This method should be called by subclass __getattribute__ implementations before doing anything else. If the method returns True, then __getattribute__ implementations must delegate to the base class, Persistent. |
_p_invalidate()_p_invalidate() -- Invalidate the object |
_p_setattr(name, value)This method should be called by subclass __setattr__ implementations before doing anything else. If it returns true, then the attribute was handled by the base class. The method unghostifies the object, if necessary. The method records the object access, if necessary. |
Class Variable Details |
---|
_p_changed
|
_p_jar
|
_p_mtime
|
_p_oid
|
_p_serial
|
_p_state
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 | http://epydoc.sf.net |