from
Axel Müller <axel.mueller at amit-services dot de>
to
Sylvain Thenault <syt at logilab dot fr>
cc
Python-Projects <python-projects at lists dot logilab dot org>
subject
Re: [Python-projects] pylint and zope trouble
date
Hi Sylvain,2005/01/18 16:17
> > system: Linux
> > python: /opt/python-2.3.3
> > zope: /data5/work/intramt/Zope-2.7.2-main
> > zopeinstance: /data5/work/intramt/mycms01devel
> > PYTHONPATH=/opt/python-2.3.3/lib/python2.3:/data5/work/intramt/Zope-2.7.2
> >-main/lib/python:/data5/work/intramt/mycmsdevel01
> >
> > Starting pylint from the zopeinstance folder:
> >
> > /opt/python-2.3.3/bin/pylint --zope \
> > Products.DocumentManagement.DocumentManagementProd
> which version of pylint / common are you using ?
> Would you try with the latest version (more stable update soon coming)
> but without the --zope option, since it should be deprecated for release
> up to pylint 0.5, since it's not anymore actually importing the code.
Right now I'm using pylint 0.5 and common 0.7. Without the --zope option, it's
getting much better. But there still are some of this (but maybe this is my or
zope's problem):
----------------
F: 52:Admin: Unable to resolve (WriteLockInterface)
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'
E:265:IntramtProd.makeMainmenu: Access to undefined member 'objectItems'
------------------
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')
With zopeinstances there are two folders "Products", one in the main
zope-folder and one in the instances-folder.
thanks,
axel
--
axel.mueller@amit-services.de
http://www.amit-services.de
tel (06322) 680 668
fax (06322) 680 666
mobil 0160 973 483 27
