from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Axel Müller <axel.mueller at amit-services dot de>
subject
Re: [Python-projects] pylint and zope trouble
date
On Tuesday 18 January à 17:33, Axel Müller wrote:2005/01/18 17:43
> Am Dienstag, 18. Januar 2005 16:27 schrieb Sylvain Thénault:
> > > 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...
yes, I was talking about a future meaning of the --zope option.
> > 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
ok, that seems to me as the most pragmatic approach ;)
> > > 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
right, but I guess that the ZCatalog is in the first Products directory,
isn't it ? If it's the case, then this will probably be fixed in the
next release. If not, then the problem is clearly the coexistence of two
Products directory.
> > > 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
hum, strange. I'll take a look at that. Can you reproduce it with a
little sample of code and send it here ?
> But nevertheless: Pylint is very, very helpful! It's a great tool.
glad you like it and spend some time to send your comments and bug
reports !
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
