On Tuesday 26 Apr 2005 9:34 am, sherlock@vsnl.com wrote:
Could you please download the sourceforge tarball and check. I am sure that the offending line IS there. Double Checked by downloading the file from http://easynews.dl.sourceforge.net/sourceforge/avsap/avsap-1.1042.t gz.
from:
http://prdownloads.sourceforge.net/avsap/avsap-1.1042.tgz?use_mirror=nchc
contents of avsap.py:
import wxversion wxversion.select("2.5") import wx from config import * from login import login from utilities import * from top import top import gettext import Reg import sys reload(sys) sys.setdefaultencoding('utf-8') del sys.setdefaultencoding
class avsap(wx.App): def OnInit(self): Reg.add('schema','public') Reg.add('databasename',databasename) Reg.add('username',username) Reg.add('passwd',password) gettext.install('avsap','./locale',unicode=True) self.lan = gettext.translation('avsap','./locale',languages=[lang]) self.lan.install() connect = login(None) connect.ShowModal() connect.Destroy() if Reg.get('loglevel'): topwin = top(None, pos=[0,0]) topwin.Show(1) else: self.Destroy() return 1
if __name__ == "__main__": rest = avsap(0) rest.MainLoop()