Bom dia a todos, sou estudante de ciencia da computação e iniciante na linguagem python fiz este script que segue abaixo em controller python script e esta dando erro e coloquei o erro na tela abaixo. ja tentei e não consegui resolver. alguem pode me dar uma forcinha? Obrigada, Marina
request = container.REQUEST
RESPONSE = request.RESPONSE
pi = float(request.get('P_ RESINA'))
pf = float(request.get('PF'))
print abs ((pf- pi))*10
return printed
ESTE É O ERRO:
Site Error
An error was encountered while publishing this resource.
TypeError
Sorry, a site error occurred.
Traceback (innermost last):
* Module ZPublisher.Publish, line 196, in publish_module_standard
* Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish
* Module ZPublisher.Publish, line 146, in publish
* Module Zope2.App.startup, line 222, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Products.CMFFormController.ControllerPythonScript, line 161, in __call__
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.PythonScripts.PythonScript, line 325, in _exec
* Module None, line 3, in adubacao_fosfatada
<ControllerPythonScript at /extranet/recomenda/adubacao_fosfatada>
Line 3
TypeError