Access server:main in pylons controller

2011-01-06 Thread pan pan
Hi All, I need to send out information of port and ssl information through pylons controller. These information can easily be found in [server:main] section in the config file. However, it seems that by default a pylons controller can only access [app:main] section. Is there any way that I can get

Re: Session with flash request.

2011-01-06 Thread Francesco Mazzoli
I don't think I understand how would that work. You are proposing to include the random id in the request, store it somewhere and then check that it is the right one when receiving the request? On Jan 4, 7:51 pm, Daniel Holth wrote: > I suggest you just give the upload its own random id: > > impo

custom cleanup in Pylons error-handling stack

2011-01-06 Thread Justin Francis
I have recently started using Pylons and am having trouble finding information about the exact structure of the error handling stack. When an exception occurs anywhere, what is the sequence of calls that Pylons makes (from the time the exeception occurs until the error screen is shown)? How does th

[Pyramid] Genshi Template Auto-restart

2011-01-06 Thread jerry
Hi, I'm using the Genshi template via -- config.add_renderer('.genshi', MyGenshiRenderer) ... class MyGenshiRenderer: def __init__(self, info): loader = TemplateLoader(os.path.abspath(os.path.dirname(__file__))) self.tmpl = loader.load(info.name) def __call__(self, value

I get sometimes - 405 Method Not Allowed

2011-01-06 Thread Petr Kobalíček
Hello, I'm developing application using Pylons and I get sometimes "405 Method Not Allowed" error. I'm using Firefox/Firebug for debugging on client side. The strange is that I get this error totally randomly, just sometimes some resource is not loaded. I'm using the latest stable Pylons/Paste.

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 Camp

babel clear's translations

2011-01-06 Thread Alexander Zhabotinskiy
Sometimes during python setup.py extract_messages python setup.py update_catalog babel clear's my .po files with translations. Why it happens? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc..

Re: [Pyramid] I wonder if I c an load imperative python configuration instr uctions from in ZCML file ?

2011-01-06 Thread Stéphane Klein
Le 06/01/2011 09:37, Chris McDonough a écrit : On Thu, 2011-01-06 at 09:30 +0100, Stéphane Klein wrote: Hi, I wonder if I can load imperative python configuration instruction from in ZCML file ? No, sorry. Use config.include(somefunc) instead. Ok, thanks. I would like to have your sugge

Re: [Pyramid] I wonder if I can load imperative python configuration instructions from in ZCML file ?

2011-01-06 Thread Chris McDonough
On Thu, 2011-01-06 at 09:30 +0100, Stéphane Klein wrote: > Hi, > > I wonder if I can load imperative python configuration instruction from > in ZCML file ? No, sorry. Use config.include(somefunc) instead. - C > > Regards, > Stephane > -- > Stéphane Klein > blog: http://stephane-klein.inf

[Pyramid] I wonder if I can loa d imperative python configuration instructions from in Z CML file ?

2011-01-06 Thread Stéphane Klein
Hi, I wonder if I can load imperative python configuration instruction from in ZCML file ? Regards, Stephane -- Stéphane Klein blog: http://stephane-klein.info Twitter: http://twitter.com/klein_stephane pro: http://www.is-webdesign.com -- You received this message because you are subscribed