Mako in Pylons 0.9.6rc1 don't support utf-8?

2007-07-16 Thread Olli Wang
Hi, I just installed the new release 0.9.6rc1 but found the utf-8 not supported well in template. I created a mako file index.mao simply contains 測試 (which means test in Chinese), went to the address, and got an error below. Do I need to set something by self? Thanks. Error ! CompileException:

Re: Mako in Pylons 0.9.6rc1 don't support utf-8?

2007-07-16 Thread Rafael \SDM\ Sierra
Just a question: On 7/16/07, Olli Wang [EMAIL PROTECTED] wrote: Did you forget a magic encoding comment? in file 'D:\Workspace \pylonsrc1\pylonsrc1\templates/index.mao' at line: 0 char: 0 1 測試 ? # -*- encoding: utf-8 -*- -- Rafael SDM Sierra http://stiod.com.br/

Re: Getting Started document

2007-07-16 Thread Philip Jenvey
On Jul 15, 2007, at 2:26 PM, Chris Perkins wrote: On Jul 15, 4:57 pm, Ben Bangert [EMAIL PROTECTED] wrote: This is a strange issue that appears to happen on windows, go into the projects dir and run: python setup.py egg_info And you should be fine. OK, thanks. After doing that I get

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread jose
Again this is a pretty big departure from the previous builds with respect to the Response object. I've done some quick preliminary testing, and at least between version 9.4 and RC2 my controllers (simple hello world stuff) were able to still use the Response object directly. Is this going to

Re: App wide template filters using Mako

2007-07-16 Thread jose
I think this is what you need %! import myfilters % Heres some tagged text: ${text | myfilters.tagfilter} Jose On Jul 14, 6:19 am, Scott Benjamin [EMAIL PROTECTED] wrote: I'm using mako for my templating language and I noticed it has support for filters, but what I would like to do

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Ben Bangert
On Jul 16, 2007, at 11:00 AM, jose wrote: Again this is a pretty big departure from the previous builds with respect to the Response object. I've done some quick preliminary testing, and at least between version 9.4 and RC2 my controllers (simple hello world stuff) were able to still use the

Re: One page doc ?

2007-07-16 Thread Ben Bangert
On Jul 16, 2007, at 11:13 AM, rangzen wrote: Hello, I'm about to go on 4 days out of internet so I start saving documentation to read it offline. Mako and SQLalchemy : no problem, there is documentation on single page. How can I do for pylons ? Something cleaner than a recursive wget ;p For

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread jose
Well I just tried using render_response and it generates an error not a warning, so I looks like I may have to migrate my projects anyway, not a huge deal just something to work on. I think I'll do my migration within a working env and then just port the new build once I know it works rather

Re: Deployment using Dreamhost and fcgi

2007-07-16 Thread Dave
Well, good news for me. I've got a bit further. I managed to get the main page loading earlier but now it seems to have stopped loading and gone back to the 500 error. Weirdly enough sometimes I get a plain 500 error page and sometimes I get the Pylons styled 500 error. I must admit I don't

Re: One page doc ?

2007-07-16 Thread Andreas Reuleaux
For the Docs and Cookbook on the wiki.pylonshq.com site, you can export entire 'spaces' as PDF. You'll need to login there first, then go to the following links and export as PDF: http://wiki.pylonshq.com/spaces/exportspace.action?key=pylonscookbook

Re: One page doc ?

2007-07-16 Thread rangzen
Ooooh GGGRRREEAAATTT :D Thanks! Ben Bangert a écrit : On Jul 16, 2007, at 11:13 AM, rangzen wrote: Hello, I'm about to go on 4 days out of internet so I start saving documentation to read it offline. Mako and SQLalchemy : no problem, there is documentation on single page. How

SAContext and paster shell

2007-07-16 Thread Christoph Haas
Dear list, I'm on SQLAlchemy 0.3.9 and SAContext 0.3.1 now with Pylons 0.9.6-rc1. A lot of knowledge is useless now that SQLAlchemy changed quite a few things regarding queries and Pylons doesn't have pylons.database any longer. Currently I'm trying to get myself acquainted with a lot of syntax

Re: Getting Started document

2007-07-16 Thread Chris Perkins
On Jul 16, 1:47 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Jul 15, 2007, at 2:26 PM, Chris Perkins wrote: On Jul 15, 4:57 pm, Ben Bangert [EMAIL PROTECTED] wrote: This is a strange issue that appears to happen on windows, go into the projects dir and run: python setup.py egg_info

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg The project was created with pylons 0.9.4.1 and then converted after installing rc2 using overwrite the test project was not installed using easy_install simply created and run from the created egg my controller is: from

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
Here is my easy_install pth fine so you can see what version of what I have installed: import sys; sys.__plen = len(sys.path) #./setuptools-0.6c6-py2.5.egg ./paste-1.4-py2.5.egg ./pastescript-1.3.5-py2.5.egg ./pastedeploy-1.3.1-py2.5.egg ./mako-0.1.8-py2.5.egg ./myghtyutils-0.52-py2.5.egg

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Ben Bangert
On Jul 16, 2007, at 2:40 PM, Jose Galvez wrote: Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.egg The project was created with pylons 0.9.4.1 and then converted after installing rc2 using overwrite the test project was not installed using easy_install simply created and run

Javascript in Pylons for ToscaWidgets with Mako

2007-07-16 Thread BruceC
Hi all...I posted this in the ToscaWidget discussion board, (http:// groups.google.com/group/toscawidgets-discuss/browse_thread/thread/ c2250165e832c1a?hl=en) but in some ways it's more of a Pylons question, so I thought I'd ask the question here as well... I'm trying to work out how to ensure

Re: One page doc ?

2007-07-16 Thread Andreas Reuleaux
On Mon, Jul 16, 2007 at 02:05:45PM -0700, Ben Bangert wrote: I've uploaded the PDF's to Google Groups to make it easier to d/l them: http://groups.google.com/group/pylons-discuss/files Thanks a lot The rst files we've moved to the wiki, so its easier to maintain and update them. They

Re: Pylons 0.9.6 Release Candidate 1

2007-07-16 Thread Jose Galvez
Thanks Ben, thats exactly what I did I just let it override everything. Migration is going to be alot more work then I originally thought, I still have a copy of the original files (pre migration) I think I'll do a diff on the files to see whats different. From what you wrote below I should pay

Re: App wide template filters using Mako

2007-07-16 Thread Dan Korostelev
There's a mako.imports template option for mako. In the times of Myghty there was a setup that added additional escapes to Myghty in config/environment.py, I ported it to Mako and use in my projects like this: tmpl_options['mako.imports'] = ['from webhelpers import auto_link as l',