<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<pre>
"Gonçalo Rodrigues" wrote:</pre>

<blockquote TYPE=CITE>AFAIK there isn't - You probably have to go down
the bowls of the C
<br>implementation to do it. But why would you need such a contortionist's
<br>act?</blockquote>
Yes I know it sound a little bit twisted.
<br> 
<blockquote TYPE=CITE>If you explain your problem maybe the people here
in the list can
<br>figure out a Pythonic way to do it.</blockquote>
Here is why (simplification)
<br>I designed a generic class which is customizable through a python like
scripting.
<br>Script let you instantiate, add, set/get attribute and much more...
<p>script example:
<br>taskName = "ExecBatch" # default name
<br>ARGUMENT : taskName = '%(taskName)s'
<br>taskRef = Fac.createInstance( "progCommand" ,taskName)
<br>print taskRef,"created",taskRef.getName()
<br>taskRef.Set(command = "someExe -batch")
<br>top.addChild(taskRef)
<br> 
<p>Now, I would like to give the user some way to save preference, and
for
<br>consistency I tought it will be nice to be able to have a script
of the same
<br>kind:
<p>ataskid = 0
<br>ARGUMENT : 'ataskid = 0x%(taskName)x'
<br>if id != 0:
<br>   ataskRef = Fac.getInstance(id)
<br>   if ataskRef != None:
<br>         ataskRef.Set('whoToTell',value
= ['someOne','someoneElse'])
<br>         ataskRef.Set('sendEmail',value
= 1)
<br> 
<br> 
<br> 
<blockquote TYPE=CITE> 
<br>Best regards,
<br>Gonçalo Rodrigues</blockquote>
</html>