[Zope-CMF] PB Products Archetypes Plone 2.0/Zope 2.7.0/win32 to
Plone 2.0/Zope 2.6.2/linux2
at ngel
ceciliakuznicki at free.fr
Fri Jul 9 05:38:48 EDT 2004
Hi,
I have created my Archetype's Products on Plone 2.0/Zope 2.7.0/win32. All was OK. But now I am on Plone 2.0/Zope 2.6.2/linux2 and I can't more save and modify my products on my site. I can just rename them.
from Products.Archetypes.public import *
from Products.Archetypes.BaseContent import BaseContent,BaseContentMixin
from Products.Archetypes.utils import DisplayList
from Products.CMFCore import CMFCorePermissions
from config import *
from AccessControl import ClassSecurityInfo
import string
schema = Schema(
(
StringField('id',
required=1,
default=None,
accessor="getId",
widget=IdWidget(label="Identifiant",
description="(identifiant unique)",
visible={'edit':'none','view':'visible'})
),
StringField('title',
required=1,
searchable=1,
accessor='Title',
widget=StringWidget(label="Titre",
description="(saisir le titre)")
),
TextField('Descriptif',
searchable=1,
widget=TextAreaWidget(label="Descriptif",
description="(saisir un descriptif concis)",
cols='50',
rows='3')
),
FileField('Fichier',
required=1,
searchable=1,
allowable_content_types=('text/*',),
widget=FileWidget(description="(sélectionner le document)")
),
))
class ICCt_Documentation(BaseContent):
"""Il s'agit de la définition du type de contenu : Documentation"""
schema = BaseSchema + schema
registerType(ICCt_Documentation)
Do you any idea ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-cmf/attachments/20040709/99687b4a/attachment.htm
More information about the Zope-CMF
mailing list