EduploneExam ExamFolder.py,1.7,1.8
Jens Klein <[email protected]>
| 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-serv21865
Modified Files:
ExamFolder.py
Log Message:
fix invokeFactory
Index: ExamFolder.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/ExamFolder.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ExamFolder.py 14 Dec 2004 15:06:25 -0000 1.7
--- ExamFolder.py 14 Dec 2004 15:12:39 -0000 1.8
***************
*** 12,16 ****
#
# GNU General Public Licence (GPL)
! #
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
--- 12,16 ----
#
# GNU General Public Licence (GPL)
! #
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
***************
*** 33,36 ****
--- 33,37 ----
##code-section module-header #fill in your manual code here
+ from Products.CMFCore.utils import getToolByName
from registry import getQuestionTypes
##/code-section module-header
***************
*** 39,45 ****
class ExamFolder(OrderedBaseFolder):
security = ClassSecurityInfo()
! portal_type = meta_type = 'ExamFolder'
! archetype_name = 'ExamFolder' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(OrderedBaseFolder,'__implements__',())
--- 40,46 ----
class ExamFolder(OrderedBaseFolder):
security = ClassSecurityInfo()
! portal_type = meta_type = 'ExamFolder'
! archetype_name = 'ExamFolder' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(OrderedBaseFolder,'__implements__',())
***************
*** 57,61 ****
),
),
!
StringField('title',
accessor='''Title''',
--- 58,62 ----
),
),
!
StringField('title',
accessor='''Title''',
***************
*** 68,72 ****
),
),
!
),
)
--- 69,73 ----
),
),
!
),
)
***************
*** 85,89 ****
! def invokeFactory(self):
""" Invokes the portal_types tool """
try:
--- 86,90 ----
! def invokeFactory( self, type_name, id, RESPONSE=None, *args, **kw):
""" Invokes the portal_types tool """
try:
***************
*** 115,124 ****
}
!
actions= (
!
)
!
registerType(ExamFolder)
--- 116,125 ----
}
!
actions= (
!
)
!
registerType(ExamFolder)
***************
*** 127,130 ****
##code-section module-footer #fill in your manual code here
##/code-section module-footer
-
-
--- 128,129 ----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/