Re: An idea for improving @validate

2008-01-29 Thread Dmitry Lipovoi
also in routes it's possible to config one url to diffetent actions on GET and POST requests. something like this: m.connect('myform', controller='form', action='handle_form', conditions=dict(method=['POST'])) m.connect('myform', controller='form', action='show_form')) On Jan 29, 3:44 pm, Steve

Re: Pylons Model approach vs simple sql?

2008-01-22 Thread Dmitry Lipovoi
orm is abstraction over database query language. you can make queries in oo-terms. so your business logic stays clear and you dont care about object persistence. also with orm you can change backend (from MySQL to Postgre for ex.) just by edit config. if you work with native sql its not always po

Re: Problems making Routes Subdomains work on Pylons

2008-01-22 Thread Dmitry Lipovoi
27;s exactly what I've got there. > > Running Windows by the way. > > > On Jan 21, 4:53 pm, Dmitry Lipovoi <[EMAIL PROTECTED]> wrote: > > > try to add > > > > 127.0.0.1 localhost > > > > to /etc/hosts --~--~-~--~~~---~

Re: Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Dmitry Lipovoi
try to add 127.0.0.1 localhost to /etc/hosts On Jan 21, 5:31 pm, Pavel Skvazh <[EMAIL PROTECTED]> wrote: > Hi. > > Set up. > Development server > > [server:main] > use = egg:Paste#http > host = 0.0.0.0 > port = 2051 > > routing.py > map.append_slash = True > map.sub_domains = True > map.s