On Jul 5, 2008, at 11:01 PM, Paul McNary wrote:
> Now it gives me:
>
> ./main.py
> Traceback (most recent call last):
> File "./main.py", line 9, in ?
> import biz
> File "/u/z/sco_maint/dabo/tutorial/hours/biz/__init__.py", line 15,
> in ?
> from BizClient import BizClient
> File "/u/z/sco_maint/dabo/tutorial/hours/biz/BizClient.py", line 1,
> in ?
> class BizClient(dabo.biz.dBizobj):
> NameError: name 'dabo' is not defined
>
> but dabo was imported in main.py.
Hey, good catch. I've been coding Python for so long that I just
assumed that everyone would know to add the import to the bizobj code.
I've updated the step-by-step doc to include the header and the
'import dabo' statement.
Each script has its own namespace, so importing something in one
script doesn't affect any other script; if you reference a module in
any script, you must import it in that script. So at the top of your
bizobj scripts, add this:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import dabo
Let me know if that fixes the problem.
-- Ed Leafe
_______________________________________________
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]