Re: Pylons routing newbie question

2011-01-13 Thread tibi3384
Thanks for the clarification. Indeed that makes sense and I read about the behavior in the Guide to Pylons book as well. However this seems to complicate things even more for me, as the application does not contain any public folder, nor an index file. Nowhere in the application structure does any

Re: Best practices for functional encapsulation

2011-01-13 Thread Chris McDonough
On Thu, 2011-01-13 at 13:41 -0800, Mike Orr wrote: > One of Pylons 2's goals was to make it more friendly to nested apps; > e.g., provide an alternative to the magic globals via instance > variables in the controller. The BFG architecture is much more > friendly to nested apps, which is one reason

Re: Integrating OpenID from scratch?

2011-01-13 Thread Ben Bangert
On Jan 13, 2011, at 1:19 PM, Timmy Chan wrote: > Is there an easy way to integrate OpenID from scratch without repoze or > AuthKit? Thanks Yup, http://pypi.python.org/pypi/pyramid-openid/ That's for pyramid though. If you're using Pylons 1.0, you might want to look at velruse, which though it

Re: Best practices for functional encapsulation

2011-01-13 Thread Mike Orr
On Mon, Jan 10, 2011 at 11:24 AM, Daniel Holth wrote: > WSGI is not the right layer for composing applications. Most WSGI framework developers have come to the conclusion that middleware is not all it's cracked up to be. The WSGI protocol is clunky and you have to do weird things to share data be

Re: Best practices for functional encapsulation

2011-01-13 Thread Mike Orr
On Thu, Jan 13, 2011 at 5:22 AM, Joost Moesker wrote: > I'm also interested in the patterns used by other developers to > section their application into distinct packages. I have a Pylons application with several autonomous parts under a common auth mechanism. I wanted to split them up into packa

Integrating OpenID from scratch?

2011-01-13 Thread Timmy Chan
Is there an easy way to integrate OpenID from scratch without repoze or AuthKit? Thanks -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send

Re: Pylons routing newbie question

2011-01-13 Thread Ryan Arana
The way it works is Pylons looks for a matching file using the appName/public folder as the root using StaticURLParser middleware (ie: '/css/styles.css' maps to appName/public/css/styles.css), if it finds a matching file there, it serves that, if it doesn't, then it looks for a matching rule in rou

Pylons routing newbie question

2011-01-13 Thread tibi3384
Hi, I recently started to work with Pylons and I'm a little confused about the routing settings that Pylons use. As far as I read, in order to serve a certain page as default(eg when accessing localhost:5000 ), one must add a routing "rule" in appName/config/routing.py. The code should look somethi

Re: [pyramid] why zope.sqlalchemy?

2011-01-13 Thread Daniel Holth
It's pretty trivial to write a middleware that does: try: your_app(environ, start_response) commit() except: rollback() but the ZopeTransactionExtension tries to avoid issuing a COMMIT statement if you did not alter any ORM objects during the transaction, while this TM might issue a commit when

Re: [pyramid] why zope.sqlalchemy?

2011-01-13 Thread Eric Lemoine
On Wednesday, January 12, 2011, Chris McDonough wrote: > On Wed, 2011-01-12 at 22:30 +0100, Eric Lemoine wrote: >> Hi >> >> In the "SQLAlchemy + URL Dispatch Wiki" tutorial zope.sqlalchemy and >> its ZopeTransactionExtension are used. The pyramid_routesalchemy Paste >> template also configures the

Re: Best practices for functional encapsulation

2011-01-13 Thread Joost Moesker
I'm also interested in the patterns used by other developers to section their application into distinct packages. Recently i have been working with drupal and magento, and I must say i really appreciate how these project separate functionality into packages. For a large project this really is a mus