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
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
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
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
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
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.
, 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
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
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
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
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
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
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
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
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
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
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
:
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
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
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
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
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
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
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
:
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
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
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
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
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
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
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
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
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,
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
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
.
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
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
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
).
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
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
' 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
')
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
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
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
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
:
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
, 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
, 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
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
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,
, 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
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'
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
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
())}
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
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
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
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
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
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
. 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
:
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
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
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.
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
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
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
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
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.
--~--~-~--~~~---~--~~
...@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
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
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
:
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
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
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
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
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
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
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
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
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
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
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 {
83 matches
Mail list logo