/[ascend]/trunk/models/johnpye/extpy/extpytest.py
ViewVC logotype

Diff of /trunk/models/johnpye/extpy/extpytest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 875 by johnpye, Sat Oct 7 06:26:34 2006 UTC revision 876 by johnpye, Sat Oct 7 06:55:11 2006 UTC
# Line 3  browser = extpy.getbrowser() Line 3  browser = extpy.getbrowser()
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    

Legend:
Removed from v.875  
changed lines
  Added in v.876

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22