Re: @view_defaults and conflict errors

2012-01-05 Thread Martin Aspeli
On Jan 6, 7:06 am, Chris McDonough wrote: > Thanks, I'm tracking this  athttps://github.com/Pylons/pyramid/issues/394 Great! Side question - is my approach a reasonable one for mobile sniffing? Martin -- You received this message because you are subscribed to the Google Groups "pylons-disc

Re: @view_defaults and conflict errors

2012-01-05 Thread Chris McDonough
Thanks, I'm tracking this at https://github.com/Pylons/pyramid/issues/394 - C On Thu, 2012-01-05 at 15:48 -0800, Martin Aspeli wrote: > I have a NewRequest subscriber that adds a marker interface to the > request depending on whether the browser is desktop or mobile. I then > have the following

Re: How to change paths to static assets in .css files?

2012-01-05 Thread Petr Blahos
>> I'm working on a pylons project, and we have users trying to host the >> web-app under a non-root path (i.e. host it at '/myapp/' rather than at >> '/'). We've been pretty good about using 'h.url_for' to generate links in >> our jinja2 templates, so most things work as expected. However, our CSS

Re: How can I define the order of colander fields?

2012-01-05 Thread John Anderson
On 01/05/2012 09:07 PM, Mariano Mara wrote: > On 05.01.12 19:20, John Anderson wrote: >>I have a base schema class and when I subclass it I sometimes want to >>re-order the fields, for instance: >> >>class ProfileSchema(CSRFSchema): >>Username = colander.SchemaNode(colander.Stri

Re: How can I define the order of colander fields?

2012-01-05 Thread Mariano Mara
On 05.01.12 19:20, John Anderson wrote: >I have a base schema class and when I subclass it I sometimes want to >re-order the fields, for instance: > >class ProfileSchema(CSRFSchema): >Username = colander.SchemaNode(colander.String()) > >class DetailedProfileSchema(ProfileS

Re: @view_defaults and conflict errors

2012-01-05 Thread Michael Merickel
That's a bug. On Thu, Jan 5, 2012 at 5:48 PM, Martin Aspeli wrote: > Hi, > > I'm toying with some browser detection and basically want the home > page of my application to be a different view depending on the type of > user agent. > > I have a NewRequest subscriber that adds a marker interface t

Re: How to change paths to static assets in .css files?

2012-01-05 Thread Wyatt Baldwin
On Thursday, January 5, 2012 1:24:21 PM UTC-8, Thomi wrote: > > Hi, > > I'm working on a pylons project, and we have users trying to host the > web-app under a non-root path (i.e. host it at '/myapp/' rather than at > '/'). We've been pretty good about using 'h.url_for' to generate links in > ou

How can I define the order of colander fields?

2012-01-05 Thread John Anderson
I have a base schema class and when I subclass it I sometimes want to re-order the fields, for instance: class ProfileSchema(CSRFSchema): Username = colander.SchemaNode(colander.String()) class DetailedProfileSchema(ProfileSchema): FirstName = colander.SchemaNode(colander.String()) I wou

@view_defaults and conflict errors

2012-01-05 Thread Martin Aspeli
Hi, I'm toying with some browser detection and basically want the home page of my application to be a different view depending on the type of user agent. I have a NewRequest subscriber that adds a marker interface to the request depending on whether the browser is desktop or mobile. I then have t

Re: How to change paths to static assets in .css files?

2012-01-05 Thread Mike Orr
On Thu, Jan 5, 2012 at 1:24 PM, Thomi Richards wrote: > Hi, > > I'm working on a pylons project, and we have users trying to host the > web-app under a non-root path (i.e. host it at '/myapp/' rather than at > '/'). We've been pretty good about using 'h.url_for' to generate links in > our jinja2 t

How to change paths to static assets in .css files?

2012-01-05 Thread Thomi Richards
Hi, I'm working on a pylons project, and we have users trying to host the web-app under a non-root path (i.e. host it at '/myapp/' rather than at '/'). We've been pretty good about using 'h.url_for' to generate links in our jinja2 templates, so most things work as expected. However, our CSS file h

Pyramid 1.2.6 and 1.3a4 released

2012-01-05 Thread Chris McDonough
Pyramid 1.2.6 and 1.3a4 have been released. 1.2.6 is a minor release in the 1.2 series. It has bug fixes and some backwards incompatibilities. 1.3a4 is another alpha in the 1.3 series. It shares many of the same bugfixes as those released in 1.2.6 and has the same backwards incompatibilities.

Re: Pyramid Debug Routematch Not Working

2012-01-05 Thread jerry
Thanks Michael. But after setting the loggers in prod_test.ini -- [loggers] keys = root, myapp ... [logger_root] level = DEBUG handlers = console [logger_myapp] level = DEBUG handlers = qualname = myapp I'm starting to see all the ThreadPool work messages, but still nothing from route match.

Re: Pyramid 1.3 doc

2012-01-05 Thread Michael Merickel
the docs should be updated now, thanks for the report On Thu, Jan 5, 2012 at 2:50 AM, davidfung wrote: > Hi, there seems to be missing code statement in the Pyramid 1.3 doc > below: > > > http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/configuration.html > > In the Imperative Co

Pyramid 1.3 doc

2012-01-05 Thread davidfung
Hi, there seems to be missing code statement in the Pyramid 1.3 doc below: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/configuration.html In the Imperative Configuration section, seems like it needs the following statement before line 11: app = config.make_wsgi_app() And i

Pyramid Route Bug?

2012-01-05 Thread jerry
I noticed that Pyramid (1.2.4) url dispatch route does not work with %2F So the below route -- config.add_route('date', '/date/{date}) does not match -- /date/2012%2F1%2F5 Is it a bug? Thanks. Jerry -- You received this message because you are subscribed to the Google Groups "pylons-discu

Re: Pyramid Debug Routematch Not Working

2012-01-05 Thread Michael Merickel
You probably do not have the DEBUG level enabled for the pyramid package. Make sure you have something along the lines of the default logging setup in your ini. http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/narr/logging.html On Thu, Jan 5, 2012 at 2:13 AM, jerry wrote: > I am us

Pyramid Debug Routematch Not Working

2012-01-05 Thread jerry
I am using Pyramid 1.2.4, with debug_routematch enabled in the configuration -- $ head prod_test.ini [app:myapp] use = egg:myapp debug_authorization = false debug_notfound = false debug_routematch = true debug_templates = true default_locale_name = en [pipeline:main] pipeline = egg:WebError#e