Re: traversal: resource vs domain model?

2012-03-06 Thread Daniel Nouri
On Tue, Mar 6, 2012 at 2:24 AM, Mike Orr wrote: > OK. Any tips for attaching an ACL to them? Especially in the case > where permissions are record-specific. For instance, I have a > situation where one group can view and edit all records, another group > can only view, a third set of users (not a

Re: SQLA execution error when running Pyramid tests

2012-03-06 Thread Benjamin Sims
I'm not sure specifically why it would be triggered (not experienced this before with other projects using Deform). In any case, I was able to solve by refining the test suite setting in setup.py, specifing myproject.tests rather than just myproject. Thanks, Ben On 5 March 2012 20:41, Mike Orr

Re: traversal: resource vs domain model?

2012-03-06 Thread Thomas G. Willis
Using DENY is handy for stuff like enforcing not being able to "like" your own posts. On Tuesday, March 6, 2012 4:50:30 AM UTC-5, Daniel Nouri wrote: > > On Tue, Mar 6, 2012 at 2:24 AM, Mike Orr wrote: > > OK. Any tips for attaching an ACL to them? Especially in the case > > where permissions ar

Re: SQLA execution error when running Pyramid tests

2012-03-06 Thread Atsushi Odagiri
Hi I have some question for this problem. when do you call `sqlahelper.add_engine`? and don't you call `sqlahelper.reset`? if you call `sqlahelper.reset`, and you must reload `models` module. regards 2012/3/6 Benjamin Sims > I'm not sure specifically why it would be triggered (not experience

Re: SQLA execution error when running Pyramid tests

2012-03-06 Thread Mike Orr
``sqlahelper.reset()`` exists mainly for SQLAHelper's own unit tests. I don't know whether it's appropriate for Pyramid app tests. I can clarify this in the documentation if we decide one way or the other. I wonder if Pyramid needs a Nose plugin like Pylons does, so that --with-pylons=test.ini loa

Re: SQLA execution error when running Pyramid tests

2012-03-06 Thread Benjamin Sims
Yes, in my case I deal with the database connection in the unit test setUp() and don't touch sqlahelper. To my mind the issue was why the code was being called - it was not under test. Ben On 6 March 2012 17:21, Mike Orr wrote: > ``sqlahelper.reset()`` exists mainly for SQLAHelper's own unit t

Re: multiple beaker sessions under pyramid ?

2012-03-06 Thread Jonathan Vanasco
pyramid_subscribers_beaker_https_session https://github.com/jvanasco/pyramid_subscribers_beaker_https_session i've got it supporting two methods: 1. config.set_request_property 2. a NewRequest listener that manually sets the property the latter option is likely to leave, but i already named it