mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread eleith
i'm using the latest pylons/mako/sqlalchemy with most of the defaults in place. i built a form that submitted the following - étudiant. which was then added into a table using sqlalchemy that works fine. then, when i try to print it out in a mako template as such div c.name /div where

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread eleith
i meant div ${c.name}/div On Nov 18, 1:16 am, eleith [EMAIL PROTECTED] wrote: i'm using the latest pylons/mako/sqlalchemy with most of the defaults in place. i built a form that submitted the following - étudiant. which was then added into a table using sqlalchemy that works fine.

PROPOSAL: breakpoint function in Pylons

2007-11-18 Thread Thotep
Hi, what do you think about adding a breakpoint-like function in Pylons? In my opinion it should look like this: - calling the breakpoint() function (for example in a controller) would fire up the Pylons debugger in web browser in almost the same form, as in the case of an error - with the

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread Evert Rol
where c.name = étudiant. as retrieved from the sqlalchemy query, mako gives me the codec can't decode byte error. 'decode' or 'encode' error? Outputting (as in 'str(c.name)') gives me the encode variant; any copied traceback is easier to have. based on the interactive debugging, c.name

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread Christoph Haas
On Sun, Nov 18, 2007 at 01:20:54AM -0800, eleith wrote: i meant div ${c.name}/div I figured. :) Did you declare your Mako template file as UTF8? I always prepend my template files with: # -*- coding: utf-8 -*- Since Pylons 0.9.6 you do not need to do any fancy encoding stunts. Just pass

Is the --daemon switch broken?

2007-11-18 Thread voltron
Is the --daemon switch broken? It quits with this error on my system: AttributeError: 'module' object has no attribute 'fork' I am using windows 2000, python 2.4, pylons 09.6.1 Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread eleith
the error from the debugger is the following Module _main_main_mako:60 in render_body context.write(unicode(c.page.body)) type 'exceptions.UnicodeDecodeError': 'ascii' codec can't decode byte 0xc3 in position 4775: ordinal not in range(128) [where c.page.body is the result of another

Re: mako rendering 'ascii' codec can't decode byte on variable from sqlalchemy

2007-11-18 Thread eleith
ok. i think i got it. calling render, gives me a raw string. then, i was having the results of (many) render, included in a template of which i called render again at some later point. by changing all my internal renders in templates to mako file includes, it works properly. thanks for

Re: Is the --daemon switch broken?

2007-11-18 Thread Ian Bicking
voltron wrote: Is the --daemon switch broken? It quits with this error on my system: AttributeError: 'module' object has no attribute 'fork' I am using windows 2000, python 2.4, pylons 09.6.1 Daemon mode only works on Posix/Unixy systems, not Windows. I actually thought there wasn't

Re: Single or multi-database

2007-11-18 Thread Chris
Thanks Eric, interesting points you bring up. I'm fairly confident that traffic across each subdomain (org) will be roughly equal on average. I see what you mean now that there could be some performance overhead involved with the multidatabase approach. I'll probably just stick with the

Re: CMS tools

2007-11-18 Thread Qiangning Hong
On Nov 18, 2007 7:46 PM, Mike Orr [EMAIL PROTECTED] wrote: A while ago there was discussion about a Pylons blog/CMS project called AroundWord. It doesn't seem to exist anymore. http://aspn.activestate.com/ASPN/Mail/Message/python-announce/3522527 Neither the domain nor the Google group