]> git.llucax.com Git - software/sercom.git/commitdiff
Show de ejercicio
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 25 Feb 2007 19:49:31 +0000 (19:49 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 25 Feb 2007 19:49:31 +0000 (19:49 +0000)
sercom/subcontrollers/ejercicio/__init__.py
sercom/subcontrollers/ejercicio/templates/show.kid

index f0b0157f78651493b25b4fa6d6ff7f15a1d67ff7..3abb82c33fc94416b6d1fccc44fb6bcc7d4eb88e 100644 (file)
@@ -148,10 +148,6 @@ class EjercicioController(controllers.Controller, identity.SecureResource):
     def show(self,id, **kw):
         """Show record in model"""
         r = validate_get(id)
-        if r.descripcion is None:
-            r.desc = ''
-        else:
-            r.desc = publish_parts(r.descripcion, writer_name='html')['html_body']
         return dict(name=name, namepl=namepl, record=r)
 
     @expose()
index e53f7188870eb3f420e42eaa2ba67a647e1e2eef..87bff15d958be6c359fc2641083654431b2bf16d 100644 (file)
@@ -9,18 +9,31 @@
 
 <table>
     <tr>
-        <th>Nombre:</th>
-        <td><span py:replace="record.nombre">nombre</span></td>
+        <th>Curso:</th>
+                               <td>
+                                       <a href="${tg.url('/curso/show/%d' % record.curso.id)}">
+                                               <span py:replace="record.curso.shortrepr()">nombre</span>
+                                       </a>
+                               </td>
     </tr>
     <tr>
-        <th>Descripción:</th>
-       <td><span py:replace="XML(record.desc)">descripcion</span></td>
+        <th>Número:</th>
+       <td><span py:replace="record.numero">descripcion</span></td>
     </tr>
     <tr>
-        <th>Autor:</th>
-       <td><a py:if="record.autorID is not None"
-                       href="${tg.url('/docente/show/%d' % record.autor.id)}"><span py:replace="record.autor.shortrepr()">autor</span></a></td>
+        <th>Enunciado:</th>
+       <td>
+               <a href="${tg.url('/enunciado/show/%d' % record.enunciado.id)}">
+                       <span py:replace="record.enunciado.shortrepr()">autor</span>
+               </a>
+       </td>
     </tr>
+    <tr>
+        <th>Es grupal?:</th>
+       <td>
+                       <span py:replace="record.grupal">grupal</span>
+       </td>
+  </tr>
 </table>
 
 <br/>