Ticket #40436: patch-DigitalWindow.py.diff

File patch-DigitalWindow.py.diff, 1.8 KB (added by ynaito@…, 11 years ago)

patch for ./ecell/frontend/session-monitor/plugins/DigitalWindow.py

  • ./ecell/frontend/session-monitor/plugins/DigitalWindow.

    old new  
    5353        OsogoPluginWindow.__init__( self, aDirName, aData, \
    5454                                    aPluginManager, aRoot )
    5555       
    56         aFullPNString = createFullPNString( self.getFullPN() )
    57         aValue = self.theSession.getEntityProperty( aFullPNString )
     56        aValue = self.theSession.getEntityProperty( self.getFullPN() )
    5857        if not operator.isNumberType( aValue ):
    59             aMessage = "Error: (%s) is not numerical data" %aFullPNString
     58            aMessage = "Error: (%s) is not numerical data" % createFullPNString( self.getFullPN() )
    6059            self.thePluginManager.printMessage( aMessage )
    6160            aDialog = ConfirmWindow.ConfirmWindow(0,aMessage,'Error!')
    6261            raise TypeError( aMessage )
     
    6665    def openWindow(self):
    6766        OsogoPluginWindow.openWindow(self)
    6867
    69         aFullPNString = createFullPNString( self.getFullPN() )
    70         aValue = self.theSession.getEntityProperty( aFullPNString )
    71         anAttribute = self.theSession.getEntityPropertyAttributes( aFullPNString )
     68        aValue = self.theSession.getEntityProperty( self.getFullPN() )
     69        anAttribute = self.theSession.getEntityPropertyAttributes( self.getFullPN() )
    7270
    7371        self.thePluginManager.appendInstance( self )
    7472
     
    9896    # return -> None
    9997    # ------------------------------------------------------
    10098    def update( self ):
    101         aFullPNString = createFullPNString( self.getFullPN() )
    102         aValue = self.theSession.getEntityProperty( aFullPNString )
     99        aValue = self.theSession.getEntityProperty( self.getFullPN() )
    103100        self["value_frame"].set_text( str( aValue ) )
    104101
    105102    # end of update