My experience so far with ClassDesigner is that you must run the app from
the directory where your .cdxml file is located.  I ran across this problem
when attaching an image - if, as suggested, you store images under the
"resources" subdirectory, then the paths will only work correctly when doing
as Ed suggests.  If you don't, then you might end up where running main.py
works while editing with ClassDesigner doesn't or vice versa.

Aaron L. Carlow

On Fri, Oct 30, 2009 at 12:00 PM, jvandal <[email protected]> wrote:

>
> HI,
> Since the purpose is to run main.py I assume that you are telling me to
> create the step by step running with the path you indicated. ?
> Can I put those in a file (how) and run them or do I need to make those
> statements every time?
>  JIm
>
> Ed Leafe wrote:
> >
> > On Oct 29, 2009, at 9:50 PM, jvandal wrote:
> >
> >> File "c:\users\jim\appdata\local\temp\tmphpl5an.py", line 331, in
> >> createBizobjs
> >>   bizClient = self.Application.biz.ClientBizobj(conn)
> >> AttributeError: 'NoneType' object has no attribute 'ClientBizobj'
> >
> >       This is because the framework tried but failed to add your bizobj
> > into its namespace. My guess is that you are running the Class
> > Designer from where that program is installed, but your application
> > directory is somewhere else. Dabo tries to add your bizobjs to its
> > application object namespace, so that you can refer to them as
> > "self.Application.biz.MyBizClass", but when running under the Class
> > Designer, the Application is the designer, not your app.
> >
> >       Sometimes exiting the Class Designer and re-opening the design
> helps.
> > Otherwise, you'll have to run the Class Designer from your app's home
> > directory:
> >
> > cd \Path\to\my\app
> > python \Path\to\ide\stuff\ClassDesigner.py ui\MyFormClass.cdxml
> >
> >
> > -- Ed Leafe
> >
> >
> >
> >
> >
[excessive quoting removed by server]

_______________________________________________
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