Changeset 41 for trunk/Module.py


Ignore:
Timestamp:
01/09/06 16:39:31 (14 years ago)
Author:
laszlo
Message:

Partial implementation of the WYSIWYM Editor. references #89 spent 4h remaining 4h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Module.py

    r33 r41  
    11from Products.Archetypes.public import BaseSchema, Schema, MetadataSchema 
    2 from Products.Archetypes.public import StringField, LinesField 
     2from Products.Archetypes.public import StringField, LinesField, TextField 
    33from Products.Archetypes.public import LinesWidget, TextAreaWidget, IdWidget, StringWidget, SelectionWidget 
    44from Products.Archetypes.public import BaseContent, registerType 
     
    1010from Products.Archetypes.ExtensibleMetadata import ExtensibleMetadata 
    1111from ZODB.PersistentList import PersistentList 
     12from ToolboxMember import getToolboxMember 
     13from WYSIWYMWidget import WYSIWYMWidget 
    1214 
    13 from ToolboxMember import getToolboxMember 
    14    
    15 schema = BaseSchema + LOMSchema; 
     15schema = BaseSchema + LOMSchema + Schema(( 
     16    TextField('body', 
     17        required=True, 
     18        primary=False, 
     19        languageIndependent=False, 
     20        accessor="getHTMLBody", 
     21        widget=WYSIWYMWidget( 
     22            label="Our body", 
     23            label_msgid="label_body", 
     24            description="Our body", 
     25            description_msgid="desc_body", 
     26            i18n_domain="toolbox",), 
     27        ), 
     28)) 
    1629 
    1730class Module(BaseContent): 
Note: See TracChangeset for help on using the changeset viewer.