[Zope] Load a document in ExternalMethod

Chris Withers chrisw@nipltd.com
Thu, 08 May 2003 15:44:26 +0100


Fabio Rolando wrote:
> I realize that I should have preponed "Newbie" in my question (;-P), 
> because I dont even know what the "brain" is (...in this context I mean...)
> 
> However, I managed to get the object with
> object = self.Catalog.getobject(data_record_id_)

Show me more of your code...

Where are you getting data_record_id_?

> The reason why I want to use External Method is that I need to read back 
> the object found by the catalog, parse it and extract some quote of the 
> text to make some sort of Google-like response.

Why do you need to use an External Method rather than a python script?

 > For this I was thinking
> to use the RegularExpression module that cannot be used in "internal" 
> python script...

It can, you just need to make the appropriate security declarations...

cheers,

Chris