3 |
|
|
4 |
import ascpy; |
import ascpy; |
5 |
|
|
6 |
def mypythonmethod(inst): |
def mypythonmethod(self): |
7 |
inst = ascpy.Registry().getInstance('context') |
# we hope to be able to get rid of this first line, but so far it's proved |
8 |
print "HELLO FROM PYTHON" |
# difficult from the architectural point of view: |
9 |
for i in inst.getChildren(): |
self = ascpy.Registry().getInstance('context') |
10 |
|
|
11 |
|
print "CHILDREN OF INSTANCE '%s':" % self.getName() |
12 |
|
for i in self.getChildren(): |
13 |
print i.getName()," = ",i.getValue() |
print i.getName()," = ",i.getValue() |
14 |
|
|
15 |
|
print "TEST OF ABILITY TO GET SPECIFIC CHILD VALUES:" |
16 |
|
print self.a,"=",self.a.getValue() |
17 |
|
|
18 |
"""I don't want to talk to you no more, you empty headed animal food trough wiper!""" |
"""I don't want to talk to you no more, you empty headed animal food trough wiper!""" |
19 |
browser.reporter.reportNote("No, now go away or I shall taunt you a second time!") |
browser.reporter.reportNote("No, now go away or I shall taunt you a second time!") |
20 |
|
|