Exemplo n.º 1
0
 def get_files_list(self, session):
     return [x[0] for x in db_query(session, models.File.id)]
Exemplo n.º 2
0
 def get_attachments_list(self, session):
     return [x[0] for x in db_query(session, models.InternalFile.filename)] + \
            [x[0] for x in db_query(session, models.ReceiverFile.filename)] + \
            [x[0] for x in db_query(session, models.WhistleblowerFile.filename)]
Exemplo n.º 3
0
def db_get_languages(session, tid):
    return [
        x[0] for x in db_query(session, models.EnabledLanguage.name,
                               models.EnabledLanguage.tid == tid)
    ]