Alternate template systems, Buffet, conflicts with TurboGears, and probably other stuff [was Re: The Myghty Philosophy]

2006-12-28 Thread Cliff Wells
Shannon -jj Behrens wrote: By the way, before this thread gets out of control, I strongly believe templating engines are a matter of engineering taste. Pick one you (and your team) like, and let other developers pick ones they like. Pylons doesn't tie you to any of them. Speaking of, I'm a

ANN: Breve - Pylons-compatible template engine

2007-01-05 Thread Cliff Wells
Hi all, It's not 100% finished (there's a small todo list on the site), but I doubt there will be any breaking changes coming any time soon. Breve is a Stan-like template engine that works with any Buffet-compatible framework (Pylons, TurboGears, etc). http://breve.twisty-industries.com/

template engines and configuration data

2007-01-06 Thread Cliff Wells
Greetings, So having finished my first iteration of Breve, I've come across a glaring incompatibility between how TurboGears and Pylons interact with template engines: specifically how configuration information is passed into the template. It seems TurboGears (which more or less defines

Re: ANN: Breve - Pylons-compatible template engine

2007-01-08 Thread Cliff Wells
Just a quick update: I've fixed a handful of bugs and added a feature or two, and most importantly, Breve is now in the Cheese Shop so it can be easy_installed. Regards, Cliff Cliff Wells wrote: Hi all, It's not 100% finished (there's a small todo list on the site), but I doubt

Re: how to build a portlet style site?

2007-01-18 Thread Cliff Wells
On Wed, 2007-01-17 at 12:55 +, James Gardner wrote: Hi Paul, I'm developing a new templating system called art which handles this particular case. Instead of using a controller to call a template and display the result, the template effectively defines which content it requires and

Re: Pylons powered-by logo

2007-01-22 Thread Cliff Wells
On Mon, 2007-01-22 at 15:19 +, ToddG wrote: http://pylons.tgtg.org/powered/ Was this not already on the Wiki? I downloaded one of these for the Breve site a few weeks ago following link from http://pylonshq.com/project/ under Other Wiki Areas/Propaganda Cliff

Re: [Paste] Paste's HTTP server thread pool (reliability)

2007-02-02 Thread Cliff Wells
On Fri, 2007-02-02 at 16:03 -0600, Ian Bicking wrote: Shannon -jj Behrens wrote: The specific project we're working on involves fetching other URLs, which is something that can block in awkward ways. We have some ideas to avoid that (probably not performing the subrequests in the

paste recursive

2007-02-05 Thread Cliff Wells
Hi, I've been toying with the notion of having templates have more control over how they are rendered by allowing them to request fragments from an application. I did a simple test implementation that simply used urllib2 to call back into the Pylons application as a completely separate request,

Re: ANN: AuthKit 0.3.0pre4

2007-02-16 Thread Cliff Wells
On Fri, 2007-02-16 at 15:02 +, James Gardner wrote: I'd encourage anyone who is currently using the dev version to upgrade to 0.3.0pre4 so we can see if there are any issues before 0.3.0 is formally released in a couple of weeks time. It fails for me with:

Re: pylons, genshi and xml

2007-02-16 Thread Cliff Wells
On Tue, 2007-02-13 at 17:00 -0800, Ben Bangert wrote: On Feb 13, 2007, at 2:11 PM, Matt Good wrote: Yes, this was based on the Kid engine provided by TurboGears which uses module-style names to load templates. Last I checked Pylons also expected all template engines besides Myghty and

Re: Fast Python webserver

2007-02-18 Thread Cliff Wells
On Sun, 2007-02-18 at 17:50 +, James Gardner wrote: Unless I've set something up very wrong, that means that there is about a 1ms overhead using Nginx as a proxy compared to doing the requests directly but that using HTTP is about 5 times faster than using FastCGI. Should I be using a

Re: Fast Python webserver

2007-02-18 Thread Cliff Wells
On Sun, 2007-02-18 at 12:20 -0800, Bob Ippolito wrote: However, proxying is a lot easier to set up than FastCGI. Absolutely. That's what I always use. I doubt the small performance gain is going to add up to much in the way of scalability anyway ;-) What I typically use is a small cluster of

Re: Fast Python webserver

2007-02-18 Thread Cliff Wells
On Sun, 2007-02-18 at 23:42 +, James Gardner wrote: I've heard the same rumour in other places too though actually, particularly related to rails but also with Pylons eg: http://www.rkblog.rk.edu.pl/w/p/pylons-benchmark-various-servers/ This is the benchmark I remember seeing, although

Re: QuickWiki tutorial doesn't work for me. Error in paster make-config QuickWiki test.ini

2007-02-19 Thread Cliff Wells
On Mon, 2007-02-19 at 23:14 +, Valery wrote: File /usr/lib/python2.4/site-packages/Cheetah-2.0rc7-py2.4-linux- i686.egg/Cheetah/Parser.py, line 1445, in parse self.assertEmptyOpenDirectivesStack() File /usr/lib/python2.4/site-packages/Cheetah-2.0rc7-py2.4-linux-

Re: QuickWiki tutorial doesn't work for me. Error in paster make-config QuickWiki test.ini

2007-02-19 Thread Cliff Wells
On Tue, 2007-02-20 at 00:12 +, Valery wrote: Hi Cliff Believe it or not, this probably has nothing to do with Pylons. Rather, because Cheetah supports the python.templating_engines entry point, Cheetah is gets imported automatically whether you use it or not and apparently your

Re: Deploy applications and templates

2007-02-23 Thread Cliff Wells
On Fri, 2007-02-23 at 11:03 -0800, Jose Galvez wrote: you need to edit the setup.py file to include your templates. Change the package_data line to look like package_data={'dmetrix': ['i18n/*/LC_MESSAGES/*.mo', 'templates/*.*']} this will include all your template files. Of course this

Re: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Cliff Wells
On Mon, 2007-03-05 at 22:29 +0100, Christoph Haas wrote: But installing anything using easy_install - and be it just into /usr/local - is chaotic and hard to control. easy_install cannot even remove software properly. So I don't think I would want anything than a binary deb package on my

Re: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Cliff Wells
On Mon, 2007-03-05 at 23:42 +0100, Piotr Ozarowski wrote: [Cliff Wells, 05.03.2007] On Mon, 2007-03-05 at 22:29 +0100, Christoph Haas wrote: But installing anything using easy_install - and be it just into /usr/local - is chaotic and hard to control. easy_install cannot even

Re: Pylons integrated desktop apps?

2007-03-11 Thread Cliff Wells
On Sat, 2007-03-10 at 13:38 -0800, iain duncan wrote: Hi folks, I am just wetting my feet with pylons. I am curious whether anyone on here has experience integrating desktop apps with pylons projects, and if so, would they care to share opinions on feasability, when it is worth, how it went,

Re: Still not working

2007-03-20 Thread Cliff Wells
On Tue, 2007-03-20 at 10:50 -0700, Jamie wrote: Thanks for the suggestions; unfortunately it's still not working. There was nothing in /var/llog/messages, but I disabled selinux anyhow. I'm still getting a file not found error. I beginning to wonder if I have a deeper system issue though.

Re: formbuild questions

2007-03-20 Thread Cliff Wells
On Tue, 2007-03-20 at 09:16 +, James Gardner wrote: The relevant sections of the manual (http://formbuild.org/docs/manual.html) to get you started are I seem to recall (perhaps incorrectly) that formbuild was being deprecated/discontinued/merged with another project. Is this the case or

Re: Still not working

2007-03-21 Thread Cliff Wells
On Wed, 2007-03-21 at 21:50 +, Jamie wrote: Thanks. Unfortunately I just read your message now after a day of building the x64 version of CentOS. :-( I haven't gotten to the point to where I'm tackling the production version with mod_python. After installing the OS, I added Postgres,

Re: AuthKit using database for users, groups, roles?

2007-03-26 Thread Cliff Wells
On Thu, 2007-03-22 at 18:48 -0400, Chris Shenton wrote: I've written a HOWTO on what I did at http://pylonshq.com/project/pylonshq/wiki/PylonsWithAuthKitDatabase Feedback, sanity checks and corrections welcomed. I'm sure it's far from optimal but hope it will help other folks get

RE: Pylon with Apache

2007-04-27 Thread Cliff Wells
On Fri, 2007-04-27 at 07:36 -0600, Orr, Steve wrote: What are the advantages/disadvantages pros/cons to doing a proxy instead of just using mod_python? Typically, proxying is: 1. easier to setup than mod_python 2. easier to upgrade Python (no mod_python/python version issues) 3. doesn't

Re: Session store

2007-04-27 Thread Cliff Wells
On Fri, 2007-04-27 at 17:24 -0700, Shannon -jj Behrens wrote: This topic is covered very nicely in Building Scalable Web Sites and Scalable Internet Architectures. Okay, one more plug for these books and there's going to be a demand for full disclosure ;-) Cliff

Re: Pylons Evaluation -Questions

2007-04-28 Thread Cliff Wells
On Fri, 2007-04-27 at 17:27 -0700, Shannon -jj Behrens wrote: On 4/27/07, Cliff Wells [EMAIL PROTECTED] wrote: Out of curiosity, how is this ugly? This should be mostly handled transparently by the proxy (i.e. sends same sessions to same backend). If one Web server dies, all the users

Re: Pylons Evaluation -Questions

2007-04-28 Thread Cliff Wells
On Sat, 2007-04-28 at 08:07 -0400, Dan wrote: IMHO. I never implemented memcache, but the distributed memory concept is *not* by itself scalable architecture. The key is session data. Typically (as in default Pylons setup) session data is tied to physical hardware... your web server. To

Re: Pylon with Apache

2007-04-28 Thread Cliff Wells
On Sun, 2007-04-29 at 01:42 +, Graham Dumpleton wrote: On Apr 28, 6:40 am, Cliff Wells [EMAIL PROTECTED] wrote: On Fri, 2007-04-27 at 07:36 -0600, Orr, Steve wrote: What are the advantages/disadvantages pros/cons to doing a proxy instead of just usingmod_python? Typically

Re: Pylon with Apache

2007-04-29 Thread Cliff Wells
On Sun, 2007-04-29 at 11:21 +0200, Wichert Akkerman wrote: There is also another way of integrating with apache: http://www.rkblog.rk.edu.pl/w/p/mod_wsgi/ When I saw this module, I thought oh, cool and actually (briefly) considered trying to port it to Nginx, but came back to the arguments I

Re: Serving static content

2007-04-30 Thread Cliff Wells
On Mon, 2007-04-30 at 01:09 -0700, voltron wrote: Can one map the /public folder in a Pylons web application to a folder declared for use by a separate web-server? This is a question about your webserver, not Pylons. Simply tell your webserver to serve content from that directory (or any

Re: Serving static content

2007-05-01 Thread Cliff Wells
On Mon, 2007-04-30 at 10:34 -0700, voltron wrote: Thanks for your answers Cliff. I took a look at Nginx, it looks very interesting, would you care to post an example of your Nginx config file? Here's a pretty basic setup that proxies to a Pylons backend and serves static content from a

Re: Paster server in production

2007-05-15 Thread Cliff Wells
On Tue, 2007-05-15 at 17:34 +, __wyatt wrote: On May 15, 12:56 am, voltron [EMAIL PROTECTED] wrote: Hi all I have taken the advice from this forum and have installed nginx as a proxy to the paster server. this works well, but I´m really, really worried about using the Paster server

Re: Iteration in Mako templates

2007-05-16 Thread Cliff Wells
On Wed, 2007-05-16 at 14:10 -0400, Michael Bayer wrote: On May 16, 2007, at 12:34 PM, Dan wrote: The choice between CSS 'tables' and HTML 'tables' is purely a matter of opinion. Just to point out a totally different point-of-view, please see:

Re: Common files for a multi-app

2007-05-18 Thread Cliff Wells
On Fri, 2007-05-18 at 20:22 +, [EMAIL PROTECTED] wrote: I have been working with Pylons and have developed some standalone applications that are part of a larger site. I'm trying to find out what the best way is to reference common css/javascript files across all of the apps. Here is the

Re: Using pater with other servers

2007-06-03 Thread Cliff Wells
On Wed, 2007-05-30 at 04:57 -0700, voltron wrote: http://hiawatha.leisink.org/ the fact that Hiawatha's source code is free of security-bugs, makes Hiawatha the most secure webserver available. besides stating the obvious in a rather unbelievable way, this assertion is followed by:

Re: 'Pylons - carries the load'

2007-06-09 Thread Cliff Wells
On Tue, 2007-06-05 at 23:01 -0700, Mike Orr wrote: It's interesting that Zope, Twisted, TurboGears, and now Pylons are all splitting up from one big package into several smaller packages that can be used in other frameworks. Zope has spun off ZODB and is in the process of spinning off

Re: Pylons Logo Design

2007-06-27 Thread Cliff Wells
On Fri, 2007-06-01 at 09:57 +0100, James Gardner wrote: Ben and I have started thinking again about what really makes Pylons different from other web frameworks and how we can best highlight those differences in the Pylons marketing to help attract people to the community and see Pylons

Re: Comet Style App

2007-07-25 Thread Cliff Wells
On Tue, 2007-07-24 at 22:33 -0700, Jose Galvez wrote: take a look at this thread

Re: Trying to understand about Paste and web-server requirements

2007-07-25 Thread Cliff Wells
On Wed, 2007-07-25 at 12:12 -0700, walterbyrd wrote: On So Pylons requires fastcgi or mod_python, just like django or turbogears. It should also be noted TurboGears doesn't require FastCGI or mod_python either, as CherryPy is both a framework and an HTTP server. Regards, Cliff

Re: Trying to understand about Paste and web-server requirements

2007-07-25 Thread Cliff Wells
On Wed, 2007-07-25 at 12:12 -0700, walterbyrd wrote: On Jul 25, 6:04 am, Thomas Sidwick [EMAIL PROTECTED] wrote: Paste provides the glue that sticks these components together in a stack and allows them to communicate. Paste also provides a library of ready made middleware that can

Re: Are my Python/Pylons concerns justified?

2007-08-11 Thread Cliff Wells
On Sat, 2007-08-11 at 13:51 -0700, walterbyrd wrote: On Aug 9, 4:35 am, Marcin Kasperski [EMAIL PROTECTED] wrote: A lot of answers already, so just two points: a) There are plenty of cheap VPS hosting options (you get I guess it depends on what you call cheap. I can get php5

Re: page caching in mako and pylons

2007-08-11 Thread Cliff Wells
On Sat, 2007-08-11 at 11:19 -0700, Ben Bangert wrote: You bet, you can cache any part of your templates (their fragments), and you can cache function calls as well. This extends not just throughout Mako, but into Pylons as well, where you can register functions in your controllers to be

Re: page caching in mako and pylons

2007-08-11 Thread Cliff Wells
On Sat, 2007-08-11 at 16:25 -0700, Cliff Wells wrote: Is there some way to verify that caching is working (aside from turning up database logging that is)? Nevermind. I got it. Also, it would be useful if Memcached support were added as an option. An interesting article here: http

Pylons 0.9.6rc2 and AuthKit

2007-08-11 Thread Cliff Wells
I just started migrating my first Pylons app from 0.9.4 to 0.9.6rc2. Of course I'm running into problems with AuthKit (0.3.0pre5). I could probably hack them out, but I see right away that AuthKit 0.4presomething is kinda available and the docs for it are kinda available... should I upgrade or

Re: Pylons 0.9.6rc2 and AuthKit

2007-08-12 Thread Cliff Wells
Nevermind, I got 0.4 working well enough. On Sat, 2007-08-11 at 19:26 -0700, Cliff Wells wrote: I just started migrating my first Pylons app from 0.9.4 to 0.9.6rc2. Of course I'm running into problems with AuthKit (0.3.0pre5). I could probably hack them out, but I see right away

Re: [Paste] Can't start pylons app

2007-08-15 Thread Cliff Wells
On Wed, 2007-08-15 at 19:15 +0200, Neil Blakey-Milner wrote: Or, even better, use virtual-python or workingenv, and never install moving targets into your core Python library location. Out of curiosity, what does workingenv offer over the standard setuptools way of doing things?

Re: Pylons datagrid? And when will TG merge?

2007-08-24 Thread Cliff Wells
On Thu, 2007-08-23 at 21:12 -0700, walterbyrd wrote: Does Pylons have a datagrid component? Data laid out in a table, and click the column header to sort by that column. I am looking for something with basic CRUD, and a sort filter. Also something that can handle related data. I'd

Re: Pylons datagrid? And when will TG merge?

2007-08-24 Thread Cliff Wells
On Fri, 2007-08-24 at 06:04 -0700, walterbyrd wrote: On Aug 24, 4:23 am, Cliff Wells [EMAIL PROTECTED] wrote: I'd recommend looking at ExtJS. I'm unaware of any other open source JS But doesn't that only handle the front end stuff? What about the back- end logic? The grid control

Re: implementing a scalable (to multiple processors and multiple servers) Pylons webapp

2007-08-24 Thread Cliff Wells
On Fri, 2007-08-24 at 14:41 +0300, Pekka Jääskeläinen wrote: However, we started to think the practical issues with this in Pylons. In principle, making this work reliably means to distribute the session data so all server processes can access each session's data. I'm curious about this

Re: implementing a scalable (to multiple processors and multiple servers) Pylons webapp

2007-08-24 Thread Cliff Wells
On Fri, 2007-08-24 at 15:16 -0700, Cliff Wells wrote: On Fri, 2007-08-24 at 14:41 +0300, Pekka Jääskeläinen wrote: However, we started to think the practical issues with this in Pylons. In principle, making this work reliably means to distribute the session data so all server processes

Re: implementing a scalable (to multiple processors and multiple servers) Pylons webapp

2007-08-24 Thread Cliff Wells
On Sat, 2007-08-25 at 01:46 +0300, Pekka Jääskeläinen wrote: On 8/25/07, Cliff Wells [EMAIL PROTECTED] wrote: My only possible explanation is that either a) Nginx makes some attempt to track sessions itself and always passes the same IP back to the same

Re: implementing a scalable (to multiple processors and multiple servers) Pylons webapp

2007-08-24 Thread Cliff Wells
On Sat, 2007-08-25 at 01:42 +0300, Pekka Jääskeläinen wrote: Apache 2.2 has a mod_proxy_balancer. If performance is a concern, you should go with the CherryPy WSGI server. use = egg:PasteScript#cherrypy instead of

Re: implementing a scalable (to multiple processors and multiple servers) Pylons webapp

2007-08-25 Thread Cliff Wells
On Sat, 2007-08-25 at 20:24 +0300, Pekka Jääskeläinen wrote: On 8/25/07, Ben Bangert [EMAIL PROTECTED] wrote: I'd highly suggest memcached rather than database backend. It's easy to setup, and of course, very fast. :) Yes, but as far as I know, memcached objects can

Re: Locking a page?

2007-09-06 Thread Cliff Wells
On Thu, 2007-09-06 at 17:07 -0400, David Turner wrote: Don't do this. There is no way to make 100% certain that you don't end up with stale locks. Sure, you can have an ajaxy thing that pings the server every minute or so to say, I'm still editing this, but then the user goes off to lunch

Re: Reducing pylons app memory usage?

2007-10-22 Thread Cliff Wells
On Thu, 2007-10-18 at 12:18 +0200, Marcin Kasperski wrote: I am watching with interest efforts to port WSGI to nginx which show up on some lists. Nevertheless, it seems it will take some time... Actually I believe Manlio's implementation is usable right now for WSGI 2.0, with WSGI 1.0 support

Re: Reducing pylons app memory usage?

2007-10-22 Thread Cliff Wells
On Mon, 2007-10-22 at 23:24 +, Graham Dumpleton wrote: The complexity I am referring to is not in configuring nginx, but that you also have to install and configure some separate supervisor system which starts up and ensures that your backend process is running. I think this argument

Re: Running pylons with nginx + mod_wsgi

2007-11-16 Thread Cliff Wells
On Fri, 2007-11-16 at 23:34 +0200, Mikael Lepistö wrote: Hi! Has anybody actually managed to configure nginx + mod_wsgi to work with pylons? I manage to load static content from public directory, but for some reason I can't get requests to map to controllers and actions. Is there any

Re: Where in the reference docs is h.url_for (and other 'globals')?

2008-01-10 Thread Cliff Wells
On Tue, 2008-01-08 at 21:46 -0500, Yannick Gingras wrote: John_Nowlan [EMAIL PROTECTED] writes: Aren't docs supposed to help alleviate the need to go to the source? In `paster shell`, in a template, or in a controller action, you can do: print h.url_for.__module__ So you're agreeing

Re: Template knowing the path to static files

2008-01-22 Thread Cliff Wells
On Tue, 2008-01-22 at 11:11 -0800, Matt Haggard wrote: I've been developing without the filter option, and now that I have it, my hard-coded image paths no longer work. (e.g. they're looking at http://127.0.0.1:5000/images/something.gif when they should be looking at

Re: Having some trouble getting started with Pylons

2008-01-22 Thread Cliff Wells
On Tue, 2008-01-22 at 11:38 -0800, Mike Orr wrote: On Jan 22, 2008 8:53 AM, walterbyrd [EMAIL PROTECTED] wrote: I have been trying to follow the install instructions here. http://wiki.pylonshq.com/display/pylonsdocs/Home Everything was going okay until I tried this:

Re: Template knowing the path to static files

2008-01-22 Thread Cliff Wells
On Tue, 2008-01-22 at 19:37 -0800, Mike Orr wrote: You'll have to set up a handler for each file/directory in public if you want to do this, or put everything in a subdirectory of public which will appear in the URL (public/static/images - /static/images). Unless there's a way to make

Re: Having some trouble getting started with Pylons

2008-01-26 Thread Cliff Wells
On Sat, 2008-01-26 at 05:16 -0800, walterbyrd wrote: On Jan 26, 12:03 am, Cliff Wells [EMAIL PROTECTED] wrote: 3) run links (in the VPS) and try to connect to 127.0.0.1:5000 I edited development.ini, and set the host back to it's default of 0.0.0.0. I tried connecting

Re: Having some trouble getting started with Pylons

2008-01-26 Thread Cliff Wells
On Sat, 2008-01-26 at 05:16 -0800, walterbyrd wrote: On Jan 26, 12:03 am, Cliff Wells [EMAIL PROTECTED] wrote: 3) run links (in the VPS) and try to connect to 127.0.0.1:5000 I edited development.ini, and set the host back to it's default of 0.0.0.0. I tried connecting

Re: Having some trouble getting started with Pylons

2008-01-27 Thread Cliff Wells
On Sun, 2008-01-27 at 09:04 -0800, walterbyrd wrote: Here is what I have: /var/www/helloworld# ls *.ini development.ini test.ini /var/www/helloworld# wget http://127.0.0.1:8080 --09:54:01-- http://127.0.0.1:8080/ = `index.html.3' Connecting to 127.0.0.1:8080... failed:

Re: Having some trouble getting started with Pylons

2008-01-28 Thread Cliff Wells
On Mon, 2008-01-28 at 06:38 -0800, walterbyrd wrote: Now I'm having new troubles. I keep getting this error: ValueError: bad marshal data I have no idea what this means. It means you have corrupt .pyc files. If you're on *nix you can just execute: find myPylonsApp -name *.pyc -exec rm

Re: Publishing application with avahi

2008-01-28 Thread Cliff Wells
On Mon, 2008-01-28 at 16:23 -0500, Chris AtLee wrote: Hello Pyloneers, For one of the applications I'm writing, it would be really handy to have the app advertise itself with avahi so that clients on the network could automatically find it. What I've got so far is the following, which

Re: Hint: In case you are looking for button_to_remote

2008-02-18 Thread Cliff Wells
On Sun, 2008-02-17 at 13:06 -0800, Eric Ongerth wrote: So, you're thinking, OK, we have link_to_remote, which is what I've already used successfully to get one of my controllers to send back some text into my div, AJAX-style. Therefore why no button_to_remote? Why can I only do this with

Re: Pylons + Google App Engine

2008-04-09 Thread Cliff Wells
On Wed, 2008-04-09 at 08:50 -0700, Mike Orr wrote: The problem with C libraries is a lot bigger than just Google. It frustrates users on Windows and Macintosh to no end, and many of them give up trying to install Pylons/lxml/ToscaWidgets/wxPython and go on to something else. Precompiled

Re: paster shebang line

2008-04-11 Thread Cliff Wells
On Fri, 2008-04-11 at 19:06 -0500, Ian Bicking wrote: Cliff Wells wrote: Is there a particular reason paster uses #!/usr/bin/python rather than #!/usr/bin/env python Having an absolute path to a system directory prevents symlinking a different version of python

Re: paster shebang line

2008-04-12 Thread Cliff Wells
On Fri, 2008-04-11 at 22:00 -0700, Mike Orr wrote: On Fri, Apr 11, 2008 at 8:55 PM, Cliff Wells [EMAIL PROTECTED] wrote: The method I've been using is documented here: http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation I'd like to add, that except

Re: paster shebang line

2008-04-12 Thread Cliff Wells
On Fri, 2008-04-11 at 22:00 -0700, Mike Orr wrote: On Fri, Apr 11, 2008 at 8:55 PM, Cliff Wells [EMAIL PROTECTED] wrote: The method I've been using is documented here: http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation I'd like to add, that except

Re: paster shebang line

2008-04-12 Thread Cliff Wells
On Sat, 2008-04-12 at 18:08 -0700, Mike Orr wrote: On Sat, Apr 12, 2008 at 10:12 AM, Cliff Wells [EMAIL PROTECTED] wrote: Virtualenv, although it's not part of the stdlib, is straightforward and self-contained. You don't have to modify the system Python library to use it, so I

Re: paster shebang line

2008-04-12 Thread Cliff Wells
On Sat, 2008-04-12 at 16:51 -0500, Ian Bicking wrote: In a virtualenv context you wouldn't have had any problem. So... I can only say that future people will not have this problem, but there's nothing that can be done about your problem. Except for you to update the #! lines, which

Intermittent error on Pylons apps

2008-04-13 Thread Cliff Wells
I have intermittent errors on a couple Pylons sites when performing POST operations: Traceback (most recent call last): File /var/www/virtual/twisty-industries.com/lib/python2.5/PasteScript-1.3.6-py2.5.egg/paste/script/wsgiserver/__init__.py, line 624, in communicate req.respond() File

Re: Intermittent error on Pylons apps

2008-04-14 Thread Cliff Wells
Actually, the a different traceback that was emailed to me suggests the error might be in docutils, not Pylons. I'll investigate this before bugging the list more. Regards, Cliff On Sun, 2008-04-13 at 22:16 -0700, Cliff Wells wrote: I have intermittent errors on a couple Pylons sites when

Re: Multiple Pylons instances, processor affinity, and threads

2008-04-23 Thread Cliff Wells
On Wed, 2008-04-23 at 21:04 -0400, Christopher Weimann wrote: I suppose another option is using a Paste#http instance for each processor and nginx as a reverse proxy spreading the load over them. That's what I do. Cliff --~--~-~--~~~---~--~~ You received

Re: Newbie question - using cgi to serve my app

2008-05-02 Thread Cliff Wells
On Fri, 2008-05-02 at 10:55 -0700, Rudy wrote: Thanks for the reply. The only trouble with redirecting to the paster server is that I don't know if I can leave the paster running after I log out. Right now, I have to log in and start the paster server, then start another login window and

Re: notmm-0.2.10p8 released

2008-05-02 Thread Cliff Wells
On Fri, 2008-05-02 at 11:58 -0700, Etienne Robillard wrote: Hi, notmm-0.2.10p8 has just been released yesterday. It sports numerous bug fixes and also have several new features, examples and improved documentation. What is it? There's not much of a description on pypi and the home page

Re: Deployment Question

2008-05-16 Thread Cliff Wells
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

Re: Deployment Question

2008-05-20 Thread Cliff Wells
On Tue, 2008-05-20 at 13:49 -0400, Ross Vandegrift wrote: On Mon, May 19, 2008 at 09:10:27PM -0700, Jonathan Vanasco 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

Re: Upgraded to python 2.5 on centos but cannot get pylons

2008-05-20 Thread Cliff Wells
On Tue, 2008-05-20 at 16:24 -0700, lilinspace wrote: II had pylons working with python 2.4 but now I have upgraded to python 2.5. I tried running easy_install Pylons==0.9.6.1 easy_install hardcodes the path in the shebang line. If 2.5 is installed as /usr/bin/python2.5, try running

Re: Deployment Question

2008-05-21 Thread Cliff Wells
On Tue, 2008-05-20 at 18:13 -0700, Graham Dumpleton wrote: If one really has to use a software proxy, then also perhaps look at dedicated solutions like Pound. It may be the case that nginx serves okay as a proxy, but it isn't purpose built for that and so solutions like Pound may provide a

Re: Deployment Question

2008-05-21 Thread Cliff Wells
On Wed, 2008-05-21 at 01:13 -0700, Graham Dumpleton wrote: On May 21, 5:25 pm, Cliff Wells [EMAIL PROTECTED] wrote: I would say however that mod_proxy module in Apache is also purpose built for proxying, that doesn't mean it is a good idea to use it. The advantage Nginx brings over even

Re: Deployment Question

2008-05-21 Thread Cliff Wells
On Wed, 2008-05-21 at 11:55 -0400, Ross Vandegrift wrote: On Tue, May 20, 2008 at 02:01:26PM -0700, Cliff Wells wrote: According to Netcraft, Nginx is now deployed in front of over 1 million domains. Not nearly as much as Apache, but clearly not all of those are highly isolated

Re: Deployment Question

2008-05-22 Thread Cliff Wells
On Wed, 2008-05-21 at 17:53 -0700, Graham Dumpleton wrote: On May 22, 5:20 am, Cliff Wells [EMAIL PROTECTED] wrote: I think this is true for all of us. The difference is that the world has changed in the last couple of years and now there's more options to choose from. And by options I

Re: Deployment Question

2008-05-22 Thread Cliff Wells
On Thu, 2008-05-22 at 00:43 -0700, Cliff Wells wrote: If you try to scale a dynamic application and are going to pass part of the request off to Python on every request you are going to either fail spectacularly or spend an awful lot of money scaling horizontally. There's a reason people

Re: Deployment Question

2008-05-22 Thread Cliff Wells
One more option I've not seen mentioned is Cherokee: http://www.cherokee-project.com/ I've never used it in production (last time I experimented with it was a couple years ago and it wasn't mature enough), but it's reported to be quite fast, even edging out Nginx in several benchmarks.

Re: Deployment Question

2008-05-23 Thread Cliff Wells
On Fri, 2008-05-23 at 10:05 -0400, Ross Vandegrift wrote: I don't think that's such a ridiciulous claim! Consider the application server that hosts the apps that I write for my company's internal use. It hosts four or six Pylons applications and one Rails app. One of these apps handles

Re: How did you begin your fun with Pylons?

2008-05-23 Thread Cliff Wells
On Fri, 2008-05-23 at 11:06 +0200, Raoul Snyman wrote: But this is the exact response I was talking about. Instead of being gracious about something, some developers become defensive and then attack back. And Mike, this is not a personal attack on you, this is a trend I have seen in a

Getting rid of virtualenv

2008-05-24 Thread Cliff Wells
I know this is OT, but there's plenty of people in the know here, so maybe I can get some help. I decide to give virtualenv a spin on my laptop yesterday to test out some Python package. It didn't work out so I deleted the virtualenv directory I'd created for it, thinking it was an isolated

Re: Getting rid of virtualenv

2008-05-24 Thread Cliff Wells
Nevermind. In the tradition of figuring it out 2 minutes after posting a question I've resolved it. And in the interest of fairness, I don't think it was virtualenv's fault. Regards, Cliff On Sat, 2008-05-24 at 14:01 -0700, Cliff Wells wrote: I know this is OT, but there's plenty of people

Re: Cross-Project code sharing...modules/plugins what does Pylons use?

2008-05-25 Thread Cliff Wells
On Sat, 2008-05-24 at 16:21 -0700, Mike Orr wrote: But then that gets into the issue of the site template. If the inner app should be shown within the global header and sidebar, then you'd have to inherit the site template -- which doesn't work well across apps, plus you'd have to know

Re: Cross-Project code sharing...modules/plugins what does Pylons use?

2008-05-25 Thread Cliff Wells
On Sun, 2008-05-25 at 15:27 -0700, Mike Orr wrote: On Sun, May 25, 2008 at 11:49 AM, Cliff Wells [EMAIL PROTECTED] wrote: On Sat, 2008-05-24 at 16:21 -0700, Mike Orr wrote: But then that gets into the issue of the site template. If the inner app should be shown within the global

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Cliff Wells
On Fri, 2008-05-30 at 11:19 -0700, Shannon -jj Behrens wrote: * There were a couple good points made above about whether to run one or multiple copies of Paster. It's true that this is one place where Pylons/Python is very different from Rails/Ruby, as mentioned above. If you're mostly

Re: best practices for static resources

2008-06-16 Thread Cliff Wells
On Mon, 2008-06-16 at 13:03 +0200, Wichert Akkerman wrote: I am trying to figure out what the best practices for dealing with static resources such as CSS, Javascript and images are. With a default pylons setup every request goes through two StaticURLParser instances and files returned by

Re: best practices for static resources

2008-06-16 Thread Cliff Wells
On Mon, 2008-06-16 at 14:26 -0700, Cliff Wells wrote: On Mon, 2008-06-16 at 13:03 +0200, Wichert Akkerman wrote: I am trying to figure out what the best practices for dealing with static resources such as CSS, Javascript and images are. With a default pylons setup every request goes

Re: best practices for static resources

2008-06-17 Thread Cliff Wells
On Tue, 2008-06-17 at 10:36 +0200, Wichert Akkerman wrote: Previously Cliff Wells wrote: I usually just setup Nginx to handle whatever location my static content is at. It doesn't matter if Routes is setup to handle that location as the request never reaches Pylons. How do you do

Re: best practices for static resources

2008-06-18 Thread Cliff Wells
On Tue, 2008-06-17 at 19:55 -0700, Shannon -jj Behrens wrote: On Mon, Jun 16, 2008 at 2:37 PM, Cliff Wells [EMAIL PROTECTED] wrote: On Mon, 2008-06-16 at 14:26 -0700, Cliff Wells wrote: On Mon, 2008-06-16 at 13:03 +0200, Wichert Akkerman wrote: I am trying to figure out what the best

Re: response status when form validation fails

2008-08-22 Thread Cliff Wells
On Tue, 2008-08-19 at 11:43 +0200, Lawrence Oluyede wrote: I disagree. TCP is the transport protocol (which resides at the transport level of the stack). HTTP is an application protocol (which resides on top of the stack), and I'm pretty sure that the creators of HTTP intended to use 400

Re: response status when form validation fails

2008-08-22 Thread Cliff Wells
On Fri, 2008-08-22 at 18:43 -0700, Jonathan Vanasco wrote: question though -- what if the @validate received the right params, but there was a db error or some other server error. does that become another 4xxx code in your system, or are they all lumped into the same concept. how are those

  1   2   >