<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<P><FONT face=Arial size=2>from Products.Archetypes.public import *<BR>from
Products.Archetypes.BaseContent import BaseContent,BaseContentMixin<BR>from
Products.Archetypes.utils import DisplayList<BR>from Products.CMFCore import
CMFCorePermissions<BR>from config import *<BR>from AccessControl import
ClassSecurityInfo<BR>import string</FONT></P>
<P><BR><FONT face=Arial size=2>schema =
Schema(<BR> (<BR> StringField('id',<BR> required=1,<BR> default=None,<BR> accessor="getId",<BR> widget=IdWidget(label="Identifiant",<BR> description="(identifiant
unique)",<BR> visible={'edit':'none','view':'visible'})<BR> ),<BR> StringField('title',<BR> required=1,<BR> searchable=1,<BR> accessor='Title',<BR> widget=StringWidget(label="Titre",<BR> description="(saisir
le
titre)")<BR> ),<BR> TextField('Descriptif',<BR> searchable=1,<BR> widget=TextAreaWidget(label="Descriptif",<BR> description="(saisir
un descriptif
concis)",<BR> cols='50',<BR> rows='3')<BR> ),<BR> FileField('Fichier',<BR> required=1,<BR> searchable=1,<BR> allowable_content_types=('text/*',),<BR> widget=FileWidget(description="(sélectionner
le document)")<BR> ),<BR> ))</FONT></P>
<P><FONT face=Arial size=2>class ICCt_Documentation(BaseContent):<BR> """Il
s'agit de la définition du type de contenu : Documentation"""<BR> schema =
BaseSchema + schema</FONT></P>
<P><FONT face=Arial size=2>registerType(ICCt_Documentation)</FONT></P>
<P><FONT face=Arial size=2>Do you any idea ?</FONT></P>
<P><FONT face=Arial size=2>Thanks.</FONT></P></DIV></BODY></HTML>