<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have Problem with External Method, I try to 
execute the same code like in Python script:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>connection=container.restrictedTraverse('MySqlCon')<BR>&nbsp;connection.manage_open_connection()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>in&nbsp;External Method:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>def onAddExtMethod():<BR></FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;connection=container.restrictedTraverse('MySqlCon')<BR>&nbsp;connection.manage_open_connection()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and I get always the same error:</DIV>
<DIV><BR></DIV>
<P><STRONG>Error Type: NameError</STRONG><BR><STRONG>Error Value: global name 
'container' is not defined</STRONG></P>
<DIV>so my question, how can I refere to "conteiner"&nbsp;or "context" in 
External Method?</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks for help,</DIV>
<DIV>best regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Adam&nbsp;&nbsp;</DIV>
<P><BR></P></FONT></BODY></HTML>