Package posterity :: Module model :: Class Identity

Class Identity



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

Email sending identity

When an email is sent using posterity the name, email and signature is taken from the identity. Each account can be configured with zero or more identities.



Nested Classes

Inherited from elixir.entity.Entity: __metaclass__

Instance Methods
 
__repr__(self)
repr(x)
 
__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__, __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 ...
  account = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x2...
  account_id = <sqlalchemy.orm.unitofwork.UOWProperty object at ...
  c = <sqlalchemy.orm.mapper.LOrderedProp object at 0x2175270>
  email = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x21a...
  id = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x2195e50>
  is_default = <sqlalchemy.orm.unitofwork.UOWProperty object at ...
  mapper = <sqlalchemy.orm.mapper.Mapper object at 0x2175230>
  name = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x2195...
  organization = <sqlalchemy.orm.unitofwork.UOWProperty object a...
  reply_to = <sqlalchemy.orm.unitofwork.UOWProperty object at 0x...
  signature = <sqlalchemy.orm.unitofwork.UOWProperty object at 0...
  table = Table('identity',MetaData(),Column('id',Integer(),prim...
Properties

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)

__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>,
  ('name', <class 'sqlalchemy.types.Unicode'>),
  {'nullable': False}),
 (<elixir.statements.Statement object at 0x20dbcf0>,
  ('email', <class 'sqlalchemy.types.Unicode'>),
...

account

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

account_id

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

email

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

is_default

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

name

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

organization

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

reply_to

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

signature

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

table

Value:
Table('identity',MetaData(),Column('id',Integer(),primary_key=True,nul\
lable=False),Column('name',Unicode(length=None),nullable=False),Column\
('email',Unicode(length=None),nullable=False),Column('signature',Unico\
de(length=None),nullable=False),Column('reply_to',Unicode(length=None)\
,nullable=False),Column('organization',Unicode(length=None),nullable=F\
alse),Column('is_default',Boolean(),nullable=False,default=ColumnDefau\
lt(False)),Column('account_id',Integer(),ForeignKey('account.id'),null\
able=False),schema=None)