Hi,
I have been building my first WebKit application over the
last week and have bumped into some current working
directory problems. I am developing under Windows ME with
MySQL and the AsyncThreadedHTTPserver.
My first question is where does MiddleKit expect the
Classes.csv and Samples.csv files to reside? The MiddleKit
Quick Start guide shows the commands for making a Movies
Directory and making it the current directory, but doesn't
mention the starting point.
I first placed them in my within my project directory which
is not a branch of the Webware directory. This caused a
problem because when my script was executed, the CWD was
/webware (not my project directory) and the traceback ended
with:
File "MiscUtils\DataTable.py", line 293, in readFileNamed
file = open(self._filename, 'r')
IOError: [Errno 2] No such file or directory:
'PetroDB.mkmodel\\Classes.csv'
Changing the CWD to my project directory at the beginning of
my script gave me a different error:
File "C:\python20\webware\MiddleKit\Core\ModelUser.py",
line 38, in readModelFileNamed
from MiddleKit.Core.Model import Model as modelClass
ImportError: No module named Model
My second question is why the use of (from the Quick Start
Guide) video.serialNum() when the corresponding MySQL table
name is videoId? Wouldn't accessing it with video.videoId()
or naming it serialNum be less confusing?
Roger Haase
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss