/[ascend]/trunk/pygtk/canvas/blockinstance.py
ViewVC logotype

Diff of /trunk/pygtk/canvas/blockinstance.py

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

revision 1979 by jpye, Sat Jan 10 00:21:37 2009 UTC revision 1980 by jpye, Mon Jan 12 07:07:02 2009 UTC
# Line 70  class LineInstance: Line 70  class LineInstance:
70      def __str__(self):      def __str__(self):
71          """          """
72          Create a string for use in MODEL export.          Create a string for use in MODEL export.
73          """          """
74          fromname = "%s.%s" % (self.fromport.blockinstance.name, self.fromport.name)          if self.fromport and self.toport:  
75          toname = "%s.%s" % (self.toport.blockinstance.name, self.toport.name)              fromname = "%s.%s" % (self.fromport.blockinstance.name, self.fromport.name)
76          return "\t%s, %s ARE_THE_SAME;\n" % (fromname, toname)              toname = "%s.%s" % (self.toport.blockinstance.name, self.toport.name)
77                return "\t%s, %s ARE_THE_SAME;\n" % (fromname, toname)
78            return ""
79    
80  # TODO set up reversible properties...?  # TODO set up reversible properties...?
81    

Legend:
Removed from v.1979  
changed lines
  Added in v.1980

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