[Zope] PUT_factory fight

Garito garito at sistes.net
Tue Aug 2 06:34:36 EDT 2005


Hi all
I fighting with these PUT_factory

def PUT_factory(self, name, typ, body):
       from Products.Yanged.FicheroYanged import FicheroYanged
       if name.endswith('.mm'):
               ob = FicheroYanged(name, 'Fichero de estrucutra de ' + 
self.getId(), body, 'LanzarProcesarFreeMind', self.getId(), typ)
               return ob
       return None

It's curious because these function (put on the same container) works 
perfectly:

def CrearFicheroYanged(self):
       """ """
       from Products.Yanged.FicheroYanged import FicheroYanged
       ob = FicheroYanged('Fichero', 'Fichero de pruebas de ' + 
self.getId(), '', '', self.getId(), 'text/plain')
       self._setObject('Fichero', ob)
       return ob.getId()

Could anyone find the mistake?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito/




More information about the Zope mailing list