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
Could someone help me out with this problem? Its a Mako template that
does not render.
Thanks
Restarting
Starting server in PID 2504.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
Debug at: http://localhost:5000/_debug/view/1179300848
I did some poking around. This is the Pylons debug:
CompileException: Could not read template using encoding of 'ascii'.
Did you forget a magic encoding comment? in file 'D:\Projects
\Pylons_projects\test\test\templates/standard.html' at line: 0 char: 0
1 !DOCTYPE html PUBLIC -//W3C//DTD HTML
Actually, yes, this flag has no effect when i was trying.
But, we have resolved it. We save the .myt file into encoding utf-8,
and add a line to the top of the myt file:
# encoding: utf-8
The Myghty will add the line into the translated .myt.py file like
this:
# File: templates|base.myt
Michael Bayer wrote:
has_key passes unit tests added in rev 70, using DBM files like your
example, im fairly certain this worked in older versions so you might
want to double check your cache expiry/etc. and/or upgrade to beaker
trunk; fixed/added support for unicode keys in rev 71.
On 16 mai, 10:03, voltron [EMAIL PROTECTED] wrote:
I did some poking around. This is the Pylons debug:
CompileException: Could not read template using encoding of 'ascii'.
Did you forget a magic encoding comment? in file 'D:\Projects
\Pylons_projects\test\test\templates/standard.html' at
Hi Steve, this is good information as it is a good workaround for the
problem that I have been having with my Mako templates with
Umlauts( see thread
http://groups.google.com/group/pylons-discuss/browse_thread/thread/4d278dee35c62519)
I´m just worried that it seems like a hack and not the
Thanks Bruno, I have read that. In a thread a few days ago I asked
questions about it, see this thread:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/bceff9ef23772e5d/35aa3a21e4ce3e43?lnk=stq=rnum=30#35aa3a21e4ce3e43
The thing is, in the thread, 2 people mentioned that it
On 5/16/07, voltron [EMAIL PROTECTED] wrote:
Hi Steve, this is good information as it is a good workaround for the
problem that I have been having with my Mako templates with
Umlauts( see thread
http://groups.google.com/group/pylons-discuss/browse_thread/thread/4d278dee35c62519)
I´m just
Oh I did not know about that, thanks Jens. Excuse my newbiness, but
could you explain your method further? where is site.py?
Thanks
On May 16, 1:13 pm, Jens Hoffrichter [EMAIL PROTECTED]
wrote:
On 5/16/07, voltron [EMAIL PROTECTED] wrote:
Hi Steve, this is good information as it is a good
Sorry to spam the list, but eventually I resolved the problem - for
future readers I suggest updating the modules Pylons, Paste,
PasteScript Kid and TurboKid to the latest versions.
For some reason PasteScript didn't want to update to 1.3 through
easy_install -U so downloading the source and
Cool, thanks!
On May 16, 2:26 pm, Jens Hoffrichter [EMAIL PROTECTED]
wrote:
Hey Voltron,
On 5/16/07, voltron [EMAIL PROTECTED] wrote:
Oh I did not know about that, thanks Jens. Excuse my newbiness, but
could you explain your method further? where is site.py?
The declaration for working
nevermind
table
% for item in c.links:
tr
td${item}/td
/tr
% endfor
/table
On May 16, 4:02 pm, voltron [EMAIL PROTECTED] wrote:
Hi,
I tnink this is for the Pylons group and not Mako, if I´m mistaken, I
apologize
given:
You do have syntax error at:
tdc.links[item]}/td
should be:
td${c.links[item]}/td
I believe this is what you want... assuming that c.links is being declared in
your controller!
#controller
def some_action(self):
c.links = [link1,link2,link3]
return render_response('/some_template.mak')
voltron wrote:
nevermind
table
% for item in c.links:
tr
td${item}/td
/tr
% endfor
/table
Nothing to do about your initial problem, but by reading your HTML, I
can only suggest that you'd probably prefer using HTML unordered
You do have syntax error at:
tdc.links[item]}/td
should be:
td${c.links[item]}/td
I believe this is what you want... assuming that c.links is being declared in
your controller!
#controller
def some_action(self):
c.links = [link1,link2,link3]
return render_response('/some_template.mak')
Yes, actually, the code which I first posted is from the tutorial, my
real production code looks like this:
div class=submenu_center
ul class=submenu
% for item in c.sublinks:
lia href=${item}/ class=level_submenu${item}/
a/li
% endfor
On May 16, 2007, at 11:09 AM, Max Ischenko wrote:
Here is the question: where is paster shell command hooked in?
When I attempt to use paster shell in my current project I got this:
$ paster shell development.ini
Command shell not known
Known commands:
Newly created Pylons projects
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:
- In order to use multiple fields, you need to set variable_decode to
True. This is probably fair
Given:
# snippet
from gameolymp.lib.base import *
class NavigationController(BaseController):
def index(self):
return render_response('base')
class InnerClass(BaseController):
def index(self):
return Response('innner')
How would I route the inner class?
The choice between CSS 'tables' and HTML 'tables' is purely a matter of
opinion.
Just to point out a totally different point-of-view, please see:
http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx
Alexandre CONRAD wrote:
voltron wrote:
nevermind
table
% for item
Nevermind
On May 16, 4:58 pm, voltron [EMAIL PROTECTED] wrote:
Given:
# snippet
from gameolymp.lib.base import *
class NavigationController(BaseController):
def index(self):
return render_response('base')
class InnerClass(BaseController):
def index(self):
On May 16, 2007, at 12:34 PM, Dan wrote:
The choice between CSS 'tables' and HTML 'tables' is purely a
matter of opinion.
Just to point out a totally different point-of-view, please see:
http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx
theres an argument to use table tags for
On May 16, 2007, at 1:03 AM, voltron wrote:
I did some poking around. This is the Pylons debug:
CompileException: Could not read template using encoding of 'ascii'.
Did you forget a magic encoding comment? in file 'D:\Projects
\Pylons_projects\test\test\templates/standard.html' at line: 0
On Wed, 2007-05-16 at 14:10 -0400, Michael Bayer wrote:
On May 16, 2007, at 12:34 PM, Dan wrote:
The choice between CSS 'tables' and HTML 'tables' is purely a matter
of opinion.
Just to point out a totally different point-of-view, please see:
Lol. The other article was just as fanatical, using cartoon images to
persuade the reader into thinking CSS was the best thing since 'sliced
bread'. To be fair, I'd say they are both nuts.
Michael Bayer wrote:
On May 16, 2007, at 12:34 PM, Dan wrote:
The choice between CSS 'tables' and
On May 16, 2007, at 7:51 AM, Graham Stratton 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:
- In order to use multiple fields, you
dan To be fair, I'd say they are both nuts.
Hmmm... I wonder if they are friends? ;-)
--
Skip Montanaro - [EMAIL PROTECTED] - http://www.webfast.com/~skip/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Philip Jenvey wrote:
On May 16, 2007, at 7:51 AM, Graham Stratton 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:
- In order to use
On May 15, 2007, at 3:22 PM, Victor Kryukov wrote:
Hi group,
I've just installed pylons yesterday, so I apologize if the question
I'm asking is too trivial.
Here it is: I tried to redefine TemplateController as suggested in
it's documentation string:
from ljeye.lib.base import *
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
31 matches
Mail list logo