Re: collective.ptg.flickr — Conf igurationError: ('Unknown directive', u'http ://namespaces.zope.org/gallery', u'type' )

David Siedband <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
On Jan 10, 2015, at 7:43, dieter wrote:

> David Siedband writes:
> 
>> I.ve installed collective.ptg.flickr into one of my Plone 4 sites.  When I only put the package name under eggs, I don.t see the flickr options in my gallery settings or control panels.  I.m on PTG 3.4.5 fwiw.
>> 
>> After I add the package name to the zcml section in my buildout I get the following error which makes my Plone instances fail to boot.
>> 
>> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/zope/buildout/parts/instance1/etc/site.zcml", line 15.2-15.55
>>   ZopeXMLConfigurationError: File "/home/zope/buildout/parts/instance1/etc/package-includes/008-collective.ptg.flickr-configure.zcml", line 1.0-1.65
>>   ZopeXMLConfigurationError: File "/home/zope/buildout/eggs/collective.ptg.flickr-0.1.1-py2.6.egg/collective/ptg/flickr/configure.zcml", line 9.6
>>   ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/gallery', u'type.)
>> 
>> Looking in eggs/collective.ptg.flickr-0.1.1-py2.6.egg/collective/ptg/flickr/configure.zcml
>> 
>> I see the following:
>> 
>> <configure
>>   xmlns="http://namespaces.zope.org/zope"
>>  	xmlns:zope="http://namespaces.zope.org/zope"
>>  	xmlns:gallery="http://namespaces.zope.org/gallery"
>>   xmlns:zcml="http://namespaces.zope.org/zcml"
>>   i18n_domain="collective.plonetruegallery">
>> 
>> 
>>     <gallery:type
>>       factory=".FlickrAdapter"
>>       provides="collective.ptg.flickr.IFlickrAdapter"
>>       condition=".add_condition"
>>   />
>> .
>> 
>> Why is the type directive in the gallery namespace failing?  
> 
> Apparently, the directives from the "http://namespaces.zope.org/gallery"
> are not yet registered.
> 
> By convention, new directive registrations are defined in "meta.zcml" files.
> 
> Likely, you need to add some "<package>-meta" to your "zcml"
> configuration in your "buildout.cfg".
> 
> Ideally, the installation instructions of "collective.ptg.flickr"
> should tell you precisely, what you need to do the get the package
> functioning properly.

Thanks.  With this information I was able to solve the import error by adding collective.plonetruegallery to the zcml list in buildout.
--
David Siedband
http://zentraal.com

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.