Re: Free blog application

2007-05-30 Thread Jonas Melian
Hi David, I couldn't help you so far because I'm a newbie with Pylons and sincerely I'm thinking what platform to use for my future developments, if TurboGears or Pylons. I like more Pylons by its integration (using WSGI) but the TurboGears' community is greater and there are already several

Using pater with other servers

2007-05-30 Thread voltron
I am trying to get Pylons to work with a web server that supports FCGI, the problem is, the server manges URLs with extentions like .php e.t.c which Pylons does not have. Are there some key things that I have to take notice of when trying to configure a server with Pylons? I inten to use Hiawatha

Re: Using pater with other servers

2007-05-30 Thread voltron
that should have read using the paster server... typing too fast... On May 30, 1:57 pm, voltron [EMAIL PROTECTED] wrote: I am trying to get Pylons to work with a web server that supports FCGI, the problem is, the server manges URLs with extentions like .php e.t.c which Pylons does not have.

Mocking Model (Was Re: Towards a more incremental test-driven-development in Pylons?)

2007-05-30 Thread Agustín (Cucho) Villena
Hi! Thanks for your answers I didn't read the link, but I can see what you're saying. Here are a couple tricks I can suggest: * To test your controllers somewhat in isolation, instead of calling render_response, call my_render_response which you write yourself. In my_render_response,

redirect bug for __before__ methods in controllers

2007-05-30 Thread [EMAIL PROTECTED]
I was trying to do a redirect_to call in the __before__ method a controller. Pylons isn't catching the HTTPFound exception and doing the redirect. in pylons/controllers.py : in both the Controller and the WSGIController classes if hasattr(self, '__before__'):

Recommendations on obtaining client ip address over proxy? HTTP_X_FORWARDED_FOR?

2007-05-30 Thread John_Nowlan
Can anyone comment on correct way to obtain clients ip address? We want to handle intranet clients (within our sub-domain) differently than internet clients. Request.environ['REMOTE_ADDR'] works when no proxy but gives ip address of proxy when proxy is being used.

Re: Towards a more incremental test-driven-development in Pylons?

2007-05-30 Thread Ian Bicking
Shannon -jj Behrens wrote: * To test your controllers somewhat in isolation, instead of calling render_response, call my_render_response which you write yourself. In my_render_response, in testing mode, you can simply return JSON, and, in real mode, you can return a real page. Then, you can

Re: storing SA mapped objects in beaker sessions

2007-05-30 Thread Michael Bayer
On May 28, 2007, at 2:17 AM, Shannon -jj Behrens wrote: On 5/27/07, Anil [EMAIL PROTECTED] wrote: user_mapper = assign_mapper(ctx, User, user_table, properties = { 'alerts': relation(Alert, cascade=all, delete-orphan)

Re: redirect bug for __before__ methods in controllers

2007-05-30 Thread Philip Jenvey
On May 30, 2007, at 6:31 AM, [EMAIL PROTECTED] wrote: I was trying to do a redirect_to call in the __before__ method a controller. Pylons isn't catching the HTTPFound exception and doing the redirect. in pylons/controllers.py : in both the Controller and the WSGIController classes

CONFIG and logging problems

2007-05-30 Thread Mike Orr
My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to CONFIG['app_conf']['sqlalchemy.echo_pool'] under 'paster serve'. Yet myapp/config/middleware.py contains: def make_app(global_conf, full_stack=True, **app_conf): # Setup the Paste

Re: CONFIG and logging problems

2007-05-30 Thread Philip Jenvey
On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to CONFIG['app_conf']['sqlalchemy.echo_pool'] under 'paster serve'. Yet myapp/config/middleware.py contains: def make_app(global_conf,

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to CONFIG['app_conf']['sqlalchemy.echo_pool'] under 'paster serve'. Yet

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster

Re: CONFIG and logging problems

2007-05-30 Thread Philip Jenvey
On May 30, 2007, at 4:43 PM, Mike Orr wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find

Re: CONFIG and logging problems

2007-05-30 Thread Ian Bicking
Mike Orr wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 4:43 PM, Mike Orr wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr

dynamic controller or self-redirect

2007-05-30 Thread Gregory W. Bond
i've been scratching my head about how to do this with Routes but i'm beginning to think it's not possible what i want to do is compute the controller value based on (dynamic parts) of the requested url - for example, if the requested url is / users/[user]/account/[account], i'd like to be able

Standalone Pylons behind Apache?

2007-05-30 Thread Karlo Lozovina
Hello everybody, I have some issues with my web hosting provider, and I can't use mod_python properly. But, I would still like to use Pylons for my web. So, I was thinking of somehow running Pylons with standalone Python HTTP server (performance is not an issue, for now) behind Apache server. Is

Re: dynamic controller or self-redirect

2007-05-30 Thread David Smith
Gregory W. Bond wrote: i've been scratching my head about how to do this with Routes but i'm beginning to think it's not possible what i want to do is compute the controller value based on (dynamic parts) of the requested url - for example, if the requested url is /