Re: pyjamas + pylons

2009-02-06 Thread Tycon
Easy to work with is questionable when the first thing you encounter is an error during easy install of pyjamas. The menu widget displays incorrectly when you scroll the page (a basic widget and pretty much unusable) and there is no rich text editor. AFAIK no one is using pyjamas for a production

Re: storing formattable strings in the config file?

2009-02-06 Thread Tycon
maybe foo \x25(bar)s On Feb 6, 11:11 am, Jonathan Vanasco jonat...@findmeon.com wrote: i want to store something in my config file like     foo %(bar)s normally in python, i would do this     foo %%(bar)s to escape the string interpolation. paste doesn't like that.  anyone have a

Re: beaker_cache query_args when duplicate queries are in

2009-02-06 Thread Tycon
yes, you're right it's totally weird that the key beaker_cache uses for caching controller actios, doesn't include the action in it by default. My solution was to write my own decorator. On Feb 6, 1:52 pm, eleith ele...@gmail.com wrote: i've got a controller that will accept multiple same name

Re: appcelerator anyone?

2009-02-05 Thread Tycon
while i havent looked closely at appcelerator, I am impressed with the vision and knowledge that the creators seem to have about building rich internet applications and the emphasis on client side code. Again, this doesn't mean I think this is a good framework, certainly it doesn't seem to be a

Pylons on CYGWIN

2009-02-04 Thread Tycon
For people developing on Windows, Cygwin is a valuable tool, but beyond having access to unix shell utilities, you can also install some advanced software packages on Cygwin, like Python, Ruby, SQLite, etc. In fact it's possible to install Pylons and use that instead of using the regular windows

Re: Pylons vs Tomcat+GWT

2009-02-03 Thread Tycon
AnonymousGuy wrote: ..You do seem pretty intent on using GWT, no matter what advice is offered in this thread... I listen to advice from many different sources, and the advice in this thread ranks pretty low in its usefulness compared to the whole range of opinions that exist.

Re: Pylons vs Tomcat+GWT

2009-02-02 Thread Tycon
, or javascript libraries On Feb 1, 10:55 am, Michael Bayer mike...@zzzcomputing.com wrote: On Feb 1, 2009, at 12:19 AM, Tycon wrote: I'm not talking about facebook/youtube type sites, I'm talking about a real web application where users access information,  enter information, search and analyze

Re: Pylons vs Tomcat+GWT

2009-01-31 Thread Tycon
the comprehensive high level libraries that java provides. On Jan 31, 2:20 pm, MilesTogoe miles.to...@gmail.com wrote: Tycon wrote: I'm planning on using GWT only for client side code and doing all server calls using JSON, and not using GWT's RPC mechanism. So I guess that would avoid

Re: Pylons vs Tomcat+GWT

2009-01-31 Thread Tycon
because it's not ready so it's just a toy at this point, just like pyjamas, while GWT is used by real production websites (ever heard of gmail) On Jan 31, 5:54 pm, Alberto Valverde albe...@toscat.net wrote: Tycon wrote: The point of GWT is that you can use java for the client side code

Re: Pylons vs Tomcat+GWT

2009-01-31 Thread Tycon
application code. On Jan 31, 8:25 pm, Michael Bayer mike...@zzzcomputing.com wrote: On Jan 31, 2009, at 4:28 PM, Tycon wrote: I'm planning on using GWT only for client side code and doing all server calls using JSON, and not using GWT's RPC mechanism. So I guess that would avoid the problem

Re: Pylons vs Tomcat+GWT

2009-01-30 Thread Tycon
Is there a Rails-like framework for Java ? On Jan 30, 9:54 am, Jonathan Vanasco jvana...@gmail.com wrote: Java can take 10-20x longer to develop and manage than php / perl / python / etc.  When you factor in rapid/agile frameworks like Pylons, Rails, Django, Catyalyst, Cake, etc the

Re: Pylons vs Thundercats

2009-01-30 Thread Tycon
How many request per seconds can the thundercats serve ? On Jan 30, 11:19 am, Mike Orr sluggos...@gmail.com wrote: On Fri, Jan 30, 2009 at 11:00 AM, kai kai.keliik...@gmail.com wrote: You can't really draw comparisons between pylons and thundercats. Pylons and He-Man is an entirely

Re: Pylons vs Thundercats

2009-01-30 Thread Tycon
wrote: On Fri, Jan 30, 2009 at 11:26 AM, Tycon adie...@gmail.com wrote: How many request per seconds can the thundercats serve ? Old thundercats or new thundercats? -- []' - Walter waltercruz.com --~--~-~--~~~---~--~~ You received this message because

Re: best ways to deal with bool values in config ?

2009-01-23 Thread Tycon
I was just responding to other people's posts, and I'm not the only person to ever criticize python (while still acknoledging its strengths). On Jan 23, 1:45 am, Alberto Valverde albe...@toscat.net wrote: Mike Orr wrote: On Thu, Jan 22, 2009 at 9:43 PM, Tycon adie...@gmail.com wrote

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
This is another example of the flawed, broken code known as Paste. Pylons should decouple itself from Paste On Jan 22, 12:11 pm, Mike Orr sluggos...@gmail.com wrote: On Wed, Jan 21, 2009 at 4:30 PM, Jonathan Vanasco jonat...@findmeon.com wrote: i store a lot of stuff in config, much of

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
I would gladly throw python away if only ruby matched its performance. On Jan 22, 3:48 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Jan 22, 1:14 pm, Tycon adie...@gmail.com wrote: This is another example of the flawed, broken code known as Paste. Pylons should decouple itself

Re: python -3 switch

2009-01-22 Thread Tycon
The easiest way to use any specific version of python (and any options you need) is to explicitly invoke the python executable from the shell (e.g. bash), for example: $ python2.6 -3 $(which paster) serve development.ini On Jan 22, 4:20 am, Gustavo Narea m...@gustavonarea.net wrote: On

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
: On Jan 22, 8:21 pm, Tycon adie...@gmail.com wrote: I would gladly throw python away if only ruby matched its performance. There's another option you may be interested, in case you haven't heard of it: C. It's *very* fast. On Jan 22, 3:48 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote

Re: RegistryMiddleware is a major overhead

2009-01-20 Thread Tycon
empirical data is that if you comment out the RegistryManager in config/middleware.py, you get much better req/sec (but you cant use any of the gloabals...). In fact, isn't the whole purpose of this registry facility to enable request-local objects (such as the request object) to be accessed as

RegistryMiddleware is a major overhead

2009-01-19 Thread Tycon
Benchmarks indicate it is taking as much as 20% of request handling time (not including the user action). The question is why is it even necessary to use this registry facility ? Similarly, other request handling operations such as creating the request object may also be redundant, because the

Re: FormEncode and i18n

2009-01-17 Thread Tycon
pylons has an ugly hack to make form encode translations work - by using the PylonsFormEncodeState which has a translation method as attribute, as the default state object. So in effect if you try to use a different state object, then translations won't work. On Jan 17, 10:25 am, mickolka

Re: Recommended production deployment

2009-01-14 Thread Tycon
PM, Tycon adie...@gmail.com wrote: Im using Ubunto 8.04 LTS and running the test using ab -n 1 -c 10 to localhost, in order to focus on the request handling code in the server stack and remove or reduce the weight of all other application logic such as db access and page rendering

Re: Recommended production deployment

2009-01-13 Thread Tycon
I think CherryPy is awesome, much better than Paster HTTP (which cant even do HTTPS). In general I prefer to separate the web server and app server (over the embedded approach) as it is more modular, flexible and scalable. But embedded deployment has a theoretical performance advantage because

Re: Recommended production deployment

2009-01-13 Thread Tycon
to use standalone CherryPy over apache +modwsgi embedded mode. On Jan 13, 6:52 am, Tycon adie...@gmail.com wrote: I think CherryPy is awesome, much better than Paster HTTP (which cant even do HTTPS). In general I prefer to separate the web server and app server (over the embedded approach

Re: Recommended production deployment

2009-01-13 Thread Tycon
: On Jan 14, 10:42 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Jan 13, 2009 at 6:52 AM, Tycon adie...@gmail.com wrote: Last word on modwsgi and its daemon mode, which is similar to reverse proxy and fcgi in that it separates the web server and app server. As such, it has the same

Re: Recommended production deployment

2009-01-13 Thread Tycon
doubt if Apache could match standalone pylons using CherryPy. On Jan 13, 8:36 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jan 14, 3:10 pm, Tycon adie...@gmail.com wrote: Actually I have apache+modwsgi running flawlessly, and everything I said is based on meticulous performance

Re: Recommended production deployment (was: Re: Is Pylons a meta-package ?)

2009-01-12 Thread Tycon
No, mod_wsgi is a hack. Embedded mode is bad, no serious website is running app server embedded in web server. Daemon mode is even more stupid, an unstable (and non scalable) way of using web server to manage the app server, and invent a new communication protocol between them, when standard ones

Re: which version of python y'all are using ?

2009-01-11 Thread Tycon
to consider... -Mike On Sat, Jan 10, 2009 at 11:44 PM, Tycon adie...@gmail.com wrote: I haven't tried python 3, but I heard its performance is still lagging compared to 2.6, in addition to the compatibility issues. So I don't see any reason to try to upgrade to it at the moment. On Jan 10

Is Pylons a meta-package ?

2009-01-11 Thread Tycon
Pylons has some useful things in it, however most of them are actually independent packages that pylons just depends on. The definition of a meta-package - in the context of Debian's APT, for instance - is a package that doesn't have any content of its own, but it's simply a list of dependencies

Re: Is Pylons a meta-package ?

2009-01-11 Thread Tycon
11, 12:45 pm, Mike Orr sluggos...@gmail.com wrote: On Sun, Jan 11, 2009 at 5:47 AM, Lawrence Oluyede l.oluy...@gmail.com wrote: On Sun, Jan 11, 2009 at 2:33 PM, Tycon adie...@gmail.com wrote: Pylons has some useful things in it, however most of them are actually independent packages

Re: which version of python y'all are using ?

2009-01-11 Thread Tycon
well I'm a performance person and I hate wasting time because of bad/ sloppy design and implementation. And even for low volume apps, a well tuned app will have a better response time, as well as higher load capacity and better sclalability. In pure request per second I made a bunch of tune-up

Re: Is Pylons a meta-package ?

2009-01-11 Thread Tycon
Orr sluggos...@gmail.com wrote: On Sun, Jan 11, 2009 at 1:19 PM, Tycon adie...@gmail.com wrote: I guess that means routes can be taken out if I remove the routes middleware and use my own url_for (which I was just about ready to do). What Pylons needs is 'wsgiorg.routing_args', 'routes.route

Re: Pylons on nginx, SSI, and memcached

2009-01-10 Thread Tycon
The nginx/ssi/memcached config for pylons is shown here: http://www.resheteretz.com/app/blog/index.php?option=com_contentview=articleid=46:pylons-nginx-ssi-and-memcachedcatid=31:generalItemid=46 On Jan 9, 12:51 pm, Joshua Bronson jabron...@gmail.com wrote: On Fri, Jan 9, 2009 at 3:36 PM,

which version of python y'all are using ?

2009-01-10 Thread Tycon
I performed some benchmarks on python 2.5 vs 2.6, using requests for simple pages as well as complex pages (with two-level db access) and I noticed python 2.6 gives about 4-5% better performance as shown in the request per second throughput. But python 2.6 is not yet available as a standard

Pylons on nginx, SSI, and memcached

2009-01-09 Thread Tycon
Does anyone have such a configuration working ? Basically it means that on every request nginx will use the URL as the key to perform a lookup on memcached and serve the page from there if it exists. If it's not cached then it will forward the request to pylons which will produce the page and

Re: Pylons on nginx, SSI, and memcached

2009-01-09 Thread Tycon
. On Jan 9, 3:40 am, Tycon adie...@gmail.com wrote: Does anyone have such a configuration working ? Basically it means that on every request nginx will use the URL as the key to perform a lookup on memcached and serve the page from there if it exists. If it's not cached then it will forward

Re: session auto-save

2009-01-08 Thread Tycon
Forgot to mention another bug in session cache: The _creation_time is updated to now every time the session is saved. On Jan 7, 11:03 pm, Tycon adie...@gmail.com wrote: Just to clarify, this fix is not really an auto-save like I initially suggested. The fix is basically a deferred-save

Cache middleware - what is it for exactly ?

2009-01-08 Thread Tycon
What does it actually do that we need to have a middleware for it that executes in every request ? Does it do anything besides insert a reference to some Cache Manager into the environment ? If so, then why not have the Cache Manager as a regular global object ? In fact, when using memcache

Re: Cache middleware - what is it for exactly ?

2009-01-08 Thread Tycon
). On Jan 8, 10:51 am, Ben Bangert b...@groovie.org wrote: On Jan 8, 2009, at 4:12 AM, Tycon wrote: What does it actually do that we need to have a middleware for it that executes in every request ? Exactly what you said next. Does it do anything besides insert a reference to some Cache

Re: session auto-save

2009-01-07 Thread Tycon
controllers and templates. The seesion will be save if and only if it has been modified, that is if an attribute was assigned or deleted. On Jan 6, 8:35 pm, Tycon adie...@gmail.com wrote: The session object is a very useful feature of pylons and is core to any web application. In pylons the session

Re: session auto-save

2009-01-07 Thread Tycon
' flag themselves, in addition to letting sessions auto-save   merely upon access (just to be sure), or something as Tycon suggests.   Many people end up calling save() multiple times because they need to   put stuff in the session in various places and ensures its saved, when   really

Re: session auto-save

2009-01-07 Thread Tycon
') session['item1']='val1' session.save() session['item2']='val2' session.save() return render('/hello.html') On Jan 7, 2:16 pm, Ben Bangert b...@groovie.org wrote: On Jan 7, 2009, at 11:14 AM, Tycon wrote: I agree that it's better to let users set the dirty flag

Re: session auto-save

2009-01-07 Thread Tycon
sessions auto-save merely upon access (just to be sure), or something as Tycon suggests. Many people end up calling save() multiple times because they need to put stuff in the session in various places and ensures its saved, when really, they should be marking it 'to-be-saved' so its done just

Re: session auto-save

2009-01-07 Thread Tycon
that eliminate redundant loads (before every save) and saves (after first access). On Jan 7, 10:39 pm, Tycon adie...@gmail.com wrote: That's exactly what my fix does, it makes session.save() be deferred by setting a flag to perform the actual save at the end of the request in the session middleware. You

session auto-save

2009-01-06 Thread Tycon
The session object is a very useful feature of pylons and is core to any web application. In pylons the session objects acts like a dictionary that you can access and modify, as well as save it to a storage manager which can be memory, file, dbms, memcached, etc. Normally you want to save

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-05 Thread Tycon
: On Jan 3, 2009, at 12:34 AM, Tycon wrote: but the PrefixMiddleWare also doesn't seem to be setting the WSGI environment url_scheme (nor request.scheme). The PrefixMiddleware code never looks up HTTP_X_FORWARDED_PROTO and doesn't set the url scheme in the wsgi environment. So that needs

Re: url_for / redirect_to RAW mode

2009-01-05 Thread Tycon
, 9:54 am, Ben Bangert b...@groovie.org wrote: On Jan 4, 2009, at 2:29 PM, Tycon wrote: from the url_for doc string :    If no route by that name is found, the string is assumed to be a raw URL.    Should the raw URL begin with ``/`` then appropriate SCRIPT_NAME data

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-05 Thread Tycon
, this is only in trunk:http://svn.pythonpaste.org/Paste/Deploy/trunk/docs/news.txt Try: easy_install PasteDeploy==dev Tycon wrote: PasteDeploy 1.3.2 Paste 1.7.2 According to (non)-easy-install these are the best match version, and it's already the active version in easy-install.pth, so

Re: url_for / redirect_to RAW mode

2009-01-05 Thread Tycon
underscore you would have to do some ugly (and expensive) manipulation: for key in params.keys(): new_key = key + '_' params[new_key] = params[key] del params[key] url = url_for('/page', **params) That is horrible On Jan 5, 12:18 pm, Tycon adie...@gmail.com wrote: and users can easily

Re: url_for / redirect_to RAW mode

2009-01-05 Thread Tycon
and users can easily concatenate the query string to the url by themselves, so not much point to allow that option. I like the params dict suggestion. On Jan 5, 12:11 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Jan 5, 11:57 am, Mike Orr sluggos...@gmail.com wrote: On Mon, Jan 5,

Re: url_for / redirect_to RAW mode

2009-01-05 Thread Tycon
, 2009 at 12:35 PM, Tycon adie...@gmail.com wrote: And I dont like the trailing underscore idea, because it would be a mess to deal with in most common use cases like: params = dict(request.params) url = url_for('/page', **params) With the params dict suggestion this will be written

Re: url_for / redirect_to RAW mode

2009-01-05 Thread Tycon
Also lets not forget that keyword args can't represent a multi-dict which is allowed for the request parameters. That's why it was a bad idea from the start to use keyword args for the params. On Jan 5, 5:57 pm, Mark Ramm mark.mchristen...@gmail.com wrote: So what about having a 'params'

Re: Problems with pylons.decorators.validate

2009-01-04 Thread Tycon
formencode.htmlfill.render(content, defaults=defaults, errors=errors, **htmlfill_kwargs) return decorator.decorator(wrapper) On Jan 4, 4:48 am, Mike Orr sluggos...@gmail.com wrote: On Sun, Jan 4, 2009 at 3:57 AM, Tycon adie...@gmail.com wrote: Using this decorator has greatly simplified my

Re: Problems with pylons.decorators.validate

2009-01-04 Thread Tycon
for this decorator/ handler architecture. On Jan 3, 4:17 pm, Tycon adie...@gmail.com wrote: I was trying to use this decorators like this: @validate(schema=MySchema(), form='action') def action(self):      if request.method=='GET':             return render('/form.mako')      else

Re: Problems with pylons.decorators.validate

2009-01-04 Thread Tycon
())} Email ${h.text('email')} form:error name=email br Email ${h.text('email')} form:error name=name br ${h.submit('register', 'Register')} ${h.end_form()} On Jan 4, 8:21 am, Tycon adie...@gmail.com wrote: The validation state can be set using the validation_ctx method

Re: Problem with redirect_to and SSL

2009-01-04 Thread Tycon
you need to set this header in apache so Routes will know that the original request was https: RequestHeader set X_URL_SCHEME https Use this only in the ssl virtual host so your site will be accessible either with http or https. On Jan 4, 4:53 am, Andre Kolell

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-04 Thread Tycon
to to map logical URLs. On Jan 4, 1:03 pm, Tycon adie...@gmail.com wrote: Here's a new PrefixMiddleware that works correctly: class PrefixMiddleware(object):     def __init__(self, application, config):         self.application = application         if 'url_prefix' in config

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-04 Thread Tycon
the PrefixMiddleware at the end of config/middleware.py: app = PrefixMiddleware(app, config) return app On Jan 3, 12:34 am, Tycon adie...@gmail.com wrote: but the PrefixMiddleWare also doesn't seem to be setting the WSGI environment url_scheme (nor request.scheme). The PrefixMiddleware code never

Re: Ten reasons why couchdb is better than (off topic)

2009-01-04 Thread Tycon
Oracle XML-DB is not client/server ? hahahahahahahahhahahaha On Jan 4, 12:57 pm, Lawrence Oluyede l.oluy...@gmail.com wrote: 2009/1/4 Tycon adie...@gmail.com: Oracle XML-DB can do the same thing (and more) - that is, allow you to store documents in filesystem-like structure

Re: Problems with pylons.decorators.validate

2009-01-04 Thread Tycon
PylonsHQ ticket system is down (does it run on pylons?) On Jan 4, 4:48 am, Mike Orr sluggos...@gmail.com wrote: On Sun, Jan 4, 2009 at 3:57 AM, Tycon adie...@gmail.com wrote: Using this decorator has greatly simplified my form handling code, so if there is interest I can publish the source

Re: Problems with pylons.decorators.validate

2009-01-04 Thread Tycon
. And then you can use that info in your validators. The validation_ctx method is called by the decorator just before invoking the schema validation. On Jan 4, 3:42 pm, Mike Orr sluggos...@gmail.com wrote: On Sun, Jan 4, 2009 at 2:45 PM, Tycon adie...@gmail.com wrote: PylonsHQ ticket system is down

Re: url_for / redirect_to RAW mode

2009-01-04 Thread Tycon
: http://machine/page?arg=val On Jan 4, 2:29 pm, Tycon adie...@gmail.com wrote: from the url_for doc string :     If no route by that name is found, the string is assumed to be a raw URL.     Should the raw URL begin with ``/`` then appropriate SCRIPT_NAME data will     be added

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-03 Thread Tycon
that they should include it (after it's fixed) if they use a reverse proxy even without a prefix. On Jan 2, 11:32 pm, Ben Bangert b...@groovie.org wrote: On Jan 2, 2009, at 9:45 PM, Tycon wrote: I submitted a ticket (#554) for this bug, with a proposed fix. But there is another bug underlying

Problems with pylons.decorators.validate

2009-01-03 Thread Tycon
I was trying to use this decorators like this: @validate(schema=MySchema(), form='action') def action(self): if request.method=='GET': return render('/form.mako') else: return _process_form(self.form_result) But there are a few problems with this approach: 1.

Re: Ten reasons why couchdb is better than (off topic)

2009-01-03 Thread Tycon
what's the TPC-C score for couchdb ? On Jan 3, 1:09 pm, mobil mobiledream...@gmail.com wrote: Ten reasons why couchdb is better than (off topic) http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-t... Guys I wrote up a small list of reasons why i think couchdb is way

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-02 Thread Tycon
at all. On Fri, Jan 2, 2009 at 3:21 PM, Tycon adie...@gmail.com wrote: So no one is using this decorator for https ?? I guess it's only required for serious e-commerce websites, maybe there are no such pylons apps On Jan 1, 6:23 pm, Tycon adie...@gmail.com wrote: This decorator

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-02 Thread Tycon
wrote: On Jan 1, 2009, at 6:23 PM, Tycon wrote: This decorator is supposed to redirect HTTP GET requests to HTTPS. But guess what ? The query string in the request URI is lost, so the redirected (https) request will not have any request.params even if the original (http) request did

Re: pylons.decorators.secure.https throws away the query string ?

2009-01-02 Thread Tycon
Pylons is used for quite a few hip and serious websites (listed at the pylons wiki if you'd care to look it up) though my guess is that you Which of those sites do you consider hip and/or serious ? On Jan 2, 4:26 pm, Alberto Valverde albe...@toscat.net wrote: Tycon wrote: So no one

pylons.decorators.secure.https throws away the query string ?

2009-01-01 Thread Tycon
This decorator is supposed to redirect HTTP GET requests to HTTPS. But guess what ? The query string in the request URI is lost, so the redirected (https) request will not have any request.params even if the original (http) request did. --~--~-~--~~~---~--~~

Re: Do beaker session store supports using memcached ?

2008-12-31 Thread Tycon
...@gmail.com wrote: On Dec 31, 3:19 pm, Tycon adie...@gmail.com wrote: whatever you end up doing NEVER EVER DO a flush_all on memcached. Memcached is a global system service, it is not your private scratch pad. yessir ! though I've never considered a single memcached process as a global

Do beaker session store supports using memcached ?

2008-12-30 Thread Tycon
Cause if I use this setting in development.ini : beaker.session.type = ext:memcached beaker.session.url = 127.0.0.1:11211 then if I try to access the session global, I get this error: NotImplementedError: Memcache caching does not support iteration of all cache keys This is raised from Module

Re: Do beaker session store supports using memcached ?

2008-12-30 Thread Tycon
the same expiration. Storing each session attribute as a separate record is incorrect because memcached doesn't allow you to update/iterate/delete groups of records together. On Dec 30, 2:51 pm, Mike Orr sluggos...@gmail.com wrote: On Tue, Dec 30, 2008 at 1:10 PM, Tycon adie...@gmail.com wrote: So

Re: Monitoring tool for paster http server

2008-12-29 Thread Tycon
: 2008/12/28 Tycon adie...@gmail.com: For people running the web app using paster http server (usually behind a web server acting as a reverse proxy), what kind of tool do you use to monitor your app server (e.g. paster) ? I've heard of supervisor, daemontools etc, but for my purpose

Re: Monitoring tool for paster http server

2008-12-29 Thread Tycon
Dobravolskas dalius.dobravols...@gmail.com wrote: On Mon, Dec 29, 2008 at 12:36 AM, Tycon adie...@gmail.com wrote: For people running the web app using paster http server (usually behind a web server acting as a reverse proxy), what kind of tool do you use to monitor your app server (e.g. paster

Re: Having some trouble upgrading to Pylons 0.9.7

2008-12-28 Thread Tycon
Directories in URLS should ALWAYS have / at the end. That prevents a lot of confusion as well as help the web/app server that analyzes the URL to determine the proper prefixes. For example, to match anything under /static directory, you need to use a prefix pattern /static/ and not simply /static

Monitoring tool for paster http server

2008-12-28 Thread Tycon
For people running the web app using paster http server (usually behind a web server acting as a reverse proxy), what kind of tool do you use to monitor your app server (e.g. paster) ? I've heard of supervisor, daemontools etc, but for my purpose a simple shell script which acts as a parent

how many people actually use authkit, formbuild or tosca-widgets ?

2008-12-27 Thread Tycon
to me it seems like a waste of time to deal with some poorly written, poorly documented, poorly supported library that someone wrote with not much effort. Funny thing people spend way more time trying to figure out and use these libraries then either the time it took to write them or the time

Re: Opinion sought on example.com/username

2008-12-27 Thread Tycon
It's always a bad idea to mix different types of urls without having clearly defined separate prefixes for each. Basically it's like having a global namespace, and even worse is that you don't get ambiguity errors in case of overlaps, you get one url superseding the other (this also applies to

Re: Opinion sought on example.com/username

2008-12-27 Thread Tycon
the app directly from Paster http server (without a separate web server). On Dec 27, 12:54 am, Mike Orr sluggos...@gmail.com wrote: On Sat, Dec 27, 2008 at 12:33 AM, Tycon adie...@gmail.com wrote: It's always a bad idea to mix different types of urls without having clearly defined separate

Re: category support for flash

2008-12-27 Thread Tycon
The webhelpers.pylonslib.Flash class is kind of poor. It's a bad idea to flash a message about a previous operation after redirecting to an unrelated page. It's just as bad to use the session as temp storage for such things (incurs filesystem/db access if you use multi-process design to serve the

Re: Opinion sought on example.com/username

2008-12-27 Thread Tycon
wether to serve the file or proxy the request etc. They don't understand that this whole problem could be solved with using URLs with different prefixes. Hope this clarifies my point On Dec 27, 4:59 pm, Mike Orr sluggos...@gmail.com wrote: On Sat, Dec 27, 2008 at 1:26 PM, Tycon adie...@gmail.com

Re: Pylons Eclipse Pydev

2008-12-27 Thread Tycon
I wouldnt change the python executable (nor should you). /usr/bin/paster is a python source file, not an executable, so it should be passed to the real python executable as the first argument, for example: python /usr/bin/paster serve development.ini or more generally (which should work for

Re: Problem with redirect_to and SSL

2008-12-23 Thread Tycon
Right, when you use a reverse proxy setup, the proxy request is always http (not https) even if the original request was https. Then I set up the web server (nginx in my case) to redirect HTTP requests that have a https=on parameter to HTTPS, In nginx, you can do it like this: server {