Python BR
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Python BR

Aprenda tudo sobre a linguagem python e seus derivados!!!
 
InícioInício  Últimas imagensÚltimas imagens  ProcurarProcurar  RegistarRegistar  Entrar  

 

 type error em python

Ir para baixo 
AutorMensagem
Marina Mattos




Mensagens : 1
Data de inscrição : 13/01/2010

type error em python Empty
MensagemAssunto: type error em python   type error em python EmptyQua Jan 13, 2010 3:18 pm

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
Ir para o topo Ir para baixo
 
type error em python
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» O que e Python? e Porque aprender Python?
» python tk label
» Python na pratica
» Python + Mysql
» Ajuda python urgente

Permissões neste sub-fórumNão podes responder a tópicos
Python BR :: Python e seus Derivados :: Python-
Ir para: