Kent wrote:

thanks you guys' explaination. I did some refactory on my codes. Now
it look's like:

myapp/ # this is a package, it is the root package
   - gui/ # this is package, contains all gui related modules
        - mainFrame.py


   - dao.py # all daos are in this module
   - service.py # all service classes, responsible for handling DB
connections, Txn mgmt, and Business logic Task (calling daos)
   - entity.py  # like 'pojo's, in java,
   - util.py # utils
   - myapp.py # start main script

Really clear.

with this structure, import statements were *significantly*
reduced. :)

Bingo!

tjr

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to