EduploneExam ExamFolder.py,1.4,1.5

Nils Haagen <[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-serv13095

Modified Files:
	ExamFolder.py 
Log Message:
new atribs for sme answers

Index: ExamFolder.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/ExamFolder.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ExamFolder.py	14 Dec 2004 13:46:46 -0000	1.4
--- ExamFolder.py	14 Dec 2004 14:34:15 -0000	1.5
***************
*** 5,16 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 14:00:03 2004
! # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
  #
  # 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
--- 5,15 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 http://sf.net/projects/archetypes/
  #
  # 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
***************
*** 25,29 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
--- 24,28 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
***************
*** 39,52 ****
  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__',())
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseSchema + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 38,49 ----
  class ExamFolder(OrderedBaseFolder):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'ExamFolder' 
!     archetype_name = 'ExamFolder'   #this name appears in the 'add' box 
!     allowed_content_types = [] 
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseSchema  + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 57,61 ****
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
--- 54,58 ----
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
***************
*** 68,72 ****
              ),
          ),
! 
      ),
      )
--- 65,69 ----
              ),
          ),
!         
      ),
      )
***************
*** 74,77 ****
--- 71,75 ----
      #Methods
  
+     security.declareProtected('''''','allowedContentTypes')
      def allowedContentTypes(self):
          """ use own registry to recognize allowed tpyes """
***************
*** 85,88 ****
--- 83,87 ----
  
  
+     security.declareProtected('''''','invokeFactory')
      def invokeFactory(self):
          """ Invokes the portal_types tool """
***************
*** 115,124 ****
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(ExamFolder)
--- 114,123 ----
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(ExamFolder)
***************
*** 127,128 ****
--- 126,129 ----
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
+ 
+ 



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