Changeset 17890

Show
Ignore:
Timestamp:
10/03/08 13:06:54 (2 months ago)
Author:
flack
Message:

converted to configdm2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.invoices/config/config.inc

    r3799 r17890  
    11'schemadb'             => 'file:/org/openpsa/invoices/config/schemadb_default.inc', 
     2'schemadb_config'      => 'file:/org/openpsa/invoices/config/schemadb_config.inc', 
    23'default_hourly_price' => 0, 
    34'default_due_days'     => 14, 
  • trunk/midcom/org.openpsa.invoices/config/schemadb_config.inc

    r3799 r17890  
    99        'default_due_days' => array 
    1010        ( 
    11             'description'   => 'default due days', 
    12             'datatype'      => 'text', 
    13             'location'      => 'config', 
    14             'config_domain' => 'org.openpsa.invoices', 
    15             'config_key'    => 'default_due_days', 
    16             'start_fieldgroup' => array 
     11            'title'   => 'default due days', 
     12            'type'      => 'number', 
     13            'storage' => array 
     14            ( 
     15                'location'      => 'configuration', 
     16                'domain' => 'org.openpsa.invoices', 
     17                'name'    => 'default_due_days', 
     18             ), 
     19            'widget' => 'text', 
     20            'start_fieldset' => array 
    1721            ( 
    1822                'title' => 'invoice', 
     
    2125        'vat_percentages' => array 
    2226        ( 
    23             'description'   => 'vat percentages', 
    24             'datatype'      => 'text', 
    25             'location'      => 'config', 
    26             'config_domain' => 'org.openpsa.invoices', 
    27             'config_key'    => 'vat_percentages', 
     27            'title'   => 'vat percentages', 
     28            'type'      => 'text', 
     29            'storage' => array 
     30            ( 
     31                'location'      => 'configuration', 
     32                'domain' => 'org.openpsa.invoices', 
     33                'name'    => 'vat_percentages', 
     34             ), 
     35            'widget' => 'text', 
    2836        ), 
    2937        'invoice_sender' => array 
    3038        ( 
    31             'description'   => 'invoice sender', 
    32             'datatype'      => 'text', 
    33             'location'      => 'config', 
    34             'widget'        => 'contactchooser', 
    35             'config_domain' => 'org.openpsa.invoices', 
    36             'config_key'    => 'invoice_sender', 
     39            'title'   => 'invoice sender', 
     40            'type'      => 'select', 
     41            'type_config' => array 
     42            ( 
     43                 'require_corresponding_option' => false, 
     44                 'options' => array(), 
     45            ), 
     46            'storage' => array 
     47            ( 
     48                'location'      => 'configuration', 
     49                'domain' => 'org.openpsa.invoices', 
     50                'name'    => 'invoice_sender', 
     51             ), 
     52            'widget' => 'universalchooser', 
     53            'widget_config' => array 
     54            ( 
     55                'class'       => 'org_openpsa_contacts_person', 
     56                'component'   => 'org.openpsa.contacts', 
     57                'titlefield'  => 'name', 
     58                'idfield'     => 'id', 
     59                'constraints' => array 
     60                ( 
     61                    array 
     62                    ( 
     63                        'field' => 'username', 
     64                        'op'    => '<>', 
     65                        'value' => '', 
     66                    ), 
     67                ), 
     68                'searchfields'  => array 
     69                ( 
     70                    'firstname', 
     71                    'lastname', 
     72                    'username', 
     73                ), 
     74                'orders'        => array 
     75                ( 
     76                    array('lastname'    => 'ASC'), 
     77                    array('firstname'    => 'ASC'), 
     78 
     79                ), 
     80            ), 
    3781        ), 
    3882        'default_hourly_price' => array 
    3983        ( 
    40             'description'   => 'default hourly price', 
    41             'datatype'      => 'text', 
    42             'location'      => 'config', 
    43             'config_domain' => 'org.openpsa.invoices', 
    44             'config_key'    => 'default_hourly_price', 
    45             'end_fieldgroup' => '', 
     84            'title'   => 'default hourly price', 
     85            'type'      => 'number', 
     86            'storage' => array 
     87            ( 
     88                'location'      => 'configuration', 
     89                'domain' => 'org.openpsa.invoices', 
     90                'name'    => 'default_hourly_price', 
     91             ), 
     92            'widget' => 'text', 
     93            'end_fieldset' => '', 
    4694        ),         
    4795         
     
    4997        'schemadb' => array 
    5098        ( 
    51             'description' => 'schema database', 
    52             'datatype' => 'text', 
    53             'location' => 'config', 
    54             'config_domain' => 'org.openpsa.invoices', 
    55             'config_key' => 'schemadb', 
    56             'start_fieldgroup' => array 
     99            'title' => 'schema database', 
     100            'type' => 'text', 
     101            'storage' => array 
     102            ( 
     103                'location' => 'configuration', 
     104                'domain' => 'org.openpsa.invoices', 
     105                'name' => 'schemadb', 
     106             ), 
     107            'widget' => 'text', 
     108            'start_fieldset' => array 
    57109            (  
    58110                'title' => 'advanced schema and data settings', 
    59111            ), 
    60             'end_fieldgroup' => '', 
     112            'end_fieldset' => '', 
    61113        ), 
    62114 
  • trunk/midcom/org.openpsa.invoices/viewer.php

    r17889 r17890  
    113113 
    114114        // Match /config/ 
    115         $this->_request_switch['config'] = Array 
     115        $this->_request_switch['config'] = array 
    116116        ( 
    117             'handler' => Array('midcom_core_handler_configdm', 'configdm'), 
    118             'schemadb' => 'file:/org/openpsa/invoices/config/schemadb_config.inc', 
    119             'schema' => 'config', 
    120             'fixed_args' => Array('config'), 
     117            'handler' => array ('midcom_core_handler_configdm2', 'config'), 
     118            'fixed_args' => array ('config'), 
    121119        ); 
    122120