[web2py] Re: "Slug" field plus database actions

2010-01-21 Thread mdipierro
yes. On Jan 21, 6:14 pm, Richard wrote: > I would like to show dynamic pretty URLs from the root of my app, such > as: > mysite/pretty-url > > instead of: > mysite/blog/post/show/pretty-url > > Do I need routes for this? > Richard > > On Jan 22, 1:38 am, pistacchio wrote: > > > hi to all! > > a

[web2py] Re: "Slug" field plus database actions

2010-01-21 Thread Richard
I would like to show dynamic pretty URLs from the root of my app, such as: mysite/pretty-url instead of: mysite/blog/post/show/pretty-url Do I need routes for this? Richard On Jan 22, 1:38 am, pistacchio wrote: > hi to all! > a couple of questions. i'm writing a simple blog to get used to web2

[web2py] Re: "Slug" field plus database actions

2010-01-21 Thread mdipierro
Thanks it will be useful. Can you email me the code? form.accepts(request.vars, session) detects submission of some hidden fields in the form (this way works with both GET and POST). if returns True ONLY if the form was submitted and no errors, else otherwise. if form.accept(...) # accepted a