Parallel package hierarchies/directories

2009-01-15 Thread atleta
7; to the sys.path, but then it was only able to import packages from test/soap and not src/soap. Is there a way I can have python look for soap package modules in both places? If not, then could someone tell me what is the usual way to layout test code? Thanks, atleta -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel package hierarchies/directories

2009-01-16 Thread atleta
OK, I'm answering my own question, it might be of some help for someone in the future: yes, it's possible to have parts of the same package in multiple directories, it's just not enabled by default. To make it work each such package should have the following code in their __init__.py: from pkgutil

Adding a field to a 'foreign' object from the outside

2009-01-22 Thread atleta
Hi, I'm working with a callback API (a DBus one) and I'd need to store some state between the calls somewhere. I know that it's possible to extend an object with fields after creation, so I could just store my data in the session object that is passed in with every callback. However it stinks fr