コード例 #1
0
class SupernetAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'supernet_av'

    entity = models.ForeignKey(Supernet)
    attribute = EAVAttributeField(Attribute)
コード例 #2
0
ファイル: models.py プロジェクト: jwasinger/cyder
class NetworkAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'network_av'

    entity = models.ForeignKey(Network)
    attribute = EAVAttributeField(Attribute)
コード例 #3
0
class SOAAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'soa_av'

    entity = models.ForeignKey(SOA)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_INVENTORY, ))
コード例 #4
0
ファイル: models.py プロジェクト: jwasinger/cyder
class WorkgroupAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'workgroup_av'


    entity = models.ForeignKey(Workgroup)
    attribute = EAVAttributeField(Attribute)
コード例 #5
0
ファイル: models.py プロジェクト: jwasinger/cyder
class DynamicInterfaceAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = "dynamic_interface_av"

    entity = models.ForeignKey(DynamicInterface)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_INVENTORY, ))
コード例 #6
0
ファイル: models.py プロジェクト: ksfraser/cyder
class WorkgroupAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'workgroup_av'

    entity = models.ForeignKey(Workgroup)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_OPTION,
                                                ATTRIBUTE_STATEMENT))