Hello

I am go through the Step-By-Step Guide to Dabo
and I am having a problem when trying to run
main.py after working through the Clients Form.
------------------------------------------------------------------------------------------------------

This is the the traceback I receive:

  Traceback (most recent call last):
    File "./main.py", line 13, in ?
      app.start()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py", 
line 312, in start
      self.setup()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py", 
line 277, in setup
      self.initUIApp()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py", 
line 304, in initUIApp
      self.uiApp.setup()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/uiApp.py", 
line 277, in setup
      frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/__init__.py",
 
line 1074, in createForm
      frm = cls(*args, **kwargs)
    File "/tmp/tmpTjqYST.py", line 9, in __init__
      super(dForm_137163462, self).__init__(parent=parent, 
attProperties=attProperties, *args, **kwargs)
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dForm.py", 
line 894, in __init__
      BaseForm.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dForm.py", 
line 43, in __init__
      fm.dFormMixin.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dFormMixin.py",
 
line 73, in __init__
      attProperties, *args, **kwargs)
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dPemMixin.py",
 
line 179, in __init__
      self._afterInit()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dForm.py", 
line 69, in _afterInit
      super(BaseForm, self)._afterInit()
    File 
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dFormMixin.py",
 
line 129, in _afterInit
      self.createBizobjs()
    File "/tmp/tmpTjqYST.py", line 283, in createBizobjs
      bizClient = self.Application.biz.BizClient(conn)
  AttributeError: 'NoneType' object has no attribute 'BizClient'
------------------------------------------------------------------------------------------------------

My BizClient.py is:

  ./biz/BizClient.py is:

  class BizClient(dabo.biz.dBizobj):
      def afterInit(self):
          self.DataSource = "clients"
          self.KeyField = "pkid"
          self.SQL = """select pkid, clientname, attn, rate, street1, 
street2,
                  city, stateprov, postalcode
                  from clients
                  """
------------------------------------------------------------------------------------------------------
I think I did the __init__.py's as explained.


I have been able to use AppWizard
and the Class Designer to access tables but this is the first time I 
have tried the methods used in this tutorial.

I don't know what else to send you to help me.

Thanks

Paul McNary
[EMAIL PROTECTED]


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to