GenericSetup: content fails for sub-objects w/o adapters

Bug #300315 reported by Tres Seaver on 2008-11-20
Affects Status Importance Assigned to Milestone
Zope CMF
Tres Seaver

Bug Description

When importing content using the
Products.GenericSetup.content.FolderishExporterImporter, sub-objects
which can be created but then cannot be adapted to IFilesystemImporter
cause the import to fail:

------------------------ %< --------------------------
Traceback (most recent call last):
  File "bin/import_content", line 62, in ?
  File "/home/tseaver/projects/agendaless/intrexon/buildouts/", line 180, in main
  File "/home/tseaver/projects/agendaless/intrexon/buildouts/", line 173, in __call__
  File "/home/tseaver/projects/agendaless/intrexon/buildouts/", line 153, in do_reload
    adapter.import_(import_ctx, '.', True)
  File "/home/tseaver/projects/agendaless/intrexon/buildouts/", line 182, in import_
    IFilesystemImporter(wrapped).import_(import_context, subdir)
TypeError: ('Could not adapt', <AutoGroup at /intrexon/acl_users/auto_group>, <InterfaceClass Products.GenericSetup.interfaces.IFilesystemImporter>)
------------------------ %< --------------------------

Rather than failing, such objects should be skipped. The attached patch
against version fixes this, but supplies no test.

Tres Seaver (tseaver) wrote :
Tres Seaver (tseaver) wrote :
Tres Seaver (tseaver) wrote :
Changed in zope-cmf:
assignee: nobody → tseaver
status: New → Fix Committed
Changed in zope-cmf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers