Author Topic: creating own module  (Read 1849 times)

martinR

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
creating own module
« on: July 23, 2008, 01:30:08 pm »
Hi,
i'm trying to create my own ebox Module. I followed the developer guide, but ebox seems to not recognizing my module. Is there anything else to do beside the developer guide?

As far i created the follwing files:
/usr/share/perl5/EBox/Hermes.pm
/usr/share/perl5/EBox/CGI/Hermes/Index.pm
/usr/share/ebox/templates/hermes/hermes.mas
/usr/share/gconf/schemas/hermes.schemas

If requested, i can post the source code of the files.

Thx
Martin

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: creating own module
« Reply #1 on: July 23, 2008, 04:24:18 pm »
Try to avoid using the old way to develop things which requires to develop CGIs.

Using the eBox frameworks (MVC-based), the development is easier :).
My secret is my silence...

martinR

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: creating own module
« Reply #2 on: July 23, 2008, 05:46:48 pm »
I tried te MVC way, but is does not work too.

When i restart ebox, a lot of messages are shown:
Code: [Select]
* Stopping eBox module: apache
   ...done.
 * Starting eBox module: sysinfo
   ...done.
My Module does not appear. How do i tell ebox to load my module?


Is there a specified set of methods that my module must have?

Is there a switch to get more verbose logging?


javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: creating own module
« Reply #3 on: July 23, 2008, 07:48:02 pm »
Have you installed the gconf schemas?

Anyway, can you upload the sources somewhere?

martinR

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: creating own module
« Reply #4 on: July 24, 2008, 09:30:25 am »
i just copied a minimal gconf schema to /usr/share/gconf/schemas/.

I have added the backend module and the gconf schema.

martinR

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: creating own module
« Reply #5 on: July 25, 2008, 05:12:00 pm »
I managed to install my own package.
Thanks for helping.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: creating own module
« Reply #6 on: July 25, 2008, 09:08:31 pm »
Great!

Remember you can join our #ebox IRC channel where the eBox developers hang out