I have a really straightforward content type that I created for a
training session. I created it with ArchGenXML, but that hardly seems
important. It inherits from BaseContent, and afaict it should have the
Dublin Core metadata - but I don't see a "Description" on the view or
edit pages (though the Description() accessor appears to be present when
I use Clouseau).
Am I doing something wrong? Am I expecting something wrong?
from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces
from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin
from Products.myProduct.config import *
##code-section module-header #fill in your manual code here
##/code-section module-header
schema = Schema((
StringField(
name='stringField',
widget=StringField._properties['widget'](
label='Stringfield',
label_msgid='myProduct_label_stringField',
i18n_domain='myProduct',
),
),
),
)
##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema
MyContent_schema = BaseSchema.copy() + \
schema.copy()
##code-section after-schema #fill in your manual code here
##/code-section after-schema
class MyContent(BaseContent, BrowserDefaultMixin):
"""
"""
security = ClassSecurityInfo()
implements(interfaces.IMyContent)
meta_type = 'MyContent'
_at_rename_after_creation = True
schema = MyContent_schema
##code-section class-header #fill in your manual code here
##/code-section class-header
# Methods
registerType(MyContent, PROJECTNAME)
# end of class MyContent
--
derek
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users