On 2009-12-30 15:06, Jens Vagelpohl wrote:
> Hash: SHA1
> Hi all,
> I'm working on a PAS plugin and want to ensure it has GenericSetup
> support like the standard plugins. I'm running into issues trying to use
> GenericSetup in a manual test, though.
> With a setup_tool inside the PluggableAuthService instance I can create
> an export tarball when I select the "Contents: Export the PAS' registry
> and plugins" step explicitly and click "Export selected steps". However,
> I can't find a way to re-import this tarball.
> Separate note: On the "Import" tab I see a dropdown of extension
> profiles to select. Changing the selection here never affects the list
> of available import steps, though. This is confusing to me, but I may
> have misunderstood the purpose.
> So I am selecting my tarball into the upload field and click "Import
> uploaded tarball", which presents this traceback:
> Traceback (innermost last):
>    Module ZPublisher.Publish, line 127, in publish
>    Module ZPublisher.mapply, line 77, in mapply
>    Module ZPublisher.Publish, line 47, in call_object
>    Module Products.GenericSetup.tool, line 558, in manage_importTarball
>    Module Products.GenericSetup.tool, line 331, in
> runAllImportStepsFromProfile
>    Module Products.GenericSetup.tool, line 1085, in
> _runImportStepsFromContext
>    Module Products.GenericSetup.tool, line 999, in _doRunImportStep
>     - __traceback_info__: catalog
>    Module Products.CMFCore.exportimport.catalog, line 28, in
> importCatalogTool
>    Module Products.CMFCore.utils, line 123, in getToolByName
> AttributeError: portal_catalog

I think that is a bug in importCatalogTool; it should not do anything if 
portal_catalog does not exist. I'm a bit surprised it tries to do 
anything at all; do you have a catalog.xml file in your profile perhaps?


Wichert Akkerman <wich...@wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.
Zope-CMF maillist  -  Zope-CMF@zope.org

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to