Package backend :: Package satellite_tools :: Module sync_handlers :: Class BaseCollection
[hide private]
[frames] | no frames]

Class BaseCollection

source code


Instance Methods [hide private]
 
__init__(self) source code
 
add_item(self, item) source code
 
get_item_timestamp(self, item_id)
Returns this item's timestamp
source code
 
get_item(self, item_id, timestamp)
Retrieve an item from the collection
source code
 
has_item(self, item_id, timestamp)
Return true if the item exists in the collection (with the specified timestamp
source code
 
_init_fields(self) source code
 
_init_cache(self) source code
 
_get_item_id(self, item)
Get the item ID out of an item.
source code
 
_get_item_timestamp(self, item)
Get the item timestamp out of an item.
source code
 
reset(self)
Reset the collection
source code
Class Variables [hide private]
  _shared_state = {}
Method Details [hide private]

_get_item_id(self, item)

source code 

Get the item ID out of an item. Override in subclasses

_get_item_timestamp(self, item)

source code 

Get the item timestamp out of an item. Override in subclasses