[Dhis2-devs-core] dhis.conf

2015-11-11 Thread Lars Helge Øverland
Hi devs, a new solution for dhis configuration is in place and the conf file should now be called: *dhis.conf* The db related properties are now: connection.dialect = org.hibernate.dialect.PostgreSQLDialect connection.driver_class = org.postgresql.Driver connection.url =

Re: [Dhis2-devs-core] dhis.conf

2015-11-11 Thread Lars Helge Øverland
I agree that structure is nice. However, the intention is to keep this as simple as absolutely possibly. I think the average dhis self-taught sys admin is a bit familiar with good old property files but not so much with yaml or json, and the risk for people ending up with invalid config is high. I

Re: [Dhis2-devs-core] dhis.conf

2015-11-11 Thread Jason Pickering
Hi Lars, Great idea, and I am sure it will be useful. Just to be a bit difficult as I usually am however. In some scripts (mostly Python) i have used YAML for these sorts of configurations. The advantage is it is pretty human readable, and yet more structured than plain text files, so it would

Re: [Dhis2-devs-core] dhis.conf

2015-11-11 Thread Lars Helge Øverland
A default full config file can be found here: https://github.com/dhis2/dhis2-utils/blob/master/resources/conf/dhis.conf -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to : dhis2-devs-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs-core More help :

Re: [Dhis2-devs-core] dhis.conf

2015-11-11 Thread Bob Jolliffe
For similar (tangentially related) configuration, I have used json. See below. Either yaml or json (or even dreaded xml), I agree with Jason that a bit of structure can be beneficial. Yaml syntax is maybe the most forgiving for user editing by hand. { "dhis2Systems" : { "hmis" : { "type" :

[Dhis2-devs-core] Update to like/ilike

2015-11-11 Thread Morten Olav Hansen
Hi everyone I just pushed some code that enables the new in-memory filter engine, in that I have also added a few new operators, and updated a few old ones. The new operators are documented here http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s07.html Please note that we now also

Re: [Dhis2-devs-core] dhis.conf

2015-11-11 Thread Jason Pickering
Hi Lars, Yes, I see your point, and maybe even YAML is too much. Having two leading spaces could be too much to task. Anyway, I thought I would at least suggest it, but if a plain old properties file works, then lets not over-engineer it for the moment. I can just possibly envision a situation