Changeset 1550 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts
- Timestamp:
- 12/28/15 21:30:11 (9 years ago)
- Location:
- trunk/LATMOS-Accounts/lib/LATMOS/Accounts
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Address.pm
r1498 r1550 48 48 name => { inline => 1, }, 49 49 exported => { inline => 1, }, 50 user => { inline => 1, 50 user => { 51 inline => 1, 51 52 reference => 'user', 53 label => l('User'), 52 54 }, 53 55 site => { 54 56 reference => 'site', 57 label => l('Site'), 55 58 }, 56 59 sn => { … … 64 67 return $user->_get_c_field($attr->name); 65 68 }, 69 label => l('Last name'), 66 70 }, 67 71 mail => { … … 75 79 return $user->_get_c_field($attr->name); 76 80 }, 81 label => l('Email'), 77 82 }, 78 83 givenName => { … … 86 91 return $user->_get_c_field($attr->name); 87 92 }, 93 label => l('First name'), 88 94 }, 89 95 postalAddress => { … … 108 114 ); 109 115 }, 116 label => l('Postal address'), 110 117 }, 111 118 displayName => { … … 120 127 ); 121 128 }, 129 label => l('Name'), 122 130 }, 123 131 co => { … … 141 149 } 142 150 }, 151 label => l('Country'), 143 152 }, 144 153 l => { … … 162 171 } 163 172 }, 173 label => l('City'), 164 174 }, 165 175 postalCode => { … … 183 193 } 184 194 }, 195 label => l('Postal code'), 185 196 }, 186 197 streetAddress => { … … 205 216 } 206 217 }, 218 label => l('Street'), 207 219 }, 208 220 postOfficeBox => { … … 226 238 } 227 239 }, 240 label => l('Post office box'), 228 241 }, 229 242 st => { … … 247 260 } 248 261 }, 262 label => l('Street'), 249 263 }, 250 264 facsimileTelephoneNumber => { … … 268 282 } 269 283 }, 284 label => l('Fax number'), 270 285 }, 271 286 o => { … … 289 304 } 290 305 }, 291 }, 292 isMainAddress => { formtype => 'CHECKBOX', }, 306 label => l('o'), 307 }, 308 isMainAddress => { 309 formtype => 'CHECKBOX', 310 label => l('Main address'), 311 }, 293 312 active => { ro => 1 }, 294 telephoneNumber => { }, 295 physicalDeliveryOfficeName => { }, 313 telephoneNumber => { 314 label => l('Phone number'), 315 }, 316 physicalDeliveryOfficeName => { 317 label => l('Office'), 318 }, 296 319 otherTelephone => { }, 297 320 ipPhone => { }, 298 321 homePhone => { }, 299 description => { }, 322 description => { 323 label => l('Description'), 324 }, 300 325 } 301 326 ); -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Aliases.pm
r1501 r1550 66 66 }, 67 67 forward => { 68 label => l('Forward'), 68 69 mandatory => 1, 69 70 multiple => 1, … … 114 115 return @res ? \@res : undef; 115 116 }, 117 label => l('Final recipient') 116 118 }, 117 119 parents => { 118 120 ro => 1, 119 121 get => $recurs, 122 label => l('Parents') 120 123 }, 121 124 anyparents => { … … 137 140 reference => 'user', 138 141 multiple => 1, 142 label => l('User'), 139 143 }, 140 144 expire => { 141 145 inline => 1, 142 146 formtype => 'DATE', 143 }, 144 comment => { }, 147 label => l('Expire'), 148 }, 149 comment => { 150 label => l('Comment'), 151 }, 145 152 autoMemberFilter => { 146 153 multiple => 1, … … 150 157 $self->object->populate_dyn_aliases; 151 158 return 1; 152 } 153 159 }, 160 label => l('Automate filter'), 154 161 }, 155 162 autoExclude => { 156 163 multiple => 1, 157 164 reference => 'user', 165 label => l('User excluded'), 158 166 }, 159 167 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Employment.pm
r1540 r1550 52 52 user => { inline => 1, 53 53 reference => 'user', 54 }, 55 description => { }, 54 label => l('User'), 55 }, 56 description => { 57 label => l('Description'), 58 }, 56 59 firstday => { 57 60 inline => 1, 58 61 formtype => 'DATE', 59 62 monitored => 1, 63 label => l('First day'), 60 64 }, 61 65 lastday => { … … 63 67 formtype => 'DATE', 64 68 monitored => 1, 69 label => l('Last day'), 65 70 }, 66 71 'state' => { … … 81 86 } 82 87 }, 88 label => l('State'), 83 89 }, 84 90 contratType => { … … 88 94 }, 89 95 monitored => 1, 96 label => l('Type of contract'), 90 97 }, 91 98 managerContact => { … … 98 105 }, 99 106 reference => 'user', 107 label => l('Contact'), 100 108 }, 101 109 department => { … … 105 113 }, 106 114 monitored => 1, 107 }, 108 company => { }, 109 endcircuit => { formtype => 'DATE', monitored => 1, }, 115 label => l('Department'), 116 }, 117 company => { 118 label => l('Company'), 119 }, 120 endcircuit => { 121 formtype => 'DATE', 122 monitored => 1, 123 label => l('End of entrance'), 124 }, 110 125 previous => { 111 126 ro => 1, … … 126 141 return $res->{name}; 127 142 }, 143 label => l('Previous'), 128 144 }, 129 145 next => { … … 145 161 return $res->{name}; 146 162 }, 163 label => l('Next'), 147 164 }, 148 165 minFirstDay => { … … 182 199 } 183 200 }, 201 label => l('Minimal first day'), 184 202 }, 185 203 maxLastDay => { … … 222 240 } 223 241 }, 242 label => l('Maximal last day'), 224 243 }, 225 244 }; -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Group.pm
r1475 r1550 32 32 iname => 'gidnumber', 33 33 mandatory => 1, 34 label => l('GID'), 34 35 }, 35 36 gidnumber => { inline => 1, uniq => 1, hide => 1, }, … … 69 70 $self->object->_set_group_members($data); 70 71 }, 72 label => l('Member'), 71 73 }, 72 74 member => { … … 90 92 $self->object->_set_group_members($data); 91 93 }, 94 label => l('Member'), 92 95 }, 93 96 sAMAccountName => { iname => 'name', ro => 1 }, … … 102 105 sort keys %uniq; 103 106 }, 107 label => l('Manager'), 104 108 }, 105 109 managedAlsoBy => { … … 114 118 sort keys %uniq; 115 119 }, 120 label => l('Secondary Manager'), 116 121 }, 117 122 sutype => { 118 123 reference => 'sutype', 119 124 monitored => 1, 125 label => l('Structure'), 120 126 }, 121 127 autoMemberFilter => { … … 126 132 $self->object->populate_dyn_group; 127 133 return 1; 128 } 129 }, 130 label => { }, 131 expire => { }, 132 description => { }, 133 comment => { }, 134 }, 135 label => l('Automatics filters'), 136 }, 137 label => { 138 label => l('Label'), 139 }, 140 expire => { 141 label => l('Expire'), 142 }, 143 description => { 144 label => l('Description'), 145 }, 146 comment => { 147 label => l('Comment'), 148 }, 134 149 memberCount => { 135 150 managed => 1, … … 138 153 my ($self) = @_; 139 154 scalar(@{$self->object->_get_c_field('memberUID')}); 140 } 155 }, 156 label => l('Member count'), 141 157 }, 142 158 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Nethost.pm
r1436 r1550 52 52 return undef; 53 53 }; 54 } 54 }, 55 label => l('Ip'), 55 56 }, 56 57 ipFrom => { … … 76 77 return $count; 77 78 }, 79 label => l('Ip from...'), 78 80 }, 79 81 macaddr => { … … 90 92 return $_[0] =~ /^([0-9a-f]{2}([:-]|$)){6}$/i ? 1 : undef; 91 93 }, 94 label => l('Hardware address'), 92 95 }, 93 96 cname => { 94 97 monitored => 1, 95 98 multiple => 1, 96 input => sub { lc($_[0]) } 99 input => sub { lc($_[0]) }, 100 label => l('Aliases'), 97 101 }, 98 102 related => { 99 103 multiple => 1, uniq => 1, 100 104 reference => 'nethost', 105 label => l('Related'), 101 106 }, 102 107 owner => { … … 104 109 reference => 'user', 105 110 delayed => 1, 111 label => l('Owner'), 106 112 }, 107 113 user => { 108 114 reference => 'user', 109 115 delayed => 1, 116 label => l('User'), 110 117 }, 111 118 netZone => { … … 139 146 }, 140 147 }, 141 puppetClass => { multiple => 1, }, 148 label => l('NetZones'), 149 puppetClass => { 150 multiple => 1, 151 label => l('Puppet Class'), 152 }, 142 153 netZoneExclude => { 143 154 multiple => 1, ro => 1, managed => 1, … … 169 180 }, 170 181 exported => { formtype => 'CHECKBOX', }, 171 noInheritPuppet => { formtype => 'CHECKBOX', }, 182 noInheritPuppet => { 183 formtype => 'CHECKBOX', 184 }, 172 185 otherName => { 173 186 multiple => 1, 174 187 input => sub { lc($_[0]) }, 175 }, 176 sshfp => { multiple => 1, }, 188 label => l('Other name'), 189 }, 190 sshfp => { 191 multiple => 1, 192 label => l('SSH finger print'), 193 }, 177 194 ip6 => { }, 178 195 sshfpUpdate => { … … 197 214 } 198 215 }, 199 comment => { }, 200 description => { }, 201 encryptKey => { }, 202 reverse => { }, 203 serialNumber => { }, 216 comment => { 217 label => l('Comment'), 218 }, 219 description => { 220 label => l('Description'), 221 }, 222 encryptKey => { 223 label => l('Encrypted key'), 224 }, 225 reverse => { 226 label => l('Reverse name'), 227 }, 228 serialNumber => { 229 label => l('Serial number'), 230 }, 204 231 } 205 232 ) -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Service.pm
r1346 r1550 33 33 date => { ro => 1, inline => 1, }, 34 34 create => { ro => 1, inline => 1, }, 35 start => { inline => 1, formtype => 'DATE', }, 36 end => { inline => 1, formtype => 'DATE', }, 35 start => { 36 inline => 1, formtype => 'DATE', 37 label => l('Start'), 38 }, 39 end => { 40 inline => 1, formtype => 'DATE', 41 label => l('End'), 42 }, 37 43 type => { }, 38 44 … … 53 59 return @res; 54 60 }, 61 label => l('Depend on'), 55 62 }, 56 63 manager => { 57 64 multiple => 1, 58 65 reference => 'user', 66 label => l('Manager'), 59 67 }, 60 comment => { }, 61 description => { }, 68 comment => { 69 label => l('Comment'), 70 }, 71 description => { 72 label => l('Description'), 73 }, 62 74 } 63 75 ) -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1549 r1550 129 129 mandatory => 1, 130 130 formopts => { length => 7 }, 131 label => l('UID'), 131 132 }, 132 133 uidnumber => { inline => 1, hide => 1, monitored => 1 }, … … 167 168 }, 168 169 reference => 'group', 169 }, 170 loginShell => { mandatory => 1 }, 170 label => l('GID'), 171 }, 172 loginShell => { 173 mandatory => 1 174 label => l('Shell'), 175 }, 171 176 gidnumber => { inline => 1, hide => 1, 172 177 can_values => sub { … … 195 200 formopts => { rawvalue => 1, }, 196 201 monitored => 1, 197 label => sub { l('Locked') },202 label => l('Locked'), 198 203 }, 199 204 expire => { … … 201 206 formtype => 'DATETIME', 202 207 monitored => 1, 208 label => l('Expire'), 203 209 }, 204 210 endcircuit => { … … 206 212 formtype => 'DATE', 207 213 monitored => 1, 214 label => l('End of entrance'), 208 215 }, 209 216 endEmployment => { … … 216 223 $self->_computeEndEmployment($self->base->config('employment_delay')); 217 224 }, 225 label => l('End of employment'), 218 226 }, 219 227 endStrictEmployment => { … … 283 291 return $end ? $end->iso8601 : undef 284 292 }, 293 label => l('End of any employment'), 285 294 }, 286 295 cn => { … … 350 359 return $res; 351 360 }, 361 label => l('Member of'), 352 362 }, 353 363 forward => { … … 390 400 return; 391 401 }, 402 label => l('Forward'), 392 403 }, 393 404 aliases => { … … 443 454 $res 444 455 }, 456 label => l('Aliases'), 445 457 }, 446 458 revaliases => { … … 495 507 }, 496 508 manager => { 497 label => l('Manager'),498 509 reference => 'user', 499 510 ro => 1, … … 509 520 } 510 521 }, 522 label => l('Responsible'), 511 523 }, 512 524 department => { … … 516 528 }, 517 529 monitored => 1, 530 label => l('Department'), 518 531 }, 519 532 contratType => { … … 523 536 }, 524 537 monitored => 1, 538 label => l('Type of contract'), 525 539 }, 526 540 site => { … … 539 553 }, 540 554 set => $subsetaddress, 555 label => l('Site'), 541 556 }, 542 557 co => { … … 563 578 }, 564 579 set => $subsetaddress, 580 label => l('City'), 565 581 }, 566 582 postalCode => { … … 575 591 }, 576 592 set => $subsetaddress, 593 label => l('Postal code'), 577 594 }, 578 595 streetAddress => { … … 588 605 }, 589 606 set => $subsetaddress, 607 label => l('Street'), 590 608 }, 591 609 postOfficeBox => { … … 600 618 }, 601 619 set => $subsetaddress, 620 label => l('Post office box'), 602 621 }, 603 622 st => { … … 624 643 }, 625 644 set => $subsetaddress, 645 label => l('Fax number'), 626 646 }, 627 647 o => { 628 648 ro => 1, 629 649 iname => 'company', 630 }, 631 ou => { iname => 'department', ro => 1 }, 650 label => l('Company'), 651 }, 652 ou => { 653 iname => 'department', 654 ro => 1, 655 label => l('Department'), 656 }, 632 657 telephoneNumber => { 633 658 get => sub { … … 641 666 }, 642 667 set => $subsetaddress, 668 label => l('Phone number'), 643 669 }, 644 670 physicalDeliveryOfficeName => { … … 653 679 }, 654 680 set => $subsetaddress, 681 label => l('Office'), 655 682 }, 656 683 uid => { iname => 'name', ro => 1 }, … … 675 702 return to_ascii($gecos); 676 703 }, 704 label => l('GECOS'), 677 705 }, 678 706 displayName => { … … 689 717 || $self->object->id; 690 718 }, 719 label => l('Name'), 691 720 }, 692 721 sAMAccountName => { … … 828 857 } 829 858 }, 830 }, 831 facsimileTelephoneNumber => { ro => 1, }, 859 label => l('Postal Address'), 860 }, 861 facsimileTelephoneNumber => { 862 ro => 1, 863 label => l('Fax number'), 864 }, 832 865 allsite => { 833 866 ro => 1, … … 845 878 monitored => 1, 846 879 iname => 'manager', 880 label => l('Manager'), 847 881 }, 848 882 expireText => { … … 892 926 delayed => 1, 893 927 ro => 1, 928 label => l('Departments'), 894 929 }, 895 930 arrivalDate => { }, 896 expired => { ro => 1 }, 897 active => { ro => 1 }, 931 expired => { 932 ro => 1 933 label => l('Expired'), 934 }, 935 active => { 936 ro => 1 937 label => l('Active'), 938 }, 898 939 pwdAccountLockedTime => { 899 940 managed => 1, … … 921 962 }, 922 963 userPassword => { readable => 0, }, 923 wWWHomePage => { }, 964 wWWHomePage => { 965 label => l('Web Page'), 966 }, 924 967 title => { }, 925 snNative => { }, 926 givenNameNative => { }, 927 sn => { }, 968 snNative => { 969 label => l('Native name'), 970 }, 971 givenNameNative => { 972 label => l('Native first name'), 973 }, 974 sn => { 975 label => l('Name'), 976 }, 928 977 shadowWarning => { }, 929 978 shadowMin => { }, … … 935 984 nickname => { }, 936 985 mobile => { }, 937 mail => { }, 986 mail => { 987 label => l('Email'), 988 }, 938 989 labeledURI => { }, 939 990 jobType => { }, 940 991 ipPhone => { }, 941 initials => { }, 992 initials => { 993 label => l('Initials'), 994 }, 942 995 homePhone => { }, 943 homeDirectory => { }, 996 homeDirectory => { 997 label => l('Home directory'), 998 }, 944 999 halReference => { }, 945 1000 grade => { }, 946 givenName => { }, 1001 givenName => { 1002 label => l('first name'), 1003 }, 947 1004 encryptedPassword => { }, 948 description => { }, 949 company => { }, 950 comment => { }, 1005 description => { 1006 label => l('Description'), 1007 }, 1008 company => { 1009 label => l('Company'), 1010 }, 1011 comment => { 1012 label => l('Comment'), 1013 }, 951 1014 college => { }, 952 1015 passwordLastSet => { 953 1016 ro => 1, 1017 label => l('Password set'), 954 1018 }, 955 1019 currentEmployment => { -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm
r1503 r1550 86 86 # Common to all object attribute: 87 87 my %commons = ( 88 name => { inline => 1, ro => 1, }, 89 create => { inline => 1, ro => 1, }, 90 date => { inline => 1, ro => 1, }, 88 name => { 89 inline => 1, 90 ro => 1, 91 label => l('Name'), 92 }, 93 create => { 94 inline => 1, 95 ro => 1, 96 label => l('Created'), 97 }, 98 date => { 99 inline => 1, 100 ro => 1, 101 label => l('Last modified'), 102 }, 91 103 exported => { inline => 1, formtype => 'CHECKBOX', hide => 1, monitored => 1 }, 92 104 unexported => { … … 102 114 $self->object->_set_c_fields('exported', $data ? 0 : 1); 103 115 }, 116 label => l('Hidden'), 104 117 }, 105 services => { managed => 1, multiple => 1, reference => 'service' }, 106 modifiedby => { inline => 1, reference => 'user', ro => 1 }, 107 createdby => { inline => 1, reference => 'user', ro => 1 }, 118 services => { 119 managed => 1, 120 multiple => 1, 121 reference => 'service', 122 label => l('Service'), 123 }, 124 modifiedby => { 125 inline => 1, 126 reference => 'user', 127 ro => 1, 128 label => l('Modified by'), 129 }, 130 createdby => { 131 inline => 1, 132 reference => 'user', 133 ro => 1, 134 label => l('Created by'), 135 }, 108 136 ); 109 137 -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/I18N.pm
r1549 r1550 25 25 26 26 if (!$init) { 27 #POSIX::setlocale(POSIX::LC_ALL(), "");28 27 if (-d 'po') { 29 28 Locale::gettext::bindtextdomain('linkaccounts', 'po')
Note: See TracChangeset
for help on using the changeset viewer.