[Zope] Xron question--why won't method work

ender kthangavelu@earthlink.net
Thu, 22 Feb 2001 02:18:46 -0800


sounds like a permission problem, does the user that xron executes as have 
permission to add a news item? xron uses zclient to request the method. 

cheers

kapil


>
>
> And here's the external method that it's calling:
>
> def addFLSNews(self, newid, data, REQUEST=None):
>       """ """
>       # Get the actual destination object, using the this()
>       # method, to be sure we get it in the right context..
>       self=self.this()
>
>       # Create the new instance
>       newob=self.Control_Panel.Products.FLSNewsStory.FLSNewsStory(data)
>       newob._setId(newid)
>
>       self._setObject(newid, newob)
>
> It's hitting a problem at the self.setObject line. This method works when I
> run it as a regular DTML Document, but it hits an "Attribute Error on
> self.setObject when I run it as an Xron. I'm using the trigger tab, but
> I've also tried letting it run as scheduled--neither works.
>