If you want an object to be able to handle calls to undefined methods, you'll 
probably need to use a __getattr__ hook. They can be a little tricky to get 
right (you want to filter out names that start with "_" or "aq" or else 
you'll be in trouble), and they don't have access to acquisition, but they 
will allow you to intercept calls to arbitrary names on an object.

__bobo_traverse__ and __before_publishing_traverse__ are hooks for URL 
traversal inside ZPublisher. They won't work for calls made inside DTML.

-Casey

On Monday 02 December 2002 11:00 am, Maurizio Boriani wrote:
> Hi all,
>         I've a little bit tricky problem:
> How could I wrap a request of an inexistent object and handle request
> in a transparent way using a defined method? I've searched about
>  __before_publishing_traverse__ and __bobo_traverse__ but them are too few 
> documented (or I didn't understand them).
> 
> Better explain:
>         I'd like to build a generic product which permit to call undefined 
> function with parameters using dtml as any other python script but this
> functions aren't define and will be handled by product.
> 
> Does anyone has some suggestion/Doc about this?
> 
> TIA,
> baux
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 


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

Reply via email to