Re: am I evil?

2011-02-28 Thread Chris Withers
On 28/02/2011 18:42, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2011 12:53 PM, Chris Withers wrote: On 28/02/2011 16:58, Tres Seaver wrote: I'm worried that I'm being evil. Am I being evil? How else can I get hold of Pyramid's notion of the current user id inside

Re: varying template name which matches route path

2011-02-28 Thread Dan Sommers
On Thu, 24 Feb 2011 12:13:26 -0800, AwaisMuzaffar wrote: > Lets assume, I have the following route set up: > > config.add_route('pages', '/{page}/', view='testproject:views.pages', > view_renderer='testproject:templates/page.mak') > > Would it be possible to make the template name e.g page.mak a

Re: installing pyramid/Chameleon: No module named distribute_setup ?

2011-02-28 Thread Rocky Burt
Just an update that Chameleon 2.0rc2 was just released that fixes this as well. - Rocky -- 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, send em

Re: pyramid and paster setup-app

2011-02-28 Thread Wichert Akkerman
On 2/28/11 23:28 , oO wrote: Is there any reason why Pyramid wouldn't implement a paster setup-app command? I understand I can create a script command (which I've done a few times in Pylons) but I think that a standard hook would be very beneficial, since most Pyramid based app probably need to b

Re: pyramid and paster setup-app

2011-02-28 Thread Chris McDonough
It seemed like too much framework for not much benefit over suggesting that folks use a console script. - C On Mon, 2011-02-28 at 14:28 -0800, oO wrote: > Is there any reason why Pyramid wouldn't implement a paster setup-app > command? I understand I can create a script command (which I've done a

Re: pyramid and paster setup-app

2011-02-28 Thread oO
Is there any reason why Pyramid wouldn't implement a paster setup-app command? I understand I can create a script command (which I've done a few times in Pylons) but I think that a standard hook would be very beneficial, since most Pyramid based app probably need to bootstrap some sort of persisten

Re: pyramid_tm 0.1 released

2011-02-28 Thread Chris Withers
On 28/02/2011 18:43, Chris McDonough wrote: repoze.tm2 vs. pyramid_tm is more about opinion than it is technology Both offer the same features and the same benefits, and neither has a particular downside that isn't rooted in pure opinion. On the other hand, there are cases where using middleware

Re: pyramid_beaker vs beaker wsgi middleware

2011-02-28 Thread Daniel Holth
Clearly it will take time for individuals to understand which functionality best belongs in each layer. REMOTE_USER makes great middleware but it's trivial to move that bit, or sessions, into or out of Pyramid as desired. -- You received this message because you are subscribed to the Google Gro

Re: installing pyramid/Chameleon: No module named distribute_setup ?

2011-02-28 Thread Andreas Reuleaux
wow, that was fast and works like a charm, thanks. -Andreas On Mon, Feb 28, 2011 at 01:47:41PM -0500, Chris McDonough wrote: > A new version of Chameleon was released about an hour ago that doesn't > work with Pyramid. > > While that's worked out, before installing Pyramid, in your virtualenv,

Re: installing pyramid/Chameleon: No module named distribute_setup ?

2011-02-28 Thread Chris McDonough
A new version of Chameleon was released about an hour ago that doesn't work with Pyramid. While that's worked out, before installing Pyramid, in your virtualenv, do: bin/easy_install "Chameleon<1." Then run "easy_install pyramid". On Mon, 2011-02-28 at 19:44 +0100, Andreas Reuleaux wrote: >

installing pyramid/Chameleon: No module named distribute_setup ?

2011-02-28 Thread Andreas Reuleaux
Hm, very recent pyramid installation on debian wheezy python (2.6), python-dev, python-virtualenv installed as debian packages # aptitude install python python-dev python-virtualenv build-essential python-setuptools is also installed as a dependency of python-virtualenv just see, if setuptoo

Re: pyramid_tm 0.1 released

2011-02-28 Thread Chris McDonough
On Mon, 2011-02-28 at 10:37 -0800, Mike Orr wrote: > On Sun, Feb 27, 2011 at 10:28 PM, Chris Withers > wrote: > > 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 middle

Re: am I evil?

2011-02-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2011 12:53 PM, Chris Withers wrote: > On 28/02/2011 16:58, Tres Seaver wrote: >>> I'm worried that I'm being evil. Am I being evil? >>> How else can I get hold of Pyramid's notion of the current user id >>> inside a SessionExtension? >> >> The

Re: pyramid_tm 0.1 released

2011-02-28 Thread Mike Orr
On Sun, Feb 27, 2011 at 10:28 PM, Chris Withers wrote: > 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

Re: authenticated_userid vs unauthenticated_userid

2011-02-28 Thread Chris McDonough
On Mon, 2011-02-28 at 18:02 +, Chris Withers wrote: > On 28/02/2011 15:13, Chris McDonough wrote: > > The distinction is useful when folks want to closely control user > > checking for performance reasons, ala > > http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/authentication.html >

Re: authenticated_userid vs unauthenticated_userid

2011-02-28 Thread Chris Withers
On 28/02/2011 15:13, Chris McDonough wrote: The distinction is useful when folks want to closely control user checking for performance reasons, ala http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/authentication.html . I actually read that before I posted, and I just don't get it :-

Re: am I evil?

2011-02-28 Thread Chris Withers
On 28/02/2011 16:58, Tres Seaver wrote: I'm worried that I'm being evil. Am I being evil? How else can I get hold of Pyramid's notion of the current user id inside a SessionExtension? The "approved" way to share request-specific information is to just pass the request: in this case, the obviou

Re: Pyramid authentication options

2011-02-28 Thread Mariano Mara
On 28.02.11 09:35, whit wrote: > Mariano Mara wrote: > >On 18.02.11 15:13, whit wrote: > >>>Ben Bangert was working on Velruse > >>>http://packages.python.org/velruse/index.html during pyramid's formative > >>>months. I'd look there for starters. > >>> > >>has anyone done an integration between v

Re: Pyramid authentication options

2011-02-28 Thread whit
Mariano Mara wrote: On 18.02.11 15:13, whit wrote: Ben Bangert was working on Velruse http://packages.python.org/velruse/index.html during pyramid's formative months. I'd look there for starters. has anyone done an integration between velruse and pyramid that they'd care to share? -w In m

Re: am I evil?

2011-02-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/27/2011 02:40 PM, Chris Withers wrote: > 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 list

Re: pyramid_beaker vs beaker wsgi middleware

2011-02-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2011 09:46 AM, Daniel Holth wrote: >> There seems to be a trend in pyramid development of re-implementing a >> lot of what was previously done in various layers of wsgi middleware >> ( session, auth, ...) and moving those part inside the main

Re: pyramid and paster setup-app

2011-02-28 Thread Chris McDonough
On Sun, 2011-02-27 at 22:45 -0800, oO wrote: > 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 d

Re: authenticated_userid vs unauthenticated_userid

2011-02-28 Thread Chris McDonough
On Mon, 2011-02-28 at 10:06 -0500, Daniel Holth wrote: > I think the reasoning is that > > "Interpret the current user id from a cookie / kerberos > authentication / some key in the session" > > and > > "see whether the identified user exists in our system" > > should be in different layers. I

Re: authenticated_userid vs unauthenticated_userid

2011-02-28 Thread Daniel Holth
I think the reasoning is that "Interpret the current user id from a cookie / kerberos authentication / some key in the session" and "see whether the identified user exists in our system" should be in different layers. I agree this leaves me scratching my head as to when the distinction is usefu

Re: pyramid_beaker vs beaker wsgi middleware

2011-02-28 Thread Daniel Holth
On Sun, Feb 27, 2011 at 2:15 PM, oO wrote: > 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-