[Zope-CMF] Programatically adding Topics
Florent Guillaume
fg@nuxeo.com
5 Sep 2001 15:14:46 GMT
Hi Chris,
Basically I used:
here.invokeFactory('Topic', id)
topic = here._getOb(id)
# or topic = here.addSubtopic(id) for a new subtopic
topic.addCriteria('Subject', 'String Criterion')
topic.crit__Subject.edit('blah')
Florent Guillaume
Nuxeo
Chris Withers <chrisw@nipltd.com> wrote:
> Hi,
>
> What's the best way to programatically create topics and add criteria to them
> when instantiating a portal?
>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests
>