[Setup] Re: How to bulk add a set of events?

Reinout van Rees reinout at vanrees.org
Mon Aug 28 20:01:59 UTC 2006


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."





More information about the Setup mailing list