Changeset 1521


Ignore:
Timestamp:
Oct 7, 2014 10:24:28 AM (9 years ago)
Author:
toby
Message:

Fix bug on use of str on logged objects

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r1518 r1521  
    1515
    1616'''
     17import os.path
    1718import wx
    1819import wx.lib.scrolledpanel as wxscroll
     
    287288            if dlg.ShowModal() == wx.ID_OK:
    288289                filename = dlg.GetPath()
     290                # make sure extension is .imctrl
     291                filename = os.path.splitext(filename)[0]+'.imctrl'
    289292                File = open(filename,'w')
    290293                save = {}
  • trunk/GSASIIlog.py

    r1513 r1521  
    287287
    288288    def __str__(self):
     289        return self.obj.__str__()
     290    def __repr__(self):
    289291        return self.obj.__str__() + " : " + str(self.treeRefs) + ',' + str(self.indexRefs)
    290292
     
    330332
    331333    def __str__(self):
     334        return self.obj.__str__()
     335    def __repr__(self):
    332336        return self.obj.__str__() + " : " + str(self.treeRefs) + ',' + str(self.indexRefs)
    333337
Note: See TracChangeset for help on using the changeset viewer.