Changeset 495 for trunk/Story.py


Ignore:
Timestamp:
07/20/06 11:14:36 (13 years ago)
Author:
vahur
Message:

made a list of content types. Also made config.py accessible from python scripts and page templates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Story.py

    r490 r495  
    2727from Products.CMFCore.utils import getToolByName 
    2828from AccessControl import ClassSecurityInfo, Unauthorized 
    29 from config import PROJECTNAME, MODIFY_CONTENT, VIEW 
     29from config import PROJECTNAME, MODIFY_CONTENT, VIEW, ALL_CONTENT_TYPES 
    3030 
    3131schema = BaseSchema + description + tags + age_group + Schema(( 
     
    4949        index = 'KeywordIndex', 
    5050        write_permission = ModifyPortalContent, 
    51         allowed_types=('Document','Piece','Content','Material', 'PresentationMaterial'), 
     51        allowed_types= ALL_CONTENT_TYPES, 
    5252        widget = ReferenceBrowserWidget( 
    5353            allow_search = True, 
Note: See TracChangeset for help on using the changeset viewer.