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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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,
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
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
23 matches
Mail list logo