[Zope] Load a document in ExternalMethod
Chris Withers
chrisw@nipltd.com
Wed, 07 May 2003 09:49:39 +0100
Fabio Rolando wrote:
> Hi,
> forgive my probably dumm question.
>
> I have some ZCatalog search results. I pass the 'data_record_id_' to an
> ExternalMethod in which I need to load the documtent referenced by the
> 'data_record_id_' in order to parse it.
What's stopping oyu from just passing the brain to the external method?
If you did that, you could just do:
obj = brain.getObject()
cheers,
Chris
PS: Of course, why you need to use an External Method here would probably also
be interesting to discuss ;-)