I see unfortunately, AdvancedQuery is intensively used to manage the WFS GetFeature requests it cannot be achieved with regular ZCatalog search
Eric On Fri, Jun 11, 2010 at 10:11 AM, Christian Ledermann <[email protected]> wrote: > On Thu, 2010-06-10 at 21:09 +0200, Eric Bréhault wrote: >> On Thu, Jun 10, 2010 at 4:55 PM, Christian Ledermann >> <[email protected]> wrote: >> > >> > On Thu, 2010-06-10 at 15:39 +0200, Eric Bréhault wrote: >> >> Hello, >> >> >> >> yes right,that is due to line 17 in geofeatureindex.py : >> >> __implements__ = UnIndex.__implements__ >> >> this line is not needed anymore, you can remove it >> > >> > ok, done, that fixed this problem :) >> > >> >> >> >> I haven't made any changes on this package for a long time, as >> >> dependencies have evolved, it might be broken, >> > >> > right, the next problem that i ran into is: >> > >> > zgeo/wfs/webfeatureservice.py: >> > >> > from Products.AdvancedQuery.AdvancedQuery import * >> > >> > ImportError: No module named AdvancedQuery.AdvancedQuery >> > >> > In plone 3 advanced query was a part of the core (iirc) but now in plone >> > 4 it is gone. >> > >> >> ok, well just add Products.AdvancedQuery in your buildout and install it >> I guess it should work >> > > Advanced query does not work, I contacted the plone setup list about > that. > > Would it be difficult to remove that dependency (or have it as an > option)? > > > Anyway with the dependency fulfilled, the test and startup go a little > bit further: > > --------------------------------------------- > Error in > test > /home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/tests/unit.txt > Traceback (most recent call last): > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/unittest.py", > line 270, in run > self.setUp() > File > "/home/ledermac/.buildout/eggs/zope.testing-3.9.4-py2.6.egg/zope/testing/doctest/__init__.py", > line 2206, in setUp > self._dt_setUp(test) > File > "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/tests/tests_unit.py", > line 31, in configurationSetUp > XMLConfig('configure.zcml', zgeo.wfs)() > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 703, in __init__ > include(context, file_name, module) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 546, in include > processxmlfile(f, context) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 378, in processxmlfile > parser.parse(src) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 107, in parse > xmlreader.IncrementalParser.parse(self, source) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", > line 123, in parse > self.feed(buffer) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 207, in feed > self._parser.Parse(data, isFinal) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 338, in start_element_ns > AttributesNSImpl(newattrs, qnames)) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 230, in startElementNS > self.context.begin(name, data, info) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 534, in begin > self.stack.append(self.stack[-1].contained(__name, __data, __info)) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 835, in contained > return RootStackItem.contained(self, name, data, info) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 703, in contained > factory = self.context.factory(self.context, name) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 480, in factory > raise ConfigurationError("Unknown directive", ns, n) > ZopeXMLConfigurationError: File > "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/configure.zcml", > line 43.1 > ConfigurationError: ('Unknown directive', > u'http://namespaces.zope.org/five', u'traversable') > > ------------------------------------------------------- > ------------------------------------------------------- > > Error in > test > /home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/geocatalog/rtree.txt > Traceback (most recent call last): > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/unittest.py", > line 270, in run > self.setUp() > File > "/home/ledermac/.buildout/eggs/zope.testing-3.9.4-py2.6.egg/zope/testing/doctest/__init__.py", > line 2206, in setUp > self._dt_setUp(test) > File > "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/tests/tests_unit.py", > line 31, in configurationSetUp > XMLConfig('configure.zcml', zgeo.wfs)() > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 703, in __init__ > include(context, file_name, module) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 546, in include > processxmlfile(f, context) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 378, in processxmlfile > parser.parse(src) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 107, in parse > xmlreader.IncrementalParser.parse(self, source) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/xmlreader.py", > line 123, in parse > self.feed(buffer) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 207, in feed > self._parser.Parse(data, isFinal) > File > "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/xml/sax/expatreader.py", > line 338, in start_element_ns > AttributesNSImpl(newattrs, qnames)) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 230, in startElementNS > self.context.begin(name, data, info) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 534, in begin > self.stack.append(self.stack[-1].contained(__name, __data, __info)) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 835, in contained > return RootStackItem.contained(self, name, data, info) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 703, in contained > factory = self.context.factory(self.context, name) > File > "/home/ledermac/.buildout/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 480, in factory > raise ConfigurationError("Unknown directive", ns, n) > ZopeXMLConfigurationError: File > "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/configure.zcml", > line 43.1 > ConfigurationError: ('Unknown directive', > u'http://namespaces.zope.org/five', u'traversable') > ------------------------------------------------------------- > > I am not sure if its any worth investigating before advanced query is > running > > > > -- > Best regards, > > Christian Ledermann > > Nairobi - Kenya > Mobile : +254 729495789 > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > }<(((*> > > _______________________________________________ > Community mailing list > [email protected] > http://lists.gispython.org/mailman/listinfo/community > _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
