[Zope-dev] how to get the icon of a product

2004-04-14 Thread Garito
Hi I try to get the icons of the installed products I try to get it with the self.all_meta_types()/instance/icon My better result is something like: misc_/Audio/mp3.gif with these path I can use: self.unrestrictedTraverse(icon) where icon is the path above (misc_/Audio/mp3.gif) With these

[Zope-dev] Unexpected result

2004-04-01 Thread Garito
Hi I try to validate a formulator object with a python script If an error was submitted the python script would acquire again the zope page template that render the formulator with the error messages My problem is than when I try to return the ZPT render Zope process the return and convert ,

Re: [Zope-dev] strange path

2004-03-21 Thread Garito
Ok, thanks and sorry for the error - Original Message - From: Kapil Thangavelu [EMAIL PROTECTED] To: Garito [EMAIL PROTECTED] Cc: Lista Oficial de Zope [EMAIL PROTECTED] Sent: Sunday, March 21, 2004 8:45 AM Subject: Re: [Zope-dev] strange path most likely Concepto object id

[Zope-dev] TALES context

2004-03-20 Thread Garito
Hi I try to create another context object for TALES like 'container' or 'here' Is there any mechanism to create these? Like PUT_factory for FTP/WevDav or meta_types for the products Thanks!! ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] strange path

2004-03-20 Thread Garito
Hi on a ZPT I put a here/absolute_url and these is the response: http://localhost:8080/Plantillas/Pruebas/Objetos///Minima the correct path would be: http://localhost:8080/Plantillas/Pruebas/Objetos/Concepto/Vistas/Minima What's happening here? TIA

Re: [Zope-dev] How to create a product with all_meta_types and the name of the product

2004-03-12 Thread Garito
Hi Chris! Want I want exactly is to create a product's object by his name programmatically not by the construction form Is this posible? Thanks!!! - Original Message - From: Chris Withers [EMAIL PROTECTED] To: Garito [EMAIL PROTECTED] Cc: Lista Oficial de Zope [EMAIL PROTECTED] Sent

Re: [Zope-dev] How to create a product with all_meta_types and the

2004-03-12 Thread Garito
Hi Max I understand what you explain but what about if I install a new product? Rewrite the factory? I think is not a good solution don't you think? Thanks!! - Original Message - From: Max M [EMAIL PROTECTED] To: Garito [EMAIL PROTECTED] Cc: Lista Oficial de Zope [EMAIL PROTECTED] Sent

[Zope-dev] How to create a product with all_meta_types and the name of the product

2004-03-11 Thread Garito
Hi all I would like to create a product knowing the name of these product. How to do it? I arrive to product but I don't know how to create it and set to de container With these code self['manage_addProduct']['product'].manage_addMyProductManageAdd(id, content) In the information

[Zope-dev] Execution context

2004-03-04 Thread Garito
Hi all Finally I solve my problem with Tres Seaver's help (THANK YOU) I overridethe __bobo_traverse__ with: def __bobo_traverse__(self, Request, Name):import sysif sys._getframe(1).f_code.co_name == "traverse":return getattr(self, Name)else:return self.Propiedad(Name) self.Propiedad is

Re: [Zope-dev] Re: Execution context

2004-03-03 Thread Garito
Garito wrote: Can I know the execution contexto of an object? I would like to know if the object is call by ZMI or DTML or Page Templates etc is it posible? Perhaps; I am not sure I can see why it would be *desirable*. Given that Scripts, DTMLMethods, etc., try pretty hard to push

[Zope-dev] Execution context

2004-03-02 Thread Garito
Hi all Can I know the execution contexto of an object? I would like to know if the object is call by ZMI or DTML or Page Templates etc is it posible? Thank you ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] How to know the execution context in a product

2004-02-29 Thread Garito
Hi I try to know the context of the execution of my product to overrite the values of the properties of my product It will be like a sof-link I have the property Master. These property is an url to the real object When I execute the ZMI I would like to see the real content of my object

[Zope-dev] Explicit acquisition and object context

2004-02-26 Thread Garito
Hi I have these function def Propiedad(self, Name): """Propiedad""" Obj = self Maestro = getattr(Obj, 'Maestro', None) Paso = 1 while Maestro is not None: Obj = self.restrictedTraverse(Maestro.contenido).__of__(self) Maestro = getattr(Obj, 'Maestro', None) Paso += 1 if Paso == 15:

[Zope-dev] PUT_factory

2004-02-25 Thread Garito
Hi, all I try to override PUT_factory method in my container product I read in several webpages I need to create a PUT_factory method in my product to override these mechanism These method could be like: def PUT_factory(self, name, typ, body): return ZopePageTemplate(name, body,