[Cubicweb] [postgis] Enable Postgis extension the right way

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Jun 24 07:52:35 CEST 2015


On 23 juin 12:05, David Douard wrote:
> On 06/09/2015 10:22 AM, Sylvain Thénault wrote:
> > On 09 juin 09:44, Nicolas Chauvat wrote:
> >> On Tue, Jun 09, 2015 at 09:33:28AM +0200, Sylvain Thénault wrote:
> >>> Huuum, that's an idea. On my side I feel like the [pre/post]create.py file is
> >>> pretty convenient and would keep on going that way for such needs, but I would
> >>> be happy to hear other's opinion.
> >>
> >> What is the problem that [pre/post]create.py solves conveniently?
> > 
> > creating various - installation related - things such as creating workflows,
> > setting some properties and all.
> > 
> > IMO having this in an "isolated" python file rather than using the hook machinery
> > is good.
> 
> [pre/post]create.py are a problem for me, since I more and more often do NOT use 
> cubicweb-ctl to create the database: I'm using salt to handle database set up for 
> a cw instance, so any magic stuff done by cubicweb-ctl at database creation time 
> should be avoided.

Would you explain how do you handle your setup in such case then?

Do we agree the problem is rather *where* the code calling pre/post create
files lies?

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the Cubicweb mailing list