[Product-Developers] plone.reload, grokcore.component

4 Messages Forum Options Options
Permalink
Christian Klinger
[Product-Developers] plone.reload, grokcore.component
Reply Threaded More
Print post
Permalink
Hi Plone-Developers

is it possible to use plone.reload and grokcore.component in a
plone2.5_buildout?

By added plone.reload to my buildout.cfg with

- snippet -
eggs = plone.reload
zcml = plone.reolad

Then i try to visiting http://localhost/@@reload i got a NotFound Execption.

When i add grokcore.component to my buildout

- snippet -
eggs = grokcore.component
zcml = grokcore.component

i got this error on startup:

yeti:putlis cklinger$ bin/instance fg
Traceback (most recent call last):
   File "bin/instance", line 31, in ?
     plone.recipe.zope2instance.ctl.main(
   File
"/Users/cklinger/work/extranet/putlis/eggs/tmpoV8qOm/plone.recipe.zope2instance-2.3.1-py2.4.egg/plone/recipe/zope2instance/ctl.py",
line 204, in main
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/Zope2/Startup/zopectl.py",
line 95, in realize
     ZDOptions.realize(self, *args, **kw)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/zdaemon/zdoptions.py",
line 273, in realize
     self.load_schema()
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/zdaemon/zdoptions.py",
line 321, in load_schema
     self.schema = ZConfig.loadSchema(self.schemafile)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/loader.py",
line 31, in loadSchema
     return SchemaLoader().loadURL(url)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/loader.py",
line 65, in loadURL
     return self.loadResource(r)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/loader.py",
line 159, in loadResource
     schema = ZConfig.schema.parseResource(resource, self)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/schema.py",
line 27, in parseResource
     xml.sax.parse(resource.file, parser)
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/sax/__init__.py",
line 33, in parse
     parser.parse(source)
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/sax/expatreader.py",
line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/sax/xmlreader.py",
line 123, in parse
     self.feed(buffer)
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/sax/expatreader.py",
line 207, in feed
     self._parser.Parse(data, isFinal)
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/sax/expatreader.py",
line 300, in start_element
     self._cont_handler.startElement(name, AttributesImpl(attrs))
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/schema.py",
line 99, in startElement
     getattr(self, "start_" + name)(attrs)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/schema.py",
line 475, in start_schema
     keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/schema.py",
line 201, in get_sect_typeinfo
     datatype = self.get_datatype(attrs, "datatype", "null", base)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/schema.py",
line 194, in get_datatype
     return self._registry.get(dtname)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/datatypes.py",
line 398, in get
     t = self.search(name)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/ZConfig/datatypes.py",
line 423, in search
     package = __import__(n, g, g, component)
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/Zope2/Startup/datatypes.py",
line 21, in ?
     import OFS.Uninstalled
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/OFS/Uninstalled.py",
line 20, in ?
     import SimpleItem, Globals, Acquisition
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/OFS/SimpleItem.py",
line 26, in ?
     import AccessControl.Role, AccessControl.Owned, App.Common
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/AccessControl/__init__.py",
line 17, in ?
     from Implementation import setImplementation
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/AccessControl/Implementation.py",
line 98, in ?
     setImplementation("C")
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/AccessControl/Implementation.py",
line 51, in setImplementation
     from AccessControl import ImplC as impl
   File
"/Users/cklinger/work/extranet/putlis/parts/zope2/lib/python/AccessControl/ImplC.py",
line 30, in ?
     from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython


Any Ideas?

Thanks Christian


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Martin Aspeli-2
Re: [Product-Developers] plone.reload, grokcore.component
Reply Threaded More
Print post
Permalink

Christian Klinger wrote:
Hi Plone-Developers

is it possible to use plone.reload and grokcore.component in a
plone2.5_buildout?
Possibly, but I doubt it. The version of Zope 3 that ships with Zope 2.10 (for Plone 3) is much newer and I'd be surprised if grokcore.component could work with the old zope.component implementation. plone.reload could probably be made to work, but you may need to re-register its views.

Martin
Christian Klinger
[Product-Developers] Re: plone.reload, grokcore.component
Reply Threaded More
Print post
Permalink
Martin Aspeli schrieb:

>
>
> Christian Klinger wrote:
>> Hi Plone-Developers
>>
>> is it possible to use plone.reload and grokcore.component in a
>> plone2.5_buildout?
>>
>
> Possibly, but I doubt it. The version of Zope 3 that ships with Zope 2.10
> (for Plone 3) is much newer and I'd be surprised if grokcore.component could
> work with the old zope.component implementation. plone.reload could probably
> be made to work, but you may need to re-register its views.
>
> Martin
>
Hi Martin

thanks for your quick answer.

I have checked the grokcore.component problem with philikon. It seems
that the shiped version of zope.component from Zope2.9 is to old for
grokcore.component.

What do you mean with reregister?

Thanks Christian


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Martin Aspeli-2
Re: [Product-Developers] Re: plone.reload, grokcore.component
Reply Threaded More
Print post
Permalink

Christian Klinger wrote:
Martin Aspeli schrieb:
>
>
> Christian Klinger wrote:
>> Hi Plone-Developers
>>
>> is it possible to use plone.reload and grokcore.component in a
>> plone2.5_buildout?
>>
>
> Possibly, but I doubt it. The version of Zope 3 that ships with Zope 2.10
> (for Plone 3) is much newer and I'd be surprised if grokcore.component could
> work with the old zope.component implementation. plone.reload could probably
> be made to work, but you may need to re-register its views.
>
> Martin
>
Hi Martin

thanks for your quick answer.

I have checked the grokcore.component problem with philikon. It seems
that the shiped version of zope.component from Zope2.9 is to old for
grokcore.component.
Yep. Doesn't surprise me.

Note that you don't really *need* grokcore.component for anything. You can just keep registering adapters with ZCML.

What do you mean with reregister?
I mean that the @@reload view has a <browser:page /> statement and I'm guessing that it's registered for something that doesn't exist in Zope 2.9.

Martin