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

Chris Muldrow muldrow@mac.com
Sat, 24 Feb 2001 14:02:34 -0500


Yep, I've set a manager proxy on Xron so it could create a news item. Still
no luck. 


on 2/22/01 5:18 AM, ender at kthangavelu@earthlink.net wrote:

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