Ciao sono nuovo,
ho fatto un nuovo tema per plone 4 seguendo alcune guide sul sito Plone e
sono riuscito a raggiungere il risultato grafico sperato.
Il problema mi è nato quando ho provato ad aggiungere un nuovo portlet: in
pratica accedo a /@@manage-portlets e quando seleziono il tipo di portlet
nella tendina carica un po' e poi mi dà errore:
AttributeError("'DirContainedFileResource4' object has no attribute
'POST'",) (Also, the following error occurred while attempting to render the
standard error message, please see the event log for full details:
'DirContainedFileResource4' object has no attribute 'POST')
Il mio tema definisce una nuova homepage e qualche viewlets
Penso che senza il mio codice sia difficile per voi risalire con precisione
alla fonte del problema, cmq vi allego sotto quello che viene scritto nel
file di log.
Spero possiate aiutarmi.
Sandro
LOG:
2011-01-03T10:35:51 ERROR root Exception while rendering an error message
Traceback (most recent call last):
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/OFS/SimpleItem.py",
line 254, in raise_standardErrorMessage
v = s(**kwargs)
File
"/instance/buildout-cache/eggs/Products.CMFCore-2.2.2-py2.6.egg/Products/CMFCore/FSPythonScript.py",
line 130, in __call__
return Script.__call__(self, *args, **kw)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py",
line 324, in __call__
return self._bindAndExec(args, kw, None)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py",
line 361, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PythonScripts/PythonScript.py",
line 344, in _exec
result = f(*args, **kw)
File "Script (Python)", line 34, in standard_error_message
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py",
line 324, in __call__
return self._bindAndExec(args, kw, None)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py",
line 361, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/instance/buildout-cache/eggs/Products.CMFCore-2.2.2-py2.6.egg/Products/CMFCore/FSPageTemplate.py",
line 240, in _exec
result = self.pt_render(extra_context=bound_names)
File
"/instance/buildout-cache/eggs/Products.CMFCore-2.2.2-py2.6.egg/Products/CMFCore/FSPageTemplate.py",
line 180, in pt_render
self, source, extra_context
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PageTemplates/PageTemplate.py",
line 80, in pt_render
showtal=showtal)
File
"/instance/buildout-cache/eggs/zope.pagetemplate-3.5.1-py2.6.egg/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 888, in do_useMacro
self.interpret(macro)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 533, in do_optTag_tal
self.do_optTag(stuff)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 518, in do_optTag
return self.no_tag(start, program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 513, in no_tag
self.interpret(program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 852, in do_condition
self.interpret(block)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 533, in do_optTag_tal
self.do_optTag(stuff)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 518, in do_optTag
return self.no_tag(start, program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 513, in no_tag
self.interpret(program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 531, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 513, in no_tag
self.interpret(program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 742, in do_insertStructure_tal
structure = self.engine.evaluateStructure(expr)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PageTemplates/Expressions.py",
line 220, in evaluateStructure
text = super(ZopeContext, self).evaluateStructure(expr)
File
"/instance/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/tales.py",
line 696, in evaluate
return expression(self)
File
"/instance/buildout-cache/eggs/zope.contentprovider-3.5.0-py2.6.egg/zope/contentprovider/tales.py",
line 80, in __call__
return provider.render()
File
"/instance/buildout-cache/eggs/plone.app.viewletmanager-2.0.1-py2.6.egg/plone/app/viewletmanager/manager.py",
line 85, in render
return u'\n'.join([viewlet.render() for viewlet in self.viewlets])
File
"/instance/buildout-cache/eggs/zope.app.pagetemplate-3.7.1-py2.6.egg/zope/app/pagetemplate/simpleviewclass.py",
line 44, in __call__
return self.index(*args, **kw)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/Five/browser/pagetemplatefile.py",
line 126, in __call__
return self.im_func(im_self, *args, **kw)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/Five/browser/pagetemplatefile.py",
line 60, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File
"/instance/buildout-cache/eggs/zope.pagetemplate-3.5.1-py2.6.egg/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 533, in do_optTag_tal
self.do_optTag(stuff)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 518, in do_optTag
return self.no_tag(start, program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 513, in no_tag
self.interpret(program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 531, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 513, in no_tag
self.interpret(program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 742, in do_insertStructure_tal
structure = self.engine.evaluateStructure(expr)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PageTemplates/Expressions.py",
line 220, in evaluateStructure
text = super(ZopeContext, self).evaluateStructure(expr)
File
"/instance/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/tales.py",
line 696, in evaluate
return expression(self)
File
"/instance/buildout-cache/eggs/zope.contentprovider-3.5.0-py2.6.egg/zope/contentprovider/tales.py",
line 80, in __call__
return provider.render()
File
"/instance/buildout-cache/eggs/zope.viewlet-3.6.1-py2.6.egg/zope/viewlet/manager.py",
line 124, in render
return self.template(viewlets=self.viewlets)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/Five/browser/pagetemplatefile.py",
line 126, in __call__
return self.im_func(im_self, *args, **kw)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/Five/browser/pagetemplatefile.py",
line 60, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File
"/instance/buildout-cache/eggs/zope.pagetemplate-3.5.1-py2.6.egg/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 343, in interpret
handlers[opcode](self, args)
File
"/instance/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py",
line 819, in do_loop_tal
iterator = self.engine.setRepeat(name, expr)
File
"/instance/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/tales.py",
line 682, in setRepeat
expr = self.evaluate(expr)
File
"/instance/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/tales.py",
line 696, in evaluate
return expression(self)
File
"/instance/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/expressions.py",
line 217, in __call__
return self._eval(econtext)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PageTemplates/Expressions.py",
line 157, in _eval
return render(ob, econtext.vars)
File
"/instance/buildout-cache/eggs/Zope2-2.12.11-py2.6-linux-x86_64.egg/Products/PageTemplates/Expressions.py",
line 119, in render
ob = ob()
File
"/instance/buildout-cache/eggs/Products.ResourceRegistries-2.0.2-py2.6.egg/Products/ResourceRegistries/browser/scripts.py",
line 27, in scripts
content = registry.getInlineResource(script.getId(), context)
File
"/instance/buildout-cache/eggs/Products.ResourceRegistries-2.0.2-py2.6.egg/Products/ResourceRegistries/tools/BaseRegistry.py",
line 831, in getInlineResource
output = self.getResourceContent(item, context)
File
"/instance/buildout-cache/eggs/Products.ResourceRegistries-2.0.2-py2.6.egg/Products/ResourceRegistries/tools/JSRegistry.py",
line 246, in getResourceContent
output = BaseRegistryTool.getResourceContent(self, item, context,
original)
File
"/instance/buildout-cache/eggs/Products.ResourceRegistries-2.0.2-py2.6.egg/Products/ResourceRegistries/tools/BaseRegistry.py",
line 588, in getResourceContent
method = obj.browserDefault(self.REQUEST)[0].__name__
File
"/instance/buildout-cache/eggs/zope.app.publisher-3.8.4-py2.6.egg/zope/app/publisher/browser/fileresource.py",
line 41, in browserDefault
return getattr(self, request.method), ()
AttributeError: 'DirContainedFileResource4' object has no attribute 'POST'
_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html