logo       

Re: unexpected keyword argument 'mime_type': msg#00101

web.zope.plone.archetypes.devel

Subject: Re: unexpected keyword argument 'mime_type'

On Tuesday 24 June à 03:32, grendelAI wrote:
> I am receiving the error
>
> Error Type
> TypeError
> Error Value
> setDescription() got an unexpected keyword argument 'mime_type'
>
> whenever I try to save a archetype I created. Does anyone have an idea on
> the possible problem. I am using Plone 1.0.2 with Archetypes 0.99.1. The
> schema I put together is
>
> schema = BaseSchema + Schema((
> StringField('title',
> searchable = 1,
> required = 1,
> widget = StringWidget(label='Title',
> description='Title of the Game
> Event',),
> ),
> StringField('hostname',
> searchable = 1,
> required = 1,
> widget = StringWidget(label='Host Name',
> description='Name of the person
> hosting the event',),
> ),
> TextField('description',
> searchable=1,
> required=1,
> allowable_content_types=('text/plain',
> 'text/structured',
> 'text/html',),
> widget=TextAreaWidget(label='Description',
> description='The Description of the
> event',),
> ),
> ))
>
> I thought pretty basic stuff, but its tripping on something. Appreciate the
> help!

Could you give me the full traceback ? Last week I've renamed in some
places mime_type to mimetype, for consistency issue. I guess it has
something to do with this...

--
Sylvain Thénault LOGILAB, Paris (France).

http://www.logilab.com http://www.logilab.fr http://www.logilab.org



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise