Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Chris McDonough
It looks like Jinja2 has an optional "speedups" module that Jython is choking on: http://bitbucket.org/mitsuhiko/jinja2-main/src/tip/setup.py You might try checking Jinja2 out from bitbucket, commenting out the "features" stanza in its setup.py and installing it into your virtualenv (if you're

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Diaz, Eduardo
Ok, I'm going to give it a try in a while for now, this is the problem with jinja2, it needs to compile something easy_install -i http://dist.repoze.org/bfg/1.1/simple/ repoze.bfg.jinja2 Searching for repoze.bfg.jinja2 Best match: repoze.bfg.jinja2 0.5 Processing repoze.bfg.jinja2-0.5-py2.5.egg re

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Chris McDonough
OK... its possible that zope.configuration doesn't work for some reason under Jython; I don't know that anyone has tried it recently. I may give it a shot myself over the next week or so out of curiosity. In the meantime, however, you can disuse "declarative" (ZCML) style configuration, which

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Diaz, Eduardo
Yes, it does :P On Mon, Jan 4, 2010 at 10:42 AM, Chris McDonough wrote: > Diaz, Eduardo wrote: > >> Ok, I think I know why this is happening, >> >> the exception raises in the _validate method of the Orderable class, this >> is where it happends: >> >> if self.max is not None and value > self.m

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Chris McDonough
Diaz, Eduardo wrote: > Ok, I think I know why this is happening, > > the exception raises in the _validate method of the Orderable class, > this is where it happends: > > if self.max is not None and value > self.max: > raise TooBig(value, self.max) > > Here, max is a ValidatedProperty it ha

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Diaz, Eduardo
You are right, that seems to be the problem with string concatenation, it doesn't work under jython On Mon, Jan 4, 2010 at 10:31 AM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Diaz, Eduardo wrote: > > Hello! I'm trying to run repoze.bfg on jython 2.5.1 without luck

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Diaz, Eduardo
Ok, I think I know why this is happening, the exception raises in the _validate method of the Orderable class, this is where it happends: if self.max is not None and value > self.max: raise TooBig(value, self.max) Here, max is a ValidatedProperty it has a __set___ method which gives it a val

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diaz, Eduardo wrote: > Hello! I'm trying to run repoze.bfg on jython 2.5.1 without luck for now, > I'm willing to fix what's needed for it to run... > > So first let me describe what I've done. > > I've installed setuptools on jython and followed tha

[Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Diaz, Eduardo
Hello! I'm trying to run repoze.bfg on jython 2.5.1 without luck for now, I'm willing to fix what's needed for it to run... So first let me describe what I've done. I've installed setuptools on jython and followed tha installing repoze tutorial, virtualenv and easy_install -i http://dist.repoze.o