Exemple #1
0
 def get_files_list(self, session):
     return [x[0] for x in db_query(session, models.File.id)]
Exemple #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)]
Exemple #3
0
def db_get_languages(session, tid):
    return [
        x[0] for x in db_query(session, models.EnabledLanguage.name,
                               models.EnabledLanguage.tid == tid)
    ]