Re: I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ?
On 28/06/2011 18:33, Stéphane Klein wrote: Hi, I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ? I'm pretty sure routes are not regex based, so no... cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk -- 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 pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ?
Le 28/06/2011 19:44, Chris Withers a écrit : On 28/06/2011 18:33, Stéphane Klein wrote: Hi, I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ? I'm pretty sure routes are not regex based, so no... Here : http://docs.pylonsproject.org/projects/pyramid/dev/narr/urldispatch.html#route-pattern-syntax there are : For example, under the hood, the replacement marker {foo} can more verbosely be spelled as {foo:[^/]+}. You can change this to be an arbitrary regular expression to match an arbitrary sequence of characters, such as {foo:\d+} to match only digits. Routes can use regex. -- Stéphane Klein steph...@harobed.org 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 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 pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ?
Do you think this may be related to https://github.com/Pylons/pyramid/issues/123 which is patched in the 1.1 alpha release? Michael -- 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 pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ?
Le 28/06/2011 20:22, Michael Merickel a écrit : Do you think this may be related to https://github.com/Pylons/pyramid/issues/123 which is patched in the 1.1 alpha release? Yes, it's fixed in version 1.1a3 :) -- Stéphane Klein steph...@harobed.org 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 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 pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.