EduploneExam ExamFolder.py,NONE,1.1 __init__.py,NONE,1.1 refresh.txt,NONE,1.1 version.txt,NONE,1.1
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-serv20530
Added Files:
ExamFolder.py __init__.py refresh.txt version.txt
Log Message:
import first run of ArchGenXML generated files
--- NEW FILE: refresh.txt ---
--- NEW FILE: version.txt ---
0.1 build 1
--- NEW FILE: __init__.py ---
print 'Product EduploneExam installed'
try:
import CustomizationPolicy
except ImportError:
CustomizationPolicy=None
from Globals import package_home
from Products.CMFCore import utils, CMFCorePermissions, DirectoryView
from Products.Archetypes.public import *
from Products.Archetypes import listTypes
from Products.Archetypes.utils import capitalize
import os, os.path
ADD_CONTENT_PERMISSION = '''Add EduploneExam content'''
PROJECTNAME = "EduploneExam"
product_globals=globals()
DirectoryView.registerDirectory('skins', product_globals)
DirectoryView.registerDirectory('skins/EduploneExam', product_globals)
def initialize(context):
##Import Types here to register them
import answers
import interfaces
import questions
import ExamFolder
content_types, constructors, ftis = process_types(
listTypes(PROJECTNAME),
PROJECTNAME)
utils.ContentInit(
PROJECTNAME + ' Content',
content_types = content_types,
permission = ADD_CONTENT_PERMISSION,
extra_constructors = constructors,
fti = ftis,
).initialize(context)
if CustomizationPolicy and hasattr(CustomizationPolicy,'register'):
CustomizationPolicy.register(context)
print 'Customizationpolicy for EduploneExam installed'
--- NEW FILE: ExamFolder.py ---
# File: ExamFolder.py
"""\
unknown
RCS-ID $Id: ExamFolder.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
#
__author__ = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'
from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *
##code-section module-header #fill in your manual code here
##/code-section module-header
class ExamFolder(BaseFolder):
security = ClassSecurityInfo()
portal_type = meta_type = 'ExamFolder'
archetype_name = 'ExamFolder' #this name appears in the 'add' box
allowed_content_types = []
__implements__ = getattr(BaseFolder,'__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.',
description_msgid='''help_short_name''',
i18n_domain='''plone''',
label='Id',
label_msgid='''label_short_name''',
),
),
StringField('title',
accessor='''Title''',
searchable=1,
widget=StringWidget(description='Enter a value for title.',
description_msgid='''help_title''',
i18n_domain='''plone''',
label='Title',
label_msgid='''label_title''',
),
),
),
)
#Methods
def allowedContentTypes(self):
'''
'''
pass
def invokeFactory(self):
'''
'''
pass
# uncomment lines below when you need
factory_type_information={
'allowed_content_types':allowed_content_types,
'allow_discussion': 0,
#'content_icon':'ExamFolder.gif',
'immediate_view':'base_view',
'global_allow':1,
'filter_content_types':1,
}
actions= (
)
registerType(ExamFolder)
# end of class ExamFolder
##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/