Mailing List Archive

Re: SVN: Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/ integrated ExtendedPathIndex functionality
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Jung wrote:

> Modified: Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
> ===================================================================
> --- Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 2005-04-08 14:07:42 UTC (rev 29911)
> +++ Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 2005-04-08 14:15:25 UTC (rev 29912)
> @@ -55,9 +55,9 @@
> 'help': ('PathIndex','PathIndex_Settings.stx')},
> )
>
> - query_options = ("query", "level", "operator")
> + query_options = ("query", "level", "operator", "depth", "navtree")
>
> - def __init__(self,id,caller=None):
> + def ___init__(self,id,caller=None):
> self.id = id
> self.operators = ('or','and')
> self.useOperator = 'or'

Typo? '___init__' isn't majyk in Python, last I checked ;).

Probably means we don't have a test which exercises the '__init__.py'
properly; either that, or we can safely dump it.

Tres.
- --
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCVpUFGqWXf00rNCgRAn2UAKCVQg2kPUb1GDQZthMZyH7tEr5VbwCeKmfx
sPihy4yBATzgLr0epbZinI4=
=d8pv
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: Re: SVN: Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/ integrated ExtendedPathIndex functionality [ In reply to ]
Tres Seaver <tseaver@zope.com> wrote:
> Andreas Jung wrote:
> > Modified: Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
> > ===================================================================
> > --- Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
> 2005-04-08 14:07:42 UTC (rev 29911)
> > +++ Zope/branches/ajung-epi-integration/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
> 2005-04-08 14:15:25 UTC (rev 29912)
> > @@ -55,9 +55,9 @@
> > 'help': ('PathIndex','PathIndex_Settings.stx')},
> > )
> >
> > - query_options = ("query", "level", "operator")
> > + query_options = ("query", "level", "operator", "depth", "navtree")
> >
> > - def __init__(self,id,caller=None):
> > + def ___init__(self,id,caller=None):
> > self.id = id
> > self.operators = ('or','and')
> > self.useOperator = 'or'
>
> Typo? '___init__' isn't majyk in Python, last I checked ;).

There's a proper __init__ later on in the file, and it calls ___init__.
But yeah that's a really badly chosen name.

Florent

--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders