[scodoc-devel] [SVN] Scolar : [1760] Fix: PV jury anonymes

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Mer 31 Jan 13:48:12 CET 2018


Une pièce jointe HTML a été nettoyée...
URL: https://listes.univ-paris13.fr/pipermail/scodoc-devel/attachments/20180131/12028bcb/attachment.htm 
-------------- section suivante --------------
Modified: branches/ScoDoc7/VERSION.py
===================================================================
--- branches/ScoDoc7/VERSION.py	2018-01-31 11:10:19 UTC (rev 1759)
+++ branches/ScoDoc7/VERSION.py	2018-01-31 12:48:12 UTC (rev 1760)
@@ -6,6 +6,11 @@
 SCONAME = "ScoDoc"
 
 SCONEWS = """
+<h4>Année 2018</h4>
+<ul>
+<li>Corrections diverses</li>
+</ul>
+
 <h4>Année 2017</h4>
 <ul>
 <li>Bonus/Malus sur les moyennes d'UE</li>

Modified: branches/ScoDoc7/sco_archives.py
===================================================================
--- branches/ScoDoc7/sco_archives.py	2018-01-31 11:10:19 UTC (rev 1759)
+++ branches/ScoDoc7/sco_archives.py	2018-01-31 12:48:12 UTC (rev 1760)
@@ -239,7 +239,9 @@
                             description='', 
                             date_jury='', signature=None, # pour lettres indiv
                             date_commission=None, 
-                            numeroArrete=None, showTitle=False,
+                            numeroArrete=None,
+                            showTitle=False,
+                            anonymous=False,
                             bulVersion='long'
                             ):
     """Make and store new archive for this formsemestre.
@@ -301,7 +303,8 @@
                                                etudids=etudids,
                                                date_jury=date_jury, 
                                                date_commission=date_commission,
-                                               signature=signature)
+                                               signature=signature
+                                               )
     if data:
         PVArchive.store(archive_id, 'CourriersDecisions%s.pdf' % groups_filename, data )
     # PV de jury (PDF):
@@ -310,7 +313,9 @@
                                 date_commission=date_commission, 
                                 date_jury=date_jury,
                                 numeroArrete=numeroArrete, 
-                                showTitle=showTitle)
+                                showTitle=showTitle,
+                                anonymous=anonymous
+                                )
     if data:
         PVArchive.store(archive_id, 'PV_Jury%s.pdf' % groups_filename, data )
 
@@ -380,13 +385,19 @@
         # submit
         sf = tf[2]['signature']
         signature = sf.read() # image of signature
+        if tf[2]['anonymous']:
+            tf[2]['anonymous'] = True
+        else:
+            tf[2]['anonymous'] = False
         do_formsemestre_archive(context, REQUEST, formsemestre_id, 
                                 group_ids=group_ids,
                                 description=tf[2]['description'],
                                 date_jury=tf[2]['date_jury'], 
                                 date_commission=tf[2]['date_commission'],
                                 signature=signature, 
-                                numeroArrete=tf[2]['numeroArrete'], showTitle=tf[2]['showTitle'],
+                                numeroArrete=tf[2]['numeroArrete'],
+                                showTitle=tf[2]['showTitle'],
+                                anonymous=tf[2]['anonymous'],
                                 bulVersion=tf[2]['bulVersion'])
         msg = 'Nouvelle%20archive%20créée'
     


Plus d'informations sur la liste de diffusion scodoc-devel