[Repoze-dev] Chameleon and Genshi Text Templates

2011-02-14 Thread Brian Sutherland
Hi,

The genshi text template language doesn't seem to work at all with
chameleon.genshi:

http://genshi.edgewall.org/wiki/Documentation/text-templates.html

In fact it seems that chameleon.genshi.template.GenshiTextTemplate
cannot do anything more than string substitution. Am I missing
something obvious?

I've attached a test that I would have expected to have worked, should I
commit that?

-- 
Brian Sutherland
import unittest

class TestExplicitDoctypes(unittest.TestCase):

def test_for(self):
from chameleon.genshi.template import GenshiTextTemplate
template = u{% for item in foo %}* xxx\n{% end %}
t = GenshiTextTemplate(template)
self.assertEqual(t(foo=[1, 2]), * xxx\n* xxx\n)

def test_suite():
import sys
return unittest.findTestCases(sys.modules[__name__])
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Chameleon and Genshi Text Templates

2011-02-14 Thread Malthe Borch
Hey Brian,

That's right. It hasn't been implemented and it's a bit of false
advertisement really.

That said, implementing it should be relatively straight-forward.

\malthe

On 14 February 2011 17:20, Brian Sutherland br...@vanguardistas.net wrote:
 Hi,

 The genshi text template language doesn't seem to work at all with
 chameleon.genshi:

    http://genshi.edgewall.org/wiki/Documentation/text-templates.html

 In fact it seems that chameleon.genshi.template.GenshiTextTemplate
 cannot do anything more than string substitution. Am I missing
 something obvious?

 I've attached a test that I would have expected to have worked, should I
 commit that?

 --
 Brian Sutherland

 ___
 Repoze-dev mailing list
 Repoze-dev@lists.repoze.org
 http://lists.repoze.org/listinfo/repoze-dev


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Turbogears 2.1 breaks with SQLAlchemy 0.7beta

2011-02-14 Thread Jorge Vargas
Hello guys,

Just an FYI.

Due to the change of API in SA0.7
(http://www.sqlalchemy.org/trac/wiki/07Migration#Thesqlalchemy.exceptionsaliasinsys.modulesisremoved)
to be exact. The current release of TG is broken, as several packages
it uses for example http://dpaste.com/416049/ use the old import.

Until this is fixed in TG the solution is to run.

pip install -U sqlalchemy==0.6.6
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Chameleon and Genshi Text Templates

2011-02-14 Thread Brian Sutherland
On Mon, Feb 14, 2011 at 05:22:34PM +0100, Malthe Borch wrote:
 Hey Brian,
 
 That's right. It hasn't been implemented and it's a bit of false
 advertisement really.
 
 That said, implementing it should be relatively straight-forward.

I see. Unfortunately at the moment I have too much other stuff going on
to have a look. Also what we're doing is not performance critical so I
guess we'll go back to using the original genshi for the time being...

 \malthe
 
 On 14 February 2011 17:20, Brian Sutherland br...@vanguardistas.net wrote:
  Hi,
 
  The genshi text template language doesn't seem to work at all with
  chameleon.genshi:
 
     http://genshi.edgewall.org/wiki/Documentation/text-templates.html
 
  In fact it seems that chameleon.genshi.template.GenshiTextTemplate
  cannot do anything more than string substitution. Am I missing
  something obvious?
 
  I've attached a test that I would have expected to have worked, should I
  commit that?
 
  --
  Brian Sutherland
 
  ___
  Repoze-dev mailing list
  Repoze-dev@lists.repoze.org
  http://lists.repoze.org/listinfo/repoze-dev
 
 

-- 
Brian Sutherland
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Passing on primary WebOb maintainership to Sergey Schetinin

2011-02-14 Thread Ian Bicking
Hi all.

I've decided to pass primary maintainer duties to Sergey Schetinin (maluke)
for WebOb -- while I have attended to WebOb sporadically he has been far
more consistent in responding to bugs and inquiries, and in many ways has
been acting maintainer.  So I think it fitting to make that more formal and
give Sergey that title more formally, and put project management in the
hands of someone doing the project management.

WebOb of course is used by many of libraries, and as such must remain stable
and conservative in its forward development, but I think its scope makes the
meaning of that fairly clear for everyone so I am not worried on that
front.  Python 3 is the one thing that looms, and with PEP  a porting
effort is now reasonable.  I'm not sure that it's at the top of Sergey's
list of things to do, but I hope the community can organize itself in this
respect -- I believe well-done port of WebOb could make the porting effort
for other libraries much easier as it can serve as insulation for many of
the more tweaky differences between the Python versions.


Relatedly, I am also interested in finding maintainers for other packages,
such as Paste*, WebTest, ScriptTest, FormEncode, WSGIProxy, and virtualenv.
If you are interested or have any questions, please contact me (email or
IRC, I'm easy enough to find).

Cheers,
  Ian
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Passing on primary WebOb maintainership to Sergey Schetinin

2011-02-14 Thread Ian Bicking
Oops, I forgot to mention that Sergey started a blog in part with the
intention of posting on WebOb and related things: http://self.maluke.com/


On Mon, Feb 14, 2011 at 3:01 PM, Ian Bicking i...@colorstudy.com wrote:

 Hi all.

 I've decided to pass primary maintainer duties to Sergey Schetinin (maluke)
 for WebOb -- while I have attended to WebOb sporadically he has been far
 more consistent in responding to bugs and inquiries, and in many ways has
 been acting maintainer.  So I think it fitting to make that more formal and
 give Sergey that title more formally, and put project management in the
 hands of someone doing the project management.

 WebOb of course is used by many of libraries, and as such must remain
 stable and conservative in its forward development, but I think its scope
 makes the meaning of that fairly clear for everyone so I am not worried on
 that front.  Python 3 is the one thing that looms, and with PEP  a
 porting effort is now reasonable.  I'm not sure that it's at the top of
 Sergey's list of things to do, but I hope the community can organize itself
 in this respect -- I believe well-done port of WebOb could make the porting
 effort for other libraries much easier as it can serve as insulation for
 many of the more tweaky differences between the Python versions.


 Relatedly, I am also interested in finding maintainers for other packages,
 such as Paste*, WebTest, ScriptTest, FormEncode, WSGIProxy, and virtualenv.
 If you are interested or have any questions, please contact me (email or
 IRC, I'm easy enough to find).

 Cheers,
   Ian


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev