Community mailing list archives

Development Speedup :: Pyinotify and autocode compilation / db updates

El Aleman, David Arnold
- 02/12/2015 09:53:14
Hi Developers

Renzo from gave me a hint on pyinotify (

it is possible to compile *.py to *.pyo on change.

What I want to do is, that on any filechange odoo code is recompiled (I guess that's the above thing) AND the DB is updates, but just for the models, that where changed.

I think the latter is not precisly trivial, but it's kind of annoing to restart the server with -u all every time I want to check the effects of a change.

How would I do a DB update of just the changed code? Maybe externalities are not that costly, if I do an update of the containing module to ensure consistency across module's models.

Is this feasable at all?


Saludos Cordiales
David Arnold

David Arnold BA HSG / Analista
315 304 13 68/

devCO - empresa de consultoría de sistemas (en fundación)

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. devCO is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.