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 free

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 h

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_respo

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__'): self._inspect_ca

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. Request.environ['HTTP_X_FORWAR

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

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, dele

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 CONFI

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_con

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 > > > CON

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'

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 fin

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.CON

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

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 t

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 / > users/[user]/acco

Re: Standalone Pylons behind Apache?

2007-05-30 Thread Eugene Van den Bulke
Karlo Lozovina wrote: > 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,

Re: CONFIG and logging problems

2007-05-30 Thread Max Ischenko
On 5/31/07, Mike Orr <[EMAIL PROTECTED]> wrote: > > OK, I replaced: > > app = ConfigMiddleware(app, {'app_conf': app_conf, 'global_conf': > global_conf}) > > with: > > app = ConfigMiddleware(app, conf) > > I guess everybody who's converting old projects will have to do this > as well as modifying t

Re: CONFIG and logging problems

2007-05-30 Thread David Smith
Max Ischenko wrote: > May be ChangeLog can provide hints about changes in default project layout > the users of older release should pay attention to? Hmm, this is doable but I think it was actually documented. Another possible solution would be to make the project depend on the version of Pylon