Discussion:
[Pydotorg-redesign] Re: Aahz wants Trevor to build a 'paper submission Zope thing'
Aahz
2003-09-20 18:41:43 UTC
Permalink
1. Plone + Archetypes (see http://plone.org/documentation/archetypes)
OR remove Archetypes dependency on Plone and use CMF+Archetypes
2. CMF workflow
Will take a day or two for the technical part.
That sounds good to me.
--
Aahz (***@pythoncraft.com) <*> http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
Nicolas Chauvat
2003-09-21 15:42:30 UTC
Permalink
I said, make it general enough that we can use it too, and we
have different categories (track chairman, people in your track who
are all reading each others stuff as part of improving). I'm not up
for deciding what we want in this.
NOTE: At this point, I'm overall more interested in hearing from people
who think they might be able to do this work than I am in critiques of
the design.
...
Please use:

1. Plone + Archetypes (see http://plone.org/documentation/archetypes)

OR remove Archetypes dependency on Plone and use CMF+Archetypes

2. CMF workflow

Will take a day or two for the technical part.

Probably several more days for fancy graphical design if the out-of-the-box
one does not fit.

Here is a sample archetypes schema, which is the *only* thing you
have to write to get your content types in shape:

----------------8<-----------------------------

from Products.ArchExample.config import ARTICLE_GROUPS

# do the other imports

schema = BaseSchema + Schema((
StringField('group',
vocabulary=ARTICLE_GROUPS,
widget=SelectionWidget(),
),
StringField('blurb',
searchable=1,
widget=TextAreaWidget,
),
TextField('body',
searchable=1,
required=1,
allowable_content_types=('text/plain',
'text/structured',
'text/html',),
widget=RichWidget,
),
))

class Article(BaseContent):

schema = schema

registerType(Article)

----------------8<-----------------------------

(see http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/archetypes/ArchExample)

This is what I have been meaning to do for EP04's website, but I lack time...

Hope this helps.
--
Nicolas Chauvat

http://www.logilab.com - "Mais o? est donc Ornicar ?" - LOGILAB, Paris (France)
Loading...