Programatic Addition of Categories (Coreblog2)

Edward Pollard <pollej-/[email protected]> Mon, 3 Apr 2006 16:19:49 -0600
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <[email protected]>
Another quick, but probably slightly less simple question.

I am adding a CoreBlog to each members folder on creation of said 
folder, however my attempts to create a default "general" category have 
not entirely worked - the CoreBlog doesn't list it as a category on the 
front page (in the portlet on the left).

Obviously I've neglected to properly follow the creation code. Any tips 
on what I've missed?

Current code is as follows (as stunningly unexciting as it is):

> blog_folder = member_folder['blog']
> categories_folder = blog_folder['categories']
> _createObjectByType('COREBlogCategory', categories_folder, 
> id='personal-reflections')
> categories_folder['personal-reflections'].setTitle('Personal 
> Reflections')

Cheers

---
Edward J. Pollard, B.Sc
Webmaster, University of Lethbridge

_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]