Where do I find InternalPrincipal in Grok 1.3?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Where do I find InternalPrincipal in Grok 1.3?

Sebastian Ware
The following fails and I can't find InternalPrincipal when searching the new eggs:

  from zope.app.authentication.principalfolder import InternalPrincipal

Traceback (most recent call last):
  File "/Users/jhsware/groksandbox_1.3/ProtonCMS/bin/paster", line 111, in <module>
    paste.script.command.run()
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in loadapp
    **kw)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
    return context.create()
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
    return self.object_type.invoke(self)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
    app = context.app_context.create()
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
    return self.object_type.invoke(self)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/Users/jhsware/groksandbox_1.3/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "/Users/jhsware/groksandbox_1.3/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/startup.py", line 19, in debug_application_factory
    app = application_factory(global_conf, **local_conf)
  File "/Users/jhsware/groksandbox_1.3/eggs/grokcore.startup-1.1-py2.6.egg/grokcore/startup/startup.py", line 14, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.app.wsgi-3.10.0-py2.6.egg/zope/app/wsgi/__init__.py", line 162, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.app.wsgi-3.10.0-py2.6.egg/zope/app/wsgi/__init__.py", line 150, in config
    appsetup.config(options.site_definition, features=features)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.app.appsetup-3.15.0-py2.6.egg/zope/app/appsetup/appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 651, in file
    include(context, name, package)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/Users/jhsware/groksandbox_1.3/eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/Users/jhsware/groksandbox_1.3/eggs/grokcore.component-2.2-py2.6.egg/grokcore/component/zcml.py", line 57, in grokDirective
    do_grok(package.__name__, _context, extra_exclude=exclude)
  File "/Users/jhsware/groksandbox_1.3/eggs/grokcore.component-2.2-py2.6.egg/grokcore/component/zcml.py", line 71, in do_grok
    config=config)
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/core.py", line 203, in grok_dotted_name
    grok_package(module_info, grokker, **kw)
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/core.py", line 208, in grok_package
    grok_package(sub_module_info, grokker, **kw)
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/core.py", line 206, in grok_package
    grok_module(module_info, grokker, **kw)
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/core.py", line 211, in grok_module
    grokker.grok(module_info.dotted_name, module_info.getModule(),
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/scan.py", line 141, in getModule
    self._module = resolve(self.dotted_name)
  File "/Users/jhsware/groksandbox_1.3/eggs/martian-0.14-py2.6.egg/martian/scan.py", line 217, in resolve
    __import__(used)
  File "/Users/jhsware/groksandbox_1.3/ProtonCMS/src/protoncms/testdata.py", line 148, in <module>
    from zope.authentication.principalfolder import InternalPrincipal
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/jhsware/groksandbox_1.3/ProtonCMS/parts/etc/site.zcml", line 4.2-4.33
    ZopeXMLConfigurationError: File "/Users/jhsware/groksandbox_1.3/ProtonCMS/src/protoncms/configure.zcml", line 5.2-5.27
    ImportError: No module named principalfolder



Mvh Sebastian


_______________________________________________
Grok-dev mailing list
[hidden email]
https://mail.zope.org/mailman/listinfo/grok-dev
Reply | Threaded
Open this post in threaded view
|

Re: Where do I find InternalPrincipal in Grok 1.3?

Uli Fouquet
Hi Sebastian,

Sebastian Ware wrote:

> The following fails and I can't find InternalPrincipal when searching
> the new eggs:
>
>   from zope.app.authentication.principalfolder import
> InternalPrincipal
>

I guess you're looking for

  zope.pluggableauth.plugins.principalfolder.InternalPrincipal

Best regards,

--
Uli


_______________________________________________
Grok-dev mailing list
[hidden email]
https://mail.zope.org/mailman/listinfo/grok-dev

signature.asc (196 bytes) Download Attachment