Changeset 12754


Ignore:
Timestamp:
07/26/12 11:23:04 (13 years ago)
Author:
jschierm
Message:

Fixed a couple errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic.py

    r12753 r12754  
    4343
    4444                #OK get other fields
    45                 cluster=options.AssignObjectFields(cluster)
     45                self=options.AssignObjectFields(self)
    4646        # }}}
    4747
    4848        def __repr__(self):    # {{{
    4949                #  display the object
    50                 print "class '%s' object '%s' = " % (type(self),'self')
    51                 print "    name: %s" % self.name
    52                 print "    login: %s" % self.login
    53                 print "    np: %i" % self.np
    54                 print "    port: %i" % self.port
    55                 print "    codepath: %s" % self.codepath
    56                 print "    executionpath: %s" % self.executionpath
    57                 print "    valgrind: %s" % self.valgrind
    58                 print "    valgrindlib: %s" % self.valgrindlib
    59                 print "    valgrindsup: %s" % self.valgrindsup
     50                s ="class '%s' object '%s' = \n" % (type(self),'self')
     51                s+="    name: %s\n" % self.name
     52                s+="    login: %s\n" % self.login
     53                s+="    np: %i\n" % self.np
     54                s+="    port: %i\n" % self.port
     55                s+="    codepath: %s\n" % self.codepath
     56                s+="    executionpath: %s\n" % self.executionpath
     57                s+="    valgrind: %s\n" % self.valgrind
     58                s+="    valgrindlib: %s\n" % self.valgrindlib
     59                s+="    valgrindsup: %s\n" % self.valgrindsup
     60                return s
    6061        # }}}
    6162
Note: See TracChangeset for help on using the changeset viewer.