Re: [Repoze-dev] problems running chameleon tests

2010-06-02 Thread Chris Withers
Malthe Borch wrote: > This has to do with lxml; it currently worksforme, but I don't know > why. Try Stephan's static build and see if it fares any better, > possibly using otool -L to confirm bindings. Actually, the tests only run if you have *all* the stuff in the test_require ;-) ...its' a sh

Re: [Repoze-dev] problems running chameleon tests

2010-06-02 Thread Malthe Borch
This has to do with lxml; it currently worksforme, but I don't know why. Try Stephan's static build and see if it fares any better, possibly using otool -L to confirm bindings. \malthe On 2 June 2010 20:26, Chris Withers wrote: > So, in an effort to create some tests for the chameleon.genshi pro

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 Apac

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

2010-06-02 Thread Wichert Akkerman
On 2010-6-2 23:48, Chris Withers wrote: > First hit for me was: > > https://launchpad.net/chameleon.genshi > > Is that related? A fork? Something else? chameleon.genshi was merged into Chameleon 1.2.0. Wichert. -- Wichert AkkermanIt is simple to make things. http://www.wiggy.net/

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 pr

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 la

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.

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 Co

Re: [Repoze-dev] [chameleon bug]

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 http://www.simplistix.co.uk ___ R

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] 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 th

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

2010-06-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 > s

Re: [Repoze-dev] [chameleon bug]

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 AkkermanIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___

[Repoze-dev] [chameleon bug]

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("""\ ... ... http://genshi.edgewall.org/";> ... ... This is replaced. ... ... ... """) >>> stream = tmp.generate() >>> print stream.re

[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: would automatically pass baz

[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("""\ ... http://www.w3.org/1999/xhtml"; ... xmlns:py="http://genshi.edgewall.org/";> ... ... 0 ... 1 ... ... """) >>> stream = t

[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 Reposito

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

2010-06-02 Thread Chris McDonough
On Wed, 2010-06-02 at 17:02 +0100, Chris Withers wrote: > Chris McDonough wrote: > > 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] does chameleon.genshi support

2010-06-02 Thread Chris Withers
Chris McDonough wrote: > 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] i don't know whether it should be possible to have >

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

2010-06-02 Thread Chris McDonough
Told to ChrisW on IRC: 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] i don't know whether it should be possible to have and r.bfg.chameleon_genshi is just a tiny little wrapper around c.genshi

[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 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 normal stock genshi... I curre

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] [issue149] Fix SAWarning messages when using repoze.who.plugins.sa plugins

2010-06-02 Thread Gustavo Narea
Gustavo Narea 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 place to fix this is

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

2010-06-02 Thread Nuno Teixeira
New submission from Nuno Teixeira : To avoid SAWarning messages like below request to DB should be unicoded: SAWarning: Unicode type received non-unicode bind param value 'foo' nteixe...@nteixeira-desktop:~/co/repoze.whoplugins.whoalchemy$ svn diff Index: repoze/who/plugins/sa.py ==