Monday, June 16, 2008

DB data and metadata provider

Today I started doing the new and hard part of the project DB data and metadata provider. As usual I ran in to several questions. Since the dependencies have been moved to a different folder. I was not able to run the Python scripts directly form the eclipse editor because it complains missing imports. such as

ImportError: No module named ply

Remote debugging is useful in this case but I was unable to debug the code as specified in here[1]. I was unable to set the path for the pydev.py script and brings me all the problems. So I moved in to other options where I can use options given in the test scripts. For a example in test_skeleton.py script there is a class called testSkeleton. By adding the code block we need to test into that can be used with the options, eg:

bin/test -t testSomething

Then I moved in to look up how to retrieve objects form zope in runtime. I have the references of retrieving such data form the sample application. So I have to continued again from the zope.componet.interface.



[1] http://www.fabioz.com/pydev/manual_adv_remote_debugger.html

No comments: