root/trunk/Activity.py

Revision 2873, 1.8 kB (checked in by jukka, 2 years ago)

Updated Kupu, supports Safari. Various changes in templates; zips, scorms and pdf:s need tuning.

  • Property svn:eol-style set to native
Line 
1 # Copyright 2006 by the LeMill Team (see AUTHORS)
2 #
3 # This file is part of LeMill.
4 #
5 # LeMill is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # LeMill is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with LeMill; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
19
20 from Schemata import learning_resource_schema, community_editing_schema, bodytext, no_description, site_address
21 from LearningResource import LearningResource
22 from Products.Archetypes.public import *
23 from Products.Archetypes.atapi import DisplayList
24 from Globals import InitializeClass
25 from Products.CMFCore.utils import getToolByName
26 from AccessControl import ClassSecurityInfo, Unauthorized
27 from config import PROJECTNAME
28 import re
29
30
31 schema = learning_resource_schema + community_editing_schema + bodytext + no_description + site_address
32
33 schema = schema.copy()
34 for key in schema.keys():
35     schema[key].schemata = 'default'
36 schema.moveField('bodyText', before='creators')
37 #schema.moveField('language', after='address')
38 schema.moveField('tags', after='language')
39 schema.moveField('rights', pos='bottom')
40
41
42 class Activity(LearningResource):
43     schema = schema
44     meta_type = "Activity"
45     archetype_name = "Activity"
46     default_location = 'methods'
47     portlet = 'here/portlet_activity_actions/macros/portlet'
48
49 registerType(Activity, PROJECTNAME)
Note: See TracBrowser for help on using the browser.