pyramid and paster setup-app

2011-02-27 Thread oO
What's the best way to modify a pyramid project to make use of paster setup-app? I'm using pyramid with traversal and mongodb for persistence, so I started with the default template which doesn't set anything up for the setup-app portion, and I don't really know where to start. Any pointers? I obv

Re: pyramid_tm 0.1 released

2011-02-27 Thread Chris Withers
On 26/02/2011 10:18, Wichert Akkerman wrote: We had a mini-discussion on this topic on irc this week. The only difference between the two is that repoze.tm2 uses middleware, while pyramid_tm uses pyramid events. Personally I am a bit worried about a trend to move away from reusable WSGI middlewa

Re: am I evil?

2011-02-27 Thread Chris Withers
On 28/02/2011 03:27, Eric Ongerth wrote: Tune in next week when some community member writes a post entitled "Chris Withers Considered Harmful" ! I'm pretty sure that's been done before... Chris ;-) -- Simplistix - Content Management, Batch Processing & Python Consulting - http://w

Re: am I evil?

2011-02-27 Thread Eric Ongerth
Tune in next week when some community member writes a post entitled "Chris Withers Considered Harmful" ! On Feb 27, 11:40 am, Chris Withers wrote: > Hi All, > > I'm writing a SQLAlchemy SessionExtension based on this pattern: > > http://www.sqlalchemy.org/trac/browser/examples/versioning/history

mortar_rdb 1.1.0 released!

2011-02-27 Thread Chris Withers
Hi All, I'm pleased to announce a new release of mortar_rdb. This package ties together SQLAlchemy, sqlalchemy-migrate and the component architecture to make it easy to develop projects using SQLAlchemy through their complete lifecycle. This release allows you to register SessionExtensions with

am I evil?

2011-02-27 Thread Chris Withers
Hi All, I'm writing a SQLAlchemy SessionExtension based on this pattern: http://www.sqlalchemy.org/trac/browser/examples/versioning/history_meta.py?rev=7253:3ef75b251d06#L171 So, in the listener, I want to record the user that made the change. How should I get hold of the currently authenticate

authenticated_userid vs unauthenticated_userid

2011-02-27 Thread Chris Withers
Hi All, The docs don't seem too clear on the difference between these two functions. It seems to boil down to "however the authentication policy wants to differentiate these" and I worry that different authentication policies will do different things and users (like me!) will end up getting c

pyramid_beaker vs beaker wsgi middleware

2011-02-27 Thread oO
Sorry if this is a basic question, but as I'm starting to add more and more layers of complexity to my first pyramid based applications, I'm starting to wonder about some of the benefits of using pyramid specific implementations as opposed to re-using the existing WSGI plumbing (like I was doing wi

Re: Confused about view lookup

2011-02-27 Thread Simon King
On Feb 25, 10:49 pm, Simon King wrote: > Hi, > > I'm using Pyramid 1.0 for a toy project, and I'm confused about the > view lookup process. I've put a complete script showing my problem at > http://pylonshq.com/pasties/45e916782bf3e2896b94ea2e7a0fc13d > > I'm using traversal, and I'd like to be a