[Zope] Size limit on Zclass text property???

Rogerio Atem de Carvalho ratem@censa.com.br
Wed, 25 Jul 2001 14:45:20 -0300 (BRT)


> OK, a traceback has line numbers and method names in them.  You got
> the
> error header part right, but not the traceback part.  ;-)  If
> possible,
> please view the source of an error page and send the traceback.
>=20
Sorry...

below the traceback are the form and method codes I used. Some coments an=
d=20
variable names are in portuguese...

Here it goes:

Zope Error
Zope has encountered an error while publishing this resource.

Error Type: NameError
Error Value: conteudo

-------------------------------------------------------------------------=
-------

Troubleshooting Suggestions

This resource may be trying to reference a nonexistent object or variable=
=20
conteudo.=20
The URL may be incorrect.=20
The parameters passed to this resource may be incorrect.=20
A resource that this resource relies on may be encountering an error.=20
For more detailed information about the error, please refer to the HTML s=
ource=20
for this page.=20

If the error persists please contact the site maintainer. Thank you for y=
our=20
patience.=20

Traceback (innermost last):
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 223, in publish_=
module
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\WebSite\lib\python\Zope\__init__.py, line 221, in=20
zpublisher_exception_hook
    (Object: Traversable)
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: metAddIdxTurRJ)
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_obj=
ect
    (Object: metAddIdxTurRJ)
  File C:\WebSite\lib\python\OFS\DTMLMethod.py, line 189, in __call__
    (Object: metAddIdxTurRJ)
  File C:\WebSite\lib\python\DocumentTemplate\DT_String.py, line 538, in=20
__call__
    (Object: metAddIdxTurRJ)
  File C:\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 334, in ev=
al
    (Object: REQUEST.set('conteudo', conteudo))
    (Info: REQUEST)
  File <string>, line 0, in ?
NameError: (see above)

_____________________________________

<dtml-var standard_html_header>
<H2>Adicionar =CDndice Turismo-RJ</H2>
<FORM action=3D"metAddIdxTurRJ">
<TABLE border=3D"0">
<TR><TH>Endere=E7o</TH>
    <TD><input type=3Dtext name=3Dendereco size=3D"35" value=3D"http://ww=
w.turismo-
rj.com.br/"></TD>
</TR>
<TR><TH>Sum=E1rio</TH>
    <TD><textarea name=3D"sumario:text" rows=3D"8" cols=3D"35"></textarea=
></TD>
</TR>
<TR><TH>Conte=FAdo</TH>
    <td><textarea name=3D"conteudo:text" rows=3D"8" cols=3D"35"></textare=
a></TD>
</TR>

<TR><TH>Munic=EDpio</TH>
    <TD><input type=3Dtext name=3Dmunicipio size=3D"35" value=3D"<dtml-va=
r=20
municipio>"></TD>
</TR>

<TR><TH>Categoria</TH>
    <TD><input type=3Dtext name=3Dcategoria size=3D"35" value=3D"<dtml-va=
r=20
categoria>"></TD>
</TR>

<TR><TH>Respons=E1vel</TH>
    <TD><input type=3Dtext name=3Dresponsavel size=3D"35"></TD>
<TR>
<TD></TD>
<TD><input type=3Dsubmit value=3D" Adicionar "><input type=3Dreset value=3D=
" Limpar=20
Campos "></TD>
</TR>
</TABLE>
</FORM>

<dtml-var standard_html_footer>


-------------------------------------------------------------
this is the metAddIdxTurRJ:


<dtml-var standard_html_header>
<dtml-comment>
 Associa os campos do formul=E1rio chamador aos atributos da classe.
</dtml-comment>
<dtml-call "REQUEST.set('endereco', endereco)">
<dtml-call "REQUEST.set('sumario', sumario)">
<dtml-call "REQUEST.set('conteudo', conteudo)">
<dtml-call "REQUEST.set('municipio', municipio)">
<dtml-call "REQUEST.set('categoria', categoria)">
<dtml-call "REQUEST.set('responsavel', responsavel)">

<dtml-comment>
 Gera t=EDtulo automaticamente.
</dtml-comment>
<dtml-call "REQUEST.set('title', _.string.replace(endereco,'http://www.tu=
rismo-
rj.com.br',''))">

<dtml-comment>
 Armazena o folder de destino (categoria) em vari=E1vel auxiliar, c.c., u=
tiliza=20
categoria "Geral" do Munic=EDpio=20
 devido ao namespace do primeiro dtml-with.
</dtml-comment>
<dtml-call "REQUEST.set('fdrDestino', categoria)">
<dtml-with "_.getitem(municipio)">
 <dtml-with "_.getitem(fdrDestino).manage_addProduct['ZIdxTurRJ']">
  <dtml-call "IdxTurRJ_add(_.None, _, NoRedir=3D1)">
 </dtml-with>
</dtml-with>

<CENTER>
<H2>Obrigado!</H2>
O =EDndice para o endere=E7o <dtml-var endereco> foi criado corretamente!=
<br>
<a href=3D"index_html">Voltar ao Diret=F3rio de =CDndices</a><br>
<a href=3D"schBuscaGeral">Ir =E0 p=E1gina de buscas</a>
</CENTER>
<dtml-var standard_html_footer>

<dtml-comment>
<dtml-call "REQUEST.set('mun_espaco',_.string.replace(municipio,' ',''))"=
>
</dtml-comment>