Mailing List Archive

Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ added some z3 interfaces for catalog related classes
Hi Yuppie,

This appears to cause an import loop, i.e. PageTemplateFile ->
ZTUtils -> ZCatalog -> Five -> PageTemplateFile ...

Cheers,
Stefan


File "/Users/stefan/autotest/temp/python23-zope28-cmf15-plone21-
at13/Products/PortalTransforms/TransformEngine.py", line 16, in ?
from Products.PageTemplates.PageTemplateFile import
PageTemplateFile
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PageTemplates/PageTemplateFile.py", line 27, in ?
from PageTemplate import PageTemplate
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PageTemplates/PageTemplate.py", line 27, in ?
from Expressions import getEngine
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PageTemplates/Expressions.py", line 23, in ?
from TALES import Engine
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PageTemplates/TALES.py", line 20, in ?
import re, sys, ZTUtils
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
ZTUtils/__init__.py", line 25, in ?
from ZTUtils.Zope import Batch, TreeMaker, SimpleTreeMaker,
LazyFilter
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
ZTUtils/Zope.py", line 21, in ?
from Products.ZCatalog.Lazy import Lazy
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/ZCatalog/__init__.py", line 16, in ?
import ZCatalog, CatalogAwareness, CatalogPathAwareness
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/ZCatalog/ZCatalog.py", line 36, in ?
from Products.PluginIndexes.common.PluggableIndex \
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/__init__.py", line 16, in ?
import common.UnIndex as UnIndex
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/common/UnIndex.py", line 32, in ?
from Products.PluginIndexes.interfaces import IPluggableIndex
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/interfaces.py", line 23, in ?
from Products.Five.fiveconfigure import createZope2Bridge
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/__init__.py", line 25, in ?
from browser import BrowserView
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/browser.py", line 50, in ?
from Products.Five.pagetemplatefile import FivePageTemplateFile
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/pagetemplatefile.py", line 22, in ?
from Products.PageTemplates.PageTemplateFile import
PageTemplateFile
ImportError: cannot import name PageTemplateFile


On 4. Jul 2005, at 18:59, Yvo Schubbe wrote:

> Log message for revision 30994:
> added some z3 interfaces for catalog related classes
>
> Changed:
> UU Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/DateIndex/DateIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/DateIndex/tests/test_DateIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/DateRangeIndex/DateRangeIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/FieldIndex/FieldIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/FieldIndex/tests/testFieldIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/KeywordIndex/KeywordIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/PathIndex/PathIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/PathIndex/tests/testPathIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TextIndex/TextIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TextIndex/Vocabulary.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TextIndex/tests/testTextIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TopicIndex/FilteredSet.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TopicIndex/TopicIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/TopicIndex/tests/testTopicIndex.py
> U Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/common/UnIndex.py
> A Zope/branches/Zope-2_8-branch/lib/python/Products/
> PluginIndexes/interfaces.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/ZCTextIndex/
> ZCTextIndex.py
> A Zope/branches/Zope-2_8-branch/lib/python/Products/ZCTextIndex/
> interfaces.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/ZCTextIndex/
> tests/testZCTextIndex.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/
> ZCatalog.py
> A Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/
> interfaces.py
> UU Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/
> tests/testCatalog.py
>

--
Software Engineering is Programming when you can't. --E. W. Dijkstra

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ added some z3 interfaces for catalog related classes [ In reply to ]
Stefan H. Holek wrote:
> This appears to cause an import loop, i.e. PageTemplateFile -> ZTUtils
> -> ZCatalog -> Five -> PageTemplateFile ...

Oops! Sorry.

I partially reverted r30994. Please let me know if there are still problems.

Cheers, Yuppie

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ added some z3 interfaces for catalog related classes [ In reply to ]
Yep, still problems, sorry ;-)

Seems like PluginIndexes/interfaces.py should not import Five. How
about getting interfaces from zope.interface?


File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/__init__.py", line 18, in ?
import PathIndex.PathIndex
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/PathIndex/PathIndex.py", line 32, in ?
from Products.PluginIndexes.interfaces import IPathIndex
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/PluginIndexes/interfaces.py", line 23, in ?
from Products.Five.fiveconfigure import createZope2Bridge
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/__init__.py", line 25, in ?
from browser import BrowserView
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/browser.py", line 50, in ?
from Products.Five.pagetemplatefile import FivePageTemplateFile
File "/Users/stefan/autotest/temp/python23-zope28/lib/python/
Products/Five/pagetemplatefile.py", line 22, in ?
from Products.PageTemplates.PageTemplateFile import
PageTemplateFile
ImportError: cannot import name PageTemplateFile


On 5. Jul 2005, at 12:56, yuppie wrote:

> Stefan H. Holek wrote:
>
>> This appears to cause an import loop, i.e. PageTemplateFile ->
>> ZTUtils -> ZCatalog -> Five -> PageTemplateFile ...
>>
>
> Oops! Sorry.
>
> I partially reverted r30994. Please let me know if there are still
> problems.
>
> Cheers, Yuppie
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://mail.zope.org/mailman/listinfo/zope-coders
>

--
Software Engineering is Programming when you can't. --E. W. Dijkstra

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ added some z3 interfaces for catalog related classes [ In reply to ]
Stefan H. Holek wrote:
> Yep, still problems, sorry ;-)
>
> Seems like PluginIndexes/interfaces.py should not import Five. How
> about getting interfaces from zope.interface?

Well. My goal was to use the bridging code from Five to avoid redundant
interface definitions. My approach obviously didn't work, so I added
redundant interface definitions for now.

I'll have a look at porting createZope2Bridge from Five to a better place.

Sorry for the inconveniences. Yuppie

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders