Changeset 431 for trunk/Tool.py


Ignore:
Timestamp:
07/12/06 15:43:21 (14 years ago)
Author:
jukka
Message:

Fixed #499, spent 2h. Also removed some remaining document_actions and fixed a test from previous ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tool.py

    r346 r431  
    2121from Products.Archetypes.public import LinesWidget, TextAreaWidget, IdWidget, StringWidget, SelectionWidget, RichWidget 
    2222from Products.Archetypes.public import BaseContent, registerType 
    23 from SharedMetadata import bodytext, language_schema, tags, coverImage, lemill_metadata_mods, no_description 
     23from SharedMetadata import bodytext, language_schema, tags, coverImage, lemill_metadata_mods, no_description, author_schema, license_schema 
     24from FieldsWidgets import TagsField 
    2425from Globals import InitializeClass 
    2526from Products.CMFCore.utils import getToolByName 
     
    4243)) 
    4344 
    44 schema = BaseSchema + bodytext + coverImage + tags + no_description + homepage + language_schema + lemill_metadata_mods 
     45schema = BaseSchema + bodytext + coverImage + tags + no_description + author_schema + homepage + language_schema + lemill_metadata_mods + license_schema 
     46 
     47for key in schema.keys(): 
     48    schema[key].schemata = 'default' 
     49schema.moveField('language', after='address') 
     50schema.moveField('tags', after='language') 
    4551 
    4652class Tool(LearningResource): 
Note: See TracChangeset for help on using the changeset viewer.