Hello,
I tried to export with CPSIO some vocabularies I created and
everything was fine, unfortunately I wasn't able to import them back.
The error I get is:

Request URL     http://localhost:8080/cps/cps3importer
Exception Type  IndexError
Exception Value         list index out of range

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.CMFCore.FSPythonScript, line 108, in __call__
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPythonScript, line 163, in _exec
    * Module None, line 17, in cps3importer
      <FSPythonScript at /cps/cps3importer>
      Line 17
    * Module Products.CPSIO.import_modules.CPS3Importer, line 222, in importFile
    * Module Products.CPSIO.import_modules.CPS3Importer, line 938, in importFile
    * Module Products.CPSIO.import_modules.CPS3Importer, line 952, in
updateVocabularies
    * Module Products.CPSIO.import_modules.CPS3Importer, line 1102, in
verifyVocabularies
    * Module Products.CPSSchemas.VocabulariesTool, line 63, in
manage_addCPSVocabulary
    * Module Products.CPSSchemas.Vocabulary, line 259, in __init__
    * Module Products.CPSSchemas.Vocabulary, line 103, in __init__

IndexError: list index out of range


I have also tried to export them from the ZMI as zexp files but when I
try to import them I get this other error:

Site Error
An error was encountered while publishing this resource.

NotFound
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
    * Module Zope2.App.startup, line 199, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module OFS.ObjectManager, line 561, in manage_importObject
    * Module OFS.ObjectManager, line 580, in _importObjectFromFile
    * Module OFS.CopySupport, line 377, in _verifyObjectPaste
    * Module OFS.Traversable, line 233, in restrictedTraverse
    * Module OFS.Traversable, line 213, in unrestrictedTraverse
      __traceback_info__: ([], 'CPSMethodVocabulary')

NotFound: CPSMethodVocabulary (Also, an error occurred while
attempting to render the standard error message.)

Do you have any suggestions how to correctly export and import vocabularies?

Thank you,
Stefano
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to