I'm using NauSchduler to automate sending a news digest out twice daily to users of our site. The digest simply has the Subject of the news item and the URL to item on our site. The Script Python that sends the digest works fine when tested alone, but when I run it from NS the URL, gotten from obj.absolute_url(), is replace with the physical path. I see many calls to getPhysicalPath() in the NS source. But, I don't understand why it would overwrite my URL. Has anyone else seen this behavior? BTW, this is the first problem I've had with this product. It's been great for other scheduled tasks. Barry Drake
Barry Drake wrote at 2005-8-2 14:00 -0700:
... The Script Python that sends the digest works fine when tested alone, but when I run it from NS the URL, gotten from obj.absolute_url(), is replace with the physical path.
And what is it otherwise? Note that "absolute_url" combines the physical path with request information. When you use it from the scheduler, there probably is not request. Therefore, you may get only the physical path part... -- Dieter
Dieter, Thank you. I replaced the call obj.absolute_url() with obj.getPhysicalPath() and prepended the portal URL in my code. That way the URL is not overwritten with the physical path by NauScheduler. Barry --- Dieter Maurer wrote:
Barry Drake wrote at 2005-8-2 14:00 -0700:
... The Script Python that sends the digest works fine when tested alone, but when I run it from NS the URL, gotten from obj.absolute_url(), is replace with the physical path.
And what is it otherwise?
Note that "absolute_url" combines the physical path with request information.
When you use it from the scheduler, there probably is not request. Therefore, you may get only the physical path part...
-- Dieter
participants (2)
-
Barry Drake -
Dieter Maurer