[Grok-dev] Problems with zope.app.authentication (3.8.0) -> ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/browser', u'addMenuItem')
Hector Blanco
white.lists at gmail.com
Wed Dec 15 15:46:36 EST 2010
Ooooh... nice :)
Yeah, it seems to work with
zope.authentication
and (and I had to install this, so I don't know if it's the best choice, but...)
zope.pluggableauth
Thank you again!
2010/12/15 Jeffrey Peterson <bgpete at gmail.com>:
> You don't want that..everything you need to do auth is already there.
>
> zope.authentication
> zope.password
> et al..
>
> the zope.app stuff for the most part is not part of the equation any more.
>
> Grok is based on the ZTK
>
> http://docs.zope.org/zopetoolkit/releases/packages-1.0.html
> http://grok.zope.org/about/grok-for-zope-3-developers
> http://grok.zope.org/project/releases/1.2
>
> Jeff.
> On Dec 15, 2010, at 12:04 PM, Hector Blanco wrote:
>
>> Hello again, list...
>>
>> I was trying to setup my brand new server as I learned recently
>> (https://mail.zope.org/pipermail/grok-dev/2010-December/010885.html)
>> and I tried to install the plugable authentication module
>> zope.app.authentication. I added it in my setup:
>>
>> install_requires=['setuptools',
>> 'grok',
>> 'grokui.admin',
>> 'z3c.testsetup',
>> 'grokcore.startup',
>> # Add extra requirements here
>> 'mysql-python',
>> 'zope.pluggableauth',
>> 'PIL',
>> 'sqlalchemy',
>> 'z3c.saconfig',
>> 'zope.app.authentication',
>> 'z3c.viewlet'
>> ],
>>
>> I ran bin/buildout, it got the zope.app.authentication version 3.8.0
>> and a bunch of other packages:
>>
>> 'zope.app.authentication==3.8.0'.
>> 'zope.dublincore==3.7.0'.
>> 'zope.app.component==3.9.2'.
>> 'zope.app.container==3.9.1'.
>> 'zope.app.form==4.0.2'.
>> 'zope.componentvocabulary==1.0.1'.
>> 'zope.deprecation==3.4.0'.
>> 'zope.cachedescriptors==3.5.1'.
>> 'zope.app.pagetemplate==3.11.2'.
>> 'zope.app.publisher==3.10.2'.
>> 'zope.copypastemove==3.6.0'.
>> 'zope.copy==3.5.0'.
>>
>> but when I try to start the server, I get an exception... (and a
>> couple of warnings, but for the moment the exception is what is
>> messing it up)
>>
>> ----------------------------------------------------------------------
>> $ bin/paster serve parts/etc/deploy.ini
>>
>> /home/ae/.buildout/eggs/zope.testing-3.10.0-py2.6.egg/zope/testing/doctest/__init__.py:104:
>> DeprecationWarning: zope.testing.exceptions is deprecated in favour of
>> zope.testrunner.exceptions
>> from zope.testing.exceptions import DocTestFailureException
>> /home/ae/.buildout/eggs/z3c.testsetup-0.6.1-py2.6.egg/z3c/testsetup/doctesting.py:19:
>> DeprecationWarning: zope.testing.doctest is deprecated in favour of
>> the Python standard library doctest module
>> from zope.testing import doctest, cleanup
>> Traceback (most recent call last):
>> File "bin/paster", line 20, in <module>
>> paste.script.command.run()
>> File "/home/ae/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
>> line 84, in run
>> invoke(command, command_name, options, args[1:])
>> File "/home/ae/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
>> line 123, in invoke
>> exit_code = runner.run(args)
>> File "/home/ae/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
>> line 218, in run
>> result = self.command()
>> File "/home/ae/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py",
>> line 276, in command
>> relative_to=base, global_conf=vars)
>> File "/home/ae/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py",
>> line 313, in loadapp
>> **kw)
>>
>> [ ... more ... more ...]
>>
>> File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
>> self._parser.Parse(data, isFinal)
>> File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in
>> start_element_ns
>> AttributesNSImpl(newattrs, qnames))
>> File "/home/ae/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py",
>> line 234, in startElementNS
>> self.context.begin(name, data, info)
>> File "/home/ae/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py",
>> line 535, in begin
>> self.stack.append(self.stack[-1].contained(__name, __data, __info))
>> File "/home/ae/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py",
>> line 836, in contained
>> return RootStackItem.contained(self, name, data, info)
>> File "/home/ae/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py",
>> line 704, in contained
>> factory = self.context.factory(self.context, name)
>> File "/home/ae/.buildout/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py",
>> line 481, in factory
>> raise ConfigurationError("Unknown directive", ns, n)
>> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
>> "/home/ae/myown-cms/server/parts/etc/site.zcml", line 4.2-4.30
>> ZopeXMLConfigurationError: File
>> "/home/ae/myown-cms/server/src/server/configure.zcml", line 4.2-4.37
>> ZopeXMLConfigurationError: File
>> "/home/ae/.buildout/eggs/zope.app.authentication-3.8.0-py2.6.egg/zope/app/authentication/configure.zcml",
>> line 57.2-57.33
>> ZopeXMLConfigurationError: File
>> "/home/ae/.buildout/eggs/zope.app.authentication-3.8.0-py2.6.egg/zope/app/authentication/session.zcml",
>> line 22.2-22.52
>> ZopeXMLConfigurationError: File
>> "/home/ae/.buildout/eggs/zope.app.authentication-3.8.0-py2.6.egg/zope/app/authentication/browser/session.zcml",
>> line 5.2
>> ConfigurationError: ('Unknown directive',
>> u'http://namespaces.zope.org/browser', u'addMenuItem')
>> ----------------------------------------------------------------------
>>
>> The file that seems to be causing the troubles is
>> zope/app/authentication/browser/session.zcml (line 5), the
>> "addManuItem thing"
>>
>> <configure
>> xmlns="http://namespaces.zope.org/browser"
>>>
>>
>> <addMenuItem
>> title="Session Credentials Plugin"
>> class="zope.pluggableauth.plugins.session.SessionCredentialsPlugin"
>> permission="zope.ManageServices"
>> />
>>
>> <editform
>> schema="..session.IBrowserFormChallenger"
>> label="Browser Form Challenger"
>> name="edit.html"
>> permission="zope.ManageServices"
>> menu="zmi_views" title="Edit"
>> />
>>
>> <page
>> name="loginForm.html"
>> for="*"
>> template="loginform.pt"
>> class=".loginform.LoginForm"
>> permission="zope.Public"
>> />
>>
>> </configure>
>>
>> And I swear I didn't do anything. This is the way the file came with
>> zope.app.authentication...
>>
>> Googling a bit I've read that some directives have changed
>> (http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/vocabulary-directive-now-replaced-by-utilities)
>> but I don't know if that is the case (and if it is, I don't know what
>> to do)
>>
>> Does any of you have an idea of what's happening here?
>>
>> As usual, thank you in advance
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> https://mail.zope.org/mailman/listinfo/grok-dev
>
>
More information about the Grok-dev
mailing list