-
Setuptools – run custom code in setup.py
Read more »: Setuptools – run custom code in setup.pyA week or so ago I started developing an experimental Python package for one of our projects. At some point I realized that it would be convenient to automatically execute some additional initialization code during the package installation process (i.e. when “python setup.py install” is run). This can be achived by subclassing the setuptools.command.install class…
-
Write a Plone CLI maintenance script
Read more »: Write a Plone CLI maintenance scriptThis is a quick tip on how to write your own command line maintenance scripts for your Plone application. Recently one of our clients expressed a need for a maintenance script which would walk the database of a Plone application and, for every object, print out all the roles users have assigned on that object.…