[Zope] Couple of newbie questions

pskipworth@touchcorp.com pskipworth@touchcorp.com
Thu, 19 Dec 2002 10:06:30 +1100


Hi all,

Couple of quickies...

1) How do I reference a Script (Python) from an External Method ? I have 
an external method which needs to call a Script (Python), both of which 
are in the same folder - following is my external method - the " c = 
..." line is wrong, but I don't know how to fix it!

def export(self):

    request = self.REQUEST
    response =  self.REQUEST.RESPONSE

    c = self.aq_parent.getClients();

    ...


2) What exactly does 'container' reference ? How is it different to 
aq_parent ? Can someone give a couple of examples of usage of them ?


Thanks - sorry to sound stupid =)

P


PETER SKIPWORTH
SYSTEM ADMINISTRATOR
TOUCHCORP LTD
TELEPHONE 03 9635 2626
www.touchcorp.com