Package lib :: Package cuckoo :: Package core :: Module database :: Class Tag
[hide private]
[frames] | no frames]

Class Tag

source code

object --+    
         |    
      Base --+
             |
            Tag

Tag describing anything you want.

Instance Methods [hide private]
 
__repr__(self)
repr(x)
source code
 
__init__(self, name)
A simple constructor that allows initialization from kwargs.
source code

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

Class Variables [hide private]
  __tablename__ = 'tags'
  id = Column(Integer(), primary_key= True)
  name = Column(String(255), nullable= False, unique= True)
  __mapper__ = <Mapper at 0x7f86b81a3850; Tag>
  __table__ = Table('tags', MetaData(bind=None), Column('id', In...
  _sa_class_manager = <ClassManager of <class 'lib.cuckoo.core.d...

Inherited from Base: metadata

Inherited from Base (private): _decl_class_registry

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__init__(self, name)
(Constructor)

source code 

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in ``kwargs``.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

__table__

Value:
Table('tags', MetaData(bind=None), Column('id', Integer(), table=<tags\
>, primary_key=True, nullable=False), Column('name', String(length=255\
), table=<tags>, nullable=False), schema=None)

_sa_class_manager

Value:
<ClassManager of <class 'lib.cuckoo.core.database.Tag'> at 7f86b81ab4f\
0>