But there is another cool feature in the trunk. If you look in gluon/
custom_import.py, you will see two new functions: is_tracking_changes and
track_changes. Call track_changes with True and web2py will track the
changes made to all Python module source files you are using. The new
importer will automatically reload the last version available at the next
import statement. Of course, is_tracking_changes() gives the current status.

What could be better? Well, the import tracking feature is generic so you
can use it in any Python project. If you want to use it outside web2py, use
the version available at
http://code.google.com/p/neo-i...<http://code.google.com/p/neo-importer/>

Take a look at Martin's blog:
http://martin.tecnodoc.com.ar/default/post/2011/05/13/20_optimize-your-web2py-app-using-the-new-import-method
-- 


A+

-------------
Pierre
My blog and profile
(http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com>
YouTube page 
(http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib>
Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>

Reply via email to