Re: pyramid, setting reponse status when using renderers?

2011-03-08 Thread Rob Miller
On 03/08/2011 07:36 PM, Iain Duncan wrote: I personally like using zcml to supply my renderer to my views so I can change templates from the zcml file. The only issue I'm having is that I don't know how I can set the response status when doing that. If my view is returning a dict, and the rendere

Re: Some thoughts about Pyramid

2011-03-04 Thread Rob Miller
On 3/4/11 12:03 PM, Mike Orr wrote: I'll be at the Pyramid sprint but I don't know what I'll be doing. I would like to learn Git and Pyramid-at-Github if somebody would like to do a mini crash course. I'm no git guru, but I've been using it pretty heavily for the last 6 months and would be ha

Re: Some thoughts about Pyramid

2011-03-03 Thread Rob Miller
On 3/3/11 10:59 AM, Stephen Lacy wrote: Yeah, but encapsulation (a well-written API) and dependencies are totally orthogonal. One could write a dependency-less framework that provided sensible, minimal, yet functional components, and *still* provided a really clean API and way for developers to

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: Pyramid: URLDispatch vs Traversal question

2011-01-29 Thread Rob Miller
On 1/29/11 6:14 PM, oO wrote: Sorry if this is a newbie question, but I'm finding that I'm a little bit lost when it comes to the best way to implement an example application using MongoDB (or any non-ZODB datastore) and traversal. Conceptually, I like the idea of traversal instead of URL Dispat

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Rob Miller
On 1/26/11 6:13 AM, Wade Leftwich wrote: I've been dealing with similar issues on my first-ever Pyramid project, also using sqlalchemy and traversal. This may be indirection overkill, but I separated Context objects from Data objects. Note this is a reporting application, so it's more into displ

Re: Using SQLAlchemy with Traversal.

2011-01-25 Thread Rob Miller
On 1/25/11 3:54 PM, Kyle Terry wrote: I know this isn't the SQLAlchemy list, but I've been designing my resource tree using SQLAlchemy and traversal for my up coming project. I was thinking about starting a discussion and possibly getting some help on a problem I'm having. I have the Foo resourc

Re: Pyramid for Pylons users guide

2011-01-14 Thread Rob Miller
On 01/14/2011 09:09 PM, Alice Bevan–McGregor wrote: On 2011-01-14 19:53:58 -0800, Mike Orr said: Hi all, I'm starting an article on Pyramid for Pylons 1 users, focusing on the differences between the frameworks and how to do familiar things in Pyramid. It'll also cover add-on stuff like forms a

Re: URL dispatch vs traversal

2010-12-13 Thread Rob Miller
On 12/07/2010 04:47 AM, Paul Everitt wrote: I'll add a little historical perspective to the traversal approach. Way, way back, before Zope was Zope and before there was a full ZODB, we had this approach called "object publishing". It was Python objects, published on the web. A URL pointed you a

Re: Understanding traversal from a TurboGears perspective

2010-12-06 Thread Rob Miller
as a former zope / plone developer, i've got quite a lot of experience with traversal and view lookup, so maybe i'll be able to help here. On 12/6/10 10:43 AM, Seth wrote: Okay, so I think I'm just having a hard time grokking the idea of a "context" (even after beating myself to death with the