[Zope-it] Aiuto errore
Giuseppe Pagano
giuseppe.pagano@nekhem.com
Mon, 9 Sep 2002 15:08:05 +0200
Ciao,
sembra proprio un errore di indentazione ... controlla che non ci
siano spazi o tab nei posti sbagliati .. (anche in funzioni che non
richiami da zope !!)
Ciao
Giuseppe
On 2002.09.09 13:20 jmedia@virgilio.it wrote:
> Sto importando un programma scritto in python per leggere l'email.
> In python puro funziona bene. Importandolo in zope come External
> method
> facendo il test mi risponde in questo modo:
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: IndentationError
> Error Value: expected an indented block (EMAIL.py, line 8)
>
>
>
> --------------------------------------------------------------------------------
>
> Troubleshooting Suggestions
>
> The URL may be incorrect.
> The parameters passed to this resource may be incorrect.
> A resource that this resource relies on may be encountering an
> error.
> For more detailed information about the error, please refer to the
> HTML
> source for this page.
>
> If the error persists please contact the site maintainer. Thank you
> for
> your patience.
>
>
>
>
> Traceback (innermost last):
> File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line
> 150,
> in publish_module
> File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line
> 114,
> in publish
> File C:\Programmi\WebSite\lib\python\Zope\__init__.py, line 159,
> in zpublisher_exception_hook
> (Object: prova)
> File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line
> 98, in
> publish
> File C:\Programmi\WebSite\lib\python\ZPublisher\mapply.py, line
> 88, in
> mapply
> (Object: manage_edit)
> File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line
> 39, in
> call_object
> (Object: manage_edit)
> File
> C:\Programmi\WebSite\lib\python\Products\ExternalMethod\ExternalMethod.py,
> line 132, in manage_edit
> (Object: prova)
> File
> C:\Programmi\WebSite\lib\python\Products\ExternalMethod\ExternalMethod.py,
> line 139, in getFunction
> (Object: prova)
> File C:\Programmi\WebSite\lib\python\App\Extensions.py, line 145,
> in getObject
> (Info: ('C:\\Programmi\\WebSite\\Extensions\\EMAIL.py',
> 'EMAIL'))
> IndentationError: (see above)
>
> cosa defo fare?
> grazie
>
>
>
> _______________________________________________
> Zope-it maillist - Zope-it@zope.org
> http://lists.zope.org/mailman/listinfo/zope-it
>