Open jeanferri opened 10 years ago
Sorry, the XML code is:
<assignment name="radio-legislativa" category="context" key="/"
manager="plone.rightcolumn" type="collective.flowplayer.Player"
visible="True">
<property name="show_more">True</property>
<property name="header">Radio Legislativa</property>
<property name="splash">/imagens/audio-player.png</property>
<property name="limit"/>
<property name="target">/institucional/audios</property>
<property name="random">False</property>
</assignment>
The traceback is:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.GenericSetup.tool, line 565, in manage_importTarball
Module Products.GenericSetup.tool, line 350, in runAllImportStepsFromProfile
Module Products.GenericSetup.tool, line 1100, in _runImportStepsFromContext
Module Products.GenericSetup.tool, line 1015, in _doRunImportStep
- __traceback_info__: portlets
Module plone.app.portlets.exportimport.portlets, line 727, in importPortlets
Module Products.GenericSetup.utils, line 509, in _importBody
Module plone.app.portlets.exportimport.portlets, line 249, in _importNode
Module plone.app.portlets.exportimport.portlets, line 258, in _initProvider
Module plone.app.portlets.exportimport.portlets, line 312, in _initPortlets
Module plone.app.portlets.exportimport.portlets, line 481, in _initAssignmentNode
Module plone.app.portlets.exportimport.portlets, line 119, in import_assignment
Module plone.app.portlets.exportimport.portlets, line 162, in import_node
Module plone.app.portlets.exportimport.portlets, line 205, in from_unicode
Module zope.schema._bootstrapfields, line 435, in fromUnicode
ValueError: invalid literal for int() with base 10: ''
Actually I changed the property for 'limit' tag and it worked:
<assignment name="radio-legislativa" category="context" key="/"
manager="plone.rightcolumn" type="collective.flowplayer.Player"
visible="True">
<property name="show_more">True</property>
<property name="header">Rádio Legislativa</property>
<property name="splash">/imagens/audio-player.png</property>
<property name="limit">0</property>
<property name="target">/institucional/audios</property>
<property name="random">False</property>
</assignment>
The portlet is created but it does'nt appears, even with MP3 files in '/institucional/audios' folder. If I create it manually with the same parameters than it works fine. Some idea what is going wrong?
I fixed it in https://github.com/interlegis/interlegis.portalmodelo.policy/commit/646196532d74b3ac3fff6296c5c07b96fbe6170e#diff-bea04f6e897f15298f3ead26d4afedb0R441 don't know why this is necessary! :-(
I'm trying to export and import a Video Player portlet using setup tool but it raises an error on Plone 4.3.3:
Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.GenericSetup.tool, line 565, in manage_importTarball Module Products.GenericSetup.tool, line 350, in runAllImportStepsFromProfile Module Products.GenericSetup.tool, line 1100, in _runImportStepsFromContext Module Products.GenericSetup.tool, line 1015, in _doRunImportStep __traceback_info__: portlets Module plone.app.portlets.exportimport.portlets, line 727, in importPortlets Module Products.GenericSetup.utils, line 509, in _importBody Module plone.app.portlets.exportimport.portlets, line 249, in _importNode Module plone.app.portlets.exportimport.portlets, line 258, in _initProvider Module plone.app.portlets.exportimport.portlets, line 312, in _initPortlets Module plone.app.portlets.exportimport.portlets, line 481, in _initAssignmentNode Module plone.app.portlets.exportimport.portlets, line 119, in import_assignment Module plone.app.portlets.exportimport.portlets, line 162, in import_node Module plone.app.portlets.exportimport.portlets, line 205, in from_unicode Module zope.schema._bootstrapfields, line 435, in fromUnicode ValueError: invalid literal for int() with base 10: ''
I'm using collective.flowplayer 4.2.1. The importing XML is bellow. Some idea what is going wrong?
<assignment name="radio-legislativa" category="context" key="/" manager="plone.rightcolumn" type="collective.flowplayer.Player" visible="True">