Changeset 11471 for trunk

Show
Ignore:
Timestamp:
10/04/08 14:07:33 (3 months ago)
Author:
juruen@…
Message:

get ready for initial packaging

Location:
trunk/extra/moddev
Files:
25 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/extra/moddev/stubs/Makefile.am.mas

    r11381 r11471  
    22 
    33#SUBDIRS =  migration src schemas po 
    4 SUBDIRS =  src schemas 
     4SUBDIRS =  src schemas stubs 
    55 
    66MAINTAINERCLEANFILES = aclocal.m4 configure Makefile.in config.status \ 
  • trunk/extra/moddev/stubs/configure.ac.mas

    r11379 r11471  
    6363src/EBox/Model/Makefile 
    6464schemas/Makefile 
     65stubs/Makefile 
    6566Makefile 
    6667]) 
  • trunk/extra/moddev/stubs/debian/postrm.mas

    r11381 r11471  
    22    $module 
    33</%args> 
    4  
    54#!/bin/bash 
    65 
  • trunk/extra/moddev/stubs/src/MainClass.pm.mas

    r11381 r11471  
    44    $printableName 
    55    $domain 
     6    $modelDomain 
    67</%args> 
    78# Copyright (C)  
     
    2425#   TODO: Documentation 
    2526 
    26 package <% $class %>  
     27package <% $class %>; 
    2728 
    2829use strict; 
     
    3637use EBox::Global; 
    3738use EBox::Gettext; 
     39use EBox::Sudo; 
    3840 
    3941use EBox::Exceptions::InvalidData; 
     
    6062    my ($self) = @_; 
    6163 
     64    return ['<% $class %>::Model::Settings']; 
     65} 
     66 
     67 
     68sub domain 
     69{ 
     70    return '<% $domain %>'; 
     71} 
     72 
     73# Method: actions 
     74# 
     75#   Override EBox::ServiceModule::ServiceInterface::actions 
     76# 
     77sub actions 
     78{ 
    6279    return []; 
    6380} 
    6481 
     82 
     83# Method: usedFiles 
     84# 
     85#   Override EBox::ServiceModule::ServiceInterface::usedFiles 
     86# 
     87sub usedFiles 
     88{ 
     89    return []; 
     90} 
     91 
     92# Method: enableActions  
     93# 
     94#   Override EBox::ServiceModule::ServiceInterface::enableActions 
     95# 
     96sub enableActions 
     97{ 
     98} 
     99 
     100# Method: serviceModuleName  
     101# 
     102#   Override EBox::ServiceModule::ServiceInterface::serviceModuleName 
     103# 
     104sub serviceModuleName 
     105{ 
     106    return '<% $name %>'; 
     107} 
    65108 
    66109# Method: menu  
     
    73116    my ($self, $root) = @_; 
    74117    my $item = new EBox::Menu::Item( 
    75     'url' => 'Services/View/ServiceTable', 
    76     'text' => __(<% $printableName %>), 
     118    'url' => '<% $modelDomain %>/View/Settings', 
     119    'text' => __('<% $printableName %>'), 
    77120    'order' => 3); 
    78121    $root->add($item); 
  • trunk/extra/moddev/stubs/src/Model/FormModel.pm.mas

    r11405 r11471  
    7474        'printableTableName' => __('<% $printableTableName %>'), 
    7575        'modelDomain' => '<% $modelDomain %>', 
     76        'defaultActions' => ['add', 'del', 'editField', 'changeView' ], 
    7677        'tableDescription' => \@tableHead, 
    7778        'help' => '', # FIXME 
  • trunk/extra/moddev/stubs/src/Model/TableModel.pm.mas

    r11381 r11471  
    2626# 
    2727 
    28 package <% $mainClass %>::Model::<% $modelName %> 
     28package <% $mainClass %>::Model::<% $modelName %>; 
    2929 
    3030use EBox::Gettext; 
     
    6161        ), 
    6262        new EBox::Types::Text( 
    63             'fieldName' => 'field 2', 
     63            'fieldName' => 'field2', 
    6464            'printableName' => __('Field 2'), 
    6565            'size' => '8', 
     
    7474        'automaticRemove' => 1, 
    7575        'printableTableName' => __('<% $printableTableName %>'), 
    76         'modelDomain' => '<% $modelDomain %>' 
     76        'modelDomain' => '<% $modelDomain %>', 
    7777        'defaultActions' => 
    7878            ['add', 'del', 'editField', 'changeView' ],