Package Camelot :: Package camelot :: Package model :: Module batch_job :: Class BatchJob |
[frames] | no frames]

# Class BatchJob

source code

Nested Classes
| Admin
Inherited from `elixir.entity.Entity`: `__metaclass__`

Instance Methods
add_exception_to_message(self, exception) | source code
add_strings_to_message(self, strings) | source code
Inherited from `elixir.entity.Entity`: `__init__`, `delete`, `expire`, `expunge`, `flush`, `from_dict`, `merge`, `refresh`, `save`, `save_or_update`, `set`, `to_dict`, `update` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Methods
Inherited from `elixir.entity.Entity`: `get`, `get_by`, `update_or_create`

Class Variables
| date = `Field(sqlalchemy.types.DateTime, required= True, defaul`...``
| host = `Field(sqlalchemy.types.Unicode(256), required= True, de`...``
| type = `ManyToOne('BatchJobType', required= True, ondelete= 're`...``
| status = `Field(camelot.types.Enumeration([(-2, 'planned'), (-1`...``
| message = `Field(camelot.types.RichText())`
| __elixir_mutators__ = ``[``(`<elixir.statements.ClassMutator object`...``
| mapper = `None` hash(x)
| table = `None` hash(x)

Properties
Inherited from `object`: `__class__`

Method Details

### add_strings_to_message(self, strings) | source code
Parameters: `strings` - a list or generator of strings

Class Variable Details

  ### date Value:
      Field(sqlalchemy.types.DateTime, required= True, default= datetime.dat
      etime.now)

  ### host Value:
      Field(sqlalchemy.types.Unicode(256), required= True, default= hostname
      )

  ### type Value:
      ManyToOne('BatchJobType', required= True, ondelete= 'restrict', onupda
      te= 'cascade')

  ### status Value:
      Field(camelot.types.Enumeration([(-2, 'planned'), (-1, 'running'), (0,
       'success'), (1, 'warnings'), (2, 'errors')]), required= True, default
      = 'planned')

  ### __elixir_mutators__ Value:
      [(<elixir.statements.ClassMutator object at 0x9804e0c>,
        (),
        {'order_by': ['-date'], 'tablename': 'batch_job'})]