Exemplo n.º 1
0
	def get_specific_values(self):
		return [(t.id, t.descripcion) for t in TipoPregunta.select()]   
Exemplo n.º 2
0
 def list(self):
     return dict(namepl=namepl, records=TipoPregunta.select(),limit_to=self.get_limite_paginado())
Exemplo n.º 3
0
 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())