Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Rob Miller
On 2/9/11 3:11 PM, Seth wrote: This seems to me like it should be simple, so please excuse me if the answer is staring me in the face (I did some searching in the docs and elsewhere and couldn't find anything satisfactory): I'm wondering what the recommended way is to run Pyramid view code from

Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Seth
Thanks for the suggestions. I actually can accomplish what I'd like to do using the pyramid.testing DummyRequest object without having to dive all the way into WebTest. As long as I'm not hearing any warnings against that here I think I'll move forward with that. Seth -- You received this

Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Chris McDonough
On Wed, 2011-02-09 at 23:27 -0800, Seth wrote: Thanks for the suggestions. I actually can accomplish what I'd like to do using the pyramid.testing DummyRequest object without having to dive all the way into WebTest. As long as I'm not hearing any warnings against that here I think I'll move

Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Seth
I went down that path a little at first but got frustrated with bumping up against the fact that I'm trying to POST data to a method that I've got an ACL security policy on. I finally went the testing route because testing.setUp, testing.DummyRequest, and testing.DummySecurity policy all