Exception Handling

2009-08-28 Thread andres
Hi All, What is the best way to access an exception from within a middleware component? In particular, I'm trying to access HTTPUnauthorized exceptions raised from within my app. My middleware component is similar to AuthKit's so I am capturing 401, 403 status codes and redirecting instead. That

RE: OT, db book recos needed

2009-08-28 Thread John_Nowlan
I'm no expert but would also like a book that hits the sweet spot of practical, useful, real world advice. Something that tackles problems, shows solutions, mentions theory and goes beyond the simple 'cookbook' recipes. When I look what I usually find is stuff that is too pedantic or deals more wi

credit card sdk with Pylons

2009-08-28 Thread gazza
Hi, I want to integrate an credit card processing sdk with a pylons website. Can somebody recommend one for me? Thanks, Gazza --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this

Architecture Question

2009-08-28 Thread andres
Hi All, I'm working on a rate limiter and I keep going back and forth over where it should go. The current iteration is very simple but in the future I would like to have different limits based on environment variables such as routing arguments, url arguments, or user login. What is the best plac

Architecture Question

2009-08-28 Thread andres
Hi All, I'm working on a rate limiter and I keep going back and forth over where it should go. The current iteration is very simple but in the future I would like to have different limits based on environment variables such as routing arguments, url arguments, or user login. What is the best plac

Re: Architecture Question

2009-08-28 Thread Mike Orr
On Fri, Aug 28, 2009 at 1:17 PM, andres wrote: > > Hi All, > > I'm working on a rate limiter and I keep going back and forth over > where it should go. The current iteration is very simple but in the > future I would like to have different limits based on environment > variables such as routing ar

Re: credit card sdk with Pylons

2009-08-28 Thread Mark Hildreth
On Fri, Aug 28, 2009 at 1:11 PM, gazza wrote: > > Hi, > > I want to integrate an credit card processing sdk with a pylons > website. Can somebody recommend one for me? > > Thanks, > Gazza > Someone posted a question similar to this two days ago. http://groups.google.com/group/pylons-discuss/b

nose tests and models

2009-08-28 Thread Jason S.
I recently noticed that nose tests were failing with an error saying that some models had already been created. Turns out that since the appname/tests/__init__.py that paster creates executes a setup-app command in the same process as it loads the app, things get initialized twice. Models defined

Re: nose tests and models

2009-08-28 Thread Mike Orr
On Fri, Aug 28, 2009 at 7:03 PM, Jason S. wrote: > > I recently noticed that nose tests were failing with an error saying > that some models had already been created. Turns out that since the > appname/tests/__init__.py that paster creates executes a setup-app > command in the same process as it l

Re: nose tests and models

2009-08-28 Thread Jason S.
> I create my tables in the test setup with dummy data, and drop then in > the teardown.  I don't have anything in websetup.  Websetup is really > only useful if you're distributing a public application or if all your > developers need to create their own databases.  But in a real > situation you

Re: nose tests and models

2009-08-28 Thread Mike Orr
On Fri, Aug 28, 2009 at 9:38 PM, Jason S. wrote: > >> I create my tables in the test setup with dummy data, and drop then in >> the teardown.  I don't have anything in websetup.  Websetup is really >> only useful if you're distributing a public application or if all your >> developers need to crea

Re: Adding Pylons 0.9.7 breaks 0.9.6 projects

2009-08-28 Thread Philip Jenvey
On Aug 14, 2009, at 9:59 PM, Jorge Vargas wrote: > > On Fri, Aug 14, 2009 at 7:50 PM, kochhar wrote: >> >> Hi all, >> > Hi, > >> I have a package repository which contains packages for pylons >> 0.9.6.1 After >> adding pylons 0.9.7 and it's dependent packages, my 0.9.6.1 >> projects stopped