Changeset 1043 for trunk/LATMOS-Accounts
- Timestamp:
- 05/31/12 19:50:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts.pm
r1042 r1043 91 91 92 92 $self 93 } 94 95 =head2 list_bases 96 97 Return the base list found in config file 98 99 =cut 100 101 sub list_bases { 102 my ($self) = @_; 103 grep { 104 !m/^_.*_$/ && 105 !m/^sync:/ 106 } $self->Sections 93 107 } 94 108 … … 123 137 } 124 138 125 =head2 list_bases 126 127 Return the base list found in config file 128 129 =cut 130 131 sub list_bases { 132 my ($self) = @_; 133 grep { 134 !m/^_.*_$/ && 135 !m/^sync:/ 136 } $self->Sections 139 =head2 default_base_name 140 141 Return the default base name according config file 142 143 =cut 144 145 sub default_base_name { 146 my ($self) = @_; 147 $self->val('_default_', 'base', ($self->list_bases)[0]); 137 148 } 138 149 … … 150 161 # this method perform a cache 151 162 $self->_load_base($section || $self->default_base_name); 152 }153 154 =head2 default_base_name155 156 Return the default base name according config file157 158 =cut159 160 sub default_base_name {161 my ($self) = @_;162 $self->val('_default_', 'base', ($self->list_bases)[0]);163 163 } 164 164 … … 199 199 } 200 200 201 =head2 list_synchro 202 203 List synchronisation setup in L<latmos-accounts.ini> 204 205 =cut 206 207 sub list_synchro { 208 my ($self) = @_; 209 grep { $_ } map { /^sync:(.*)$/; $1 } $self->Sections 210 } 211 201 212 =head2 default_synchro_name 202 213 … … 208 219 my ($self) = @_; 209 220 $self->val('_default_', 'sync'); 210 }211 212 =head2 list_synchro213 214 List synchronisation setup in L<latmos-accounts.ini>215 216 =cut217 218 sub list_synchro {219 my ($self) = @_;220 grep { $_ } map { /^sync:(.*)$/; $1 } $self->Sections221 221 } 222 222
Note: See TracChangeset
for help on using the changeset viewer.