collective.autorestart (0.2)
- collective.autorestart download link: http://plone.org/products/collective.autorestart/releases
- Homepage of collective.autorestart: http://plone.org/products/collective.autorestart
- collective.autorestart repository: https://svn.plone.org/svn/collective/collective.autorestart/trunk
- Description source: http://plone.org/products/collective.autorestart
Automatically reload changed Python files - putting agility back to Plone development.
collective.autorestart monitors Python .py files for changes and triggers a reload when you edit the files. This way you don't need to restart Plone server between your code edit runs. collective.autorestart uses plone.reload package to perform the actual code replacement.
File system is monitored using inotify interface which is only available for Linux. The future versions will support other operating systems as long as somebody contributes the file system monitoring code or gives the author a new computer running operating system X.
Features
- Recursively detect changes in ZCML and Python files which are known to Zope
- Automatically trigger reload when files are changed (saved)
- Audio playback depending on whether the restart succeed or failed - you can go back to your files and you don't need to watch the terminal
Dependencies
- plone.reload
- pyinotify for monitoring files.
- pygame for audio playback (optional)
pyinotify relies on Linux kernel feature called inotify and thus this application only works on Linux currently. However, it should be trivial to port it for other platforms.