CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Restart hooks with extensible persistence #209

Closed FilipNest closed 8 years ago

FilipNest commented 8 years ago

Added hook_restart_send and hook_restart_receive (each get a data object that can be added to).

iris.restart has changed to take the an authPass (was a user id previously) and an optional object (previously a message containing where the restart happened) whose contents are merged with the persistent data when restarting (an example of modules enabled and modules disabled is already coded into the module administration form)

This fixes dependence on the deprecated Object.observe and also makes room for things like: https://github.com/CityWebConsultants/Iris/issues/206 and form key persistence over restarts.