Hello,

trying again with the class designer, but I can't get my application to 
start. Directory structure created by dabo.quickStart(), bizobjs in biz 
subdirectory, __init__.py with all import statements. Code file for the 
main form:

# -*- coding: utf-8 -*-
### Dabo Class Designer code. You many freely edit the code,
### but do not change the comments containing:
###             'Dabo Code ID: XXXX',
### as these are needed to link the code to the objects.

## *!* ## Dabo Code ID: dForm-top
def createBizobjs(self):
        rubrikBizobj = self.Application.biz.RubrikBizobj(self.Connection)
        self.addBizobj(rubrikBizobj)

When I try to start the application I get this:

s...@gespenst-xubuntu:~/bin/dabosib/einkauf$ ./main.py
Traceback (most recent call last):
   File "./main.py", line 13, in <module>
     app.start()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 390, in start
     self.setup()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 345, in setup
     self.initUIApp()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 382, in initUIApp
     self.uiApp.setup()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/uiApp.py", line 415, in setup
     frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/__init__.py", line 1233, 
in createForm
     frm = cls(*args, **kwargs)
   File "/tmp/tmpLEwWNj.py", line 10, in __init__
     super(dForm_2606, self).__init__(parent=parent, 
attProperties=attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 931, in 
__init__
     BaseForm.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 45, in 
__init__
     fm.dFormMixin.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dFormMixin.py", line 75, 
in __init__
     attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dPemMixin.py", line 192, 
in __init__
     self._afterInit()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 72, in 
_afterInit
     super(BaseForm, self)._afterInit()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dFormMixin.py", line 125, 
in _afterInit
     self.createBizobjs()
   File "/tmp/tmpLEwWNj.py", line 352, in createBizobjs
     rubrikBizobj = self.Application.biz.RubrikBizobj(self.Connection)
AttributeError: 'NoneType' object has no attribute 'RubrikBizobj'

Looks as if self.Application.biz isn't created, but why? Other dabo 
applications made with the class designer run as expected and I can't 
find the difference.

What should I post to get to the bottom of this?

Dabo version:

Platform: GTK
Python Version: 2.6.6 on linux2
Dabo Version: Version 0.9.3; Revision 6301
UI Version: 2.8.11.0 on wxGTK (gtk2)

Thank you for help,
Sibylle
_______________________________________________
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