source: trunk/ @ 66

Revision 66, 1.2 KB checked in by tarmo, 14 years ago (diff)

Changed the svn:eol-style property to "native", since
people aren't using unix line feeds uniformally.

  • Property svn:eol-style set to native
1# -*- coding: utf-8
2from Products.Archetypes.public import BaseSchema, Schema
3from Products.Archetypes.public import StringField, LinesField
4from Products.Archetypes.public import LinesWidget, TextAreaWidget, IdWidget, StringWidget, SelectionWidget
5from Products.Archetypes.public import BaseContent, registerType
6from Globals import InitializeClass
7from Products.CMFCore.utils import getToolByName
8from AccessControl import ClassSecurityInfo, Unauthorized
9from config import PROJECTNAME
10from Products.ATContentTypes.content import image
11from Products.ATContentTypes.interfaces import IATImage
12from Products.ATContentTypes.content import base
13from BaseAsset import BaseAsset
15ImageAssetSchema = image.ATImageSchema.copy()
17class ImageAsset(image.ATImage, BaseAsset):
18    schema = ImageAssetSchema
19    meta_type = "ImageAsset"
20    archetype_name = "ImageAsset"
21    global_allow = 1
23    __implements__ = image.ATImage.__implements__, IATImage
24    security = ClassSecurityInfo()
25    actions = image.ATImage.actions
26    # Need to try next line when BaseAsset will start to contain
27    # some important actions which should be in every baseasset subclass
28    #actions = base.updateActions(BaseAsset, image.ATImage.actions)
30registerType(ImageAsset, PROJECTNAME)
Note: See TracBrowser for help on using the repository browser.