from
Axel Müller <axel.mueller at amit-services dot de>
to
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] pylint and zope trouble
date
Am Dienstag, 18. Januar 2005 16:27 schrieb Sylvain Thénault:2005/01/18 17:33
> > E: 95:Admin.this_head: Access to undefined member 'REQUEST'
> > E:125:Admin.userValues: Access to undefined member 'acl_users'
> > E:129:Admin.getUser: Access to undefined member 'acl_users'
> > E:134:Admin.printamt: Access to undefined member 'aq_parent'
>
> well, those one are due to the "magic" zope acquisition mecanism, and
> they will be hard to fix. One quick fix may be to keep the --zope option
this is not really an option, because I'm always getting a traceback...
> so that in this mode, we ignore access to undefine member such as
> REQUEST, acl_users and so on. For now you can disable this message if
> you want, though you can miss some actual errors by doing so.
i just ignore these messages, because I don't want to miss an error
> > Also there is a Problem with Zopeinstances. Pylint refuses to import from
> > SOFTWARE_HOME/Products/... It says:
> >
> > F: 31: Unable to import 'Products.ZCatalog.CatalogAwareness.CatalogAware'
> > (No module 'Products.ZCatalog')
>
> do you think this one should have succeed ? Is the Products directory in
> your PYTHONPATH and has a __init__.py file ? Or maybe it's related to
> the problem below...
I think it's related to the problem below, because my PYTHONPATH is:
/opt/python-2.3.3/lib/python2.3:/data5/work/intramt/Zope-2.7.2-main/lib/python:/data5/work/intramt/mycmsdevel01
there are two "Products" folders:
Zope mainfolder: /data5/work/intramt/Zope-2.7.2-main/lib/python/Products
Zopeinstance: /data5/work/intramt/mycmsdevel01/Products
> > With zopeinstances there are two folders "Products", one in the main
> > zope-folder and one in the instances-folder.
>
> gargl, that's a problem too. Damned zope's black magic ! I'll add this
> to the bug tracker, and see if I can get ride of this at some point.
Zope 2.x is full of black magic, thats right.
Another little bug/problem in the file "Pylint_global.txt":
global evaluation
-----------------
An exception occured while rating: name 'errors' is not defined
But nevertheless: Pylint is very, very helpful! It's a great tool.
thanks a lot,
axel
--
axel.mueller@amit-services.de
http://www.amit-services.de
tel (06322) 680 668
fax (06322) 680 666
mobil 0160 973 483 27
