22 Jun
2004
22 Jun
'04
5 p.m.
Hi, I have Problem with External Method, I try to execute the same code like in Python script: connection=container.restrictedTraverse('MySqlCon') connection.manage_open_connection() in External Method: def onAddExtMethod(): connection=container.restrictedTraverse('MySqlCon') connection.manage_open_connection() and I get always the same error: Error Type: NameError Error Value: global name 'container' is not defined so my question, how can I refere to "conteiner" or "context" in External Method? thanks for help, best regards, Adam