[Midas] writing my own module
Mona Wong
mona at sdsc.edu
Wed Jun 20 20:04:11 EDT 2012
Hi Michael:
Thank you very much for the example code!
I'm trying to write a module, launchable by the user, which will run a python script on the server to do some processing and then start a HTML5/canvas application, also on the server.
We are thinking that the user will login, navigate to their DICOM files, then click on an "Annotate" action item (perhaps right below the "View" link) on the right side which will launch our module:
This is my first Midas module although I am familiar with PHP, have worked with CakePHP and Drupal.
Your pointers/help are greatly appreciated.
thanks,
Mona
On Jun 20, 2012, at 3:55 PM, Michael Grauer wrote:
> Hi Mona,
>
> It is probably best to create a module by starting a bit simpler than the Helloworld example, as that includes some models which can be confusing, and also the models are called Hello, so you end up with lines like
>
> Helloworld_HelloModelBase extends Helloworld_AppModel
>
> which is even more confusing to me and would probably be troublesome for global search and replaces.
>
> I have whipped up a very simple example module that I'm attaching here. If you gunzip and untar it in your modules directory, you can add it to your Midas instance. The module doesn't do much, but you can turn it on from the Administrative menu and then go to
>
> http://localhost/midas3/example/index
>
> (assuming you are working on your localhost) and see a message.
>
> This way you have a bit clearer of a starting point for your own module. If you want to add in a web api, you can see the dicomextractor module as an example, which is a module that doesn't include any models. If you want to see some example models, try looking at the communityagreement module, which has a simple model.
>
>
> I hope this gets you on your way.
>
> -Mike
*********************************************
Mona Wong
Web & iPad Application Developer
San Diego Supercomputer Center
Believing we are in control is an
illusion that brings suffering.
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120620/75e1dfed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2012-06-19 at 5.28.55 PM.png
Type: image/png
Size: 18237 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/midas/attachments/20120620/75e1dfed/attachment-0002.png>
More information about the Midas
mailing list