From: Ricardo Markiewicz Date: Sun, 4 Mar 2007 19:50:28 +0000 (+0000) Subject: show de los datos asociados a un alumno inscripto. X-Git-Tag: pre-merge~3 X-Git-Url: https://git.llucax.com/software/sercom.git/commitdiff_plain/16e039119c5646d5c45d549808fb296d786b2844?ds=inline show de los datos asociados a un alumno inscripto. --- diff --git a/sercom/model.py b/sercom/model.py index f8ae374..b2ec706 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -871,6 +871,8 @@ class Correccion(SQLObject): #{{{ self.corregido, self.nota, self.observaciones) def shortrepr(self): + if not self.corrector: + return '%s' % self.entrega.shortrepr() return '%s,%s' % (self.entrega.shortrepr(), self.corrector.shortrepr()) #}}} diff --git a/sercom/subcontrollers/alumno_inscripto/__init__.py b/sercom/subcontrollers/alumno_inscripto/__init__.py index 4b91be0..0ba860f 100644 --- a/sercom/subcontrollers/alumno_inscripto/__init__.py +++ b/sercom/subcontrollers/alumno_inscripto/__init__.py @@ -108,10 +108,6 @@ class AlumnoInscriptoController(controllers.Controller, identity.SecureResource) def show(self,id, **kw): """Show record in model""" r = validate_get(id) - if r.observaciones is None: - r.obs = '' - else: - r.obs = publish_parts(r.observaciones, writer_name='html')['html_body'] return dict(name=name, namepl=namepl, record=r) @expose(template='kid:%s.templates.entregas' % __name__) diff --git a/sercom/subcontrollers/alumno_inscripto/templates/list.kid b/sercom/subcontrollers/alumno_inscripto/templates/list.kid index 148f240..d407d2f 100644 --- a/sercom/subcontrollers/alumno_inscripto/templates/list.kid +++ b/sercom/subcontrollers/alumno_inscripto/templates/list.kid @@ -26,7 +26,7 @@ fecha corregido Tutor - Ver + Ver diff --git a/sercom/subcontrollers/alumno_inscripto/templates/show.kid b/sercom/subcontrollers/alumno_inscripto/templates/show.kid new file mode 100644 index 0000000..b3b9bdb --- /dev/null +++ b/sercom/subcontrollers/alumno_inscripto/templates/show.kid @@ -0,0 +1,74 @@ + + + + +show + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Curso:padrón
Alumno:nombre
Condicional::email
Tutor:tutor
Responsabilidades: +
    +
  • + ${i.shortrepr()} +
  • +
+
Grupos a los que Pertenece: +
    +
  • + ${i.grupo.shortrepr()} +
  • +
+
Entregas realizadas: +
    +
  • + ${i.shortrepr()} +
  • +
+
Correcciones : +
    +
  • + ${i.shortrepr()} +
  • +
+
+ +
+Editar | +Volver + + +