List Info

Thread: How to bulk add a set of events?




How to bulk add a set of events?
user name
2006-08-28 20:01:59
Mark Phillips wrote:

> I looked in Event.py and found an addEvent method. The
question is, what is
> the equivalent to self.portal_registration for adding
an Event?

yourFolderWhereYouWantThem.invokeFactory('Event',
id='abc123')
yourFolderWhereYouWantThem.abc123.setTitle('Sink Great
Brittain')
etc.

Reinout

-- 
Reinout van Rees                       r.van.rees 
zestsoftware.nl
http://vanrees.org/weblog/
                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers
build targets."


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )