Create the backend API necessary and a Python module that allows people to import specific versions of UtilityMill-stored Python source code in their own applications.
Ideally this would import the Python module into memory from the URL and behave a lot like if the module were already in your site-packages.
For example, imagine a local file myfile.py:
Here's one basic example of how to do something like this (but might not be ideal for you):
http://aspn.activestate.com/AS...ipe/305277
Ideally this would import the Python module into memory from the URL and behave a lot like if the module were already in your site-packages.
For example, imagine a local file myfile.py:
from utilitymill import rimport
# import a utility script at the given revision
nysiis = rimport('nysiis', 2)
print nysiis.nysiis("John Smith")
Here's one basic example of how to do something like this (but might not be ideal for you):
http://aspn.activestate.com/AS...ipe/305277
You might create a special version of this module to be used in Utility Mill scripts. I imagine it might be somewhat faster to import them from the database rather than doing an external web download/load of the module.




Mattie posted on 2008-02-23 21:03:43