Please login to participate.
Discussion
.
everythingability Mar 11, 2010 10:18 AM
I've created an "events crawler" and want to programmatically add these events to my Cyn.in install. I'm comfortable with python but not sure how to ...
a. Launch python ( i imagine I will have to do in a certain place to import the relevant libs)
b. Select a user from the ZODB
c. Create Event objects in the relevant space

... can I connect to the ZODB remotely btw?
Replies (4)
dhiraj Mar 11, 2010 10:22 AM
Uhhh... no, connecting to ZODB remotely would be an extremely bad idea.

Instead consider adding a function to the ubify.xmlrpc product in the /stacker handler and calling it over xmlrpc. Study how the add Discussion and set status message works in it, and you'll get the hang of it soon enough.

What's your events crawler written in?
dhiraj Mar 11, 2010 07:13 PM
And what does it crawl, if you don't mind my asking. :)
everythingability Mar 12, 2010 10:47 AM
Thanks for the tip off @dhiray, I will look at that next. My events crawler is written in python of course :-) It's no work of art mind. It crawls the hundreds of dispersed sites at my University and scrapes events (public seminars, presentations, concerts etc) most of which aren't even in a CMS of any kind.
everythingability Mar 12, 2010 10:52 AM
Just to be clear, where would I find the ubify.xmlrpc /stacker bit... in the Zope Interface, within the Plone instance or on disk (and if so where would it be? e.g /home/cynin/instance/Products).

Sorry to ask such basic questions, the big picture of Cyn.in hasn't quite formed yet for me.

p.s I am preparing to spend some serious study time on Cyn.in and will be documenting my work as I go... which will hopefully be of use....
 
Loading