2010/8/23 Ed Leafe <[email protected]>:
>> Good news, even if that means that I must re-work my own dabo-to-
>> standard-logging bridge...
> Sorry for the extra work. ;-)
> Hey, at least that's a chunk of code you will no longer have to
> maintain!
>
>> I don't know if I like the conf file approach, I guess I'll rather use
>> dabo's settings database.
> I'm not a big fan of conf files, either, but that seems to be the
> preferred way to do it.
I get a problem as soon as I try to wrap my dabo app with py2app:
dabo looks for
My.app/Contents/Resources/logging.conf
or
My.app/Contents/Resources/lib/python2.6/site-packages.zip/dabo/logging.conf
The first I can provide (but you must know that!), the latter (default
one) isn't automatically packaged by py2app.
Perhaps we must provide a recipe? I'll ask on the MacPython list.
If the logging.conf isn't found, I get this traceback:
Traceback (most recent call last):
File "My.app/Contents/Resources/__boot__.py", line 162, in <module>
_run('cdcover.py')
File "My.app/Contents/Resources/__boot__.py", line 134, in _run
execfile(path, globals(), globals())
File "My.app/Contents/Resources/cdcover.py", line 4, in <module>
import dabo
File "dabo/__init__.pyo", line 138, in <module>
File "logging/config.pyo", line 76, in fileConfig
File "logging/config.pyo", line 109, in _create_formatters
File "ConfigParser.pyo", line 531, in get
ConfigParser.NoSectionError: No section: 'formatters'
The real error should be "config file not found", perhaps can you
check that in dabo/__init__.py (after line 130).
Greetlings, Hraban
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]