I'm currently working on these Pyramid tasks, in approximate order:
- Update wiki2 demo (the URL Dispatch demo in the Pyramid book) to
pylons_sqla template and Ben's emerging recommendations. This will be
a third-party demo at first, so I don't have to deal with Git and all
Chris's source-code req
On Thu, Nov 18, 2010 at 12:27 PM, Chris McDonough wrote:
> We need it to be able to match even when there is not necessarily a
> slash at the end of the URL pattern before the stararg starts (IOW, we
> need *fizzle to potentially become () if the path is /foo/baz/bar for
> the pattern "foo/:baz/:b
On Thu, 2010-11-18 at 11:52 -0800, Ben Bangert wrote:
> On Nov 18, 2010, at 11:36 AM, Mike Orr wrote:
>
> > BTW, I'm not so sure it's a good idea to allow omitting the slash
> > before the star.
> >
> > """Unlike segment replacement markers, [the star] does not need to be
> > preceded by a slash.
On Nov 18, 2010, at 11:36 AM, Mike Orr wrote:
> BTW, I'm not so sure it's a good idea to allow omitting the slash
> before the star.
>
> """Unlike segment replacement markers, [the star] does not need to be
> preceded by a slash. For example: foo/:baz/:bar*fizzle"""
>
> I would read that and b
On Thu, Nov 18, 2010 at 9:37 AM, Ben Bangert wrote:
> As I was building a pyramid app the other day, I did come across this
> actually. It was part of the reason I was asking about an easier way to sub
> in a custom regex for just the path part (rather than having to supply an
> entire path_inf
On Nov 18, 2010, at 8:11 AM, Mike Orr wrote:
>> That said, I didn't personally consider the case where the desired
>> return value of the pattern "/:x_html" might be {'x':'foo'} instead of
>> {'x_html':'foo_html'} when the matched path was "/foo_html". I'm not
>> sure if Ben did either.
As I was
In the Pyramid application templates, the model initialization routine
is called 'initialize_sql()'. The corresponding Pylons function is
'init_model()'. I'd argue for the latter (or 'init_models()' because
your models.py is plural) because it's more MVCish, it can be used
with non-SQL databases or
On Wed, Nov 17, 2010 at 10:27 PM, Chris McDonough wrote:
> On Wed, 2010-11-17 at 21:22 -0800, Mike Orr wrote:
>> On Wed, Nov 17, 2010 at 7:10 PM, Chris McDonough wrote:
>> > - The pylons_* paster templates erroneously used the ``{squiggly}``
>> > routing syntax as the pattern supplied to ``add_r