コード例 #1
0
ファイル: __init__.py プロジェクト: sercom/sercom
 def list(self):
     return dict(namepl=namepl, records=TemaPregunta.select(), limit_to=self.get_limite_paginado())
コード例 #2
0
ファイル: custom_selects.py プロジェクト: sercom/sercom
	def get_specific_values(self):
        	return [(t.id, t.descripcion) for t in TemaPregunta.select()]   
コード例 #3
0
ファイル: __init__.py プロジェクト: sercom/sercom
 def list(self):
     print identity.current.permissions
     permitir_agregar = TemaPregunta.select().count() > 0 and TipoPregunta.select().count() > 0
     return dict(namepl='Examenes', permitir_agregar=permitir_agregar,  records=ExamenFinal.select(), limit_to=self.get_limite_paginado())