EduploneTest/types EduploneTestMember.py,1.9,1.10 EduploneTestingEnvironment.py,1.27,1.28

Nils Haagen <[email protected]> Thu, 06 Jan 2005 01:08:23 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest/types
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21525/types

Modified Files:
	EduploneTestMember.py EduploneTestingEnvironment.py 
Log Message:
added some content in population_data.py, every task but fillgap will be generated

Index: EduploneTestMember.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneTestMember.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** EduploneTestMember.py	5 Jan 2005 00:36:37 -0000	1.9
--- EduploneTestMember.py	6 Jan 2005 01:08:20 -0000	1.10
***************
*** 71,79 ****
          # generate dictionary of answerId and user input
          for b in answers.keys():
!             answersdict[b] = answers[b]
!         print
!         print '######'
!         print answers
!         print
          # append question id and dictionary to user object
          self.answers[questionid] = answersdict
--- 71,76 ----
          # generate dictionary of answerId and user input
          for b in answers.keys():
!             answersdict[b] = answers[b].encode('iso-8859-1', "ignore")
! 
          # append question id and dictionary to user object
          self.answers[questionid] = answersdict

Index: EduploneTestingEnvironment.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneTestingEnvironment.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** EduploneTestingEnvironment.py	5 Jan 2005 19:01:41 -0000	1.27
--- EduploneTestingEnvironment.py	6 Jan 2005 01:08:20 -0000	1.28
***************
*** 767,786 ****
                                 
              for field in question['param']:
                  mutator=self[question['title']].getField(field).getMutator(self[question['title']])
                  mutator(question['param'][field])
                                 
!             for answer in question['answers']:
!                 answerNumber=len(self[question['title']].contentValues())
!                 answerId=''.join(['Answer',str(answerNumber)])
!                 self[question['title']].invokeFactory(
!                                      ''.join(['eduplone ', question['type'], 'Answer']), 
!                                      id=answerId)
!                                      
!                 answerObj=self[question['title']][answerId]
!                 for field in answer:
!                     print answerObj.getField(field)
!                     mutator=answerObj.getField(field).getMutator(answerObj)
!                     
!                     mutator(answer[field])
                      
  
--- 767,790 ----
                                 
              for field in question['param']:
+                 print
+                 print '####'
+                 print field
                  mutator=self[question['title']].getField(field).getMutator(self[question['title']])
                  mutator(question['param'][field])
                                 
!             if question.has_key('answers'):
!                 for answer in question['answers']:
!                     answerNumber=len(self[question['title']].contentValues())
!                     answerId=''.join(['Answer',str(answerNumber)])
!                     self[question['title']].invokeFactory(
!                                          ''.join(['eduplone ', question['type'], 'Answer']), 
!                                          id=answerId)
!                                          
!                     answerObj=self[question['title']][answerId]
!                     for field in answer:
!                         print answerObj.getField(field)
!                         mutator=answerObj.getField(field).getMutator(answerObj)
!                         
!                         mutator(answer[field])
                      
  



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt