Sim, eu criei o "publication box" com id destaque, registrei todos os
javascrips no portal_javascript.
No meu sitePlone, o portlet aparece vazio, então criei uma pasta e
adicionei as imagens, depois fui em publicações(plone site) editei e
inseri as imagens lá. Quando salvo dá erro;

Traceback (innermost last):

    * Module ZPublisher.Publish, line 115, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 41, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
    * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.CacheSetup.patch_cmf, line 56, in PT_pt_render
    * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /Plone3/publicator_select_form>
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 780, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 780, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 691, in do_loop_tal
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 455, in do_optTag_tal
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: /Plone3/portal_skins/custom/portlet_destaque
      Line 20, Column 2
      Expression: <PythonExpr here.banner_slideshow_js(0,frames-1,8000)>
      Names:

      {'container': <PloneSite at /Plone3>,
       'context': <PloneSite at /Plone3>,
       'default': <Products.PageTemplates.TALES.Default instance at
0x0156FE68>,
       'here': <PloneSite at /Plone3>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at
0x0692A148>,
       'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x01567058>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x0692A148>,
       'request': <HTTPRequest,
URL=http://localhost:8080/Plone3/publicator_select_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /Plone3/publicator_select_form>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: here.banner_slideshow_js(0,frames-1,8000)
    * Module Python expression
"here.banner_slideshow_js(0,frames-1,8000)", line 1, in <expression>

AttributeError: banner_slideshow_js 



Só uma dúvida: Eu inseri os códigos no custom como:
                
banner_slideshow_js.py External Editor 
File
                
builder.js External Editor
File
                
controls.js External Editor
File 
                
dragdrop.js External Editor
File 
                
effects.js External Editor
File 
                
portlet-banner.css External Editor
DTML Method
                
portlet_destaque External Editor
Page Template
                
prototype.js External Editor
File 
                
scriptaculous.js External Editor
File
                
slider.js External Editor 
File

Pode ser assim?

Responder a