[Erp5-dev] Problem while logging into unit test

Jérome Perrin jerome at nexedi.com
Mon Nov 5 16:12:50 CET 2007


Łukasz Nowak a écrit :
> Hello,
> 
> I'm using revision 17264. I'm not able to login into my unit tests (but
> I'm able to do it, while running zope normally).
> 
> This is what I found in unit_test/tests/zLOG.log:
> 
> 2007-11-05T14:18:34 ERROR(200) BeforeTraverse Error while invoking
> hook: "cookie_authentication" Traceback (most recent call last):
>   File "/home/shufla/erp5/lib/python/ZPublisher/BeforeTraverse.py",
> line 144, in __call__ meth(*(container, request, None)[:args])
>   File
> "/home/shufla/erp5/lib/python/Products/CMFCore/CookieCrumbler.py", line
> 230, in __call__ attempt = self.modifyRequest(req, resp) File
> "/home/shufla/erp5/lib/python/Products/CMFCore/CookieCrumbler.py", line
> 199, in modifyRequest method( resp, self.auth_cookie, quote( ac ) )
> File "/usr/lib/zope/lib/python/Products/CMFCore/FSPythonScript.py",
> line 107, in __call__ self._updateFromFS() File
> "/home/shufla/erp5/lib/python/Products/CMFCore/FSObject.py", line 170,
> in _updateFromFS self._readFile(1) File
> "/usr/lib/zope/lib/python/Products/CMFCore/FSPythonScript.py", line 95,
> in _readFile self._write(data, reparse) File
> "/usr/lib/zope/lib/python/Products/CMFCore/FSPythonScript.py", line
> 232, in _write self._v_f = f = ps._v_f AttributeError: _v_f
> 
> 
> Using older revision (eg. 15401) on same zope is working great. What
> could be a problem?

Hi,

PythonScripts are now complied lazily in unit tests
http://svn.erp5.org/?view=rev&revision=17063

Unfortunatly this currently breaks FSPythonScripts.

Jérome



More information about the Erp5-dev mailing list