Package coprs :: Module models :: Class Action
[hide private]
[frames] | no frames]

Class Action

source code


Representation of a custom action that needs backends cooperation/admin attention/...

Instance Methods [hide private]
 
__str__(self)
str(x)
source code
 
__unicode__(self) source code

Inherited from Serializer: serializable_attributes, to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  id = db.Column(db.Integer, primary_key= True)
  action_type = db.Column(db.Integer, nullable= False)
  object_type = db.Column(db.String(20))
  object_id = db.Column(db.Integer)
  old_value = db.Column(db.String(255))
  new_value = db.Column(db.String(255))
  result = db.Column(db.Integer, default= helpers.BackendResultE...
  message = db.Column(db.Text)
  created_on = db.Column(db.Integer)
  ended_on = db.Column(db.Integer)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

result

Value:
db.Column(db.Integer, default= helpers.BackendResultEnum('waiting'))