Re: [Zope] standard_error using zpt

2008-11-03 Thread Miguel Beltran R.
Thanks

Work now :D

Just need remove the single cuotes  ( ' )

2008/11/3 Jeff Peterson <[EMAIL PROTECTED]>

>  Try this: tal:attributes="id string:'tr_'${repeat/item/number}"
>
>
>
>
>
>
>
> --
>
> Jeffrey D Peterson
>
> Webmaster
>
> Crary Industries, Inc.
>
>
>
> *From:* Miguel Beltran R. [mailto:[EMAIL PROTECTED]
> *Sent:* Friday, October 31, 2008 8:01 PM
> *To:* Jeff Peterson
>
> *Subject:* Re: [Zope] standard_error using zpt
>
>
>
> Now is working fine
>
> After change
> /standard_error to /dir/standard_error_message made the I wanted.
>
> now the problem is
> tal:repeat="item context/zsql_producto"
>  tal:attributes="id python: 'tr_' + repeat['item'].number"
>   >
>
> say cannot concatenate 'str' and 'instancemethod' objects
>
> 2008/10/31 Jeff Peterson <[EMAIL PROTECTED]>
>
> Yeah, I guess I wouldn't expect that to work.  Do you have the full
> traceback?
>
>
>
>  The standard_error_message template can be tricky.  It doesn't get called
> to handle every error, nor should you call it directly, I think.  AFAIK the
> "options" data is only available when an error, one that it handles by
> default, occurs.  Also, and I may be wrong I haven't played with it too much
> but isn't the name standard_error_message required?  I think what you want
> to look at is the Zope help for "tal:on-error"  There is an example there
> that may help.
>
> --
>
> Jeffrey D Peterson
>
> Webmaster
>
> Crary Industries, Inc.
>
>
>
> *From:* Miguel Beltran R. [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, October 30, 2008 9:43 PM
> *To:* Jeff Peterson
> *Cc:* Andrew Milton; zope@zope.org
>
>
> *Subject:* Re: [Zope] standard_error using zpt
>
>
>
> Not work :(, say
>
> Error Type: TraversalError
> Error Value: ({'args': ()}, 'error_type')
>
> : /a/b/muestra.pt
> tal:condition="exists:request/modo"
>tal:on-error="structure context/standard_error.pt"
> >
>   tal:condition="python:request.modo=='nada'"
>   tal:omit-tag=""
>>
>   No se a ejecutado ninguna accion
>
>   tal:condition="python:request.modo=='ultimos'"
>   tal:content="structure container/muestra_ultimos.pt"
>   tal:omit-tag=""
>>
>
> 
>
> : /a/b/muestra_ultimos.pt
> 
>   
>   
>  Tipo
>  Producto
>  Nombre
>  Presentacion
>  Unidad
>  Existencia
>  Total
>  Observaciones
>   
>   
>   
> tal:repeat="item context/zsql_producto"
>  tal:attributes="id python: 'tr_' + repeat.number" <--here is the error
> what I want catch (how resolve?)
>   >
>  Tipo
>   
>   
> 
>
>
> : /standard_error.pt
> 
>
>   Tipo TipoError
>   Valor ValorError
>tb
>Raestro en
> reversa
>mensaje de
> error
>url de error
>
> 
>
> 2008/10/30 Jeff Peterson <[EMAIL PROTECTED]>
>
> Just for independent confirmation he's right, "options" is what you want.
>
> --
> Jeffrey D Peterson
> Webmaster
> Crary Industries, Inc.
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Andrew Milton
> Sent: Wednesday, October 29, 2008 11:02 PM
> To: Miguel Beltran R.
> Cc: zope@zope.org
> Subject: Re: [Zope] standard_error using zpt
>
> +---[ Miguel Beltran R. ]--
> | Hi List
> |
> | I remember what old versions from zope haved standard_error using DTML
> | How can do it the same using ZPT?
> |
> | I already try:
> | 
> | 
> | 
>
> >From memory the following should be available;
>
> options/error_type
> options/error_value
> options/error_tb
> options/error_traceback
> options/error_message
> options/error_log_url
>
>
> --
> Andrew Milton
> [EMAIL PROTECTED]
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
>
> --
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
>
>
>
>
> --
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
>



-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] standard_error using zpt

2008-10-31 Thread Jeff Peterson
Yeah, I guess I wouldn't expect that to work.  Do you have the full traceback?

 The standard_error_message template can be tricky.  It doesn't get called to 
handle every error, nor should you call it directly, I think.  AFAIK the 
"options" data is only available when an error, one that it handles by default, 
occurs.  Also, and I may be wrong I haven't played with it too much but isn't 
the name standard_error_message required?  I think what you want to look at is 
the Zope help for "tal:on-error"  There is an example there that may help.
--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.

From: Miguel Beltran R. [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2008 9:43 PM
To: Jeff Peterson
Cc: Andrew Milton; zope@zope.org
Subject: Re: [Zope] standard_error using zpt

Not work :(, say

Error Type: TraversalError
Error Value: ({'args': ()}, 'error_type')

: /a/b/muestra.pt<http://muestra.pt>
http://standard_error.pt>"
>
   
  No se a ejecutado ninguna accion
   
   http://muestra_ultimos.pt>"
  tal:omit-tag=""
   >
   


: /a/b/muestra_ultimos.pt<http://muestra_ultimos.pt>

  
  
 Tipo
 Producto
 Nombre
 Presentacion
 Unidad
 Existencia
 Total
 Observaciones
  
  
  
  
 Tipo
  
  



: /standard_error.pt<http://standard_error.pt>

   
  Tipo TipoError
  Valor ValorError
   tb
   Raestro en 
reversa
   mensaje de error
   url de error
   

2008/10/30 Jeff Peterson <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>
Just for independent confirmation he's right, "options" is what you want.

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.

-Original Message-
From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>] On Behalf Of Andrew Milton
Sent: Wednesday, October 29, 2008 11:02 PM
To: Miguel Beltran R.
Cc: zope@zope.org<mailto:zope@zope.org>
Subject: Re: [Zope] standard_error using zpt

+---[ Miguel Beltran R. ]--
| Hi List
|
| I remember what old versions from zope haved standard_error using DTML
| How can do it the same using ZPT?
|
| I already try:
| 
| 
| 

>From memory the following should be available;

options/error_type
options/error_value
options/error_tb
options/error_traceback
options/error_message
options/error_log_url


--
Andrew Milton
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
___
Zope maillist  -  Zope@zope.org<mailto:Zope@zope.org>
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



--

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] standard_error using zpt

2008-10-30 Thread Miguel Beltran R.
Not work :(, say

Error Type: TraversalError
Error Value: ({'args': ()}, 'error_type')

: /a/b/muestra.pt

   
  No se a ejecutado ninguna accion
   
   
   


: /a/b/muestra_ultimos.pt

  
  
 Tipo
 Producto
 Nombre
 Presentacion
 Unidad
 Existencia
 Total
 Observaciones
  
  
  
  
 Tipo
  
  



: /standard_error.pt

   
  Tipo TipoError
  Valor ValorError
   tb
   Raestro en
reversa
   mensaje de
error
   url de error
   


2008/10/30 Jeff Peterson <[EMAIL PROTECTED]>

> Just for independent confirmation he's right, "options" is what you want.
>
> --
> Jeffrey D Peterson
> Webmaster
> Crary Industries, Inc.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Andrew Milton
> Sent: Wednesday, October 29, 2008 11:02 PM
> To: Miguel Beltran R.
> Cc: zope@zope.org
> Subject: Re: [Zope] standard_error using zpt
>
> +---[ Miguel Beltran R. ]--
> | Hi List
> |
> | I remember what old versions from zope haved standard_error using DTML
> | How can do it the same using ZPT?
> |
> | I already try:
> | 
> | 
> | 
>
> >From memory the following should be available;
>
> options/error_type
> options/error_value
> options/error_tb
> options/error_traceback
> options/error_message
> options/error_log_url
>
>
> --
> Andrew Milton
> [EMAIL PROTECTED]
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] standard_error using zpt

2008-10-30 Thread Jeff Peterson
Just for independent confirmation he's right, "options" is what you want.

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Milton
Sent: Wednesday, October 29, 2008 11:02 PM
To: Miguel Beltran R.
Cc: zope@zope.org
Subject: Re: [Zope] standard_error using zpt

+---[ Miguel Beltran R. ]--
| Hi List
|
| I remember what old versions from zope haved standard_error using DTML
| How can do it the same using ZPT?
|
| I already try:
| 
| 
| 

>From memory the following should be available;

options/error_type
options/error_value
options/error_tb
options/error_traceback
options/error_message
options/error_log_url


--
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] standard_error using zpt

2008-10-29 Thread Andrew Milton
+---[ Miguel Beltran R. ]--
| Hi List
| 
| I remember what old versions from zope haved standard_error using DTML
| How can do it the same using ZPT?
| 
| I already try:
| 
| 
| 

>From memory the following should be available;

options/error_type
options/error_value
options/error_tb
options/error_traceback
options/error_message
options/error_log_url


-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] standard_error using zpt

2008-10-29 Thread Miguel Beltran R.
Hi List

I remember what old versions from zope haved standard_error using DTML
How can do it the same using ZPT?

I already try:




Thanks


-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )