Package twisted :: Package world :: Module compound :: Class StorableList
[frames | no frames]

Class StorableList

object --+        
         |        
  Storable --+    
             |    
    Allocation --+
                 |
                StorableList

Known Subclasses:
FloatList, IntList, StorableDictionaryStore, StrList

Method Summary
  __init__(self, db, typeMapper)
  __awake__(self)
POSSIBLY: a method for when objects 'wake up'
  __cmp__(self, other)
  __delitem__(self, inum)
  __delslice__(self, begin, end)
  __eq__(self, other)
  __ge__(self, other)
  __getitem__(self, inum)
  __getslice__(self, begin, end)
  __gt__(self, other)
  __hash__(self)
  __iter__(self)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __ne__(self, other)
  __setitem__(self, inum, value)
  __setslice__(self, begin, end, val)
  _checkindex(self, inum)
  append(self, o)
  expand(self, howMuch)
I have some space in a fragment file, but I need more.
  extend(self, seq)
  index(self, x)
  insert(self, idx, o)
  pop(self, inum)
  remove(self, x)
  sort(self)
  updateFragData(self)
    Inherited from Allocation
  findFragFile(self, howBig)
I may or may not have a fragment file.
  free(self)
  getDataFile(self)
    Inherited from Storable
  __new__(klazz, *args, **kwargs)
(Static method)
  __repr__(self)
  _clearcache(self)
  _loadattr(self, attr)
  _saveattr(self, attr, val)
  _upgradeFrom(self, version, input)
  fromDB(klass, table, oid, genhash)
(Class method)
  getDatabase(self)
Get the database that this object is a member of.
  keepAlive(self, volatileObject)
Keep me alive until nobody references volatileObject any more.
  storedUIDPath(self)
    Inherited from object
  __delattr__(...)
  __getattribute__(...)
  __reduce__(...)
  __setattr__(...)
  __str__(...)

Property Summary
  _schema_genhash: int(_schema_genhash)
  _schema_oid: int(_schema_oid)
  allocBegin: int(allocBegin)
  allocIndex: int(allocIndex)
  allocLength: int(allocLength)
  contentLength: int(contentLength)
  fragfile: FragmentFile(fragfile)
  typeMapper: <class twisted.world.typemap.TypeMapperMapper at 0x8bcfb44>(typeMapper)

Class Variable Summary
str __name__ = 'StorableList'
dict __schema__ = {'_attrcache': None, 'allocIndex': <type 'i...
NoneType _attrcache = None                                                                  
NoneType _inmem_fromdb = None                                                                  
NoneType _inmem_genhash = None                                                                  
NoneType _inmem_oid = None                                                                  
dict _schema_loadmap = {'allocBegin': 2, 'allocIndex': 3, 'ty...
dict _schema_orig = {'fragdata': None, 'typeMapper': <class t...
tuple _schema_storeorder = ('_schema_genhash', '_schema_oid', ...
NoneType _schema_table = None                                                                  
NoneType fragdata = None                                                                  
int initialPad = 10                                                                    

Instance Method Details

__awake__(self)

POSSIBLY: a method for when objects 'wake up'
Overrides:
twisted.world.storable.Storable.__awake__ (inherited documentation)

expand(self, howMuch=None)

I have some space in a fragment file, but I need more.
Overrides:
twisted.world.allocator.Allocation.expand (inherited documentation)

Property Details

_schema_genhash

int(_schema_genhash)
Get Method:
getter(...)
Set Method:
setter(...)

_schema_oid

int(_schema_oid)
Get Method:
getter(...)
Set Method:
setter(...)

allocBegin

int(allocBegin)
Get Method:
getter(...)
Set Method:
setter(...)

allocIndex

int(allocIndex)
Get Method:
getter(...)
Set Method:
setter(...)

allocLength

int(allocLength)
Get Method:
getter(...)
Set Method:
setter(...)

contentLength

int(contentLength)
Get Method:
getter(...)
Set Method:
setter(...)

fragfile

FragmentFile(fragfile)
Get Method:
getter(...)
Set Method:
setter(...)

typeMapper

<class twisted.world.typemap.TypeMapperMapper at 0x8bcfb44>(typeMapper)
Get Method:
getter(...)
Set Method:
setter(...)

Class Variable Details

__name__

Type:
str
Value:
'StorableList'                                                         

__schema__

Type:
dict
Value:
{'_attrcache': None,
 '_inmem_fromdb': None,
 '_inmem_genhash': None,
 '_inmem_oid': None,
 '_schema_genhash': <type 'int'>,
 '_schema_oid': <type 'int'>,
 '_schema_table': None,
 'allocBegin': <type 'int'>,
...                                                                    

_attrcache

Type:
NoneType
Value:
None                                                                  

_inmem_fromdb

Type:
NoneType
Value:
None                                                                  

_inmem_genhash

Type:
NoneType
Value:
None                                                                  

_inmem_oid

Type:
NoneType
Value:
None                                                                  

_schema_loadmap

Type:
dict
Value:
{'_schema_genhash': 0,
 '_schema_oid': 1,
 'allocBegin': 2,
 'allocIndex': 3,
 'allocLength': 4,
 'contentLength': 5,
 'fragfile': 6,
 'typeMapper': 7}                                                      

_schema_orig

Type:
dict
Value:
{'fragdata': None,
 'typeMapper': <class twisted.world.typemap.TypeMapperMapper at 0x8bcf\
b44>}                                                                  

_schema_storeorder

Type:
tuple
Value:
('_schema_genhash',
 '_schema_oid',
 'allocBegin',
 'allocIndex',
 'allocLength',
 'contentLength',
 'fragfile',
 'typeMapper')                                                         

_schema_table

Type:
NoneType
Value:
None                                                                  

fragdata

Type:
NoneType
Value:
None                                                                  

initialPad

Type:
int
Value:
10                                                                    

Generated by Epydoc 2.0 on Sat Sep 13 04:20:39 2003 http://epydoc.sf.net