I did something similar using the __before__ method
class CustomerController(BaseController):
def __before__(self):
if 'cust_id' in request.environ['pylons.routes_dict']:
cust_id = request.environ['pylons.routes_dict']
['cust_id']
Previously Aaron R wrote:
I did something similar using the __before__ method
class CustomerController(BaseController):
def __before__(self):
if 'cust_id' in request.environ['pylons.routes_dict']:
cust_id = request.environ['pylons.routes_dict']
['cust_id']
for a route like /company/:company_id/child_resource/id i do something like:
class ChildResourceController(BaseController):
def _get_method_args(self):
args = BaseController._get_method_args(self)
args['campaign'] = model.Company.get(args['campaign_id'])
return args
El vie, 16-05-2008 a las 13:38 -0700, Jonathan Vanasco escribió:
I'm a little unclear on the better ways to deploy a Pylons app.
My production servers run nginx -- is it better to use some fastcgi
support (if so, how?) or just do a paster serve and proxy to that
port?
apache + mod_wsgi is
what is your platform?
i just tried fcgid on centos 5.1 not long ago, with
mod_fcgid-2.1-3.el5 from epel.repo + apache (version come with
centos2.5) + python 2.4, following this wiki
On Mon, May 19, 2008 at 10:43:06AM -0700, [EMAIL PROTECTED] wrote:
what is your platform?
i just tried fcgid on centos 5.1 not long ago, with
mod_fcgid-2.1-3.el5 from epel.repo + apache (version come with
centos2.5) + python 2.4, following this wiki
Is it possible with paster (through .ini files?) to set the max file
descriptors available to it? I guess otherwise I'll have to write a
wrapper script and do a ulimit.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Mon, May 19, 2008 at 12:35 AM, Wichert Akkerman [EMAIL PROTECTED] wrote:
Previously Aaron R wrote:
I did something similar using the __before__ method
class CustomerController(BaseController):
def __before__(self):
if 'cust_id' in request.environ['pylons.routes_dict']:
On Sun, May 18, 2008 at 12:44 PM, Ross Vandegrift [EMAIL PROTECTED] wrote:
On Fri, May 16, 2008 at 01:38:24PM -0700, Jonathan Vanasco wrote:
I'm a little unclear on the better ways to deploy a Pylons app.
My production servers run nginx -- is it better to use some fastcgi
support (if so,
On Mon, May 19, 2008 at 12:01 PM, Anil [EMAIL PROTECTED] wrote:
Is it possible with paster (through .ini files?) to set the max file
descriptors available to it? I guess otherwise I'll have to write a
wrapper script and do a ulimit.
Paster doesn't interpret config options itself. It merely
Anil wrote:
Is it possible with paster (through .ini files?) to set the max file
descriptors available to it? I guess otherwise I'll have to write a
wrapper script and do a ulimit.
It doesn't, and I'm not sure you actually can from inside the process.
My vague recollection is that you really
On Sun, May 18, 2008 at 7:10 AM, Moshe C. [EMAIL PROTECTED] wrote:
Hi,
I have two parallel applications running from the same host but on
different ports.
How do I configure Authkit so that each one creates a unique cookie.
Currently if you log into one app, you are also authenticated for
On Fri, May 16, 2008 at 11:16 AM, Anil [EMAIL PROTECTED] wrote:
I am trying to run pylons with google app engine and everything is
working perfectly locally, but when I upload the site live beaker
gives me the following error. Anyone have any idea on where to start
debugging?
I pushed some changes to WebHelpers 0.6-dev that may affect those
using the new helpers.
*** NO MORE MAGIC URLS ***
webhelpers.html.tags:
image()
javascript_link()
stylesheet_link()
auto_discovery_link()
webhelpers.html.tools:
button_to()
These functions no longer do magic
select() now handles int values and implicitly converts them to
strings for HTML. This allows you to link a select pulldown to an int
database value, and to use ints in your options lists. Thanks to
Christoph Haas for this patch, which helps my applications too.
neat!
is there a
so is Apache considered to be a good thing (through mod_wsgi ,
mod_python , or other ?)
i've been doing mod_perl dev for years, and have had some experience
with mod_python -- generally speaking, my experience is that if you
can avoid apache you're better off. i guess that's what is throwing
me
On May 16, 2008, at 11:16 AM, Anil wrote:
I am trying to run pylons with google app engine and everything is
working perfectly locally, but when I upload the site live beaker
gives me the following error. Anyone have any idea on where to start
debugging? http://pastebin.com/m7fc2a3c
Are you
No, not using Apache, just paster with two versions of development.ini with
different port parameters.
The authkit parameters are:
authkit.setup.method = form, cookie
authkit.form.authenticate.user.data = user:pw
authkit.cookie.secret = somestring
authkit.cookie.signoutpath = /cntr/signout
On
On Mon, May 19, 2008 at 9:07 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
is there a formencode patch too ;)
For what?
--
Mike Orr [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Mon, May 19, 2008 at 9:10 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
so is Apache considered to be a good thing (through mod_wsgi ,
mod_python , or other ?)
i've been doing mod_perl dev for years, and have had some experience
with mod_python -- generally speaking, my experience is
On May 20, 2:10 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote:
so is Apache considered to be a good thing (through mod_wsgi ,
mod_python , or other ?)
i've been doing mod_perl dev for years, and have had some experience
with mod_python -- generally speaking, my experience is that if you
can
21 matches
Mail list logo