SQLAlchemy defining tables in conf, orm mappying?

2008-01-21 Thread Kevin Baker
I am setting up the table definition and ORM mapping in my model and wondering what it is doing exactly. Is the table definition there to manually define data-types for SA, so that it can generate valid SQL with the SQL abstraction syntax? or does it do more. I am open to ORM, have used it

Pylons Model approach vs simple sql?

2008-01-21 Thread Kevin Baker
I am new to Pylons. I love Mako, Routes and the View Controller concepts behind Pylons. I am a little unsure of the Model concepts though, and how tightly they are bound to SQLAlchemy. In general it seems like a lot of configuration to make simple SQL queries. Is there a reason I couldn't

Re: Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Pavel Skvazh
thanks antoine. Now it enters the page, but just like it was the regular 'localhost'. Looks like it's just redirecting request from foo.localhost to 127.0.0.1 without passing any params. On Jan 22, 12:44 am, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > You should probably add foo.localhost andwww.

Re: Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Antoine Pitrou
You should probably add foo.localhost and www.localhost to your hosts file as well. Le lundi 21 janvier 2008 à 13:34 -0800, Pavel Skvazh a écrit : > That'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 ad

Re: Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Pavel Skvazh
That'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 > > On Jan 21, 5:31 pm, Pavel Skvazh <[EMAIL PROTECTED]> wrote: > > > Hi. > > > Set up. > > Development server

Re: Correct way to call a controller action from another controller's action

2008-01-21 Thread [EMAIL PROTECTED]
Great! Thank you a lot! On Jan 16, 6:17 pm, "programmer.py" <[EMAIL PROTECTED]> wrote: > If someone absolutely, positively, did not want to redirect, then I > agree with you. It probably should be refactored. But no one should > be afraid to post code. We all wanna help :-). > > The easiest th

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

Re: Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Pavel Skvazh
And oddly when i go to http://127.0.0.1:2051/ it works and returns me 127.0 in sub_domain On Jan 21, 2: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 =

Problems making Routes Subdomains work on Pylons

2008-01-21 Thread Pavel Skvazh
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.sub_domains_ignore = ['www'] map.connect('', controller='main', action='company_sub_domain', conditions=dict(sub_domain=True)) http://www.

How should XMLRPCController handles errors (xmlrpc_fault)

2008-01-21 Thread Alexandre Conrad
Hi, I would like to know how errors should be handled having webservices running with XMLRPCController. Say I have a "def login(self, user, password)" method. If the login fails, how should I return the errors to the client? I saw, from the following docs: http://wiki.pylonshq.com/display