EduploneTest/types EduploneFillGap.py,1.7,1.8 EduploneMultiChoice.py,1.3,1.4 EduploneSingleChoice.py,1.3,1.4 EduploneSingleChoiceAnswer.py,1.4,1.5

Nils Haagen <[email protected]>
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-serv4819/types

Modified Files:
	EduploneFillGap.py EduploneMultiChoice.py 
	EduploneSingleChoice.py EduploneSingleChoiceAnswer.py 
Log Message:
Images/HTML for Single- and Multichoice. fixes. fillgap prepopulated.

Index: EduploneMultiChoice.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneMultiChoice.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EduploneMultiChoice.py	7 Oct 2004 16:50:40 -0000	1.3
--- EduploneMultiChoice.py	24 Oct 2004 15:46:06 -0000	1.4
***************
*** 59,63 ****
      archetype_name ="MultiChoice (ep task)"
      actions=actions
!     allowed_content_types   = ('eduplone MultiChoiceAnswer',)
      content_icon = 'questionmark.gif'
      global_allow = 0    
--- 59,63 ----
      archetype_name ="MultiChoice (ep task)"
      actions=actions
!     allowed_content_types   = ('eduplone MultiChoiceAnswer', 'Image')
      content_icon = 'questionmark.gif'
      global_allow = 0    

Index: EduploneSingleChoice.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneSingleChoice.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EduploneSingleChoice.py	7 Oct 2004 16:50:40 -0000	1.3
--- EduploneSingleChoice.py	24 Oct 2004 15:46:06 -0000	1.4
***************
*** 54,58 ****
      archetype_name ="SingleChoice (ep task)"
      actions=actions
!     allowed_content_types   = ('eduplone SingleChoiceAnswer',)
      content_icon = 'questionmark.gif'
      filter_content_types  = 1
--- 54,58 ----
      archetype_name ="SingleChoice (ep task)"
      actions=actions
!     allowed_content_types   = ('eduplone SingleChoiceAnswer','Image',)
      content_icon = 'questionmark.gif'
      filter_content_types  = 1

Index: EduploneFillGap.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneFillGap.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** EduploneFillGap.py	14 Oct 2004 12:20:19 -0000	1.7
--- EduploneFillGap.py	24 Oct 2004 15:46:05 -0000	1.8
***************
*** 103,107 ****
  		hyperlink_add_gap = "<a href=\"createGap?wordNo=%i\">%s</a> "
  		hyperlink_delete_gap = "<a href=\"deleteGap?gap_id=%s\">%s</a> "
! 		hyperlink_edit_gap = "<a href=\"%s/base_edit\">%s</a>"
  		rendered_text = ""
  
--- 103,107 ----
  		hyperlink_add_gap = "<a href=\"createGap?wordNo=%i\">%s</a> "
  		hyperlink_delete_gap = "<a href=\"deleteGap?gap_id=%s\">%s</a> "
! 		hyperlink_edit_gap = "<a href=\"%s/base_edit\">%s</a> "
  		rendered_text = ""
  
***************
*** 155,159 ****
  			if i == int(wordNo):
  				unique_id = self.generateUniqueId().replace(".", "").replace("-", "")
! 				self.invokeFactory("eduplone FillGapAnswer", id=unique_id, CorrectAnswers=elem)
  				rendered_text += "<gap=%s> " % unique_id
  			else:
--- 155,159 ----
  			if i == int(wordNo):
  				unique_id = self.generateUniqueId().replace(".", "").replace("-", "")
! 				self.invokeFactory("eduplone FillGapAnswer", id=unique_id, title=elem, correctAnswer=elem)
  				rendered_text += "<gap=%s> " % unique_id
  			else:

Index: EduploneSingleChoiceAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/types/EduploneSingleChoiceAnswer.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EduploneSingleChoiceAnswer.py	12 Oct 2004 21:17:46 -0000	1.4
--- EduploneSingleChoiceAnswer.py	24 Oct 2004 15:46:06 -0000	1.5
***************
*** 28,32 ****
          'Answer',
          required=1,
!         widget=TextAreaWidget(description = u"Answer-alternative",
                                                          label='Answer',
                                                          label_msgid='label_answer',
--- 28,32 ----
          'Answer',
          required=1,
!         widget=EpozWidget(description = u"Answer-alternative",
                                                          label='Answer',
                                                          label_msgid='label_answer',



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.