EduploneExam ExamFolder.py,1.33.2.6,1.33.2.7

Nils Haagen <[email protected]> Sun, 08 Jan 2006 01:38:17 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2883

Modified Files:
      Tag: exam-1_1
	ExamFolder.py 
Log Message:
results-tab 

Index: ExamFolder.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/ExamFolder.py,v
retrieving revision 1.33.2.6
retrieving revision 1.33.2.7
diff -C2 -d -r1.33.2.6 -r1.33.2.7
*** ExamFolder.py	8 Jan 2006 00:08:23 -0000	1.33.2.6
--- ExamFolder.py	8 Jan 2006 01:38:15 -0000	1.33.2.7
***************
*** 131,135 ****
      actions =  (
  
- 
         {'action':      "string:$object_url/exam_view",
          'category':    "object",
--- 131,134 ----
***************
*** 140,143 ****
--- 139,149 ----
         },
  
+        {'action':      "string:$object_url/exam_userlist",
+         'category':    "object",
+         'id':          'results',
+         'name':        'exam_userlist',
+         'permissions': ("Manage",),
+         #'condition'  : 'python:1'
+        },
  
      )
***************
*** 268,276 ****
      #manually created methods
  
!     def sumResultsForUser(self,user):
          """ 
-         ^storeResponseAttr should set a list of users (or dict? uname:score)
          """
!         pass
  
  
--- 274,295 ----
      #manually created methods
  
!     def getAllResults(self):
          """ 
          """
!         ret={}
!         for u in self.listUsers():
!             ret[u]=self.sumResultsForUser(u)
!             
!         return ret
!         
!         
!     def sumResultsForUser(self, user):
!         """ 
!         """
!         score=0
!         for q in self.objectValues(self.getRegisteredQuestionTypes()):
!             score=score + self.deliverResponse(q, False, user).getScore()
!             
!         return score
  
  



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click