|
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 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 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 |
|
|---|
| 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) |
|---|