EduploneExam ExamFolder.py,1.33.2.5,1.33.2.6

Nils Haagen <[email protected]> Sun, 08 Jan 2006 00:08:25 +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-serv19119

Modified Files:
      Tag: exam-1_1
	ExamFolder.py 
Log Message:
results for a specific user

Index: ExamFolder.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/ExamFolder.py,v
retrieving revision 1.33.2.5
retrieving revision 1.33.2.6
diff -C2 -d -r1.33.2.5 -r1.33.2.6
*** ExamFolder.py	12 Dec 2005 22:10:48 -0000	1.33.2.5
--- ExamFolder.py	8 Jan 2006 00:08:23 -0000	1.33.2.6
***************
*** 1,5 ****
  # File: ExamFolder.py
  # 
! # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed
  # by FH-Aargau, Switzerland
  # Generator: ArchGenXML Version 1.4.0-RC1 
--- 1,5 ----
  # File: ExamFolder.py
  # 
! # Copyright (c) 2006 by eduplone Open Source Business Network EEIG, contributed
  # by FH-Aargau, Switzerland
  # Generator: ArchGenXML Version 1.4.0-RC1 
***************
*** 179,194 ****
  
  
-     def listUsers(self):
-         """ """
-         AttrS=AttributeStorage()
-         if hasattr(self, '_eXamUserList'):
-             return AttrS.get('_eXamUserList', self)
-         else:
-             return []
- 
      #methods from Interface IExamContext
  
      security.declarePublic('deliverResponse')
!     def deliverResponse(self, question, create=False):
          '''
          Returns an SimpleResponse object.
--- 179,186 ----
  
  
      #methods from Interface IExamContext
  
      security.declarePublic('deliverResponse')
!     def deliverResponse(self, question, create=False, forUser='-1'):
          '''
          Returns an SimpleResponse object.
***************
*** 199,205 ****
          someId='someId' #generate?
  
          #filling userlist
          if storageMethod is not 'Session':
!             u=getSecurityManager().getUser().getId()
              AttrS=AttributeStorage()
              attrName='_eXamUserList'
--- 191,203 ----
          someId='someId' #generate?
  
+         
+         
          #filling userlist
          if storageMethod is not 'Session':
!             if forUser == '-1':
!                 u=getSecurityManager().getUser().getId()
!             else:
!                 u=forUser
!                 
              AttrS=AttributeStorage()
              attrName='_eXamUserList'
***************
*** 270,273 ****
--- 268,278 ----
      #manually created methods
  
+     def sumResultsForUser(self,user):
+         """ 
+         ^storeResponseAttr should set a list of users (or dict? uname:score)
+         """
+         pass
+ 
+ 
      def _updateRegisteredTypes(self):
          """ updates own fti based on registered containers """
***************
*** 282,285 ****
--- 287,299 ----
  
  
+     def listUsers(self):
+         """ """
+         AttrS=AttributeStorage()
+         if hasattr(self, '_eXamUserList'):
+             return AttrS.get('_eXamUserList', self)
+         else:
+             return []
+ 
+ 
      def storeResponseAttr(self, q, rObj):
          """ use Attribute with prefix "_eXamAnswer_" followed by userId
***************
*** 304,314 ****
  
  
-     def sumResultsForUser(self,user):
-         """ 
-         ^storeResponseAttr should set a list of users (or dict? uname:score)
-         """
-         pass
- 
-     
      def getRegisteredQuestionTypes(self):
          """ used by exam_view; skips additional_types"""
--- 318,321 ----
***************
*** 324,328 ****
  
  
- 
  registerType(ExamFolder,PROJECTNAME)
  # end of class ExamFolder
--- 331,334 ----



-------------------------------------------------------
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