Automating DHIS2

Hi

Hi . I was wondering if anyone has done any scripting to automate
certain tasks (namely the datamart) with DHIS2. I came across this
utility for Firefox which was extremely easy to use and did pretty
much what I wanted.

http://www.iopus.com/imacros/firefox/?ref=fxtab

I think selenium probably has the same or more functionality - more
particulalrly for testing, but I think could also be used for general
purpose brosewr automation. Selenium.

But have to agree that automating the browser is probably the second
best solution where there is no other api. There are quite a few
services we need to define clean web api's for.

I have worked around basic auth using python scripts and maintaining
state with cookies like the browser does, but it's a bit awkward and
I'm not sure I'd recommend it.

I'll try and rummage back to find that (thrown away?) code.

Cheers
Bob

ยทยทยท

On 7 November 2010 07:37, Jason Pickering <jason.p.pickering@gmail.com> wrote:

Usually, I would do this sort of thing through a shell script, but I
have not really figured out how to login to DHIS2 through a command
line tool like wget. Basic HTTP authentication does not seem to be
supported, but I thought I had seen a commit about this some time ago.

Basically, I think it would be very useful to be able to
programatically call URLs, for instance to regenerate the datamart and
report tables on a period and scheduled basis. This iMacro extension
is free, but only the paid version can be used through the command
line or Windows Task Scheduler. Any one else have some ideas how this
could be done?

Regards,
Jason

--
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+260968395190

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help