[Zope-it] manage_page_header
Michele Bendazzoli
mickymouse a mickymouse.it
Mer 6 Ago 2003 07:17:31 EDT
On Tue, 2003-08-05 at 21:53, Davide Corio wrote:
> Salve a tutti,
> dopo essermi create un piccolo prodotto, ricevo questo errore accendendo
> dalla zmi a manage_workspace:
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: KeyError
> Error Value: manage_page_header
>
> Why?
In generale questo errore e' perche non riesce a trovare lo script in
base alla regola dell'aquisizione:
Advanced Zope Scripting
Zope will throw a KeyError exception if the script you are calling
cannot be acquired. If you are not certain that a given script exists in
the current context, or if you want to compute the script name at
run-time, you can use this Python idiom:
updateInfo = getattr(context, "updateInfo", None)
if updateInfo is not None:
updateInfo(color="brown", pattern="spotted")
else:
# complain about missing script
Spero sia di tuo aiuto
ciao, Michele
Maggiori informazioni sulla lista
Zope-it