Routes Patch/Suggestion as framework plugin
I've noticed that the current implementation of Routes requires you to have Routes accessible (as a package, not sub-package) from your PYTHONPATH or site-packages directory. If one wants to include it as a sub-package of their development environment (aka framework) such as framework_name_here.plugins.Routes, it won't work. In the application I recently deployed (with mod_python) the following changes to Routes worked perfectly without issue. It may be worth while to make the changes to the core Routes lib so it will be accessible no matter where its placed. 1. In __init__.py remove all code but the following: from base import Mapper from util import url_for, redirect_to from common import request_config __all__=['Mapper', 'url_for', 'redirect_to', 'request_config'] 2. put the removed code in a new file called common.py. 3. Change references to import request_config in base.py and util.py to from common import request_config Thats it! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Running Pylons with PHP
On 5/12/08, Syp [EMAIL PROTECTED] wrote: Hello -- Does anyone know if it's possible to run Pylons and PHP together on the same port? I'm trying to use a web analytics tool (Piwik) which requires PHP. Any suggestions? We do just this on developers.org.ua site. Frontpage is on pylons while blog is running on Wordpress. http://www.developers.org.ua/ http://www.developers.org.ua/blog/ I believe I posted my configs to pylons wiki. Basically we use Apache for PHP plus http proxy (ProxyPass directive) to forward to pylons app, which runs wsgi cherrypy server. HTH, Max. -- Max http://maxischenko.in.ua // http://www.linkedin.com/in/maksim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
deploying webob without long running processes?
I'm not sure where to ask this so sorry if it's OT. I know pylons is (optionall?) moving to WebOb, and I'd like to get more experience using it. I frequently find myself writing mini-apps for clients that need to be hosted in a crappy environment but really don't need to execute fast. Are there any examples around of how you might use webob in a cgi deployment scenario? Is this possible? thanks Iain --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: deploying webob without long running processes?
iain duncan wrote: I'm not sure where to ask this so sorry if it's OT. I know pylons is (optionall?) moving to WebOb, and I'd like to get more experience using it. I frequently find myself writing mini-apps for clients that need to be hosted in a crappy environment but really don't need to execute fast. Are there any examples around of how you might use webob in a cgi deployment scenario? Is this possible? There's a CGI runner in the wsgiref package. App Engine basically uses CGI, and the file for launching a Pylons/Paste-Deploy app with it basically will work elsewhere too: https://appengine-monkey.googlecode.com/svn/trunk/paste-deploy.py -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Beaker Trunk With Appengine
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/m7fc2a3c7 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Deployment Question
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? I've read a handful of ways on how-to-deploy apps, and all seem different. I've yet to see a comparison or this is THE way to do it document. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Deployment Question
From general chat on #pylons a lot of people prefer to proxy, or simply run paster. In my deployment Paster is serving directly to the world. I'm not sure anyone has taken up a comparison in the ways you speak of, at least I have not come across it. I'm sure it would be a welcomed test. On Fri, May 16, 2008 at 4:38 PM, Jonathan Vanasco [EMAIL PROTECTED] 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, how?) or just do a paster serve and proxy to that port? I've read a handful of ways on how-to-deploy apps, and all seem different. I've yet to see a comparison or this is THE way to do it document. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Deployment Question
On Fri, 2008-05-16 at 13:38 -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, how?) or just do a paster serve and proxy to that port? I've read a handful of ways on how-to-deploy apps, and all seem different. I've yet to see a comparison or this is THE way to do it document. Probably because THE way can never satisfy everyone =) Personally I proxy Nginx to paster or CP's wsgiserver. I find it a bit easier to debug than FastCGI. Cliff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---