Package posterity :: Module model :: Class Pop3Log

Class Pop3Log



          object --+    
                   |    
elixir.entity.Entity --+
                       |
                      Pop3Log

Pop3 Server message download history.

When a Pop3Server's keep_time value determines how long downloaded messages are kept on the server before being deleted. In order to do this we need to keep track of all messages' unique id and time of download. This information is stored in this table.



Nested Classes

Inherited from elixir.entity.Entity: __metaclass__

Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
delete(self, *args, **kwargs)
 
expire(self, *args, **kwargs)
 
expunge(self, *args, **kwargs)
 
flush(self, *args, **kwargs)
 
merge(self, *args, **kwargs)
 
refresh(self, *args, **kwargs)
 
save(self, *args, **kwargs)
 
save_or_update(self, *args, **kwargs)
 
update(self, *args, **kwargs)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods
 
count(self, *args, **kwargs)
 
count_by(self, *args, **kwargs)
 
filter(self, *args, **kwargs)
 
filter_by(self, *args, **kwargs)
 
get(self, *args, **kwargs)
 
get_by(self, *args, **kwargs)
 
instances(self, *args, **kwargs)
 
join_to(self, *args, **kwargs)
 
join_via(self, *args, **kwargs)
 
options(self, *args, **kwargs)
 
query(cls)
 
select(self, *args, **kwargs)
 
select_by(self, *args, **kwargs)
 
selectfirst(self, *args, **kwargs)
 
selectfirst_by(self, *args, **kwargs)
 
selectone(self, *args, **kwargs)
 
selectone_by(self, *args, **kwargs)
Class Variables
  __elixir_statements__ = [(<elixir.statements.Statement object ...
  c = <sqlalchemy.orm.mapper.LOrderedProp object at 0x21cde90>
  date = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x2640...
  id = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x26404d0>
  mapper = <sqlalchemy.orm.mapper.Mapper object at 0x21cde50>
  muid = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x2640...
  paccount = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x...
  paccount_id = <sqlalchemy.orm.unitofwork.UOWProperty object at...
  table = Table('pop3_log',MetaData(),Column('id',Integer(),prim...
Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details

__elixir_statements__

Value:
[(<elixir.statements.Statement object at 0x20dbcf0>,
  ('id', <class 'sqlalchemy.types.Integer'>),
  {'primary_key': True}),
 (<elixir.statements.Statement object at 0x20dbcf0>,
  ('muid', <class 'sqlalchemy.types.Unicode'>),
  {'nullable': False}),
 (<elixir.statements.Statement object at 0x20dbcf0>,
  ('date', <class 'sqlalchemy.types.DateTime'>),
...

date

Value:
<sqlalchemy.orm.unitofwork.UOWProperty object at 0x2640110>

muid

Value:
<sqlalchemy.orm.unitofwork.UOWProperty object at 0x2640090>

paccount

Value:
<sqlalchemy.orm.unitofwork.UOWProperty object at 0x26403b0>

paccount_id

Value:
<sqlalchemy.orm.unitofwork.UOWProperty object at 0x2640190>

table

Value:
Table('pop3_log',MetaData(),Column('id',Integer(),primary_key=True,nul\
lable=False),Column('muid',Unicode(length=None),nullable=False),Column\
('date',DateTime(timezone=False),nullable=False,default=ColumnDefault(\
<built-in method utcnow of type object at 0x114e720>)),Column('paccoun\
t_id',Integer(),ForeignKey('pop3_account.id'),nullable=False),schema=N\
one)