Ejemplo n.º 1
0
 def __init__(self):
     idcol = PkName('name')
     keyid = Name('keyid')
     keyid.constraint.unique = True
     data = Text('data')
     columns = [idcol, keyid, data]
     Table.__init__(self, 'archive_keys', columns)
Ejemplo n.º 2
0
def profile_columns():
    return [
        PkName('profile'),
        Name('suite'),
        Bigname('template'),
        Text('description')
    ]
Ejemplo n.º 3
0
def family_env_columns():
    return [
        PkName('family'),
        PkName('trait'),
        PkBigname('name'),
        Text('value')
    ]
Ejemplo n.º 4
0
 def __init__(self):
     idcol = PkNum('fileid')
     idcol.set_auto_increment('textfile_ident')
     mcol = Name('md5size')
     mcol.constraint.unique = True
     dcol = Text('data')
     columns = [idcol, mcol, dcol]
     Table.__init__(self, 'textfiles', columns)
Ejemplo n.º 5
0
 def __init__(self, profiles_table):
     profile_col = PkName('profile')
     profile_col.set_fk(profiles_table)
     trait_col = PkName('trait')
     name_col = PkBigname('name')
     value_col = Text('value')
     cols = [profile_col, trait_col, name_col, value_col]
     tablename = ujoin('profile', 'variables')
     Table.__init__(self, tablename, cols)
Ejemplo n.º 6
0
 def __init__(self, mach_types_table):
     mtype_col = PkName('machine_type')
     mtype_col.set_fk(mach_types_table)
     trait_col = PkName('trait')
     name_col = PkBigname('name')
     value_col = Text('value')
     cols = [mtype_col, trait_col, name_col, value_col]
     tablename = ujoin('machine_type', 'variables')
     Table.__init__(self, tablename, cols)
Ejemplo n.º 7
0
def debconf_columns():
    return [
        PkBigname('name'),
        Bigname('value'),
        Bigname('owners'),
        Bigname('flags'),
        Bigname('template'),
        Text('variables')
    ]
Ejemplo n.º 8
0
def packages_columns():
    return [
        PkBigname('package'),
        Name('priority'),
        Bigname('section'),
        Num('installedsize'),
        Bigname('filename'),
        Bigname('maintainer'),
        Bigname('size'),
        Name('md5sum'),
        Bigname('version'),
        Text('description')]
Ejemplo n.º 9
0
def defaultenv_columns():
    return [PkName('section'), PkBigname('option'), Text('value')]
Ejemplo n.º 10
0
def currentenv_columns():
    return [PkName('hostname'), PkBigname('name'), Text('value')]
Ejemplo n.º 11
0
 def __init__(self):
     idcol = PkName('name')
     diskconf_col = Text('content')
     disklist_col = Text('disklist')
     columns = [idcol, diskconf_col, disklist_col]
     Table.__init__(self, 'diskconfig', columns)
Ejemplo n.º 12
0
 def __init__(self, suite, traits_table):
     cols = [PkBigname('name'), Text('value')]
     tablename = ujoin(suite, 'variables')
     _TraitRelation.__init__(self, traits_table, tablename, cols)
Ejemplo n.º 13
0
def trait_columns():
    return [PkName('trait'), Text('description')]
Ejemplo n.º 14
0
common_columns = [
    PkBigname('package'),
    Name('essential'),
    Name('priority'),
    Name('section'),
    Num('installedsize'),
    Bigname('maintainer'),
    Name('version')
    ]
    

#columns for /var/lib/dpkg/status
status_columns = common_columns + [
    Name('status'),
    Text('replaces'),
    Text('provides'),
    Text('predepends'),
    Text('conflicts'),
    Bigname('source'),
    Text('suggests'),
    Text('recommends'),
    Text('depends'),
    Text('conffiles'),
    Text('description'),
    Bigname('origin'),
    Text('bugs'),
    Text('enhances'),
    Name('md5sum'),
    Bigname('configversion')
    ]