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 worked

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

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 Chris McDonough
On Wed, 2011-02-09 at 15:11 -0800, 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

Suggestions for running view code from a shell/cron?

2011-02-09 Thread Seth
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 a shell/cron. It seems like it

Re: Pyramid Migration Guide, first draft

2011-02-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/06/2011 12:41 AM, Mike Orr wrote: > Here's the first draft of my Pyramid Migration Guide. It's an > introduction to Pyramid for Pylons 1 users, comparing the two > frameworks feature by feature. This is a first draft so it may have > inaccuracie