Hello again,

# now a little problem with app wizard
I have a mysql table (workjournal) that i want to build the app for.
I went to my checkout dabo :~/tmp/dabodev/dabo/ide/wizards/AppWizard$
I run the appwizard.
I created my app and trying to run it now.

[EMAIL PROTECTED]:~/lukasz/projects/workjournal/workjournal$ ./workjournal.py
Dabo Info Log: Tue Dec 11 07:47:49 2007: 1 database connection
definition(s) loaded.
Dabo Info Log: Tue Dec 11 07:47:49 2007: User interface already set to
'wx', so dApp didn't touch it.
Dabo Info Log: Tue Dec 11 07:47:49 2007: wxPython Version: 2.6.3.2
wxGTK (unicode) (gtk2)
Traceback (most recent call last):
  File "./workjournal.py", line 49, in ?
    default_form = ui.FrmWorkjournal
AttributeError: 'NoneType' object has no attribute 'FrmWorkjournal'


the code near line 49 says:
###-------------------------------
# Set up a global connection to the database that all bizobjs will share:
app.dbConnection = app.getConnectionByName("workjournal")

# Open one or more of the defined forms. A default one was picked by the app
# generator, but you can change that here. Additionally, if form names were
# passed on the command line, they will be opened instead of the default one
# as long as they exist.
ui = app.ui
default_form = ui.FrmWorkjournal
formsToOpen = []
form_names = [class_name[3:] for class_name in dir(ui) if
class_name[:3] == "Frm"]
for arg in sys.argv[1:]:
  arg = arg.lower()
  for form_name in form_names:
    if arg == form_name.lower():
      formsToOpen.append(getattr(ui, "Frm%s" % form_name))
if not formsToOpen:
  formsToOpen.append(default_form)
for frm in formsToOpen:
  frm(app.MainForm).show()

# Start the application event loop:
###---------------------------------------

Any idea what this might be? Is there something else that isn't
installed? Can I run my app from the directory where I created it?

Thanks,
Lucas


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to