pyramid_ldap authentication ldap.SCOPE_SUBTREE

2012-08-22 Thread Eric Lemoine
=Configuration,DC=ne,DC=ch']) ] Thanks for any insight. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received this message because you are subscribed

Re: pyramide 1.3 starter problem

2012-05-31 Thread Eric Lemoine
be:          python setup.py develop That's indeed what's documented: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#installing-your-newly-created-project-for-development. This was different with Pyramid 1.3 and Paste. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP

plugable authentication

2012-05-28 Thread Eric Lemoine
welcome. Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received this message because you are subscribed to the Google Groups pylons-discuss

Re: Pyramid 1.3 DeprecationWarning

2012-05-21 Thread Eric Lemoine
). The only DeprecationWarning left is from Chameleon 2.8.5. I also see this DeprecationWarning. Am I correct to understand that there's currently no way to get rid of it? Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44

Re: SQLAHelper status

2012-05-16 Thread Eric Lemoine
On Wed, May 16, 2012 at 9:59 PM, Mike Orr sluggos...@gmail.com wrote: On Tue, May 15, 2012 at 10:45 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Did this patch make it into the “version 1” branch? If so would it make sense to make a bug fix release? There's only one branch, 'master

Re: SQLAHelper status

2012-05-15 Thread Eric Lemoine
, but I guess we could quite easily drop it. We still have like module interdependency issues but I guess this is bad design on our side. Thanks for the notice. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo

custom view params

2012-05-06 Thread Eric Lemoine
Hi I'd like to be able to set custom config parameters in my views, and read these parameters from request objects. Is this at all possible? For example: @view_config(route_name='a_route', renderer='a_renderer', custom_param='some_value') def v(request) return {} Thanks. -- Eric

Re: Default renderer

2012-05-06 Thread Eric Lemoine
of the time) but to JS too and even to XML sometimes. I don't want to have files whose extension is .jinja2 Which one is HTML and which one is JS? Won't config.add_renderer('.hml', ...) config.add_renderer('.js', ...) config.add_renderer('.xml', ...) work for you? -- Eric Lemoine

Re: custom view params

2012-05-06 Thread Eric Lemoine
='a_renderer', custom_predicates=[extra_params('some_param')]) def v(request)    params = request.extra_params    return {} If not, view_config also supports a few other constructs for wrapping views (such as decorator). Thanks for the suggestions. I'll look into more detail. -- Eric Lemoine

Re: Benchmark of paster

2011-06-16 Thread Eric Lemoine
in production. So it will be good to know how paster perform how stable it is. I have observed that Paste Server has a per-request overhead that is significantly larger than Apache mod_wsgi. Sorry I have no numbers to back this. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377

Re: simple example using repoze.who for authorization in pylons-app

2011-05-04 Thread Eric Lemoine
-project-mini-conference/for anyone who's interested. Looks like quite a conference. I've followed quite a few of the other participants as they posted their slides. I'm on the wrong coast.  haha Do not complain, others are on the wrong continent :-) Cheers, -- Eric Lemoine Camptocamp France SAS

Re: [Pylons 1.0, Routes] I look for an url generator but in Javascript

2011-04-14 Thread Eric Lemoine
#routes.util.url_for) in javascript. Does someone have already create this tools ? Hi Stéphane We use Mako templates for that here. Like: script var url = ${url(controller=foo, action=bar)}; /script -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel

Re: add_route and view_attr

2011-04-11 Thread Eric Lemoine
view. Rather add_view and view_config are identical except that view_config requires to you call config.scan() to place the decorator within your code, instead of within your config. You're right. It makes sense. And it works! Thank you. -- Eric Lemoine Camptocamp France SAS Savoie Technolac

add_route and view_attr

2011-04-07 Thread Eric Lemoine
the route_name attribute, doesn't work either. Is there a solution to this problem? Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received

Re: add_route and view_attr

2011-04-07 Thread Eric Lemoine
On Thursday, April 7, 2011, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Thu, Apr 7, 2011 at 4:47 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hi I have view class defined as follows: class Entry(object):    def __init__(self, request):        self.request = request

Re: Pyramid for Pylons users guide

2011-01-15 Thread Eric Lemoine
-interface-wsgi.html#wsgi-in-pylons-controllers. I'd be very interested to know if and how this can be done in a Pyramid application. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com

Re: Pyramid for Pylons users guide

2011-01-15 Thread Eric Lemoine
On Saturday, January 15, 2011, Gael Pasgrimaud g...@gawel.org wrote: On Sat, Jan 15, 2011 at 3:12 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: On Sat, Jan 15, 2011 at 4:53 AM, Mike Orr sluggos...@gmail.com wrote: Hi all, I'm starting an article on Pyramid for Pylons 1 users, focusing

Re: [pyramid] why zope.sqlalchemy?

2011-01-13 Thread Eric Lemoine
On Wednesday, January 12, 2011, Chris McDonough chr...@plope.com 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

[pyramid] why zope.sqlalchemy?

2011-01-12 Thread Eric Lemoine
and pyramid_routesalchemy make use of it? Thanks a lot, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received this message because you are subscribed

pyramid.exceptions.Forbidden question

2011-01-06 Thread Eric Lemoine
Hi So in Pyramid we have the Forbidden exception (and its associated built-in view). I've been surprised that raising Forbidden results in a 401 response, given the name of the exception I'd have expected a 403 response. So I find the exception name misleading, no? Thanks, -- Eric Lemoine

Re: redirect helper?

2010-12-29 Thread Eric Lemoine
On Tuesday, December 28, 2010, Chris McDonough chr...@plope.com wrote: On Tue, 2010-12-28 at 22:35 +0100, Eric Lemoine wrote: Hello Does Pyramid provide a helper for issuing redirects? I've found nothing in the docs about that. Maybe pyramid_routehelper will provide that? Hi Eric, http

jsonify

2010-07-28 Thread Eric Lemoine
Hello Does anyone know why jsonify does response.headers[Content-Type] = application/json instead of response.content_type = application/json Is there a good reason for that? Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33

Re: jsonify

2010-07-28 Thread Eric Lemoine
On Wed, Jul 28, 2010 at 12:37 PM, Gael Pasgrimaud g...@gawel.org wrote: On Wed, Jul 28, 2010 at 11:03 AM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hello Does anyone know why jsonify does response.headers[Content-Type] = application/json instead of response.content_type

WebTest 1.2.1 issue with cookie

2010-05-13 Thread Eric Lemoine
-correctly-s. Is it a known problem? Is there a workaround (other than downgrading to WebTest 1.2? Thanks for any response, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http

Re: WebTest 1.2.1 issue with cookie

2010-05-13 Thread Eric Lemoine
On Thu, May 13, 2010 at 8:03 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hello My app's functional tests fail with WebTest 1.2.1, because auth cookies aren't set in the requests. I use repoze.who and what. Someone reported the issue on stackoverflow, see http://stackoverflow.com

reference to app

2010-03-17 Thread Eric Lemoine
Hello From a controller can I get a reference to the app (i.e. what's returned by middleware.make_app)? Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com

Re: reference to app

2010-03-17 Thread Eric Lemoine
On Wed, Mar 17, 2010 at 8:10 PM, Mike Orr sluggos...@gmail.com wrote: On Wed, Mar 17, 2010 at 11:24 AM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Mar 17, 10:27 am, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hello From a controller can I get a reference to the app (i.e. what's

Re: Routes 1.12 issue

2010-03-02 Thread Eric Lemoine
On Monday, March 1, 2010, Ben Bangert b...@groovie.org wrote: On Mar 1, 2010, at 9:42 AM, Eric Lemoine wrote: I have a problem since Routes 1.12 was uploaded to pypi: I do url_for(action=myaction) in one of my controllers. With Routes 1.11 it returns the URL to the controller's myaction

Routes 1.12 issue

2010-03-01 Thread Eric Lemoine
with Routes 1.12. Thanks for any help on this, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received this message because you are subscribed to the Google

Re: Plugin architecture

2009-04-27 Thread Eric Lemoine
developed a general-interest controller could distribute for others to use it in their Pylons apps. -- Eric -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com

port number

2009-04-14 Thread Eric Lemoine
Hello I want to use [server:main] use = egg:Paste#http host = 0.0.0.0 port = 0 so that my Pylons app's port number is assigned for me. Now, from my app's make_app() function do I have a way to know what port number has actually been assigned? Thanks, -- Eric Lemoine Camptocamp France SAS

repoze.who CAS plugin

2009-03-16 Thread Eric Lemoine
Hello Does anyone know if there's a repoze.who plugin for CAS (Central Authentication Service)? Thanks, -- Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

Re: repoze.who CAS plugin

2009-03-16 Thread Eric Lemoine
Thanks for response Gustavo. Eric 2009/3/16, Gustavo Narea m...@gustavonarea.net: On Monday March 16, 2009 16:15:17 Eric Lemoine wrote: Does anyone know if there's a repoze.who plugin for CAS (Central Authentication Service)? Not yet. But if you want, you can create it by reading

Routes wildcards issue

2009-02-15 Thread Eric Lemoine
Hi The Pylons Book gives an example of using a wildcard in a route. The example fails with Routes-1.10.3. def controller_scan(directory=None): return ['error', 'page'] ... from routes import Mapper map = Mapper(controller_scan=controller_scan) map.minimization = False

Re: debug var and templates

2009-02-11 Thread Eric Lemoine
On Wed, Feb 11, 2009 at 9:02 AM, Mike Orr sluggos...@gmail.com wrote: I personally validate and change the types of the config vars in environment.py. That way if there's a missing or incorrect variable it'll cause an error at startup rather than only in certain request situations. Makes

debug var and templates

2009-02-10 Thread Eric Lemoine
Hi Some simple questions related to the debug var defined in the development.ini file: (1) Why is this variable defined using set? Other variables in the development.ini file aren't defined using set, so what does make debug a special case? (2) I need to test whether the debug var is set in a

Re: Is Django more popular than Pylons?

2009-01-27 Thread Eric Lemoine
Hi I agree that it'd be good to have virtualenv shipped with Python. I wish I did have to tell my Pylons application users to first download virtualenv, dearchive it, extract virtualenv.py, etc. Cheers, Eric 2009/1/27, Mike Orr sluggos...@gmail.com: On Tue, Jan 27, 2009 at 1:40 PM, Akira

Re: Django or Pylons - comparison details

2009-01-19 Thread Eric Lemoine
On Mon, Jan 19, 2009 at 10:29 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Jan 19, 9:20 am, Colin Flanagan quadvill...@yahoo.com wrote: The SQLAlchemy argument is a very compelling one. I have an application that, while being a CMS, has heavily relational data. I was urged by

Re: mod_wsgi and virtualenv

2008-11-11 Thread Eric Lemoine
Hi. We do use mod_wsgi and virtualenv in MapFish, and have a wiki page documenting this. Check out http://trac.mapfish.org/trac/mapfish/wiki/HowToMapFishServerApache. Hope this helps. Eric 2008/11/10, Christoph Haas [EMAIL PROTECTED]: Hi, I'm trying to deploy a Pylons app via mod_wsgi

Re: AuthKit

2008-11-11 Thread Eric Lemoine
know anyone who would like to help me maintain AuthKit I'd be happy to hear from them. Cheers, James On Nov 3, 9:18 am, Eric Lemoine [EMAIL PROTECTED] wrote: On Fri, Oct 31, 2008 at 7:41 PM, Walter Cruz [EMAIL PROTECTED] wrote: A new version was released some weeks ago.. What's the issue

Re: AuthKit

2008-11-03 Thread Eric Lemoine
On Fri, Oct 31, 2008 at 7:41 PM, Walter Cruz [EMAIL PROTECTED] wrote: A new version was released some weeks ago.. What's the issue of yor ticket? Thanks for your response. Here's the ticket: http://authkit.org/trac/ticket/59 -- Eric --~--~-~--~~~---~--~~ You

AuthKit

2008-10-31 Thread Eric Lemoine
Hi List, We created a ticket with a patch attached to it in the AuthKit trac about 3 months ago, and the ticket hasn't received any attention. Does anyone know if there's still some activity on AuthKit? Do you have advice on how to make this ticket and patch move forward? Thanks, -- Eric