Re: [Zope] psycopg import error

2009-06-24 Thread Amir
Hey, yes i have it installed at instance/Python-2.4.3/lib/python2.4/site-packages/psycopg2 and i had also moved the adapter to the instance/client1/Products folder, but still it is giving me the version mismatch error. Also i checked the psycopg* in my system but over there also i can see th

Re: [Zope] psycopg import error

2009-06-24 Thread Rowan Woodhouse
I had the same problem but found that if I just modified the list of acceptable psycopg versions everything worked fine. Rowan Amir wrote: > Hey, > yes i have it installed at > instance/Python-2.4.3/lib/python2.4/site-packages/psycopg2 and i had also > moved the adapter to the > instance/

Re: [Zope] psycopg import error

2009-06-24 Thread Amir
Things that i have noticed 1)running and importing psycopg2 gives this error Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/psycopg2/__init__.py", line 60, in ? from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: /usr

Re: [Zope] psycopg import error

2009-06-24 Thread Rowan Woodhouse
Ok, look at the error message again. It says raise ImportError("psycopg version mismatch (imported %s)" % ImportError: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3)) so the version being reported back is '2.0.11 (dt dec ext pq3)' not '2.0.11' Rowan Amir wrote: > Things that i have

Re: [Zope] psycopg import error

2009-06-24 Thread Amir
so I was able to fix instance/Python-2.4.3/bin/python errors that I was getting by editing the psycopg1.py file and changing the following statement :- import _psycopg as _2psycopg to import _2psycopg now I am able to import psycopg2 @ zope python level but not yet on zope because when I add t

Re: [Zope] psycopg import error

2009-06-24 Thread Thomas Bennett
looks like DA.py is using psycopg2.__version__ not psycopg2.__version__[:5] with the index of 5. You might want to check that. Also, psycopg2.__version__[:5] is 2.0.1 not 2.0.11 and 2.0.1 is not in the list on my install from today. The index should be 6 not 5 for versions higher than 2.0.

[Zope] how detect a variable from template father?

2009-06-24 Thread Miguel Beltran R.
Hi list I have 2 templates, in second template I need render a only when the first template have defined a variable. template1: template2: span2 span2 span2 span2 span3 any condition in span not work :( -- Lo bueno de vi

Re: [Zope] how detect a variable from template father?

2009-06-24 Thread Andreas Jung
On Thu, Jun 25, 2009 at 00:17, Miguel Beltran R. wrote: > Hi list > > I have 2 templates, in second template I need render a only when the > first template have defined a variable. > > template1: > > > > > > template2: > > >span2 >span2 >span2 >span2 >span3 > >