[pylons-devel] pyramid_jinja2: ImportError: cannot import name Environment

2015-07-07 Thread Brian Kim
Hi, this one is a real head scratcher... It works when I run the server normally, but gives this strange import error when I run the tests... http://stackoverflow.com/questions/31271419/pyramid-jinja2-importerror-cannot-import-name-environment -- You received this message because you are subscri

Re: Closing SQLAlchemy session in SQLAlchemy + URL Dispatch Wiki Tutorial

2012-01-20 Thread Brian Brinegar
Thanks Michael, You were correct, the pyramid_tm was not listed as an includes in my configuration file. I appreciate your help, and I'll be sure to send future such queries to the -discuss group, Brian On Fri, Jan 20, 2012 at 10:22 AM, Michael Merickel wrote: > First of all, this s

Closing SQLAlchemy session in SQLAlchemy + URL Dispatch Wiki Tutorial

2012-01-20 Thread Brian
n the session.close() calls be added to the tutorial documentation? Thanks, Brian Brinegar -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group

Authentication Timeout Notification

2011-12-07 Thread Brian
as timed out on the login screen. Is there a preferred way to determine if a session had existed and is now invalid? How do others address this? Thanks, Brian -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, s

Re: Context sensitive authentication policy callback??

2011-11-03 Thread Brian
> I believe you should have a 'request.context' available in your callback. Thanks Daniel. I've verified that the request.context exists and is set before the authentication callback is called. Brian -- You received this message because you are subscribed to the Google Gro

Context sensitive authentication policy callback??

2011-11-02 Thread Brian
to Pyramid and this seems foundational and if what I'm doing is stupid I'd like to know now. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@google

Re: Instance level authorization in Pyramid

2011-09-05 Thread Brian
Chris, Thanks for the reply. One more question... Is it acceptable for __acl__ to be a callable associated with an instance? def __acl__(self): return [ (Allow, 'user:%s' % self.owner, 'edit'), ] Thanks, Brian -- You received this message because you are subs

Instance level authorization in Pyramid

2011-09-05 Thread Brian
chy on how this all fits together. The documentation is great, if you're making a site where a group of editors can edit everything, but not so much when you want individuals to be able to edit specific instances. I appreciate any advice, Brian -- You received this message because you are su

Re: zope.testbrowser's handleErrors and pyramid

2011-05-25 Thread Brian Sutherland
On Tue, May 24, 2011 at 08:41:38PM +0200, Wichert Akkerman wrote: > On 2011-5-24 18:48, Brian Sutherland wrote: > >Hi, > > > >I'm using zope.testbrowser to test a pyramid application I'm working on. > >I'd really like to get the Browser.handleErrors knob

Re: zope.testbrowser's handleErrors and pyramid

2011-05-24 Thread Brian Sutherland
On Tue, May 24, 2011 at 06:55:34PM +0200, Gael Pasgrimaud wrote: > Hi, > > On Tue, May 24, 2011 at 6:48 PM, Brian Sutherland > wrote: > > > > But I'm guessing not. Any advice before I start working up a patch? > > > > Use WebTest ? Just a thought. Mayb

zope.testbrowser's handleErrors and pyramid

2011-05-24 Thread Brian Sutherland
this Perhaps it's as simple as putting this in pyramid/router.py: if not environ.get('wsgi.handleErrors', True): raise But I'm guessing not. Any advice before I start working up a patch? -- Brian Sutherland -- You received this message because you are subscribed to th

Re: requests and transactions

2011-04-01 Thread Brian Sutherland
On Fri, Apr 01, 2011 at 07:33:44AM +0100, Chris Withers wrote: > On 01/04/2011 07:23, Brian Sutherland wrote: >> On Thu, Mar 31, 2011 at 04:49:38PM +0100, Chris Withers wrote: >>> - isDoomed support: I guess this could be added to the example; can >>> someone explain whe

Re: requests and transactions

2011-03-31 Thread Brian Sutherland
True the transaction cannot be committed. .commit() raises an exception. -- Brian Sutherland -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, se

Re: pyramid_beaker vs beaker wsgi middleware

2011-03-02 Thread Brian Sutherland
of the code, comes from r.who 1, > which has been in heavy use for years now. As an extra data point: we've also been using 2.0 in a project and it's been very solid. -- Brian Sutherland -- You received this message because you are subscribed to the Google Groups "pylons-devel&qu