Hello,
I am new to Pylons and currently do i18n-ed applications in TurboGears.
One thing I'd like to see coming from TG background is (semi-)automatic
handling of unicode decoding/encoding. E.g. in Turbogears I can setup
framework to decode request parameters from utf8 and encode it back to
On 12/19/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
I'm currently working on the extraction from genshi with help from
http://genshi.edgewall.org/wiki/GenshiRecipes/Localization, but the
regex presented there is too narrow. So far I've succeeded on extending
it a bit more, I can
On 12/19/06, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED] wrote:
http://trac.turbogears.org/turbogears/browser/trunk/turbogears/toolbox/admi18n/catalog.py
http://trac.turbogears.org/turbogears/browser/trunk/turbogears/command/i18n.py#L163
Last few days I've been looking quite a lot on
Hello,
I have created a Pylons project (with paster create --template=pylons
qw) and I am a bit intimidated with amount of data pre-generated for
me: 33 files with 573 lines in them (16Kb)! Similar situation in
TurboGears, btw.
Is it really necessarily? Is it because no one yet figured out how
Hello,
I want to thank everyone for your comments and an interesting discussion.
As for subject matter: I actually like the idea of putting setup code inside
the application vs. hiding it inside a framework. Partially because all this
web stuff is still being explored and experimented with and
Hello,
Can someone show the reasoning behind putting ';' (semicolon) in the
urls, like this one:
m.connect('user/new;preview', controller='user', action='preview',
conditions=dict(method=['POST']) )
Does the symbol have any special meaning? Where does it come from?
I wasn't able to find
Hello,
I am testing i18n support in Pylons and run into this error:
Myghty Template Error Error: Error(UnicodeDecodeError): 'ascii' codec can't
decode byte 0xd0 in position 0: ordinal not in range(128) File:
/home/max/projects/dou-trunk/site/doupy/doupy/templates/pages/contacts.myt
line 3
From
http://pylonshq.com/docs/0.9.4/internationalization.html#translations-within-templates
There is one complication though. gettext's xgettext command can only
extract strings that need translating from Python code in .py files.
This means that if you write _('Hello') in a template such as a
Hello,
What is a recommended way to work with multiple database through
SqlAlachemy?
I can use pylons.database.make_session() to create session explicitly
but what about automatic management (akin to what session_context
provides)?
Max
--~--~-~--~~~---~--~~
You'll want to setup another session_context similar to how the main
one is setup in pylons.database.
For example, in one of your models modules:
from paste.deploy import CONFIG
from sqlalchemy.ext import sessioncontext
from pylons.database import app_scope, make_session
dburi2 =
Another issue. If I use DynamicMetadata, as recommended in QuickWiki
tutorial, how am I supposed to connect it to correct session_context?
Do I need to create engine explicitly (via create_engine) and then call
meta.connect(engine)? If so, when this should happen?
Max.
On Jan 17, 2007, at 6:19 AM, Max Ischenko wrote:
TypeError: No configuration has been registered for this process or
thread
Your CONFIG object is automatically setup for you in paster shell, it
won't be when running it from your own script.
Can you please explain how should I setup CONFIG
Hello,
I'm struggling to setup SA/Pylons for a multidatabase env without much
luck.
As far as I understand, I need a session per database. In Pylons, I get
it for free via session_context binding. In other words, I have setup
a session_context object for each of the database I need to work
Hi,
Update: looks like I more or less solved the problem.
For each of the databases I need to get access through SA I have a code
like this in models/__init__.py:
blog_meta = DynamicMetaData()
def init_blog_meta(meta):
engine = get_db_engine('blog')
meta.connect(engine)
Hi,
On Jan 26, 6:02 am, Skip Montanaro [EMAIL PROTECTED] wrote:
I modified controllers/template/view to
def view(self, url):
raise TypeError, url
print sys.stderr, url
return render_response(/%s.myt % url)
If I visit (for
Hi,
From reading the docs at http://pylonshq.com/docs/0.9.4.1/module-
pylons.controllers.html I assume that new controller instance is
created to handle each incoming request and discarded after it is
processed. This means I can safely set and read self.foobar attributes
without worrying
Hello Shannon,
Some time ago you wrote:
I like to have a facility called action_results. It's a place where
I can put amessagethat will show up on the next page. It should
work whether aredirecthappens or not. In my old days, I use to put
it in the session so that it would survive if
On Feb 2, 3:39 pm, James Gardner [EMAIL PROTECTED] wrote:
Believe it or not you are in luck again. Ben has just implemented this.
If you upgrade to the latest paste and pylons dev you should be able to
access all the languages as request.languages.
Interesting. Look forward to seeing 0.9.5
Ben,
On Feb 6, 6:57 pm, Ben Bangert [EMAIL PROTECTED] wrote:
We're hoping to have 0.9.5 ready for PyCon, its main focus at this
point ticket-wise is i18n, unicode, and some documentation. I believe
there's a wiki page up with the 1.0 plans, not entirely sure on the
schedule yet though. :)
On Feb 6, 5:08 am, Pedro Algarvio, aka, s0undt3ch [EMAIL PROTECTED]
wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This mail is to announce a package, NoseBitten, which includes plugins
for 3 softwares, Trac, Nose and Bitten.
Intended audience are projects hosted on a Trac
Hi,
On Feb 10, 10:16 pm, Philip Jenvey [EMAIL PROTECTED] wrote:
We definitely need to solve this somehow for 0.9.5. I was already
thinking about adding *kwargs to create_engine, and possibly adding
kwargs to make_session and having them passthru to create_engine.
I think some might want to
Hi,
On Feb 12, 11:40 am, JfD [EMAIL PROTECTED] wrote:
I would like to build a web-based application for clinical research.
The system will be centered around a module for rapid data entry. No
thing special, but the forms should be generated on the fly based on
information passed to the view
On Feb 13, 1:49 am, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
Awesome! Look at the cool diff I had to apply to my code:
def decode_request(request, encoding=UTF-8, errors=strict):
...
I am curious, where do you put this hook in the code?
Max.
On Feb 19, 12:21 am, Bob Ippolito [EMAIL PROTECTED] wrote:
I'm curious as to why anyone would want to use FastCGI in the first
place if proxying is available? Implementation wise, there's very
little reason why FastCGI would be markedly faster or slower than the
HTTP protocol.
May be due
Hi,
On 26 фев, 07:54, Yves-Eric [EMAIL PROTECTED] wrote:
My problem is that the field name is used in the error display. For
example, with missing itypes, I get the following error:
itypes: Please select at least one.
What code does this? IIUC, FormEncode raises Invalid() exception
Hi,
I am trying to validate my XHTML page (generated with Pylons/Mako) and got
an error:
http://validator.w3.org/check?uri=http%3A%2F%2Ftesting.developers.org.ua%2F
Warning *Line 104 column 41*: cannot generate system identifier for general
entity norestart.
| a
Hello Robert,
On Mar 27, 1:33 pm, Robert Leftwich [EMAIL PROTECTED] wrote:
Obviously, w3c validators expects to be encoded as amp; while it isn't.
The url in question is generated with
| a href=${h.url_for(controller='selfupdate', svnup='yes',
norestart='yes')}Update/a
What should I
Hi,
On Apr 12, 5:55 pm, durumdara [EMAIL PROTECTED] wrote:
So I want to ask about Pylons:
Can I use Pylons under Apache?
Sure you can. Check out
http://docs.pythonweb.org/display/pylonscookbook/Deployment,
there are plenty of options.
We have PHP, Python sites (8-10 virtual hosts) and we
Hi,
I have got a traceback in Pylons app. The strange thing is it is not
displayed as other tracebacks in a pretty way, just ugly plain text http
response. And the traceback itself gives little clue about what actually
happened.
I am using Pylons 0.9.5 + Mako.
Exception happened during
Hi,
On Apr 15, 12:30 am, Michael Bayer [EMAIL PROTECTED] wrote:
If you're including non-ascii text inside of a Mako template, make
sure you specify a magic encoding comment at the top of the file:
http://www.makotemplates.org/docs/
documentation.html#unicode_specifying
Like you would
Hello,
Just wanted to share with you guys that the www.developers.org.ua site --
ukrainian software developers' community site -- runs Pylons in production
for about a week now and it Just Works (mostly). Server's load average got
higher than usual but I haven't made any optimization efforts so
Hello,
I noticed after upgrade to 0.9.5 that get_lang() returns a dict (e.g.
['uk']) while it used to return a plain code (e.g. 'uk'). Is it a bug
or a feature? ChangeLog doesn't mention it.
Max.
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
I am trying to setup authkit (0.3pre5) in my Pylons project (0.9.5) but for
some reason it doesn't work. When I raise 401/403 errors they are displayed
as is instead of being intercepted by authkit. I did inserted the
middleware:
app = authkit.authenticate.middleware(app,
Hi James,
On 4/16/07, James Gardner [EMAIL PROTECTED] wrote:
It looks like the middleware is setup incorrectly, it needs to go after
the httpexceptions middleware and before the error documents middleware.
http://authkit.org/docs/pylons.html#getting-started
You're right. I misread the
Hello Ian,
On 4/17/07, Ian Bicking wrote:
Max Ischenko wrote:
File /home/max/projects/dou-trunk/site/doupy/doupy/websetup.py,
line 54, in command
app_conf = appconfig('config:'+name, relative_to=conf_dir)
File /usr/lib/python2.4/site-packages/PasteDeploy-1.3-py2.4.egg/
paste
Hi,
On 4/18/07, Ian Bicking [EMAIL PROTECTED] wrote:
OK, i have rewritten it using pipeline: idiom. The TypeError is gone but
the app_conf returned still shows only 7 DEFAULT entries and none of my
application keys.
You'll have to point to your #mainapp configuration section; it can't
Hi,
I just started a project to develop a pylons controller that
implements automatic database administration (something like Django's
one or may be like Rails dynamic scaffolding).
...
I'm not an expert in Pylons and even in SQLAlchemy (and in Python as
well), so my code for sure is
Shannon -jj Behrens:
Unfortunately, I found authkit not well suited to my needs, so I
reluctantly wrote my own. You can read the code for authkit and make
your own decision.
Just out of curiousity, what're your needs?
I get the impression the AuthKit is quite sophisticated to match
On 4/19/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
(playfully)
Wait a minute! I came to Pylons to get *away from* XML situps!
Don't be a child!
Don't you know that the World Spy International obliged everyone to convert
their sources to a single format (XML-based) so that their
Hello,
On 5/3/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
There is a caveat in using methods like __before__. The base class'
implementation needs to be called explicitly (as with any super impl).
Which
means putting common logic into BaseController.__before__ poses the
threat
On 5/9/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
Are you using filter-with? I've seen problems with that and appconfig,
but I haven't been able fit it yet. Using filter-app/next works,
though.
Ugh, I just ran into this. I feel like a car hitting a brick wall ;)
Hmm. I thought
On 5/9/07, KyleJ [EMAIL PROTECTED] wrote:
On May 5, 3:08 am, Christoph Haas [EMAIL PROTECTED] wrote:
tmpl_options['mako.default_filters'] = ['decode.utf8']
You may wish to not use that option.
Second this.
I have *no* tmpl_options for Mako and it just works. Passing utf8-encoded
strings
On 5/11/07, andyprog [EMAIL PROTECTED] wrote:
Hi all,
(I'm using Pylons for the first time, so pls bear with me...)
I'm setting up a Pylons app with Mako + SQLAlchemy + MySQL + UTF-8
support
-- but I've had trouble finding one place with clear instructions on
how to do this,
so I've
Hi,
On 5/11/07, Mike Orr [EMAIL PROTECTED] wrote:
There are some sections of the docs.pythonweb.org that aren't public
yet. One is the beginning of a handbook-style manual to replace the
official documentation on the pylonshq site. The idea is that anybody
can contribute cookbook recipes
On 5/12/07, Gregory W. Bond [EMAIL PROTECTED] wrote:
i just installed this to give it a spin - when i went to bring up the
admin interface for my model i got an error saying it couldn't locate
my app
exceptions.ImportError: No module named myapp.lib.base
the myapp application is just a
On 5/15/07, Ben Bangert [EMAIL PROTECTED] wrote:
Max Ischenko wrote:
I have run into something like a bug.
I'm using beaker's session and if my controller method issues a redirect
the value I put in the session is not preserved. e.g.:
session['page_message'] = message
Hello,
On 5/16/07, Graham Stratton [EMAIL PROTECTED] wrote:
Hi all,
I see there's discussion about the issues with the @validate decorator
in the tracker. I've come across a few problems myself in the last
few weeks, so hopefully I can contribute here:
I have another @validate issue
On 5/16/07, Alberto Valverde [EMAIL PROTECTED] wrote:
$ paster shell development.ini
Command shell not known
Make sure there's a file called paster_plugins.txt inside your
egg_info directory with, at least, the following lines:
Pylons
PasteScript
That was it, thanks!
On a related
On 5/17/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
When there are errors and form is redisplayed to the user how the
template
can tell it (to display something like there were errors, please
correct
and resubmit)? From what I gather, htmlfill only fills individual
fields'
Hello Philip,
On 5/17/07, Philip Jenvey [EMAIL PROTECTED] wrote:
If you're running from the latest Pylons 0.9.5 project template, the
CONFIG object is already setup by the time the Globals constructor is
called. This is done by these lines at the top of middleware.make_app:
Yep. I got the
On 5/21/07, aaaron [EMAIL PROTECTED] wrote:
is there a simple way to configure my pylons app to write errors to
the log along with a timestamp? i've got the who, what, and where...
just need the when. :)
This should help:
logging.basicConfig(filename=logfile, mode='at+',
Hello,
On 5/18/07, Max Ischenko [EMAIL PROTECTED] wrote:
Any other superglobals won't have been setup by then, though. What
other ones do you need access to?
That's precisely the problem.
I have a mixed PHP/Pylons site and wanted to pre-generate some Mako
templates into HTML/PHP
On 5/23/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
So, any ideas how to detect changes in template files to re-generate
them
or at least generate everything at Pylons' application startup?
Perhaps there's something more specific for your situation, but using
make would do the
On 5/22/07, Mike Orr [EMAIL PROTECTED] wrote:
I'm about to deploy my Pylons application and need to daemonize it and
set up auto-restart if it dies...
My other question is, paster has a --monitor-restart option to restart
the server if it dies. But the Pylons Cookbook has recipes for
On 5/23/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
/usr/lib/python2.4/site-packages/Paste-1.3-py2.4.egg
/paste/registry.py,
line 177, in _current_obj
raise TypeError(
TypeError: No object (name: Buffet) has been registered for this thread
Same kind of error I got if I
On 5/24/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
But it's still a hack: I'll have to write a special controller that
will
return the html snippets I need.. Why I can't use Buffet API directly
and
resort to HTTP?
It seems that every framework fails to work very well if you don't
On 5/25/07, Mike Orr [EMAIL PROTECTED] wrote:
On 5/22/07, Ian Bicking [EMAIL PROTECTED] wrote:
My other question is, paster has a --monitor-restart option to restart
the server if it dies. But the Pylons Cookbook has recipes for
daemontools and supervisor2. Are these better than
Hi David,
On 5/29/07, David Smith [EMAIL PROTECTED] wrote:
Max, I have no problems by only using Unicode field-types in my model;
that
is, my sqlalchemy connection string does not contain anything related to
UTF-8. I haven't investigated my MySQL setup so thoroughly but it seems to
work
On 5/29/07, David Smith [EMAIL PROTECTED] wrote:
My exprience shows that it may be necessarily to specify encoding for
mysql in dburi.
The reason is that mysql server may be configured with default encoding
that doesn't match the database you're connecting to. E.g. if you open
mysql
On 5/31/07, Mike Orr [EMAIL PROTECTED] wrote:
OK, I replaced:
app = ConfigMiddleware(app, {'app_conf': app_conf, 'global_conf':
global_conf})
with:
app = ConfigMiddleware(app, conf)
I guess everybody who's converting old projects will have to do this
as well as modifying the top of
Hello,
I am not very happy with the default validation scheme suggested by Pylons
and trying to design my own.
The idea is to let the code handle main code path (data is valid) and handle
validation error separatedly. I want to be able to set validation_handler
which is then invoked by
Hello,
On 6/7/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
Somewhere in the environ, there's the Routes stuff. You can use that
to figure out which action was executed. I usually just print out the
environ and start poking around. Once you know what action was
executed, get the
Hi,
On 6/8/07, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
Heh, that's exactly what you want!
method = getattr(self, pylons.routes_dict['action'])
validation_handler = getattr(method, 'validation_handler', None)
Almost, except for a small twist (see Controller._dispatch_call, it
replaces
On 6/26/07, Konstantin Alexandrov [EMAIL PROTECTED] wrote:
Hello.
I have problem with the table named 'user':
*
psycopg.ProgrammingError: ERROR: syntax error at or near user LINE 1:
INSERT INTO user (id, last_name, country_id, city, registrat... ^ INSERT
INTO user (id, last_name,
Hi everyone,
I've been preparing a talk on my experience with Pylons for EuroPython
(see europython.org/timetable) and now reflecting on the problems I
have had with it. I'm sure I already forgot some so please help me by
enumerating problems you had. ;)
Thanks,
Max.
P.S.: I'll post my slides
On Jun 11, 1:48 pm, Max Ischenko [EMAIL PROTECTED] wrote:
Hello,
Default Pylons setup (middleware.py) configures StaticURLParser to handle
APP/public/ which contains static dir. I wanted a slightly different setup
and moved APP/public/static to static/ dir. Now I can't get it to work
On 7/6/07, Chris Shenton [EMAIL PROTECTED] wrote:
I had issues in the past with (for example) umlauted-chars being
entered into my data that then couldn't be rendere by Myghty with the
default ascii codec; changing python's sitecustomize.py to use:
sys.setdefaultencoding(utf-8)
has
I am on EuroPython and Pylons seems to cause a lot of interest. Here my
short report:
http://maxischenko.in.ua/blog/entries/124/europython-day-1/
And link to the talk I gave:
http://maxischenko.in.ua/slides/pylons-casestudy/
Regards,
Max.
--~--~-~--~~~---~--~~
=Max Ischenko and contributors,
author_email=[EMAIL PROTECTED],
url=http://trac.developers.org.ua/dou/;,
install_requires=[
Pylons=0.9.6rc1,
SQLAlchemy = 0.3.9,
MySQL_python=1.2.2,
Mako=0.1.8, Beaker=0.7.4,
CherryPy=3.0.1,
BeautifulSoup
On Jul 16, 8:46 am, Max Ischenko [EMAIL PROTECTED] wrote:
Nevermind this; This seems to be a known bug in setuptools which pops
up if you have any uncommitted directory when you run setup.py. As a
workaround, you need to either commit or temporarily revert any
directories marked
Hi,
On 7/18/07, Agustin Villena [EMAIL PROTECTED] wrote:
Hi!
Yesterday I was playing with the new nose (0.10a1), testing the
htmloutput plugin, and then I imaginated a new feature of pylons: What If
the nose testrunner was 'embedded' in pylons?. Pylons right now has a
powerful debugger
Hello,
Just wanted to report my experience with 0.9.6rc1 while migrating my
app to it.
Most time consuming part was manual diff/merge procedure, since I made
_a lot_ of changes to framework-generated files and they do change a
lot as well. Migrating to SAContext was a breeze, I was able to
Just wanted to report my experience with 0.9.6rc1 while migrating my
app to it.
Another problem is that I can't use nose-0.10 alpha releases with
Pylons, since I got:
VersionConflict: (nose 0.10.0a2 (/usr/lib/python2.5/site-packages/
nose-0.10.0a2-py2.5.egg),
On 7/30/07, Ian Bicking [EMAIL PROTECTED] wrote:
Max Ischenko wrote:
File '/usr/lib/python2.4/Cookie.py', line 453 in set
raise CookieError(Illegal key value: %s % key)
CookieError: Illegal key value: 070-it-:?0
HTTP_COOKIE: '...'
HTTP_COOKIE2: '$Version=1'
Weird... I'm
Hello,
I'm trying to setup moinmoin WSGI app following instruction from
http://docs.pythonweb.org/display/pylonscookbook/A+Pylons+controller+with+MoinMoin+as+a+WSGI+callable.
It's almost working. Static files are delivered fine. The only problem
is that MoinMoin says doesn't exist on every
Hello,
On Jul 30, 10:36 am, Max Ischenko [EMAIL PROTECTED] wrote:
I'm trying to setup moinmoin WSGI app following instruction
fromhttp://docs.pythonweb.org/display/pylonscookbook/A+Pylons+controller+
It's almost working. Static files are delivered fine. The only problem
On 7/31/07, Jose Galvez [EMAIL PROTECTED] wrote:
Well I've definitely got a deadline to make this week. What I'm afraid
of is that this project will grow and the migration will be that much more
difficult. however if I build it on 0.96 now then I'll have to install
one of release
Hi,
I'm using SAContext to manage my SQLAlchemy database connections. Today
setup looks like this.
BaseController.__call__:
model.sac.session.clear()
self.db = model.DatabaseFacade()
And DatabaseFacade.__init__:
self.session = sac.session
self.meta =
Hi Jose,
On 8/8/07, jose [EMAIL PROTECTED] wrote:
I just found out that we should be deleting the current session in
base.py. So in
base.py you should have
del model.sac.session_context.current
which effectively would clear the session which is what I think you
wanted from your
On 8/16/07, Jose Galvez [EMAIL PROTECTED] wrote:
I'm trying to use formencode to validate a simple form. The question I
have is:
How can I make a field conditionally required? This is what I have, I
have a pull down, with an other option. What I want to do is if other is
selected then
Hello,
I use Apache to proxy all requests to my Pylons app. I used to have the
following mod_rewrite rules which helped to redirect users to www. version
of the site:
RewriteCond %{HTTP_HOST} ^developers\.org\.ua$
RewriteRule (.*) http://www.developers.org.ua/$1 [R=Permanent,L]
After
Hi,
About 1-3 times a day I receive the following worrying error on my
production site deployment (traceback below). Any ideas what it may mean and
how it could be fixed?
(P.S.: I use sessions functionality, if modestly)
Max.
URL: http://www.developers.org.ua/
File
Hi Alberto,
On 8/27/07, Alberto Valverde [EMAIL PROTECTED] wrote:
You'll then have to add FormEncode's messages to your app's message
catalog, compile it, etc... and that should do it.
BTW, I'd love to hear of a way to configure Pylons's _ function to
use the message catalog inside
On 9/1/07, mickolka [EMAIL PROTECTED] wrote:
Hi all
I want to write a FileStorage service object with following features
- should be configured on the start of the application
- should be accessible from the any controller
- have only one instance
Pylons provide a `g` namespace for your
Hello,
Anyone does a redirection to make all urls have a trailing slash? What's the
simplest way to accomplish this?
Max.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group,
On 9/7/07, Yury Yurevich [EMAIL PROTECTED] wrote:
On Fri, 7 Sep 2007 11:11:41 +0300, Max wrote:
P.S.: I used to have this logic with Apache mod_rewrite rules but they
stopped working once I setup Apache to proxy all requests to Pylons.
Maybe WSGIRewrite
Hello,
I want my Pylons application to redirect users that arrive at
developers.org.ua host to a corresponding page at
www.developers.org.uadomain (note the www prefix).
On a first glance, this task is ideal for a middleware piece, so that
application itself does not have to deal with it. Is it
On 9/9/07, Cesco [EMAIL PROTECTED] wrote:
I have updated to 0.9.6rc3 and the error is still the same.
Sorry for hijacking the thread but is this release is already available?
I haven't seen any announcement and main page at pylonshq.com still shows
link to rc2.
Could I ask to make release
Hello,
On 9/11/07, Ben Bangert [EMAIL PROTECTED] wrote:
Yep, again, once the generator is passed up the stack, Pylons wraps
up its globals (if it didn't, they'd leak). You can grab local copies
of some of the globals in your generator like:
def somegen():
req = request._current_obj()
On 9/12/07, Max Ischenko [EMAIL PROTECTED] wrote:
Hello,
On 9/11/07, Ben Bangert [EMAIL PROTECTED] wrote:
Yep, again, once the generator is passed up the stack, Pylons wraps
up its globals (if it didn't, they'd leak). You can grab local copies
of some of the globals in your generator
Hi,
I am using FormEncode/htmlfill to handle forms.
It seems that if you have a non-ascii error message to be displayed on
a form, such as Invalid(u'\u041d\u0435\u043e\u0431\u0445\u043e
\u0434\u0438\u043c\u043e',) attempt to render a form results in:
File
Hello,
After recent application updates I noticed that it started leaking memory
like crazy (at a rate ~200Kb/minute). As a result, it runs out of memory in
a few hours and stops working properly. ;(
Any ideas how to debug this situtation? I already review latest code changes
but haven't noticed
Hi Ben,
On 9/18/07, Ben Bangert [EMAIL PROTECTED] wrote:
After recent application updates I noticed that it started leaking
memory like crazy (at a rate ~200Kb/minute). As a result, it runs
out of memory in a few hours and stops working properly. ;(
Any ideas how to debug this
On 9/19/07, Ben Bangert [EMAIL PROTECTED] wrote:
On Sep 18, 2007, at 8:56 AM, Max Ischenko wrote:
Actually, I have had PasteScript#cherrypy from the beginning.
What versions of Beaker, Paste, and Pylons are you using btw?
What is the correct way to find it out?
PasteScript-1.3.6
Beaker
Hi,
I want to setup my url mappings so that the follows urls will work:
/admin/clients/ -- index method on ClientsController
/admin/clients/foobar -- foobar method on ClientsController
/admin/clients/123 -- 'view' method on ClientsController, with id passed
in
/admin/clients/123;quux -- quux
Hi,
I'm using url_for with qualified=True option but for some reason it
generates urls with https prefix. Why it happens? Do I need to put
protocol=http into each and every qualified url_for invocation to prevent
it from happening?
Max.
--~--~-~--~~~---~--~~
You
On 9/29/07, Ben Bangert [EMAIL PROTECTED] wrote:
On Sep 27, 2007, at 4:58 PM, Waldemar Osuch wrote:
I have noticed that you switched the version control to Mercurial.
Is it a permanent change?
The question is motivated by curiosity only. I did not notice any
discussion on the list about
Hi,
On Sep 3, 3:10 pm, lengani [EMAIL PROTECTED] wrote:
Anyone does a redirection to make all urls have atrailingslash? What's the
simplest way to accomplish this?
Routes has an append_slash option for the map.
...
Not sure if it's precisely what you're looking for.
Thanks, that helped a
On 10/4/07, Ben Bangert [EMAIL PROTECTED] wrote:
On Sep 19, 2007, at 4:22 AM, Max Ischenko wrote:
What is the correct way to find it out?
PasteScript-1.3.6
Beaker-0.7.5
Pylons-0.9.6
SQLAlchemy-0.3.10-py2.4.egg
There are 2 leaks present in the latest Pylons, both of them
On 10/16/07, Marcin Kasperski [EMAIL PROTECTED] wrote:
Any ideas how could I reduce pylons app RAM usage? At the moment
pylons process takes above 100MB (almost static site serving some
templates) - both when run with paste, and when run under mod_wsgi.
Quite a lot, considering that for
1 - 100 of 169 matches
Mail list logo