List of Pyramid plugins

2011-12-08 Thread rihad
Hi, all. Is there a list of available Pyramid plugins, which will add missing functionality? They usually start with pyramid_*, like pyramid_simpleform. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: List of Pyramid plugins

2011-12-08 Thread Chris McDonough
On Thu, 2011-12-08 at 01:12 -0800, rihad wrote: Hi, all. Is there a list of available Pyramid plugins, which will add missing functionality? They usually start with pyramid_*, like pyramid_simpleform. The ones produced by the Pylons Project are listed here:

Re: Conflicting configuration actions

2011-12-08 Thread Dick Kniep
Hi Michael, Thanks a lot. It works, however, I only removed config.set_session_factory(session_factory) so, now it reads: session_factory = session_factory_from_settings(settings) config = Configurator(settings = settings, session_factory = session_factory)

Re: List of Pyramid plugins

2011-12-08 Thread rihad
Thanks, just what I was looking for. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to

Re: Best way for passing variable between callables

2011-12-08 Thread Dan Sommers
On Wed, 07 Dec 2011 16:56:20 -0800, H.T. Wei wrote: Hi, I am a newbie to Pyramid and have a question about passing variable between callable like this one: def callable_a(request): id = 1 ... return dict( ... ) def callable_b(request): # get id from

Re: Conflicting configuration actions

2011-12-08 Thread Michael Merickel
That's fine, my point is that it should read: config = Configurator(settings=settings) config.include('pyramid_beaker') The effect is the same, but you are doing extra work using your setup, which you'd only want to do if you had some special way of setting up that session. On Thu, Dec 8, 2011

Re: Best way for passing variable between callables

2011-12-08 Thread H.T. Wei
Thank you all for the suggestion! On Thu, Dec 8, 2011 at 2:55 AM, Dan Sommers d...@tombstonezero.net wrote: On Wed, 07 Dec 2011 16:56:20 -0800, H.T. Wei wrote: Hi, I am a newbie to Pyramid and have a question about passing variable between callable like this one: def

Pyramid/Pylons meetup group in Vancouver BC

2011-12-08 Thread Iain Duncan
If there any Vancouverites here, I've just created a meetup group for Pyramid and Pylons users. Would love to meet others face to face! link: http://www.meetup.com/Vancouver-Pyramid-Pylons We won't schedule a real meeting obviously until we have some peeps. iain www.xornot.com -- You received

how to add paramater

2011-12-08 Thread Cem Ikta
Hi, How can I add / modify query parameters of the current url in my view code? I would like to add new parameters to current url if there are no parameters for example: http://127.0.0.1:6543/countries/list?sort=code I am using mako + url dispatch. @view_config(route_name=countries_list,

how to add query parameters to the current url in view code?

2011-12-08 Thread Cem Ikta
Hi, How can I add query parameters to the current url in my view code? I would like to add new parameters to current url if there are no parameters for example: http://127.0.0.1:6543/countries/list?sort=code I am using mako + url dispatch. @view_config(route_name= countries_list,

Re: how to add query parameters to the current url in view code?

2011-12-08 Thread Michael Merickel
request.route_url() has a _query argument that is documented. request.route_url('countries_list', _query={'sort': 'foo', 'dir': 'asc'}) # - http://127.0.0.1:6543/countries/list?sort=foodir=asc

Odd error from WebOb if you set a cookie value to be an Int and not a String

2011-12-08 Thread Jonathan Vanasco
The following line works fine: self.request.response.set_cookie( 'fb-loggedin', value='1', max_age=None, path='/' ) However, this line creates an interesting error self.request.response.set_cookie( 'fb-loggedin', value=1, max_age=None, path='/' ) IOError: [Errno 20] Not a

Re: Odd error from WebOb if you set a cookie value to be an Int and not a String

2011-12-08 Thread cd34
opening 1 might have gotten stdout which is the only thing I can think would give that sort of an error. Why it would open a file for a cookie value I don't know, but, that would be my first guess without digging into the code. -- You received this message because you are subscribed to the

Re: Odd error from WebOb if you set a cookie value to be an Int and not a String

2011-12-08 Thread Chris McDonough
On Thu, 2011-12-08 at 20:48 -0800, cd34 wrote: opening 1 might have gotten stdout which is the only thing I can think would give that sort of an error. Why it would open a file for a cookie value I don't know, but, that would be my first guess without digging into the code. This error comes