Package persistent :: Class Persistent
[show private | hide private]
[frames | no frames]

Type Persistent

object --+
         |
        Persistent

Known Subclasses:
Persistent

Method Summary
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getstate__(...)
Get the object serialization state
  __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.
  _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.
  _p_getattr(name)
The method unghostifies the object, if necessary.
  _p_invalidate()
_p_invalidate() -- Invalidate the object
  _p_setattr(name, value)
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
Overrides:
__builtin__.object.__delattr__

__getattribute__(...)

x.__getattribute__('name') <==> x.name
Overrides:
__builtin__.object.__getattribute__

__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
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__reduce__(...)

Reduce an object to contituent parts for serialization
Overrides:
__builtin__.object.__reduce__

__setattr__(...)

x.__setattr__('name', value) <==> x.name = value
Overrides:
__builtin__.object.__setattr__

__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

Type:
getset_descriptor
Value:
<attribute '_p_changed' of 'persistent.Persistent' objects>            

_p_jar

Type:
getset_descriptor
Value:
<attribute '_p_jar' of 'persistent.Persistent' objects>                

_p_mtime

Type:
getset_descriptor
Value:
<attribute '_p_mtime' of 'persistent.Persistent' objects>              

_p_oid

Type:
getset_descriptor
Value:
<attribute '_p_oid' of 'persistent.Persistent' objects>                

_p_serial

Type:
getset_descriptor
Value:
<attribute '_p_serial' of 'persistent.Persistent' objects>             

_p_state

Type:
getset_descriptor
Value:
<attribute '_p_state' of 'persistent.Persistent' objects>              

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net