I spent most of the night working with MiddleKit, and I came across a 
few problems.  I'm working with the latest release, not CVS.  I was 
following the Quick Start and came to the point where you create the 
store in the main.py under Command/.  I could not get the Middle.Video 
to import.  It took me three hours before I realized that if it was 
treating Middle as a module, I would need an __init__.py file in there.  
This solved the problems with importing, but I was worried that 
something might be wrong, as the Quick Start didn't say to create the 
file, and it wasn't created by the Generate script with all the other 
files in Middle/.

With that problem solved I skipped down the Quick Start to the section 
on fetching objects.  I tried adding this to main();  videos = 
store.fetchObjectsOfClass(Video).  I figured that it would be a good 
test of my MiddleKit setup, because I knew my sample data was already in 
the database.  This test failed, with an ImportError.  Here is the full 
traceback;

Traceback (most recent call last):
   File "main.py", line 33, in ?
     main()
   File "main.py", line 26, in main
     videos = store.fetchObjectsOfClass(Video)
   File "./MiddleKit/Run/SQLObjectStore.py", line 273, in 
fetchObjectsOfClass
   File "./MiddleKit/Run/SQLObjectStore.py", line 389, in pyClassForName
   File "<string>", line 1, in ?
ImportError: No module named Video

Before writing this off as a MiddleKit problem I tried some of the other 
methods described in the QuickStart.  I was able to successfully create 
a Video object and add it to the database via store.addObject() and 
store.saveChanges().  I guess I'm at a loss.  I can create objects, so 
MiddleKit is working, but fetchObjectsOfClass() gives me an error.

I hope someone can give me an idea about what I'm doing wrong.  If this 
looks like a known bug that was fixed, I can try updating to the latest 
CVS version.

Thanks for any help,
Tim



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to