[Repoze-dev] [issue149] Fix SAWarning messages when using repoze.who.plugins.sa plugins

2010-06-02 Thread Gustavo Narea
Gustavo Narea m...@gustavonarea.net added the comment: The SQLAlchemy plugin is not tied to ASCII or Unicode, and you can use it without getting any warning as long as you pass the username/password properly encoded. I cannot apply that patch because some people use ASCII, and also the right

Re: [Repoze-dev] [issue149] Fix SAWarning messages when using repoze.who.plugins.sa plugins

2010-06-02 Thread Nuno Teixeira
Olá Gustavo, Thanks for your fast reply and your suggestions! ;) That occurs when using repoze.who.plugins.cookie.InsecureCookiePlugin as an identifier. As I can see cookies are stored as ASCII strings so cookie.value.decode('base64') (#1 @ line 25) returns an ASCII string which is passed to

[Repoze-dev] problem with repoze.bfg.chameleon_genshi

2010-06-02 Thread Chris Withers
Hi All, I'm attempting to get the attached .genshi template working with repoze.bfg.chameleon_genshi. The problem appears to be the ?python block at the top. Yes, I know, that code should be in view methods, and that's what I'll do as a work around. However, should it work? Works with

Re: [Repoze-dev] problem with repoze.bfg.chameleon_genshi

2010-06-02 Thread Chris McDonough
Told to ChrisW on IRC: mcdonc ChrisW: i think you're going to need to drop down a level on the r.b.chameleon_genshi and replicate the problem in terms of raw chameleon [11:50] mcdonc i don't know whether it should be possible to have ?python blocks in there or not [11:50] mcdonc and

[Repoze-dev] does chameleon.genshi support ?python blocks?

2010-06-02 Thread Chris Withers
Chris McDonough wrote: mcdonc ChrisW: i think you're going to need to drop down a level on the r.b.chameleon_genshi and replicate the problem in terms of raw chameleon I'm actually so far from being a Genshi expert its not funny ;-) [11:50] mcdonc i don't know whether it should be possible

Re: [Repoze-dev] does chameleon.genshi support ?python blocks?

2010-06-02 Thread Chris McDonough
On Wed, 2010-06-02 at 17:02 +0100, Chris Withers wrote: Chris McDonough wrote: mcdonc ChrisW: i think you're going to need to drop down a level on the r.b.chameleon_genshi and replicate the problem in terms of raw chameleon I'm actually so far from being a Genshi expert its not funny ;-)

[Repoze-dev] problems running chameleon tests

2010-06-02 Thread Chris Withers
So, in an effort to create some tests for the chameleon.genshi problems I'm having, I thought I'd run the current tests. On MacOSX this appears to fail for trunk right now. What am I doing wrong? Chris serato:chameleon chris$ svn info Path: . URL: http://svn.repoze.org/chameleon/trunk

[Repoze-dev] [chameleon bug] py:choose not working

2010-06-02 Thread Chris Withers
Hi All, With the reference implementation of genshi you can do the following: from genshi.template import MarkupTemplate tmp = MarkupTemplate(\ ... div xmlns=http://www.w3.org/1999/xhtml; ... xmlns:py=http://genshi.edgewall.org/; ... py:choose test= ... span py:when=0 == 10/span ...

[Repoze-dev] url dispatch, args, matchdicts

2010-06-02 Thread Iain Duncan
Hi bfg folks, one feature I miss from pylons is having elements from the route parsing be automatically passed to controller methods as named args. I expect this got some thought and was decided against, I'm curious why? It seems to me it would be nice if this route: route path=/foo/bar/:baz

[Repoze-dev] [chameleon bug] ?python not working

2010-06-02 Thread Chris Withers
Hi All, With the reference implementation of genshi you can do the following: from genshi.template import MarkupTemplate tmp = MarkupTemplate(\ ... ?python ... title = A Genshi Template ... ? ... html xmlns:py=http://genshi.edgewall.org/; ... head ... title py:content=titleThis is

Re: [Repoze-dev] [chameleon bug] ?python not working

2010-06-02 Thread Wichert Akkerman
On 2010-6-2 20:38, Chris Withers wrote: What tracker should I put this in? Please see http://chameleon.repoze.org/docs/latest/ which documents this. Wichert. -- Wichert Akkerman wich...@wiggy.net It is simple to make things. http://www.wiggy.net/ It is hard to make things

Re: [Repoze-dev] url dispatch, args, matchdicts

2010-06-02 Thread Iain Duncan
Iain Duncan wrote: Hi bfg folks, one feature I miss from pylons is having elements from the route parsing be automatically passed to controller methods as named args. I expect this got some thought and was decided against, I'm curious why? It seems to me it would be nice if this route:

Re: [Repoze-dev] url dispatch, args, matchdicts

2010-06-02 Thread Wichert Akkerman
On 2010-6-2 21:48, Iain Duncan wrote: Hmm, what about adding another optional param to route tags? something like use_global_views, but as a flag for the passing in named args automatically? I would think a lot of people coming to bfg from other frameworks and using it as a micro-framework

Re: [Repoze-dev] [chameleon bug] ?python not working

2010-06-02 Thread Chris Withers
Wichert Akkerman wrote: On 2010-6-2 20:38, Chris Withers wrote: What tracker should I put this in? Please see http://chameleon.repoze.org/docs/latest/ which documents this. Documents what? I see no reference to ?python or its lack. On the off chance you meant a bug tracker, I'll post both

Re: [Repoze-dev] [chameleon bug] bugtracker url wrong in docs.

2010-06-02 Thread Chris Withers
Chris Withers wrote: On the off chance you meant a bug tracker, I'll post both of these bugs there. And the docs for the bug tracker are wrong... https://code.launchpad.net/chameleon is a ruby-based blogging project... Chris -- Simplistix - Content Management, Batch Processing Python

Re: [Repoze-dev] url dispatch, args, matchdicts

2010-06-02 Thread Iain Duncan
Hmm, what about adding another optional param to route tags? something like use_global_views, but as a flag for the passing in named args automatically? I would think a lot of people coming to bfg from other frameworks and using it as a micro-framework would really like that. Or am I

Re: [Repoze-dev] [chameleon bug] bugtracker url wrong in docs.

2010-06-02 Thread Wichert Akkerman
On 2010-6-2 23:02, Chris Withers wrote: Chris Withers wrote: On the off chance you meant a bug tracker, I'll post both of these bugs there. And the docs for the bug tracker are wrong... https://code.launchpad.net/chameleon is a ruby-based blogging project... A 5 second search on launchpad

Re: [Repoze-dev] [chameleon bug] bugtracker url wrong in docs.

2010-06-02 Thread Chris Withers
Wichert Akkerman wrote: On 2010-6-2 23:02, Chris Withers wrote: Chris Withers wrote: On the off chance you meant a bug tracker, I'll post both of these bugs there. And the docs for the bug tracker are wrong... https://code.launchpad.net/chameleon is a ruby-based blogging project... A 5

Re: [Repoze-dev] routing exception when run as wsgi application

2010-06-02 Thread Yuan HOng
You can use pdb with mod_wsgi. Read: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques You also find in there how to use EvalException from Paste to do in browser debugging. Graham Thanks Graham for the tip. Now I found out what's wrong. When the application is run under Apache,