Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


posting to squishdot in python
How-To Posted by on Tuesday November 18, 08:39PM, 2003
from the dept.

I've been trying to post emails as postings to my squishdot site. Zmailin gets the emails perfectly, my question is how could I call addPosting method of the squishdot site from an outside python script ?

I've been trying to post emails as postings to my squishdot site. Zmailin gets the emails perfectly, my question is how could I call addPosting method of the squishdot site from an outside(from Zmailin) python script ?

First I tried calling it like;

squishdot.addPosting(xxxxx);

it didn't work , the error was ;

Error Type: NameError Error Value: global name squishdot is not defined

Then, I tried importing addPosting method like;

...

from Products.Squishdot.Posting import addPosting squishdot.addPosting(XXX)

...

when I run above code it asks for login and password but it doesn't accept the password even though I enter the correct password. And when I cancel the error is,

Error Type: Unauthorized Error Value: You are not allowed to access Squishdot in this context

any help ?

<  |  >

 

Related Links

The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Try this...
by on Friday December 12, 06:29PM, 2003
Try something like this in the ZMailingIn script:

context.an_folder_containing_your_squish_site.name_of_your_squish.addPosting(...

cheers,

Chris
[ Reply to this ]
The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Powered by Zope  Squishdot Powered
  "Any system that depends on reliability is unreliable." -- Nogg's Postulate
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 , ©2000-2002 .