Merge new root

This commit is contained in:
Cédric Krier committed 2022-12-16 14:52:33 +01:00
commit 0071b56d6d
1040 files changed
+328996

No files matched your search

+363
View File
@@ -22,3 +22,366 @@ c3046a83c61339a6310b8cf56c2e4dddd59a0675 web_shortener-5.8.0
b27e5df8f64e7e96c3b895ec7090eb1bb9166eaa web_shortener-6.4.0
0000000000000000000000000000000000000000 6.6.0
cd182550e175f7de15c5940fb446d72895f68a31 web_shortener-6.6.0
99f99784b341ce8bb34bd70d89f51aa45c24f1f7 4.2.0
a6661fddc44d1cee9c5697d983e8fb38deb73225 4.4.0
d5c1f780f492de8ab82da98a577a5685bb513d9b 4.6.0
9ad3bd829ad68cd69806533416aadc50f5eb6794 4.8.0
ca21f3a99b42b088c6588c36f5e105dae713f775 5.0.0
c2ef0488218d9d3ee59514b744e2145bbd0147b3 5.2.0
cb5da130470815adfd7b3681fa2803feed934f45 5.4.0
b95009d0a58dd058440cc0cd7537e5c4499ea16a 5.6.0
166c1e4c476baeb36b21cef7963b87b5ca07f71e 5.8.0
ec9a4f3e26f796c12a267e4b3af717fd2a35c066 6.0.0
355cdcd27f958fbd7e3bdd021c238283b3f0f539 6.2.0
b81b890c871cea5a9a3fb734af72452f59969c32 6.4.0
a9dab1237717b85084d19158a7d487d0d9adbfb4 6.6.0
0000000000000000000000000000000000000000 4.2.0
99f99784b341ce8bb34bd70d89f51aa45c24f1f7 web_user-4.2.0
0000000000000000000000000000000000000000 4.4.0
a6661fddc44d1cee9c5697d983e8fb38deb73225 web_user-4.4.0
0000000000000000000000000000000000000000 4.6.0
d5c1f780f492de8ab82da98a577a5685bb513d9b web_user-4.6.0
0000000000000000000000000000000000000000 4.8.0
9ad3bd829ad68cd69806533416aadc50f5eb6794 web_user-4.8.0
0000000000000000000000000000000000000000 5.0.0
ca21f3a99b42b088c6588c36f5e105dae713f775 web_user-5.0.0
0000000000000000000000000000000000000000 5.2.0
c2ef0488218d9d3ee59514b744e2145bbd0147b3 web_user-5.2.0
0000000000000000000000000000000000000000 5.4.0
cb5da130470815adfd7b3681fa2803feed934f45 web_user-5.4.0
0000000000000000000000000000000000000000 5.6.0
b95009d0a58dd058440cc0cd7537e5c4499ea16a web_user-5.6.0
0000000000000000000000000000000000000000 5.8.0
166c1e4c476baeb36b21cef7963b87b5ca07f71e web_user-5.8.0
0000000000000000000000000000000000000000 6.0.0
ec9a4f3e26f796c12a267e4b3af717fd2a35c066 web_user-6.0.0
0000000000000000000000000000000000000000 6.2.0
355cdcd27f958fbd7e3bdd021c238283b3f0f539 web_user-6.2.0
0000000000000000000000000000000000000000 6.4.0
b81b890c871cea5a9a3fb734af72452f59969c32 web_user-6.4.0
0000000000000000000000000000000000000000 6.6.0
a9dab1237717b85084d19158a7d487d0d9adbfb4 web_user-6.6.0
3974f546b848d4ac59551db9f733d8ed62946dfd 1.8.0
c8fdae3b2338b744fce709572958884a95de87b3 2.0.0
120d0435125cf3a3c28280321962571924ad422f 2.2.0
ef9846cb18afe62182de446d8e4fa7b8393f7168 2.4.0
648c43939fd698988bde5b54f7a1dff9d47922af 2.6.0
5625ce03643f9f2b69659907754e5b0e924c689f 2.8.0
31740f7e08a0c449ce6715e1ef15392fb6326ce9 3.0.0
40affcdda4629de37997d0e5c7d3fe9ca2806b12 3.2.0
61013c4482fc95a61d2a15a8b21574a706755b10 3.4.0
2a2503ebd25887ff3668d470809c00c5bcf2c6c7 3.6.0
1e741a18e2a1f29fcc66e9ab4878554a4e63a355 3.8.0
403f21dd1bb7059a0928c46c8b21a97c14f9c720 4.0.0
d5b1e8f047748526d9a2cd354da0e86d617ec4c7 4.2.0
365af7e74c2baae38e96bc0afb1deae2d2b44ac0 4.4.0
cd4731fb373698d480a625a286de776a0b9bdc6e 4.6.0
3867b51d50056fda52882150a017a9dce6811264 4.8.0
e86f9d540f29dfcd39e8f198b50940c8b91250d6 5.0.0
f4a0b0e282f39c013c44e5012e6b85e4b8a4ae40 5.2.0
03daaf3994610fde107d98d8458b2731e03c5306 5.4.0
a8061a1d268776766c44ceb97094d229dbe31962 5.6.0
8bc88e82ff9edc33725d08bc0c6f2862f221a127 5.8.0
ac15e7f1881fd78d30eac0d7c772638265830c77 6.0.0
286ac00ea47d420641bf79917025421a90a5d353 6.2.0
1310030ca59a2d88a3995cdc5874e9c4a57c5854 6.4.0
051cf4dfddf8c0e15109b4a74554a910cc28c6c1 6.6.0
0000000000000000000000000000000000000000 1.8.0
3974f546b848d4ac59551db9f733d8ed62946dfd proteus-1.8.0
0000000000000000000000000000000000000000 2.0.0
c8fdae3b2338b744fce709572958884a95de87b3 proteus-2.0.0
0000000000000000000000000000000000000000 2.2.0
120d0435125cf3a3c28280321962571924ad422f proteus-2.2.0
0000000000000000000000000000000000000000 2.4.0
ef9846cb18afe62182de446d8e4fa7b8393f7168 proteus-2.4.0
0000000000000000000000000000000000000000 2.6.0
648c43939fd698988bde5b54f7a1dff9d47922af proteus-2.6.0
0000000000000000000000000000000000000000 2.8.0
5625ce03643f9f2b69659907754e5b0e924c689f proteus-2.8.0
0000000000000000000000000000000000000000 3.0.0
31740f7e08a0c449ce6715e1ef15392fb6326ce9 proteus-3.0.0
0000000000000000000000000000000000000000 3.2.0
40affcdda4629de37997d0e5c7d3fe9ca2806b12 proteus-3.2.0
0000000000000000000000000000000000000000 3.4.0
61013c4482fc95a61d2a15a8b21574a706755b10 proteus-3.4.0
0000000000000000000000000000000000000000 3.6.0
2a2503ebd25887ff3668d470809c00c5bcf2c6c7 proteus-3.6.0
0000000000000000000000000000000000000000 3.8.0
1e741a18e2a1f29fcc66e9ab4878554a4e63a355 proteus-3.8.0
0000000000000000000000000000000000000000 4.0.0
403f21dd1bb7059a0928c46c8b21a97c14f9c720 proteus-4.0.0
0000000000000000000000000000000000000000 4.2.0
d5b1e8f047748526d9a2cd354da0e86d617ec4c7 proteus-4.2.0
0000000000000000000000000000000000000000 4.4.0
365af7e74c2baae38e96bc0afb1deae2d2b44ac0 proteus-4.4.0
0000000000000000000000000000000000000000 4.6.0
cd4731fb373698d480a625a286de776a0b9bdc6e proteus-4.6.0
0000000000000000000000000000000000000000 4.8.0
3867b51d50056fda52882150a017a9dce6811264 proteus-4.8.0
0000000000000000000000000000000000000000 5.0.0
e86f9d540f29dfcd39e8f198b50940c8b91250d6 proteus-5.0.0
0000000000000000000000000000000000000000 5.2.0
f4a0b0e282f39c013c44e5012e6b85e4b8a4ae40 proteus-5.2.0
0000000000000000000000000000000000000000 5.4.0
03daaf3994610fde107d98d8458b2731e03c5306 proteus-5.4.0
0000000000000000000000000000000000000000 5.6.0
a8061a1d268776766c44ceb97094d229dbe31962 proteus-5.6.0
0000000000000000000000000000000000000000 5.8.0
8bc88e82ff9edc33725d08bc0c6f2862f221a127 proteus-5.8.0
0000000000000000000000000000000000000000 6.0.0
ac15e7f1881fd78d30eac0d7c772638265830c77 proteus-6.0.0
0000000000000000000000000000000000000000 6.2.0
286ac00ea47d420641bf79917025421a90a5d353 proteus-6.2.0
0000000000000000000000000000000000000000 6.4.0
1310030ca59a2d88a3995cdc5874e9c4a57c5854 proteus-6.4.0
0000000000000000000000000000000000000000 6.6.0
051cf4dfddf8c0e15109b4a74554a910cc28c6c1 proteus-6.6.0
c835144ba5fd172c9aa8714683e69ca60bc894bc 3.8.0
20712dc81634af43f9e0ebb41b0dcea50ccffdd2 4.0.0
963504a30207af5877c11368ac5dadbc5d28fee1 4.2.0
1fea2b717dd8d57d0a233c19d7f1eec35bdde0fa 4.4.0
16a536201007ba66d36040a34e79a8998c4051f8 4.6.0
08b000057b0b5a69f4034f2e1f5c7f2f7f23276f 4.8.0
47edb75271514576ea775d28dc286a120675aa32 5.0.0
4074fcefe73deec0b4dcd8b2e29f6c3c8eade611 5.2.0
2d6d3a648c1dc1711adcc7bd3ff0930949b3076a 5.4.0
513d2f77dc3bb1f5335af4faf233ccaa1711ac82 5.6.0
e013e9930e2f27e5205b93f39d49f3604ae07901 5.8.0
031cd536bd9f4e89345876c2d438626c57fbb33c 6.0.0
e6b66ac38f2f3aefeddeba9fc0b3cee375d1f19a 6.2.0
4a114b18bce58de90577d7975b0c275b45ecdcb0 6.4.0
1bf438772b1bb9702ebb9bbcbce96f7ab53a94eb 6.6.0
0000000000000000000000000000000000000000 3.8.0
c835144ba5fd172c9aa8714683e69ca60bc894bc sao-3.8.0
0000000000000000000000000000000000000000 4.0.0
20712dc81634af43f9e0ebb41b0dcea50ccffdd2 sao-4.0.0
0000000000000000000000000000000000000000 4.2.0
963504a30207af5877c11368ac5dadbc5d28fee1 sao-4.2.0
0000000000000000000000000000000000000000 4.4.0
1fea2b717dd8d57d0a233c19d7f1eec35bdde0fa sao-4.4.0
0000000000000000000000000000000000000000 4.6.0
16a536201007ba66d36040a34e79a8998c4051f8 sao-4.6.0
0000000000000000000000000000000000000000 4.8.0
08b000057b0b5a69f4034f2e1f5c7f2f7f23276f sao-4.8.0
0000000000000000000000000000000000000000 5.0.0
47edb75271514576ea775d28dc286a120675aa32 sao-5.0.0
0000000000000000000000000000000000000000 5.2.0
4074fcefe73deec0b4dcd8b2e29f6c3c8eade611 sao-5.2.0
0000000000000000000000000000000000000000 5.4.0
2d6d3a648c1dc1711adcc7bd3ff0930949b3076a sao-5.4.0
0000000000000000000000000000000000000000 5.6.0
513d2f77dc3bb1f5335af4faf233ccaa1711ac82 sao-5.6.0
0000000000000000000000000000000000000000 5.8.0
e013e9930e2f27e5205b93f39d49f3604ae07901 sao-5.8.0
0000000000000000000000000000000000000000 6.0.0
031cd536bd9f4e89345876c2d438626c57fbb33c sao-6.0.0
0000000000000000000000000000000000000000 6.2.0
e6b66ac38f2f3aefeddeba9fc0b3cee375d1f19a sao-6.2.0
0000000000000000000000000000000000000000 6.4.0
4a114b18bce58de90577d7975b0c275b45ecdcb0 sao-6.4.0
0000000000000000000000000000000000000000 6.6.0
1bf438772b1bb9702ebb9bbcbce96f7ab53a94eb sao-6.6.0
4b876ac37410e223bc3628256425d80398d051c6 4.8.0
144f9950fba568bd77ac0eecd02c7b0d0a98ba87 5.0.0
ed88584857aa1b39459a420270c0253d460cfe48 5.2.0
ed46c63b027820aa6e605bb53040f4ed4d133813 5.4.0
d2db68823a8225ff32842da4e948c1c01197e5cc 5.6.0
eeab3256f17f6b9bc111d74d6d7f984e75d70f17 5.8.0
4d33daf649c10711b782ef82b71e49d1a725ccee 6.0.0
77df2082ed44a6655dd151c09cf8a7ca36ec6499 6.2.0
88192dc708bc13b43a99168c97642106684bbfeb 6.4.0
312583490fff372849dfb38c7c849325d40bbf81 6.6.0
0000000000000000000000000000000000000000 4.8.0
4b876ac37410e223bc3628256425d80398d051c6 trytond-gis-4.8.0
0000000000000000000000000000000000000000 5.0.0
144f9950fba568bd77ac0eecd02c7b0d0a98ba87 trytond-gis-5.0.0
0000000000000000000000000000000000000000 5.2.0
ed88584857aa1b39459a420270c0253d460cfe48 trytond-gis-5.2.0
0000000000000000000000000000000000000000 5.4.0
ed46c63b027820aa6e605bb53040f4ed4d133813 trytond-gis-5.4.0
0000000000000000000000000000000000000000 5.6.0
d2db68823a8225ff32842da4e948c1c01197e5cc trytond-gis-5.6.0
0000000000000000000000000000000000000000 5.8.0
eeab3256f17f6b9bc111d74d6d7f984e75d70f17 trytond-gis-5.8.0
0000000000000000000000000000000000000000 6.0.0
4d33daf649c10711b782ef82b71e49d1a725ccee trytond-gis-6.0.0
0000000000000000000000000000000000000000 6.2.0
77df2082ed44a6655dd151c09cf8a7ca36ec6499 trytond-gis-6.2.0
0000000000000000000000000000000000000000 6.4.0
88192dc708bc13b43a99168c97642106684bbfeb trytond-gis-6.4.0
0000000000000000000000000000000000000000 6.6.0
312583490fff372849dfb38c7c849325d40bbf81 trytond-gis-6.6.0
951bb3311b916cb893adc5294cfb3216d2940169 1.0.0
9f5ce178a7c403a0865fd4b6c1a82a911df0e998 1.2.0
e2d31d59de7745de70199b7c340d78b7c4775723 1.4.0
64691214959ac19983f3b3d1dbb89ff693d1545c 1.6.0
af3a6063b46bf8739a513a06400fbb9858b5869b 1.8.0
3475040a8fe081b1b8609350186b779cc640fba4 2.0.0
1df3f0702c621e65279af52d1f87725747ae8fa4 2.2.0
640af4420c8eace7ee59a432bec54692f4808b20 2.4.0
36530840a1d0dce354bbaa58ec849a409d306d83 2.6.0
2893d6c3efd6df3759ab09a28ea16773a160118e 2.8.0
759c6ff44b90b8c685e9d9a4124bcd85af204649 3.0.0
b3d84aa2c3a6ed3b76bfb58a40fc687f68824c29 3.2.0
f0a9fa755cde703be54efd747f376b096ea8316c 3.4.0
1e4ba5a3f16e6afd59131b49841eb004e706619d 3.6.0
0a29a9dba7f56fbdef067772eea3f037934999c9 3.8.0
49a0caa894dae201ed4ec707f277d9859b5521fb 4.0.0
eb8949ec5bcedba563b5799f1315a0cecfee61f6 4.2.0
f253ce8ed02f4c46a69b8b2f29311ad8959698be 4.4.0
e7a6d0e8002237f624ecc8a45a6a472f7baadd08 4.6.0
321b0104a732419c11aa4926785502e0615b89c9 4.8.0
e8cadc044d59edff8a2ca73932c723d507517ec8 5.0.0
ef34e4e92d45ab2b2b2956bbb6aa8b3ca259eb13 5.2.0
32170ff46339dbc8609225791ab737a0f3eb0291 5.4.0
5738a22adbb45390167194e4089adc46c6b638a3 5.6.0
e21456b81972188261b8a6fc876afc18f641c85b 5.8.0
2164597ffa5f4f0443e4804944b30f5491070990 6.0.0
1252631aa5277267887251090d6e2f7ed6d41503 6.2.0
2593216de16bfca661479ed068b87fd0e83260e0 6.4.0
e5934d7675cbdbf6e534ea4a01f9e1d0792e22b4 6.6.0
0000000000000000000000000000000000000000 1.0.0
951bb3311b916cb893adc5294cfb3216d2940169 trytond-1.0.0
0000000000000000000000000000000000000000 1.2.0
9f5ce178a7c403a0865fd4b6c1a82a911df0e998 trytond-1.2.0
0000000000000000000000000000000000000000 1.4.0
e2d31d59de7745de70199b7c340d78b7c4775723 trytond-1.4.0
0000000000000000000000000000000000000000 1.6.0
64691214959ac19983f3b3d1dbb89ff693d1545c trytond-1.6.0
0000000000000000000000000000000000000000 1.8.0
af3a6063b46bf8739a513a06400fbb9858b5869b trytond-1.8.0
0000000000000000000000000000000000000000 2.0.0
3475040a8fe081b1b8609350186b779cc640fba4 trytond-2.0.0
0000000000000000000000000000000000000000 2.2.0
1df3f0702c621e65279af52d1f87725747ae8fa4 trytond-2.2.0
0000000000000000000000000000000000000000 2.4.0
640af4420c8eace7ee59a432bec54692f4808b20 trytond-2.4.0
0000000000000000000000000000000000000000 2.6.0
36530840a1d0dce354bbaa58ec849a409d306d83 trytond-2.6.0
0000000000000000000000000000000000000000 2.8.0
2893d6c3efd6df3759ab09a28ea16773a160118e trytond-2.8.0
0000000000000000000000000000000000000000 3.0.0
759c6ff44b90b8c685e9d9a4124bcd85af204649 trytond-3.0.0
0000000000000000000000000000000000000000 3.2.0
b3d84aa2c3a6ed3b76bfb58a40fc687f68824c29 trytond-3.2.0
0000000000000000000000000000000000000000 3.4.0
f0a9fa755cde703be54efd747f376b096ea8316c trytond-3.4.0
0000000000000000000000000000000000000000 3.6.0
1e4ba5a3f16e6afd59131b49841eb004e706619d trytond-3.6.0
0000000000000000000000000000000000000000 3.8.0
0a29a9dba7f56fbdef067772eea3f037934999c9 trytond-3.8.0
0000000000000000000000000000000000000000 4.0.0
49a0caa894dae201ed4ec707f277d9859b5521fb trytond-4.0.0
0000000000000000000000000000000000000000 4.2.0
eb8949ec5bcedba563b5799f1315a0cecfee61f6 trytond-4.2.0
0000000000000000000000000000000000000000 4.4.0
f253ce8ed02f4c46a69b8b2f29311ad8959698be trytond-4.4.0
0000000000000000000000000000000000000000 4.6.0
e7a6d0e8002237f624ecc8a45a6a472f7baadd08 trytond-4.6.0
0000000000000000000000000000000000000000 4.8.0
321b0104a732419c11aa4926785502e0615b89c9 trytond-4.8.0
0000000000000000000000000000000000000000 5.0.0
e8cadc044d59edff8a2ca73932c723d507517ec8 trytond-5.0.0
0000000000000000000000000000000000000000 5.2.0
ef34e4e92d45ab2b2b2956bbb6aa8b3ca259eb13 trytond-5.2.0
0000000000000000000000000000000000000000 5.4.0
32170ff46339dbc8609225791ab737a0f3eb0291 trytond-5.4.0
0000000000000000000000000000000000000000 5.6.0
5738a22adbb45390167194e4089adc46c6b638a3 trytond-5.6.0
0000000000000000000000000000000000000000 5.8.0
e21456b81972188261b8a6fc876afc18f641c85b trytond-5.8.0
0000000000000000000000000000000000000000 6.0.0
2164597ffa5f4f0443e4804944b30f5491070990 trytond-6.0.0
0000000000000000000000000000000000000000 6.2.0
1252631aa5277267887251090d6e2f7ed6d41503 trytond-6.2.0
0000000000000000000000000000000000000000 6.4.0
2593216de16bfca661479ed068b87fd0e83260e0 trytond-6.4.0
0000000000000000000000000000000000000000 6.6.0
e5934d7675cbdbf6e534ea4a01f9e1d0792e22b4 trytond-6.6.0
923b3073b686c6dc5a921d0561c934adf3eeb879 1.0.0
9a6434d63616f46520b6fa1b2be31906ff6f4f6a 1.2.0
de84c1443d4bad908eabb99c381578b988c2117f 1.4.0
3976912b23dfc5db2525d4c2e55d17f099d9492d 1.6.0
8aa050da53cbdfabe1353a37da91c011b7fff549 1.8.0
1876747b3f963ba6011b4bcf6968e681624c6e24 2.0.0
5364f8ca6cd2cccfb5f7f39c69bb20bae2b5f495 2.2.0
fe15da23f7333e0e90d2693aadddf6bed53ed602 2.4.0
d069f9f1cdc3fea39e71415268582abb2b333ea1 2.6.0
21fbf8bd36096d926c472acfecd3963369204af8 2.8.0
9197d90b0257ec7c4576a38092fd592b3e87f7a4 3.0.0
9721289ee2fdaab8b990de9327c3eab87363c88c 3.2.0
8e5cba59137f9d0a063fa6d7855e09a51bc5889c 3.4.0
1ac658605d42d82988cfb232afebfe359aba7776 3.6.0
f4b9c8a84cf61935afec788c3c639982731452ef 3.8.0
44d8ed92ff90cf98c4c01d37f12d344d9d66e7f1 4.0.0
94037cff031ef897c9533a579356977c8a3cf695 4.2.0
763dc5d8e1d7e483edbf9977dd96afc114555555 4.4.0
d7ed5002e47249d019fbc546f6ac562db44c54f2 4.6.0
2a2b48ea60fbb5201ea12443000d3a106a2fa27c 4.8.0
70ade9d1fe04c734fe2dd7d35dd75b13f1af902a 5.0.0
d5652dee45a43fccc1f33d39050af6e00e073273 5.2.0
9f3fbb33df184ca19350cc71054dd9afd55f1cb7 5.4.0
45d3f736ffb4396ee0dac0e2110fcc17237337ba 5.6.0
df9de0ceeb27b38b165da7526accad0ad6682e86 5.8.0
d18d03f0c540dfd2aae81dfaac048378a62c0ef6 6.0.0
932b5115f37ddb479b4034bf1438e48df198cc05 6.2.0
4100f887dd4a3d7511c0c0547e766db7845114e3 6.4.0
f3542b3396f897c2231e629437f528371d3d11db 6.6.0
0000000000000000000000000000000000000000 1.0.0
923b3073b686c6dc5a921d0561c934adf3eeb879 tryton-1.0.0
0000000000000000000000000000000000000000 1.2.0
9a6434d63616f46520b6fa1b2be31906ff6f4f6a tryton-1.2.0
0000000000000000000000000000000000000000 1.4.0
de84c1443d4bad908eabb99c381578b988c2117f tryton-1.4.0
0000000000000000000000000000000000000000 1.6.0
3976912b23dfc5db2525d4c2e55d17f099d9492d tryton-1.6.0
0000000000000000000000000000000000000000 1.8.0
8aa050da53cbdfabe1353a37da91c011b7fff549 tryton-1.8.0
0000000000000000000000000000000000000000 2.0.0
1876747b3f963ba6011b4bcf6968e681624c6e24 tryton-2.0.0
0000000000000000000000000000000000000000 2.2.0
5364f8ca6cd2cccfb5f7f39c69bb20bae2b5f495 tryton-2.2.0
0000000000000000000000000000000000000000 2.4.0
fe15da23f7333e0e90d2693aadddf6bed53ed602 tryton-2.4.0
0000000000000000000000000000000000000000 2.6.0
d069f9f1cdc3fea39e71415268582abb2b333ea1 tryton-2.6.0
0000000000000000000000000000000000000000 2.8.0
21fbf8bd36096d926c472acfecd3963369204af8 tryton-2.8.0
0000000000000000000000000000000000000000 3.0.0
9197d90b0257ec7c4576a38092fd592b3e87f7a4 tryton-3.0.0
0000000000000000000000000000000000000000 3.2.0
9721289ee2fdaab8b990de9327c3eab87363c88c tryton-3.2.0
0000000000000000000000000000000000000000 3.4.0
8e5cba59137f9d0a063fa6d7855e09a51bc5889c tryton-3.4.0
0000000000000000000000000000000000000000 3.6.0
1ac658605d42d82988cfb232afebfe359aba7776 tryton-3.6.0
0000000000000000000000000000000000000000 3.8.0
f4b9c8a84cf61935afec788c3c639982731452ef tryton-3.8.0
0000000000000000000000000000000000000000 4.0.0
44d8ed92ff90cf98c4c01d37f12d344d9d66e7f1 tryton-4.0.0
0000000000000000000000000000000000000000 4.2.0
94037cff031ef897c9533a579356977c8a3cf695 tryton-4.2.0
0000000000000000000000000000000000000000 4.4.0
763dc5d8e1d7e483edbf9977dd96afc114555555 tryton-4.4.0
0000000000000000000000000000000000000000 4.6.0
d7ed5002e47249d019fbc546f6ac562db44c54f2 tryton-4.6.0
0000000000000000000000000000000000000000 4.8.0
2a2b48ea60fbb5201ea12443000d3a106a2fa27c tryton-4.8.0
0000000000000000000000000000000000000000 5.0.0
70ade9d1fe04c734fe2dd7d35dd75b13f1af902a tryton-5.0.0
0000000000000000000000000000000000000000 5.2.0
d5652dee45a43fccc1f33d39050af6e00e073273 tryton-5.2.0
0000000000000000000000000000000000000000 5.4.0
9f3fbb33df184ca19350cc71054dd9afd55f1cb7 tryton-5.4.0
0000000000000000000000000000000000000000 5.6.0
45d3f736ffb4396ee0dac0e2110fcc17237337ba tryton-5.6.0
0000000000000000000000000000000000000000 5.8.0
df9de0ceeb27b38b165da7526accad0ad6682e86 tryton-5.8.0
0000000000000000000000000000000000000000 6.0.0
d18d03f0c540dfd2aae81dfaac048378a62c0ef6 tryton-6.0.0
0000000000000000000000000000000000000000 6.2.0
932b5115f37ddb479b4034bf1438e48df198cc05 tryton-6.2.0
0000000000000000000000000000000000000000 6.4.0
4100f887dd4a3d7511c0c0547e766db7845114e3 tryton-6.4.0
0000000000000000000000000000000000000000 6.6.0
f3542b3396f897c2231e629437f528371d3d11db tryton-6.6.0
+70
View File
@@ -0,0 +1,70 @@
clone:
hg:
image: plugins/hg
environment:
- HG_SHARE_POOL=/root/.cache/hg
volumes:
- cache:/root/.cache
pipeline:
tox:
image: ${IMAGE}
environment:
- CFLAGS=-O0
- DB_CACHE=/cache
- TOX_TESTENV_PASSENV=CFLAGS DB_CACHE CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
commands:
- echo "[extensions]" >> /root/.hgrc
- echo "hgext.share =" >> /root/.hgrc
- echo "[share]" >> /root/.hgrc
- echo "pool = /root/.cache/hg" >> /root/.hgrc
- pip install tox
- tox -e "${TOXENV}-${DATABASE}"
volumes:
- cache:/root/.cache
check_dist:
image: ${IMAGE}
commands:
- pip install twine
- python setup.py sdist
- twine check dist/*
volumes:
- cache:/root/.cache
services:
postgresql:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
command: "-c fsync=off -c synchronous_commit=off -c full_page_writes=off"
when:
matrix:
DATABASE: postgresql
matrix:
include:
- IMAGE: python:3.7
TOXENV: py37
DATABASE: sqlite
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql
- IMAGE: python:3.8
TOXENV: py38
DATABASE: sqlite
- IMAGE: python:3.8
TOXENV: py38
DATABASE: postgresql
- IMAGE: python:3.9
TOXENV: py39
DATABASE: sqlite
- IMAGE: python:3.9
TOXENV: py39
DATABASE: postgresql
- IMAGE: python:3.10
TOXENV: py310
DATABASE: sqlite
- IMAGE: python:3.10
TOXENV: py310
DATABASE: postgresql
+2
View File
@@ -0,0 +1,2 @@
[flake8]
ignore=E123,E124,E126,E128,E741,W503
+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+51
View File
@@ -0,0 +1,51 @@
Version 6.6.0 - 2022-10-31
--------------------------
* Bug fixes (see mercurial logs for details)
* Add expire delay in reset password email
Version 6.4.0 - 2022-05-02
* Bug fixes (see mercurial logs for details)
* Add support for Python 3.10
* Remove support for Python 3.6
Version 6.2.0 - 2021-11-01
* Bug fixes (see mercurial logs for details)
Version 6.0.0 - 2021-05-03
* Bug fixes (see mercurial logs for details)
Version 5.8.0 - 2020-11-02
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.5
* Add secondary parties on user
Version 5.6.0 - 2020-05-04
* Bug fixes (see mercurial logs for details)
Version 5.4.0 - 2019-11-04
* Bug fixes (see mercurial logs for details)
Version 5.2.0 - 2019-05-06
* Bug fixes (see mercurial logs for details)
Version 5.0.0 - 2018-10-01
* Bug fixes (see mercurial logs for details)
* Remove support for Python 2.7
* Add remove and reset session methods
Version 4.8.0 - 2018-04-23
* Bug fixes (see mercurial logs for details)
* Erase user email when party is erased
* Require email only for active user
* Add maximum authentication attempt
Version 4.6.0 - 2017-10-30
* Bug fixes (see mercurial logs for details)
* Increase session randomness to 32 bytes
* Manage email case insensitively
Version 4.4.0 - 2017-05-01
* Bug fixes (see mercurial logs for details)
Version 4.2.0 - 2016-11-28
* Initial release
+15
View File
@@ -0,0 +1,15 @@
Copyright (C) 2016-2022 Cédric Krier
Copyright (C) 2016-2022 B2CK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+6
View File
@@ -0,0 +1,6 @@
include CHANGELOG
include COPYRIGHT
include LICENSE
include README.rst
include icons/LICENSE
graft doc
+1
View File
@@ -0,0 +1 @@
doc/index.rst
+25
View File
@@ -0,0 +1,25 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from . import ir, party, user
def register():
Pool.register(
user.User,
user.User_PartySecondary,
user.UserAuthenticateAttempt,
user.UserSession,
ir.Email,
ir.EmailTemplate,
module='web_user', type_='model')
Pool.register(
party.Replace,
party.Erase,
module='web_user', type_='wizard')
Pool.register(
user.EmailValidation,
user.EmailResetPassword,
module='web_user', type_='report')
+43
View File
@@ -0,0 +1,43 @@
Web User Module
###############
The web_user module provides facilities to manage external user accessing from
the web.
User
****
A user is uniquely identified by an email and he is authenticated using a
hashed password. The user can be linked to a Party.
Two actions are available:
- The *Validate E-mail* which sent an e-mail to the user with a link to an URL
that ensures the address exists.
- The *Reset Password* which sent an e-mail to the user with a link to an URL
to set a new password.
Configuration
*************
The web_user module uses parameters from different sections:
- `web`:
- `reset_password_url`: the URL to reset the password to which the
parameters `email` and `token` will be added.
- `email_validation_url`: the URL for email validation to which the
parameter `token` will be added.
- `email`:
- `from`: the origin address to send emails.
- `session`:
- `web_timeout`: defines in seconds the validity of the web session.
Default: 30 days.
- `web_timeout_reset`: in seconds the validity of the reset password token.
Default: 1 day.
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/" xmlns:i18n="http://genshi.edgewall.org/i18n">
<head>
<title>Reset Password</title>
</head>
<body>
<py:for each="user in records">
<div style="display: block; text-align: center">
<div>
<h1>Reset Password</h1>
<p i18n:msg="email">We received a request to reset the password for your account: ${user.email}</p>
<a href="${user.get_email_reset_password_url()}"
style="display: block; text-decoration: none; width: max-content; margin: 0 auto; padding: 0.5em 1em; font-size:2em; border: 1px solid #2E6DA4; border-radius: 4px; color: #FFF; background-color: #337AB7;">
Reset Password
</a>
</div>
<hr style="margin-top: 20px; border-style: solid none none; border-color: #EEE"></hr>
<div style="font-size: 80%; color: #777">
<p i18n:msg="datetime,expire_delay">
The link will expire in <time datetime="${record.reset_password_token_expire.isoformat()}">${format_timedelta(expire_delay)}</time>.
</p>
<p>Button is not working? Paste this into your browser:</p>
<p>${user.get_email_reset_password_url()}</p>
<p>If you didn't make this request, you can ignore this email.</p>
</div>
</div>
</py:for>
</body>
</html>
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/" xmlns:i18n="http://genshi.edgewall.org/i18n">
<head>
<title>Email Validation</title>
</head>
<body>
<py:for each="user in records">
<div style="display: block; text-align: center">
<div>
<h1>Just one more step..</h1>
<p i18n:msg="email">${user.email}</p>
<a href="${user.get_email_validation_url()}"
style="display: block; text-decoration: none; width: max-content; margin: 0 auto; padding: 0.5em 1em; font-size:2em; border: 1px solid #2E6DA4; border-radius: 4px; color: #FFF; background-color: #337AB7;">
Validate
</a>
</div>
<hr style="margin-top: 20px; border-style: solid none none; border-color: #EEE"></hr>
<div style="font-size: 80%; color: #777">
<p>Button is not working? Paste this into your browser:</p>
<p>${user.get_email_validation_url()}</p>
<p>If you received this email by mistake, just ignore it.</p>
</div>
</div>
</py:for>
</body>
</html>
+55
View File
@@ -0,0 +1,55 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool, PoolMeta
from trytond.tools import escape_wildcard
class Email(metaclass=PoolMeta):
__name__ = 'ir.email'
@classmethod
def _match(cls, name, email):
pool = Pool()
User = pool.get('web.user')
yield from super()._match(name, email)
domain = ['OR']
for field in ['party.name', 'email']:
for value in [name, email]:
if value and len(value) >= 3:
domain.append(
(field, 'ilike', '%' + escape_wildcard(value) + '%'))
for user in User.search([
('email', '!=', ''),
domain,
], order=[]):
yield user.party.name if user.party else '', user.email
class EmailTemplate(metaclass=PoolMeta):
__name__ = 'ir.email.template'
@classmethod
def email_models(cls):
return super().email_models() + ['web.user']
@classmethod
def _get_address(cls, record):
pool = Pool()
User = pool.get('web.user')
address = super()._get_address(record)
if isinstance(record, User):
name = None
if record.party:
name = record.party.name
address = (name, record.email)
return address
@classmethod
def _get_language(cls, record):
pool = Pool()
User = pool.get('web.user')
language = super()._get_language(record)
if isinstance(record, User):
if record.party:
language = cls._get_language(record.party)
return language
+190
View File
@@ -0,0 +1,190 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
#, fuzzy
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Управление на партньор"
#, fuzzy
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Парола"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Управление на партньор"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Потребител"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
#, fuzzy
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Потребителско име"
#, fuzzy
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Ключ"
#, fuzzy
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Потребител"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Проверка"
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+178
View File
@@ -0,0 +1,178 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "Correu electrònic"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Token del correu electrònic"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "Correu electrònic vàlid"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Tercer"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Contrasenya"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Hash de la contrasenya"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Token restableix la contrasenya"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Expiració token restableix contrasenya"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Tercers secundaris"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Tercer"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Usuari"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Galeta de dispositiu"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "Adreça IP"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "Xarxa IP"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Nom usuari"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Clau"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Usuari"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Usuaris web"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Usuaris web"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Restableix la contrasenya"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Validació correu electrònic"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "El correu electrònic de l'usuari web ha de ser únic."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "La clau de sessió de l'usuari web ha de ser única."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Restableix la contrasenya"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Valida correu electrònic"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Usuaris web"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Usuari web"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Usuari Web - Tercers Secundaris"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Intent d'autenticació usuari web"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Sessió usuari web"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "El botó no funciona? Empega això al teu navegador:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Si no heu fet aquesta petició, podeu ignorar aquest correu."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Restableix la contrasenya"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "L'enllaç caducarà en [1:%(datetime)s]."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"Hem rebut una petició per restablir la contrasenya del vostre compte: "
"%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "El botó no funciona? Empega això al teu navegador:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Validació correu electrònic"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Si heu rebut aquest correu per error, ignoreu-lo."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Només un pas més..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Valida"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Restableix la contrasenya"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Valida correu electrònic"
+183
View File
@@ -0,0 +1,183 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Web Users"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+187
View File
@@ -0,0 +1,187 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-Mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "E-Mail Token"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "E-Mail gültig"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Partei"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Passwort"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Passwort Hash"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Passwortrücksetzungstoken"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Passwortrücksetzungstoken Verfall"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Sekundäre Parteien"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Partei"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Benutzer"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Geräte Cookie"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP-Adresse"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "IP-Netz"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Benutzername"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Schlüssel"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Benutzer"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Webbenutzer"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Webbenutzer"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Passwort zurücksetzen"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "E-Mail-Validierung"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
"Die E-Mail eines aktiven Webbenutzers kann nur einmal vergeben werden."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
"Der Sitzungsschlüssel eines Webbenutzers kann nur einmal vergeben werden."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Passwort zurücksetzen"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "E-Mail validieren"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Webbenutzer"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Webbenutzer"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Webbenutzer - Sekundäre Partei"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Webbenutzer Authentifizierungsversuch"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Webbenutzer Sitzung"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
"Wenn der Button nicht funktioniert, kopieren Sie bitte die folgende Zeile in"
" die Adresszeile Ihres Browsers:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
"Ignorieren Sie bitte diese E-Mail, wenn Sie nicht der Urheber dieser Anfrage"
" sind."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Passwort zurücksetzen"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "Der Hyperlink wird in [1:%(datetime)s] ablaufen."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"Wir haben eine Anfrage zur Rücksetzung des Passworts für Ihr Konto erhalten:"
" %(email)s"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
"Wenn der Button nicht funktioniert, kopieren Sie bitte die folgende Zeile in"
" die Adresszeile Ihres Browsers:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "E-Mail-Validierung"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
"Ignorieren Sie bitte diese E-Mail, wenn Sie sie irrtümlich erhalten haben."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Nur noch ein Schritt..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Prüfen"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Passwort zurücksetzen"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "E-Mail validieren"
+180
View File
@@ -0,0 +1,180 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "Correo electrónico"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Token del correo electrónico"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "Correo electrónico válido"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Tercero"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Contraseña"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Hash de la contraseña"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Restablecer el token de la contraseña"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Restablecer el token de expiración de la contraseña"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Terceros secundarios"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Tercero"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Usuario"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Cookie del dispositivo"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "Dirección IP"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "Red IP"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Nombre usuario"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Clave"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Usuario"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Usuarios web"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Usuarios web"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Restablecer contraseña"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Validación correo electrónico"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "El correo electrónico del usuario web debe ser único."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "La clave de sesión del usuario web debe ser única."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Restablecer contraseña"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validar correo electrónico"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Usuarios web"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Usuario web"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Usuario web - Tercero secundario"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Intento de identificación usuario web"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Sesión usuario web"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "¿El botón no funciona? Pega esto en tu navegador:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
"Si no habéis realizado esta petición, podéis ignorar este correo "
"electrónico."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Restablecer contraseña"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "El enlace caducará en [1:%(datetime)s]."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"Hemos recibido una solicitud para reiniciar la contraseña de vuestra cuenta:"
" %(email)s"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "¿El botón no funciona? Pega esto en tu navegador:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Validación correo electrónico"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Si ha recibido este correo electrónico por error, por favor ignórelo."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Solo un paso mas..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Validar"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Restablecer contraseña"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validar correo electrónico"
+176
View File
@@ -0,0 +1,176 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr ""
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr ""
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr ""
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr ""
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr ""
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr ""
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr ""
+180
View File
@@ -0,0 +1,180 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-kiri"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Osapool"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Salasõna"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Salasõna räsi"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Osapool"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Kasutaja"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP-aadress"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "IP-võrk"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Logi sisse"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Võti"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Kasutaja"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Muutja"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Lähtesta salasõna"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr ""
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Lähtesta salasõna"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr ""
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Nupp ei tööta? Aseta see link brauseri aadressreale:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Kui sa ei teinud seda päringut, siis ignoreeri seda e-kirja."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Lähtesta salasõna"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "Saime teate salasõna lähtestamiseks,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Nupp ei tööta? Aseta see link brauseri aadressreale:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Lähtesta salasõna"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr ""
+181
View File
@@ -0,0 +1,181 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "ایمیل"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "نشانه(Token) ایمیل"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "ایمیل معتبر است"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "نهاد/سازمان"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "کلمه عبور"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "کلمه عبور درهم"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "بازنشانی نشانه(Token) کلمه عبور"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "بازنشانی انقضای نشانه(Token) کلمه عبور"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "نهاد/سازمان"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "کاربر"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "آدرس آی پی"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "آی پی شبکه"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "ورود به سیستم"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "کلید"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "کاربر"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "کاربران وب"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "کاربران وب"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "بازنشانی رمز عبور"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "اعتبار سنجی ایمیل"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "پست الکترونیکی کاربر فعال وب سایت باید منحصر به فرد باشد."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "کلید جلسه کاربر وب باید منحصر به فرد باشد."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "کاربران وب"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "کاربر وب"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "جلسه کاری کاربر وب"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "تلاش برای هوّیت سنجی کاربر وب"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "جلسه کاری کاربر وب"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "دکمه کار نمی کند؟ این آدرس را در مرورگر خود مرور کنید:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "اگراین درخواست را نکرده باشید، می توانید این ایمیل را نادیده بگیرید."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "بازنشانی کلمه عبور"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "مایک درخواست برای بازنشانی کلمه عبور حساب کاربری شما دریافت کردیم،"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "دکمه کار نمی کند؟ این آدرس را در مرورگر خود مرور کنید:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "اعتبار سنجی ایمیل"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "اگر این ایمیل را به اشتباه دریافت کردید، فقط آن را نادیده بگیرید."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "فقط یک گام دیگه.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "تایید اعتبار"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "بازنشانی کلمه عبور"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "ایمیل معتبر است"
+183
View File
@@ -0,0 +1,183 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Web Users"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+179
View File
@@ -0,0 +1,179 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Jeton d'E-mail"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "E-mail valide"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Tiers"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Mot de passe"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Hachage de mot de passe"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Jeton de réinitialisation du mot de passe"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Expiration du jeton de réinitialisation du mot de passe"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Tiers secondaires"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Tiers"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Utilisateur"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Cookie de l'appareil"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "Adresse IP"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "Réseau IP"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Identifiant"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Clé"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Utilisateur"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Utilisateurs web"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Utilisateurs web"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Réinitialiser le mot de passe"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "E-mail de validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "L’E-mail d'un utilisateur web actif doit être unique."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "La session d'un utilisateur web doit être unique."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Réinitialiser le mot de passe"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Valider l'e-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Utilisateurs web"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Utilisateur web"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Utilisateur Web - Tiers secondaire"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Tentative d'authentification d'utilisateur web"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Session d'utilisateur web"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Le bouton ne fonctionne pas ? Copier ceci dans votre navigateur :"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
"Si vous n'avez pas fait cette demande, vous pouvez ignorer cet E-mail."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Réinitialiser le mot de passe"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "Le lien expirera dans [1:%(datetime)s]."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"Nous avons reçu une demande de réinitialisation du mot de passe de votre "
"compte : %(email)s"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Le bouton ne fonctionne pas ? Copier ceci dans votre navigateur :"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Validation d'E-mail"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Si vous avez reçu cet E-mail par erreur, ignorez le."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Encore une étape.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Valider"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Réinitialiser le mot de passe"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Valider l'E-mail"
+180
View File
@@ -0,0 +1,180 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "E-mail cím leellenőrizve"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Ügyfél"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Jelszó"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Jelszó hash"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Másodlagos ügyfelek"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Ügyfél"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Felhasználó"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Bejelentkezés"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Kulcs"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Felhasználó"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Webáruház felhasználók"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Webáruház felhasználók"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Jelszó visszaállítása"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "E-mail cím ellenőrzés"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "Nem lehet több aktív webes felhasználónak ugyanaz az e-mail címe."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Jelszó visszaállítása"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "E-mail cím leellenőrzése"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Webáruház felhasználók"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Webáruház felhasználó"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "A gomb nem működik? Másolja be ezt a böngészőjébe:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
"Ha nem Ön küldte ezt a kérés, akkor nyugodtan hagyja figyelmen kívül ezt az "
"e-mailt."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Jelszó visszaállítása"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "Kaptunk egy kérést, hogy állítsuk vissza a felhasználója jelszavát,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "A gomb nem működik? Másolja be ezt a böngészőjébe:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "E-mail cím ellenőrzés"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Ha tévedésből kapta ezt az e-mailt, hagyja nyugodtan figyelmen kívül."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Csak még egy lépés.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Ellenőrzés"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Jelszó visszaállítása"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "E-mail cím leellenőrzése"
+180
View File
@@ -0,0 +1,180 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Pihak"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Kata sandi"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Pihak"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Pengguna"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "Alamat IP"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Kunci"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Pengguna"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Pengguna Web"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Pengguna Web"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Atur Ulang Kata Sandi"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr ""
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Atur Ulang Kata Sandi"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr ""
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Tombol tidak berfungsi? Lekatkan ini pada browser Anda:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Jika bukan Anda yang membuat permintaan ini, abaikan email ini."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Atur Ulang Kata Sandi"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "Kami menerima permintaan untuk mengatur ulang kata sandi akun Anda,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Tombol tidak berfungsi? Lekatkan ini pada browser Anda:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Validasi Email"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Jika Anda menerima email ini karena kesalahan, abaikan saja."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Tinggal satu langkah lagi..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Atur Ulang Kata Sandi"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr ""
+195
View File
@@ -0,0 +1,195 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
#, fuzzy
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "_E-Mail..."
#, fuzzy
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "_E-Mail..."
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Controparte"
#, fuzzy
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Password"
#, fuzzy
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Hash della Password"
#, fuzzy
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Reset Password"
#, fuzzy
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Reset Password"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Controparte"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Utente"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "Indirizzo IP"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
#, fuzzy
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Login"
#, fuzzy
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Chiave"
#, fuzzy
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Utente"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Sessione"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
#, fuzzy
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Sessione"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Verifica"
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+188
View File
@@ -0,0 +1,188 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "ອີ-ເມວລ໌"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "ອີ-ເມວລ໌ ຢັງຢືນຕົວຕົນ"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "ອີ-ເມວລ໌ ຖືກຕ້ອງ"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "ພາກສ່ວນ"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "ລະຫັດຜ່ານ"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "ລະຫັດຜ່ານປະສົມ"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "ຕັ້ງລະຫັດຢັ້ງຢືນຜ່ານຄືນໃໝ່"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "ການຕັ້ງລະຫັດຢັ້ງຢືນຜ່ານຄືນໃໝ່ໝົດເວລາແລ້ວ"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "ພາກສ່ວນ"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "ຜູ້ໃຊ້"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "ເຊື່ອມຕໍ່ເຂົ້າລະບົບ"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "ຄຳສຳຄັນ"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "ຜູ້ໃຊ້"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "ຜູ້ໃຊ້ງານເວັບ"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "ເທື່ອເຂົ້າໃຊ້ຂອງຜູ້ໃຊ້ງານເວັບ"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "ພະຍາຍາມກວດສອບສິດທີ່ຖືກຕ້ອງຂອງຜູ້ໃຊ້ງານເວັບ"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "ເທື່ອເຂົ້າໃຊ້ຂອງຜູ້ໃຊ້ງານເວັບ"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "ປຸ່ມບໍ່ເຮັດວຽກບໍ? ໃຫ້ ວາງ ອັນນີ້ລົງໃສ່ ໂຕທ່ອງເວັບຂອງທ່ານ:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "ຖ້າຫາກທ່ານບໍ່ໄດ້ຮ້ອງຂໍ ອ-ເມວລ໌ ນີ້, ທ່ານບໍ່ຕ້ອງຮັບຮູ້ ອີ-ເມວລ໌ ນີ້."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "ຕັ້ງຄ່າລະຫັດຜ່ານຄືນໃໝ່"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "ພວກເຮົາໄດ້ຮັບຄຳຮ້ອງຂໍໃຫ້ຕັ້ງຄ່າລະຫັດຜ່ານບັນຊີໃຊ້ງານຂອງທ່ານຄືນໃໝ່,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "ປຸ່ມບໍ່ເຮັດວຽກບໍ? ໃຫ້ ວາງ ອັນນີ້ລົງໃສ່ ໂຕທ່ອງເວັບຂອງທ່ານ:"
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "ການຢືນຢັນຄວາມຖືກຕ້ອງ ອີ-ເມວລ໌"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
"ຖ້າຫາກທ່ານໄດ້ຮັບ ອີ-ເມວລ໌ ນີ້ ໂດຍຄວາມຜິດພາດໃດໜຶ່ງ, ພຽງແຕ່ໃຫ້ທ່ານ ບໍ່ຮັບຮູ້ "
"ອີ-ເມວລ໌ ນີ້ກໍພໍ."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "ພຽງແຕ່ອີກບາດກ້າວໜຶ່ງທໍ່ນັ້ນ.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "ກວດສອບຄວາມຖືກຕ້ອງ"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "ຕັ້ງຄ່າລະຫັດຜ່ານຄືນໃໝ່"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "ກວດສອບຄວາມຖືກຕ້ອງ ອີ-ເມວລ໌"
+184
View File
@@ -0,0 +1,184 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Kontrahentas"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Kontrahentas"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Naudotojas"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP adresas"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Naudotojas"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Atstatyti slaptažodį"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Atstatyti slaptažodį"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+178
View File
@@ -0,0 +1,178 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "E-mail token"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "E-mail geldig"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Relatie"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Wachtwoord"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Wachtwoord Hash"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Reset wachtwoord token"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Reset wachtwoord token verlopen"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Secundaire Relaties"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Relatie"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Gebruiker"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Apparaatcookie"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP Adres"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "IP-netwerk"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Loginnaam"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Sleutel"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Gebruiker"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Webgebruikers"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Webgebruikers"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset wachtwoord"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "E-mailvalidatie"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "E-mail van actieve webgebruiker moet uniek zijn."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "Webgebruikerssessiesleutel moet uniek zijn."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset wachtwoord"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Email valideren"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Webgebruikers"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web gebruiker"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Webgebruiker -Secundaire Relatie"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Inlog poging webgebruikers"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Webgebruikerssessie"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Knop werkt niet? Plak dit in uw browser:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Indien u dit verzoek niet hebt gedaan, kunt u deze e-mail negeren."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset wachtwoord"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "De link vervalt in [1:%(datetime)s]."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"We hebben het verzoek ontvangen om het wachtwoord voor uw account %(email)s "
"opnieuw in te stellen"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Knop werkt niet? Plak dit in uw browser:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "E-mailvalidatie"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Negeer deze email, als u deze per ongeluk hebt ontvangen."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Nog maar één stap.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Goedkeuren"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset wachtwoord"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Email valideren"
+183
View File
@@ -0,0 +1,183 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Web Users"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+185
View File
@@ -0,0 +1,185 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "E-mail"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Token do E-mail"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "E-mail Válido"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Pessoa"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Senha"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Hash da Senha"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Redefinir Token da Senha"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Redefinir Validade do Token da Senha"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Pessoa"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Usuário"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Entrar"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Chave"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Usuário"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Usuário Web"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Sessão de Usuário Web"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Tentativa de autenticação do usuário Web"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Sessão de Usuário Web"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "O botão não está funcionando? Cole isso em seu navegador:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Se você não fez esta solicitação, você pode ignorar esse email."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Redefinir senha"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "Nós recebemos uma solicitação para redefinir a senha da sua conta,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Botão não está funcionando? Cole isso no seu navegador:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email de Validação"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Se você recebeu esse email por engano, apenas ignore-o."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Apenas mais um passo..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Validar"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Redefinir senha"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validar E-mail"
+177
View File
@@ -0,0 +1,177 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Parte"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Parola"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Parte"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr ""
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Resetare parola"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr ""
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Resetare Parola"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr ""
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr ""
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr ""
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr ""
+190
View File
@@ -0,0 +1,190 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
#, fuzzy
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Организации"
#, fuzzy
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Пароль"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Организации"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Пользователь"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
#, fuzzy
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Логин"
#, fuzzy
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Ключ"
#, fuzzy
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Пользователь"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Утвержденный"
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+185
View File
@@ -0,0 +1,185 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "e-naslov"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Žeton e-naslova"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "e-naslov veljaven"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Partner"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Geslo"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Zgoščena vrednost gesla"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Žeton za ponastavitev gesla"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Zapadlost ponastavitvenga žetona"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Partner"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Uporabnik"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Prijava"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Ključ"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Uporabnik"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Spletni uporabnik"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Seja spletnega uporabnika"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Poskus overjanja spletnega uporabnika"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Seja spletnega uporabnika"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Gumb ne deluje? Prilepite sledeče v vaš brskalnik:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Če niste zahtevali tega sporočila, ga preprosto prezrite."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Ponastavitev gesla"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "Prejeli smo zahtevek za ponastavitev gesla vašega računa,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Gumb ne deluje? Prilepite sledeče v vaš brskalnik:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Preverjanje elektronskega naslova"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Če ste po pomoti prejeli to sporočilo, ga preprosto prezrite."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Samo še en korak ..."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Preveri veljavnost"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Ponastavi geslo"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Preveri e-naslov"
+183
View File
@@ -0,0 +1,183 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr ""
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr ""
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr ""
msgctxt "field:web.user,party:"
msgid "Party"
msgstr ""
msgctxt "field:web.user,password:"
msgid "Password"
msgstr ""
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr ""
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr ""
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr ""
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Web Users"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr ""
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr ""
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr ""
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web Users"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr ""
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr ""
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Validate E-mail"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web Users"
#, fuzzy
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web Users"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr ""
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr ""
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Reset Password"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Email Validation"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr ""
#, fuzzy
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Reset Password"
#, fuzzy
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Validate E-mail"
+177
View File
@@ -0,0 +1,177 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "Ел.пошта"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "Токен ел.пошти"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "Ел.пошта дійсна"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "Особа"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "Пароль"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "Хеш пароля"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "Скинути токен пароля"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "Термін скидання токена пароля закінчується"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr "Вторинні особи"
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "Особа"
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "Користувач"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr "Куки пристрою"
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP-адреса"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "IP-мережа"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "Логін"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "Ключ"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "Користувач"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Веб-користувачі"
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Веб-користувачі"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "Скинути пароль"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "Перевірка ел.пошти"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "Ел.пошта активного веб-користувача має бути унікальною."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "Ключ сеансу веб-користувача має бути унікальним."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "Скинути пароль"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "Перевірити ел.пошту"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Веб-користувачі"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Веб-користувач"
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "Веб-користувач - Вторинна особа"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Спроба автентифікації веб-користувача"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "Сеанс веб-користувача"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Кнопка не працює? Вставте це у свій браузер:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "Якщо ви не робили цей запит, можете проігнорувати цей ел.лист."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "Скинути пароль"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr "Термін посилання завершиться через [1:%(datetime)s]."
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr ""
"Ми отримали запит на скидання пароля для вашого облікового запису: %(email)s"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr "%(email)s"
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "Кнопка не працює? Вставте це у свій браузер:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "Перевірка ел.пошти"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "Якщо ви отримали цей ел.лист помилково, просто проігноруйте його."
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "Ще один крок.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "Перевірити"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "Скинути пароль"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "Перевірити ел.пошту"
+181
View File
@@ -0,0 +1,181 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:web.user,email:"
msgid "E-mail"
msgstr "电子邮件"
msgctxt "field:web.user,email_token:"
msgid "E-mail Token"
msgstr "电子邮件令牌"
msgctxt "field:web.user,email_valid:"
msgid "E-mail Valid"
msgstr "电子邮件有效"
msgctxt "field:web.user,party:"
msgid "Party"
msgstr "参与者"
msgctxt "field:web.user,password:"
msgid "Password"
msgstr "密码"
msgctxt "field:web.user,password_hash:"
msgid "Password Hash"
msgstr "密码HASH"
msgctxt "field:web.user,reset_password_token:"
msgid "Reset Password Token"
msgstr "重置密码令牌"
msgctxt "field:web.user,reset_password_token_expire:"
msgid "Reset Password Token Expire"
msgstr "重置密码令牌过期"
msgctxt "field:web.user,secondary_parties:"
msgid "Secondary Parties"
msgstr ""
#, fuzzy
msgctxt "field:web.user-party.party.secondary,party:"
msgid "Party"
msgstr "参与者"
#, fuzzy
msgctxt "field:web.user-party.party.secondary,user:"
msgid "User"
msgstr "用户"
msgctxt "field:web.user.authenticate.attempt,device_cookie:"
msgid "Device Cookie"
msgstr ""
msgctxt "field:web.user.authenticate.attempt,ip_address:"
msgid "IP Address"
msgstr "IP地址"
msgctxt "field:web.user.authenticate.attempt,ip_network:"
msgid "IP Network"
msgstr "IP网络"
msgctxt "field:web.user.authenticate.attempt,login:"
msgid "Login"
msgstr "登录"
msgctxt "field:web.user.session,key:"
msgid "Key"
msgstr "密匙"
msgctxt "field:web.user.session,user:"
msgid "User"
msgstr "用户"
msgctxt "model:ir.action,name:act_user_form"
msgid "Web Users"
msgstr "Web 用户"
#, fuzzy
msgctxt "model:ir.action,name:act_user_form_party"
msgid "Web Users"
msgstr "Web 用户"
msgctxt "model:ir.action,name:report_email_reset_password"
msgid "Reset Password"
msgstr "重置密码"
msgctxt "model:ir.action,name:report_email_validation"
msgid "Email Validation"
msgstr "电子邮件验证"
msgctxt "model:ir.message,text:msg_user_email_unique"
msgid "E-mail of active web user must be unique."
msgstr "已经激活的Web用户,电子邮件不能重复."
msgctxt "model:ir.message,text:msg_user_session_key_unique"
msgid "Web user session key must be unique."
msgstr "Web用户会话密钥必须唯一."
msgctxt "model:ir.model.button,string:user_reset_password_button"
msgid "Reset Password"
msgstr "重置密码"
msgctxt "model:ir.model.button,string:user_validate_email_button"
msgid "Validate E-mail"
msgstr "验证电子邮件"
msgctxt "model:ir.ui.menu,name:menu_user_form"
msgid "Web Users"
msgstr "Web 用户"
msgctxt "model:web.user,name:"
msgid "Web User"
msgstr "Web 用户"
#, fuzzy
msgctxt "model:web.user-party.party.secondary,name:"
msgid "Web User - Secondary Party"
msgstr "web 用户会话"
msgctxt "model:web.user.authenticate.attempt,name:"
msgid "Web User Authenticate Attempt"
msgstr "Web用户验证尝试"
msgctxt "model:web.user.session,name:"
msgid "Web User Session"
msgstr "web 用户会话"
msgctxt "report:web.user.email_reset_password:"
msgid "Button is not working? Paste this into your browser:"
msgstr "按钮不起作用? 将此粘贴到浏览器的地址栏中:"
msgctxt "report:web.user.email_reset_password:"
msgid "If you didn't make this request, you can ignore this email."
msgstr "如果你没有发出过此请求,就忽略此电子邮件."
msgctxt "report:web.user.email_reset_password:"
msgid "Reset Password"
msgstr "重置密码"
msgctxt "report:web.user.email_reset_password:"
msgid "The link will expire in [1:%(datetime)s]."
msgstr ""
#, fuzzy
msgctxt "report:web.user.email_reset_password:"
msgid ""
"We received a request to reset the password for your account: %(email)s"
msgstr "我们收到了重置你的帐户密码的请求,"
msgctxt "report:web.user.email_validation:"
msgid "%(email)s"
msgstr ""
msgctxt "report:web.user.email_validation:"
msgid "Button is not working? Paste this into your browser:"
msgstr "按钮不起作用? 将此粘贴到浏览器的地址栏中:"
msgctxt "report:web.user.email_validation:"
msgid "Email Validation"
msgstr "电子邮件验证"
msgctxt "report:web.user.email_validation:"
msgid "If you received this email by mistake, just ignore it."
msgstr "如果误收到此电子邮件,请忽略它。"
msgctxt "report:web.user.email_validation:"
msgid "Just one more step.."
msgstr "仅一步之遥.."
msgctxt "report:web.user.email_validation:"
msgid "Validate"
msgstr "验证"
msgctxt "view:web.user:"
msgid "Reset Password"
msgstr "重置密码"
msgctxt "view:web.user:"
msgid "Validate E-mail"
msgstr "验证电子邮件"
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data grouped="1">
<record model="ir.message" id="msg_user_email_unique">
<field name="text">E-mail of active web user must be unique.</field>
</record>
<record model="ir.message" id="msg_user_session_key_unique">
<field name="text">Web user session key must be unique.</field>
</record>
</data>
</tryton>
+28
View File
@@ -0,0 +1,28 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool, PoolMeta
class Replace(metaclass=PoolMeta):
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
return super().fields_to_replace() + [
('web.user', 'party'),
('web.user-party.party.secondary', 'party'),
]
class Erase(metaclass=PoolMeta):
__name__ = 'party.erase'
def to_erase(self, party_id):
pool = Pool()
User = pool.get('web.user')
to_erase = super().to_erase(party_id)
to_erase.append(
(User, [('party', '=', party_id)], True,
['email'],
[None]))
return to_erase
+151
View File
@@ -0,0 +1,151 @@
#!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
from configparser import ConfigParser
from setuptools import find_packages, setup
def read(fname):
return io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
def get_require_version(name):
if minor_version % 2:
require = '%s >= %s.%s.dev0, < %s.%s'
else:
require = '%s >= %s.%s, < %s.%s'
require %= (name, major_version, minor_version,
major_version, minor_version + 1)
return require
config = ConfigParser()
config.read_file(open(os.path.join(os.path.dirname(__file__), 'tryton.cfg')))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
if key in info:
info[key] = info[key].strip().splitlines()
version = info.get('version', '0.0.1')
major_version, minor_version, _ = version.split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)
name = 'trytond_web_user'
download_url = 'http://downloads.tryton.org/%s.%s/' % (
major_version, minor_version)
if minor_version % 2:
version = '%s.%s.dev0' % (major_version, minor_version)
download_url = (
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], name, version))
local_version = []
if os.environ.get('CI_JOB_ID'):
local_version.append(os.environ['CI_JOB_ID'])
else:
for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']:
if os.environ.get(build):
local_version.append(os.environ[build])
else:
local_version = []
break
if local_version:
version += '+' + '.'.join(local_version)
requires = []
for dep in info.get('depends', []):
if not re.match(r'(ir|res)(\W|$)', dep):
requires.append(get_require_version('trytond_%s' % dep))
requires.append(get_require_version('trytond'))
tests_require = []
dependency_links = []
if minor_version % 2:
dependency_links.append(
'https://trydevpi.tryton.org/?local_version='
+ '.'.join(local_version))
setup(name=name,
version=version,
description='Tryton module to manage Web users',
long_description=read('README.rst'),
author='Tryton',
author_email='bugs@tryton.org',
url='http://www.tryton.org/',
download_url=download_url,
project_urls={
"Bug Tracker": 'https://bugs.tryton.org/',
"Documentation": 'https://docs.tryton.org/',
"Forum": 'https://www.tryton.org/forum',
"Source Code": 'https://hg.tryton.org/modules/web_user',
},
keywords='web user',
package_dir={'trytond.modules.web_user': '.'},
packages=(
['trytond.modules.web_user']
+ ['trytond.modules.web_user.%s' % p for p in find_packages()]
),
package_data={
'trytond.modules.web_user': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.html',
'icons/*.svg', 'tests/*.rst']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Framework :: Tryton',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Legal Industry',
'License :: OSI Approved :: '
'GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: Bulgarian',
'Natural Language :: Catalan',
'Natural Language :: Czech',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: Finnish',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Hungarian',
'Natural Language :: Indonesian',
'Natural Language :: Italian',
'Natural Language :: Persian',
'Natural Language :: Polish',
'Natural Language :: Portuguese (Brazilian)',
'Natural Language :: Romanian',
'Natural Language :: Russian',
'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Natural Language :: Turkish',
'Natural Language :: Ukrainian',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Office/Business',
],
license='GPL-3',
python_requires='>=3.7',
install_requires=requires,
extras_require={
'BCrypt': ['bcrypt'],
'test': tests_require,
'html2text': ['html2text'],
},
dependency_links=dependency_links,
zip_safe=False,
entry_points="""
[trytond.modules]
web_user = trytond.modules.web_user
""",
)
+2
View File
@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
+200
View File
@@ -0,0 +1,200 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from unittest.mock import ANY, patch
from trytond.config import config
from trytond.modules.party.tests import PartyCheckEraseMixin
from trytond.modules.web_user import user as user_module
from trytond.pool import Pool
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
VALIDATION_URL = 'http://www.example.com/validation'
RESET_PASSWORD_URL = 'http://www.example.com/reset_password'
FROM = 'tryton@example.com'
class WebUserTestCase(PartyCheckEraseMixin, ModuleTestCase):
'Test Web User module'
module = 'web_user'
def setUp(self):
super(WebUserTestCase, self).setUp()
validation_url = config.get('web', 'email_validation_url', default='')
config.set('web', 'email_validation_url', VALIDATION_URL)
self.addCleanup(
lambda: config.set('web', 'email_validation_url', validation_url))
reset_password_url = config.get(
'web', 'reset_password_url', default='')
config.set('web', 'reset_password_url', RESET_PASSWORD_URL)
self.addCleanup(lambda: config.set(
'web', 'reset_password_url', reset_password_url))
reset_from = config.get('email', 'from', default='')
config.set('email', 'from', FROM)
self.addCleanup(lambda: config.set('email', 'from', reset_from))
length = config.get('password', 'length', default='')
config.set('password', 'length', '4')
self.addCleanup(config.set, 'password', 'length', length)
entropy = config.get('password', 'entropy', default='')
config.set('password', 'entropy', '0.8')
self.addCleanup(config.set, 'password', 'entropy', entropy)
def create_user(self, email, password):
pool = Pool()
User = pool.get('web.user')
user = User(email=email)
user.password = password
user.save()
self.assertEqual(user.password, 'x' * 10)
self.assertNotEqual(user.password_hash, password)
def check_user(self, email, password):
pool = Pool()
User = pool.get('web.user')
user, = User.search([('email', '=', email)])
auth_user = User.authenticate(email, password)
self.assertEqual(auth_user, user)
bad_user = User.authenticate(email, password + 'wrong')
self.assertEqual(bad_user, None)
bad_user = User.authenticate(email + 'wrong', password)
self.assertEqual(bad_user, None)
@with_transaction()
def test_default_hash(self):
'Test default hash'
self.create_user('user@example.com', 'secret')
self.check_user('user@example.com', 'secret')
@with_transaction()
def test_session(self):
'Test session'
pool = Pool()
User = pool.get('web.user')
user = User(email='user@example.com')
user.save()
key = user.new_session()
self.assertTrue(key)
session_user = User.get_user(key)
self.assertEqual(session_user, user)
wrong_session_user = User.get_user('foo')
self.assertEqual(wrong_session_user, None)
@with_transaction()
def test_validate_email(self):
'Test email validation'
pool = Pool()
User = pool.get('web.user')
user = User(email='user@example.com')
user.save()
self.assertFalse(user.email_valid)
self.assertFalse(user.email_token)
with patch.object(user_module, 'sendmail_transactional') as sendmail:
User.validate_email([user])
sendmail.assert_called_once_with(FROM, ['user@example.com'], ANY)
token = user.email_token
self.assertTrue(token)
self.assertEqual(
user.get_email_validation_url(),
'%s?token=%s' % (VALIDATION_URL, token))
self.assertFalse(
User.validate_email_url(VALIDATION_URL))
self.assertFalse(
User.validate_email_url('%s?token=12345' % VALIDATION_URL))
self.assertTrue(
User.validate_email_url(user.get_email_validation_url()))
self.assertTrue(user.email_valid)
self.assertFalse(user.email_token)
@with_transaction()
def test_reset_password(self):
'Test reset password'
pool = Pool()
User = pool.get('web.user')
user = User(email='user@example.com', email_valid=True)
user.save()
self.assertFalse(user.password_hash)
with patch.object(user_module, 'sendmail_transactional') as sendmail:
User.reset_password([user])
sendmail.assert_called_once_with(FROM, ['user@example.com'], ANY)
token = user.reset_password_token
self.assertTrue(token)
self.assertTrue(user.reset_password_token_expire)
self.assertEqual(
user.get_email_reset_password_url(),
'%s?email=user%%40example.com&token=%s'
% (RESET_PASSWORD_URL, token))
self.assertFalse(
User.set_password_token('foo@example.com', '12345', 'secret'))
self.assertFalse(
User.set_password_token('user@example.com', '12345', 'secret'))
self.assertFalse(
User.set_password_token('foo@example.com', token, 'secret'))
self.assertFalse(user.password_hash)
self.assertTrue(User.set_password_url(
user.get_email_reset_password_url(), 'secret'))
self.assertTrue(user.password_hash)
self.assertFalse(user.reset_password_token)
self.assertFalse(user.reset_password_token_expire)
@with_transaction()
def test_create_format_email(self):
"Test create format email"
pool = Pool()
User = pool.get('web.user')
user = User(email='FOO@Example.com')
user.save()
self.assertEqual(user.email, 'foo@example.com')
@with_transaction()
def test_write_format_email(self):
"Test write format email"
pool = Pool()
User = pool.get('web.user')
user = User(email='foo@example.com')
user.save()
User.write([user], {'email': 'BAR@Example.com'})
self.assertEqual(user.email, 'bar@example.com')
@with_transaction()
def test_authenticate_case_insensitive(self):
"Test authenticate case insensitive"
pool = Pool()
User = pool.get('web.user')
user = User(email='foo@example.com', password='secret')
user.save()
auth_user = User.authenticate('FOO@Example.com', 'secret')
self.assertEqual(auth_user, user)
del ModuleTestCase
+17
View File
@@ -0,0 +1,17 @@
[tox]
envlist = {py37,py38,py39,py310}-{sqlite,postgresql}
[testenv]
extras = test
commands =
coverage run --include=./**/web_user/* -m unittest discover -s tests
coverage report --include=./**/web_user/* --omit=*/tests/*
deps =
coverage
postgresql: psycopg2 >= 2.7.0
setenv =
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}} {opts} {packages}
+8
View File
@@ -0,0 +1,8 @@
[tryton]
version=6.7.0
depends:
ir
party
xml:
user.xml
message.xml
+540
View File
@@ -0,0 +1,540 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import datetime
import hashlib
import logging
import random
import string
import time
import urllib.parse
import warnings
from email.header import Header
from secrets import token_hex
try:
import bcrypt
except ImportError:
bcrypt = None
try:
import html2text
except ImportError:
html2text = None
from sql import Literal
from sql.conditionals import Coalesce
from sql.functions import CurrentTimestamp
from sql.operators import Equal
from trytond.config import config
from trytond.exceptions import RateLimitException
from trytond.model import (
DeactivableMixin, Exclude, Index, ModelSQL, ModelView, Unique,
avatar_mixin, fields)
from trytond.pool import Pool
from trytond.pyson import Eval
from trytond.report import Report, get_email
from trytond.res.user import CRYPT_CONTEXT, LoginAttempt
from trytond.sendmail import sendmail_transactional
from trytond.tools.email_ import set_from_header
from trytond.transaction import Transaction
logger = logging.getLogger(__name__)
def _send_email(from_, users, email_func):
from_cfg = config.get('email', 'from')
for user in users:
msg, title = email_func(user)
set_from_header(msg, from_cfg, from_ or from_cfg)
msg['To'] = user.email
msg['Subject'] = Header(title, 'utf-8')
sendmail_transactional(from_cfg, [user.email], msg)
def _add_params(url, **params):
parts = urllib.parse.urlsplit(url)
query = urllib.parse.parse_qsl(parts.query)
for key, value in sorted(params.items()):
query.append((key, value))
parts = list(parts)
parts[3] = urllib.parse.urlencode(query)
return urllib.parse.urlunsplit(parts)
def _extract_params(url):
return urllib.parse.parse_qsl(urllib.parse.urlsplit(url).query)
class User(avatar_mixin(100), DeactivableMixin, ModelSQL, ModelView):
'Web User'
__name__ = 'web.user'
_rec_name = 'email'
email = fields.Char(
"E-mail",
states={
'required': Eval('active', True),
})
email_valid = fields.Boolean('E-mail Valid')
email_token = fields.Char("E-mail Token", strip=False)
password_hash = fields.Char('Password Hash')
password = fields.Function(
fields.Char('Password'), 'get_password', setter='set_password')
reset_password_token = fields.Char("Reset Password Token", strip=False)
reset_password_token_expire = fields.Timestamp(
'Reset Password Token Expire')
party = fields.Many2One('party.party', 'Party', ondelete='RESTRICT')
secondary_parties = fields.Many2Many(
'web.user-party.party.secondary', 'user', 'party', "Secondary Parties")
@classmethod
def __setup__(cls):
super(User, cls).__setup__()
table = cls.__table__()
cls._sql_constraints += [
('email_exclude',
Exclude(table, (table.email, Equal),
where=table.active == Literal(True)),
'web_user.msg_user_email_unique'),
]
cls._sql_indexes.update({
Index(table, (table.email, Index.Equality())),
Index(table, (table.email_token, Index.Equality())),
})
cls._buttons.update({
'validate_email': {
'readonly': Eval('email_valid', False),
'depends': ['email_valid'],
},
'reset_password': {
'readonly': ~Eval('email_valid', False),
'depends': ['email_valid'],
},
})
@classmethod
def __register__(cls, module_name):
super(User, cls).__register__(module_name)
table_h = cls.__table_handler__(module_name)
# Migration from 4.6
table_h.not_null_action('email', 'remove')
# Migration from 4.6: replace unique by exclude
table_h.drop_constraint('email_unique')
@classmethod
def default_email_valid(cls):
return False
def get_password(self, name):
return 'x' * 10
@classmethod
def set_password(cls, users, name, value):
pool = Pool()
User = pool.get('res.user')
if value == 'x' * 10:
return
if Transaction().user and value:
User.validate_password(value, users)
to_write = []
for user in users:
to_write.extend([[user], {
'password_hash': cls.hash_password(value),
}])
cls.write(*to_write)
@fields.depends('party', 'email')
def on_change_party(self):
if not self.email and self.party:
self.email = self.party.email
@classmethod
def _format_email(cls, users):
for user in users:
email = user.email.lower()
if email != user.email:
user.email = email
cls.save(users)
@classmethod
def create(cls, vlist):
users = super(User, cls).create(vlist)
cls._format_email(users)
return users
@classmethod
def write(cls, *args):
super(User, cls).write(*args)
users = sum(args[0:None:2], [])
cls._format_email(users)
@classmethod
def authenticate(cls, email, password):
pool = Pool()
Attempt = pool.get('web.user.authenticate.attempt')
email = email.lower()
count_ip = Attempt.count_ip()
if count_ip > config.getint(
'session', 'max_attempt_ip_network', default=300):
# Do not add attempt as the goal is to prevent flooding
raise RateLimitException()
count = Attempt.count(email)
if count > config.getint('session', 'max_attempt', default=5):
Attempt.add(email)
raise RateLimitException()
# Prevent brute force attack
Transaction().atexit(time.sleep, 2 ** count - 1)
users = cls.search([('email', '=', email)])
if users:
user, = users
valid, new_hash = cls.check_password(password, user.password_hash)
if valid:
if new_hash:
logger.info("Update password hash for %s", user.id)
with Transaction().new_transaction() as transaction:
with transaction.set_user(0):
cls.write([cls(user.id)], {
'password_hash': new_hash,
})
Attempt.remove(email)
return user
Attempt.add(email)
@classmethod
def hash_password(cls, password):
'''Hash given password in the form
<hash_method>$<password>$<salt>...'''
if not password:
return ''
return CRYPT_CONTEXT.hash(password)
@classmethod
def check_password(cls, password, hash_):
if not hash_:
return False, None
try:
return CRYPT_CONTEXT.verify_and_update(password, hash_)
except ValueError:
hash_method = hash_.split('$', 1)[0]
warnings.warn(
"Use deprecated hash method %s" % hash_method,
DeprecationWarning)
valid = getattr(cls, 'check_' + hash_method)(password, hash_)
if valid:
new_hash = CRYPT_CONTEXT.hash(password)
else:
new_hash = None
return valid, new_hash
@classmethod
def hash_sha1(cls, password):
salt = ''.join(random.sample(string.ascii_letters + string.digits, 8))
salted_password = password + salt
if isinstance(salted_password, str):
salted_password = salted_password.encode('utf-8')
hash_ = hashlib.sha1(salted_password).hexdigest()
return '$'.join(['sha1', hash_, salt])
@classmethod
def check_sha1(cls, password, hash_):
if isinstance(password, str):
password = password.encode('utf-8')
hash_method, hash_, salt = hash_.split('$', 2)
salt = salt or ''
if isinstance(salt, str):
salt = salt.encode('utf-8')
assert hash_method == 'sha1'
return hash_ == hashlib.sha1(password + salt).hexdigest()
@classmethod
def hash_bcrypt(cls, password):
if isinstance(password, str):
password = password.encode('utf-8')
hash_ = bcrypt.hashpw(password, bcrypt.gensalt()).decode('utf-8')
return '$'.join(['bcrypt', hash_])
@classmethod
def check_bcrypt(cls, password, hash_):
if isinstance(password, str):
password = password.encode('utf-8')
hash_method, hash_ = hash_.split('$', 1)
if isinstance(hash_, str):
hash_ = hash_.encode('utf-8')
assert hash_method == 'bcrypt'
return hash_ == bcrypt.hashpw(password, hash_)
def new_session(self):
pool = Pool()
Session = pool.get('web.user.session')
return Session.add(self)
@classmethod
def get_user(cls, session):
pool = Pool()
Session = pool.get('web.user.session')
return Session.get_user(session)
@classmethod
@ModelView.button
def validate_email(cls, users, from_=None):
for user in users:
user.set_email_token()
cls.save(users)
_send_email(from_, users, cls.get_email_validation)
def set_email_token(self, nbytes=None):
self.email_token = token_hex(nbytes)
def get_email_validation(self):
return get_email(
'web.user.email_validation', self, self.languages)
def get_email_validation_url(self, url=None):
if url is None:
url = config.get('web', 'email_validation_url')
return _add_params(url, token=self.email_token)
@classmethod
def validate_email_url(cls, url):
parts = urllib.parse.urlsplit(url)
tokens = filter(
None, urllib.parse.parse_qs(parts.query).get('token', [None]))
return cls.validate_email_token(list(tokens))
@classmethod
def validate_email_token(cls, tokens):
users = cls.search([
('email_token', 'in', tokens),
])
cls.write(users, {
'email_valid': True,
'email_token': None,
})
return users
@classmethod
@ModelView.button
def reset_password(cls, users, from_=None):
now = datetime.datetime.now()
# Prevent abusive reset
def reset(user):
return not (user.reset_password_token_expire
and user.reset_password_token_expire > now)
users = list(filter(reset, users))
for user in users:
user.set_reset_password_token()
cls.save(users)
_send_email(from_, users, cls.get_email_reset_password)
def set_reset_password_token(self, nbytes=None):
self.reset_password_token = token_hex(nbytes)
self.reset_password_token_expire = (
datetime.datetime.now() + datetime.timedelta(
seconds=config.getint(
'session', 'web_timeout_reset', default=24 * 60 * 60)))
def clear_reset_password_token(self):
self.reset_password_token = None
self.reset_password_token_expire = None
def get_email_reset_password(self):
return get_email(
'web.user.email_reset_password', self, self.languages)
def get_email_reset_password_url(self, url=None):
if url is None:
url = config.get('web', 'reset_password_url')
return _add_params(
url, token=self.reset_password_token, email=self.email)
@classmethod
def set_password_url(cls, url, password):
parts = urllib.parse.urlsplit(url)
query = urllib.parse.parse_qs(parts.query)
email = query.get('email', [None])[0]
token = query.get('token', [None])[0]
return cls.set_password_token(email, token, password)
@classmethod
def set_password_token(cls, email, token, password):
pool = Pool()
Attempt = pool.get('web.user.authenticate.attempt')
email = email.lower()
# Prevent brute force attack
Transaction().atexit(
time.sleep, random.randint(0, 2 ** Attempt.count(email) - 1))
users = cls.search([
('email', '=', email),
])
if users:
user, = users
if user.reset_password_token == token:
now = datetime.datetime.now()
expire = user.reset_password_token_expire
user.clear_reset_password_token()
if expire > now:
user.password = password
user.save()
Attempt.remove(email)
return True
Attempt.add(email)
return False
@property
def languages(self):
pool = Pool()
Language = pool.get('ir.lang')
if self.party and self.party.lang:
languages = [self.party.lang]
else:
languages = Language.search([
('code', '=', Transaction().language),
])
return languages
class User_PartySecondary(ModelSQL):
"Web User - Secondary Party"
__name__ = 'web.user-party.party.secondary'
user = fields.Many2One(
'web.user', "User", required=True, ondelete='CASCADE')
party = fields.Many2One(
'party.party', "Party", required=True, ondelete='CASCADE')
class UserAuthenticateAttempt(LoginAttempt):
'Web User Authenticate Attempt'
__name__ = 'web.user.authenticate.attempt'
_table = None # Needed to reset LoginAttempt._table
class UserSession(ModelSQL):
'Web User Session'
__name__ = 'web.user.session'
_rec_name = 'key'
key = fields.Char("Key", required=True, strip=False)
user = fields.Many2One(
'web.user', "User", required=True, ondelete='CASCADE')
@classmethod
def __setup__(cls):
super(UserSession, cls).__setup__()
table = cls.__table__()
cls.__rpc__ = {}
cls._sql_constraints += [
('key_unique', Unique(table, table.key),
'web_user.msg_user_session_key_unique'),
]
cls._sql_indexes.update({
Index(
table,
(Coalesce(table.write_date, table.create_date),
Index.Range())),
Index(table, (table.key, Index.Equality())),
})
@classmethod
def default_key(cls, nbytes=None):
return token_hex(nbytes)
@classmethod
def add(cls, user):
cursor = Transaction().connection.cursor()
table = cls.__table__()
cursor.execute(*table.delete(
where=(
Coalesce(table.write_date, table.create_date)
< CurrentTimestamp() - cls.timeout())))
session = cls(user=user)
session.save()
return session.key
@classmethod
def remove(cls, key):
sessions = cls.search([
('key', '=', key),
])
cls.delete(sessions)
@classmethod
def get_user(cls, session):
transaction = Transaction()
sessions = cls.search([
('key', '=', session),
])
if not sessions:
return
session, = sessions
if not session.expired:
return session.user
elif not transaction.readonly:
cls.delete([session])
@classmethod
def timeout(cls):
return datetime.timedelta(seconds=config.getint(
'session', 'web_timeout', default=30 * 24 * 60 * 60))
@property
def expired(self):
now = datetime.datetime.now()
timestamp = self.write_date or self.create_date
return abs(timestamp - now) > self.timeout()
@classmethod
def reset(cls, session):
sessions = cls.search([
('key', '=', session),
])
cls.write(sessions, {})
@classmethod
def create(cls, vlist):
vlist = [v.copy() for v in vlist]
for values in vlist:
# Ensure to get a different key for each record
# default methods are called only once
values.setdefault('key', cls.default_key())
return super(UserSession, cls).create(vlist)
class EmailValidation(Report):
__name__ = 'web.user.email_validation'
@classmethod
def get_context(cls, records, header, data):
context = super().get_context(records, header, data)
context['extract_params'] = _extract_params
return context
class EmailResetPassword(Report):
__name__ = 'web.user.email_reset_password'
@classmethod
def get_context(cls, records, header, data):
context = super().get_context(records, header, data)
context['extract_params'] = _extract_params
expire_delay = (
records[0].reset_password_token_expire - datetime.datetime.now())
# Use a precision of minutes
expire_delay = datetime.timedelta(
days=expire_delay.days,
minutes=round(expire_delay.seconds / 60))
context['expire_delay'] = expire_delay
return context
+105
View File
@@ -0,0 +1,105 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="user_view_form">
<field name="model">web.user</field>
<field name="type">form</field>
<field name="name">user_form</field>
</record>
<record model="ir.ui.view" id="user_view_list">
<field name="model">web.user</field>
<field name="type">tree</field>
<field name="name">user_list</field>
</record>
<record model="ir.action.act_window" id="act_user_form">
<field name="name">Web Users</field>
<field name="res_model">web.user</field>
</record>
<record model="ir.action.act_window.view" id="act_user_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="user_view_list"/>
<field name="act_window" ref="act_user_form"/>
</record>
<record model="ir.action.act_window.view" id="act_user_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="user_view_form"/>
<field name="act_window" ref="act_user_form"/>
</record>
<menuitem
parent="res.menu_res"
action="act_user_form"
sequence="50"
id="menu_user_form"/>
<record model="ir.action.act_window" id="act_user_form_party">
<field name="name">Web Users</field>
<field name="res_model">web.user</field>
<field
name="domain"
eval="['OR', ('party', 'in', Eval('active_ids')), ('secondary_parties', 'in', Eval('active_ids'))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_user_form_party_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="user_view_list"/>
<field name="act_window" ref="act_user_form_party"/>
</record>
<record model="ir.action.act_window.view" id="act_user_form_party_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="user_view_form"/>
<field name="act_window" ref="act_user_form_party"/>
</record>
<record model="ir.action.keyword" id="act_user_form_party_keyword1">
<field name="keyword">form_relate</field>
<field name="model">party.party,-1</field>
<field name="action" ref="act_user_form_party"/>
</record>
<record model="ir.model.access" id="access_user">
<field name="model" search="[('model', '=', 'web.user')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_user_admin">
<field name="model" search="[('model', '=', 'web.user')]"/>
<field name="group" ref="res.group_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="user_validate_email_button">
<field name="name">validate_email</field>
<field name="string">Validate E-mail</field>
<field name="model" search="[('model', '=', 'web.user')]"/>
</record>
<record model="ir.model.button" id="user_reset_password_button">
<field name="name">reset_password</field>
<field name="string">Reset Password</field>
<field name="model" search="[('model', '=', 'web.user')]"/>
</record>
<record model="ir.action.report" id="report_email_validation">
<field name="name">Email Validation</field>
<field name="model">web.user</field>
<field name="report_name">web.user.email_validation</field>
<field name="report">web_user/email_validation.html</field>
<field name="template_extension">html</field>
</record>
<record model="ir.action.report" id="report_email_reset_password">
<field name="name">Reset Password</field>
<field name="model">web.user</field>
<field name="report_name">web.user.email_reset_password</field>
<field name="report">web_user/email_reset_password.html</field>
<field name="template_extension">html</field>
</record>
</data>
</tryton>
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<group col="4" colspan="3" yalign="0" id="header">
<label name="party"/>
<field name="party"/>
<label name="active"/>
<field name="active"/>
<label name="email"/>
<field name="email" widget="email"/>
<newline/>
</group>
<field name="avatar" widget="image" height="100" width="100" xexpand="0"/>
<label name="password"/>
<field name="password" widget="password"/>
<button name="reset_password" colspan="2"/>
<label name="email_valid"/>
<field name="email_valid"/>
<button name="validate_email" colspan="2"/>
<field name="secondary_parties" colspan="4"/>
</form>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="party" expand="2"/>
<field name="email" expand="1"/>
<field name="email_valid"/>
<button name="validate_email" string="Validate E-mail"/>
<button name="reset_password" string="Reset Password"/>
</tree>
+50
View File
@@ -0,0 +1,50 @@
clone:
hg:
image: plugins/hg
environment:
- HG_SHARE_POOL=/root/.cache/hg
volumes:
- cache:/root/.cache
pipeline:
tox:
image: ${IMAGE}
environment:
- CFLAGS=-O0
- TOX_TESTENV_PASSENV=CFLAGS CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
commands:
- echo "[extensions]" >> /root/.hgrc
- echo "hgext.share =" >> /root/.hgrc
- echo "[share]" >> /root/.hgrc
- echo "pool = /root/.cache/hg" >> /root/.hgrc
- pip install tox pydot
- tox -e "${TOXENV}"
volumes:
- cache:/root/.cache
check_dist:
image: ${IMAGE}
commands:
- pip install twine
- python setup.py sdist
- twine check dist/*
volumes:
- cache:/root/.cache
check_doc:
image: ${IMAGE}
commands:
- pip install sphinx
- python -m sphinx -T -E -W -n -b html doc _build/html
- python -m sphinx -T -E -W -n -b linkcheck doc _build
volumes:
- cache:/root/.cache
matrix:
include:
- IMAGE: python:3.7
TOXENV: py37
- IMAGE: python:3.8
TOXENV: py38
- IMAGE: python:3.9
TOXENV: py39
- IMAGE: python:3.10
TOXENV: py310
+2
View File
@@ -0,0 +1,2 @@
[flake8]
ignore=E123,E124,E126,E128,E741,W503
+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+145
View File
@@ -0,0 +1,145 @@
Version 6.6.0 - 2022-10-31
--------------------------
* Bug fixes (see mercurial logs for details)
Version 6.4.0 - 2022-05-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Use unittest discover
* Support notification message
* Use defusedxml to parse XML (11244)
* Add support for Python 3.10
* Remove support for Python 3.6
Version 6.2.0 - 2021-11-01
--------------------------
* Bug fixes (see mercurial logs for details)
* Support session with XML-RPC
* Use bigdecimal tag for XML-RPC
Version 6.0.0 - 2021-05-03
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for Python 3.9
* Unify PYSON string format
Version 5.8.0 - 2020-11-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.5
* Support PYSON comparison of date and datetime
Version 5.6.0 - 2020-05-04
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for Python 3.8
* Use same __str__ as trytond instances
Version 5.4.0 - 2019-11-04
--------------------------
* Bug fixes (see mercurial logs for details)
* Support dot notation on PYSON Eval
* Add __slots__
Version 5.2.0 - 2019-05-06
--------------------------
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.4
Version 5.0.0 - 2018-10-01
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for Python 3.7
* Remove support for Python 2.7
Version 4.8.0 - 2018-04-23
--------------------------
* Bug fixes (see mercurial logs for details)
* Always use the context and config of the instance
* Add support for search_* attributes in ModelList
Version 4.6.0 - 2017-10-30
--------------------------
* Bug fixes (see mercurial logs for details)
* Add set_sequence method to ModelList
* Add __int__ to Model
* Allow to use keyword arguments with trytond configuration
Version 4.4.0 - 2017-05-01
--------------------------
* Bug fixes (see mercurial logs for details)
Version 4.2.0 - 2016-11-28
--------------------------
* Bug fixes (see mercurial logs for details)
* Fill default Report data
Version 4.0.0 - 2016-05-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Add Python3 support
Version 3.8.0 - 2015-11-02
--------------------------
* Bug fixes (see mercurial logs for details)
* Add StateAction support to Wizard
Version 3.6.0 - 2015-04-20
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for PyPy
* Allow to provide extra keyword arguments to set_xmlrpc()
* Add support of fields.TimeDelta
* Remove password on set_trytond
* Manage reload, save, delete, duplicate and click as class and instance method
Version 3.4.0 - 2014-10-20
--------------------------
* Bug fixes (see mercurial logs for details)
* New configuration syntax
* Add Report
* Explicitly set value of parent field
* Add duplicate method
Version 3.2.0 - 2014-04-21
--------------------------
* Bug fixes (see mercurial logs for details)
* Models cache depends also on user
* Drop support of Python 2.6
* Allow to pass field values to new method
* Add click method for buttons
Version 3.0.0 - 2013-10-21
--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.8.0 - 2013-04-22
--------------------------
* Bug fixes (see mercurial logs for details)
* Add support of fields.Dict
Version 2.6.0 - 2012-10-22
--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.4.0 - 2012-04-23
--------------------------
* Bug fixes (see mercurial logs for details)
* Use loading attribute
* Add support of _buttons
* Add support of fields.Time
Version 2.2.0 - 2011-10-25
--------------------------
* Bug fixes (see mercurial logs for details)
* Change license to LGPL-3
* Drop support of Python 2.5
Version 2.0.0 - 2011-04-28
--------------------------
* Bug fixes (see mercurial logs for details)
* Manage default values of trytond configuration
Version 1.8.0 - 2010-12-24
--------------------------
* Initial release
+15
View File
@@ -0,0 +1,15 @@
Copyright (C) 2010-2022 Cédric Krier.
Copyright (C) 2010-2022 B2CK SPRL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+841
View File
@@ -0,0 +1,841 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+5
View File
@@ -0,0 +1,5 @@
include CHANGELOG
include COPYRIGHT
include LICENSE
include README.rst
graft doc
+1
View File
@@ -0,0 +1 @@
doc/index.rst
+42
View File
@@ -0,0 +1,42 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
modules_url = 'https://docs.tryton.org/projects/modules-{module}/en/{series}/'
trytond_url = 'https://docs.tryton.org/projects/server/en/{series}/'
def get_info():
import os
import subprocess
import sys
module_dir = os.path.dirname(os.path.dirname(__file__))
info = dict()
result = subprocess.run(
[sys.executable, 'setup.py', '--name'],
stdout=subprocess.PIPE, check=True, cwd=module_dir)
info['name'] = result.stdout.decode('utf-8').strip()
result = subprocess.run(
[sys.executable, 'setup.py', '--version'],
stdout=subprocess.PIPE, check=True, cwd=module_dir)
version = result.stdout.decode('utf-8').strip()
if 'dev' in version:
info['series'] = 'latest'
else:
info['series'] = '.'.join(version.split('.', 2)[:2])
return info
info = get_info()
master_doc = 'index'
project = info['name']
release = version = info['series']
default_role = 'ref'
highlight_language = 'none'
del get_info, info, modules_url, trytond_url
+171
View File
@@ -0,0 +1,171 @@
=======================
Tryton Scripting Client
=======================
A library to access Tryton's models like a client.
Example of usage
----------------
>>> from proteus import config, Model, Wizard, Report
Configuration
~~~~~~~~~~~~~
Configuration to connect to a sqlite memory database using trytond as module.
>>> config = config.set_trytond('sqlite:///:memory:')
There is also the ``config.set_xmlrpc`` method which can be used to connect
using a URL, and the ``config.set_xmlrpc_session`` method (when used as a
context manager) which connects for a session.
Activating a module
~~~~~~~~~~~~~~~~~~~
Find the module, call the activate button and run the upgrade wizard.
>>> Module = Model.get('ir.module')
>>> party_module, = Module.find([('name', '=', 'party')])
>>> party_module.click('activate')
>>> Wizard('ir.module.activate_upgrade').execute('upgrade')
Creating a party
~~~~~~~~~~~~~~~~
First instantiate a new Party:
>>> Party = Model.get('party.party')
>>> party = Party()
>>> party.id < 0
True
Fill the fields:
>>> party.name = 'ham'
Save the instance into the server:
>>> party.save()
>>> party.name
'ham'
>>> party.id > 0
True
Setting the language of the party
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The language on party is a ``Many2One`` relation field. So it requires to get a
``Model`` instance as value.
>>> Lang = Model.get('ir.lang')
>>> en, = Lang.find([('code', '=', 'en')])
>>> party.lang = en
>>> party.save()
>>> party.lang.code
'en'
Creating an address for the party
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Addresses are store on party with a ``One2Many`` field.
So the new address just needs to be appended to the list ``addresses``.
>>> address = party.addresses.new(postal_code='42')
>>> party.save()
>>> party.addresses #doctest: +ELLIPSIS
[proteus.Model.get('party.address')(...)]
Adding category to the party
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Categories are linked to party with a ``Many2Many`` field.
So first create a category
>>> Category = Model.get('party.category')
>>> category = Category()
>>> category.name = 'spam'
>>> category.save()
Append it to categories of the party
>>> party.categories.append(category)
>>> party.save()
>>> party.categories #doctest: +ELLIPSIS
[proteus.Model.get('party.category')(...)]
Print party label
~~~~~~~~~~~~~~~~~
There is a label report on ``Party``.
>>> label = Report('party.label')
The report is executed with a list of records and some extra data.
>>> type_, data, print_, name = label.execute([party], {})
Sorting addresses and register order
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Addresses are ordered by sequence which means they can be stored following a
specific order.
The ``set_sequence`` method stores the current order.
>>> address = party.addresses.new(postal_code='69')
>>> party.save()
>>> address = party.addresses.new(postal_code='23')
>>> party.save()
Now changing the order.
>>> reversed_addresses = list(reversed(party.addresses))
>>> while party.addresses:
... _ = party.addresses.pop()
>>> party.addresses.extend(reversed_addresses)
>>> party.addresses.set_sequence()
>>> party.save()
>>> party.addresses == reversed_addresses
True
Setting context
~~~~~~~~~~~~~~~
Make French translatable:
>>> Language = Model.get('ir.lang')
>>> french, = Language.find([('code', '=', 'fr')])
>>> french.translatable = True
>>> french.save()
Create a category in English:
>>> Category = Model.get('party.category')
>>> with config.set_context(language='en'):
... category = Category(name="Category")
... category.save()
Translate in French:
>>> with config.set_context(language='fr'):
... category_fr = Category(category.id)
... category_fr.name = "Categorie"
... category_fr.save()
Read in English:
>>> category.reload()
>>> category.name
'Category'
Read in French:
>>> category_fr.reload()
>>> category_fr.name
'Categorie'
.. toctree::
:maxdepth: 2
releases
+7
View File
@@ -0,0 +1,7 @@
.. _releases-index:
=============
Release notes
=============
.. include:: ../CHANGELOG
File diff suppressed because it is too large. Load diff
+404
View File
@@ -0,0 +1,404 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
"""
Configuration functions for the proteus package for Tryton.
"""
import base64
import datetime
import os
import threading
import urllib.parse
import xmlrpc.client
from contextlib import contextmanager
from decimal import Decimal
import defusedxml.xmlrpc
__all__ = ['set_trytond', 'set_xmlrpc', 'get_config']
defusedxml.xmlrpc.monkey_patch()
def dump_decimal(self, value, write):
write('<value><bigdecimal>')
write(str(Decimal(value)))
write('</bigdecimal></value>')
def dump_date(self, value, write):
value = {'__class__': 'date',
'year': value.year,
'month': value.month,
'day': value.day,
}
self.dump_struct(value, write)
def dump_time(self, value, write):
value = {'__class__': 'time',
'hour': value.hour,
'minute': value.minute,
'second': value.second,
'microsecond': value.microsecond,
}
self.dump_struct(value, write)
def dump_timedelta(self, value, write):
value = {'__class__': 'timedelta',
'seconds': value.total_seconds(),
}
self.dump_struct(value, write)
def dump_long(self, value, write):
try:
self.dump_long(value, write)
except OverflowError:
write('<value><biginteger>')
write(str(int(value)))
write('</biginteger></value>\n')
xmlrpc.client.Marshaller.dispatch[Decimal] = dump_decimal
xmlrpc.client.Marshaller.dispatch[datetime.date] = dump_date
xmlrpc.client.Marshaller.dispatch[datetime.time] = dump_time
xmlrpc.client.Marshaller.dispatch[datetime.timedelta] = dump_timedelta
xmlrpc.client.Marshaller.dispatch[int] = dump_long
def dump_struct(self, value, write, escape=xmlrpc.client.escape):
converted_value = {}
for k, v in value.items():
if isinstance(k, int):
k = str(k)
elif isinstance(k, float):
k = repr(k)
converted_value[k] = v
return self.dump_struct(converted_value, write, escape=escape)
xmlrpc.client.Marshaller.dispatch[dict] = dump_struct
class XMLRPCDecoder(object):
decoders = {}
@classmethod
def register(cls, klass, decoder):
assert klass not in cls.decoders
cls.decoders[klass] = decoder
def __call__(self, dct):
if dct.get('__class__') in self.decoders:
return self.decoders[dct['__class__']](dct)
return dct
XMLRPCDecoder.register('date',
lambda dct: datetime.date(dct['year'], dct['month'], dct['day']))
XMLRPCDecoder.register('time',
lambda dct: datetime.time(dct['hour'], dct['minute'], dct['second'],
dct['microsecond']))
XMLRPCDecoder.register('timedelta',
lambda dct: datetime.timedelta(seconds=dct['seconds']))
XMLRPCDecoder.register('Decimal', lambda dct: Decimal(dct['decimal']))
def end_struct(self, data):
mark = self._marks.pop()
# map structs to Python dictionaries
dct = {}
items = self._stack[mark:]
for i in range(0, len(items), 2):
dct[items[i]] = items[i + 1]
dct = XMLRPCDecoder()(dct)
self._stack[mark:] = [dct]
self._value = 0
xmlrpc.client.Unmarshaller.dispatch['struct'] = end_struct
_CONFIG = threading.local()
_CONFIG.current = None
class ContextManager(object):
'Context Manager for the tryton context'
def __init__(self, config):
self.config = config
self.context = config.context
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
self.config._context = self.context
class Config(object):
'Config interface'
def __init__(self):
super(Config, self).__init__()
self._context = {}
@property
def context(self):
return self._context.copy()
def set_context(self, context=None, **kwargs):
ctx_manager = ContextManager(self)
if context is None:
context = {}
self._context = self.context
self._context.update(context)
self._context.update(kwargs)
return ctx_manager
def reset_context(self):
ctx_manager = ContextManager(self)
self._context = {}
return ctx_manager
def get_proxy(self, name):
raise NotImplementedError
def get_proxy_methods(self, name):
raise NotImplementedError
class _TrytondMethod(object):
def __init__(self, name, model, config):
super(_TrytondMethod, self).__init__()
self._name = name
self._object = model
self._config = config
def __call__(self, *args, **kwargs):
from trytond.rpc import RPC
from trytond.tools import is_instance_method
from trytond.transaction import Transaction
from trytond.worker import run_task
if self._name in self._object.__rpc__:
rpc = self._object.__rpc__[self._name]
elif self._name in getattr(self._object, '_buttons', {}):
rpc = RPC(readonly=False, instantiate=0)
else:
raise TypeError('%s is not callable' % self._name)
with Transaction().start(self._config.database_name,
self._config.user, readonly=rpc.readonly) as transaction:
args, kwargs, transaction.context, transaction.timestamp = \
rpc.convert(self._object, *args, **kwargs)
meth = getattr(self._object, self._name)
if (rpc.instantiate is None
or not is_instance_method(self._object, self._name)):
result = rpc.result(meth(*args, **kwargs))
else:
assert rpc.instantiate == 0
inst = args.pop(0)
if hasattr(inst, self._name):
result = rpc.result(meth(inst, *args, **kwargs))
else:
result = [rpc.result(meth(i, *args, **kwargs))
for i in inst]
transaction.commit()
while transaction.tasks:
task_id = transaction.tasks.pop()
run_task(self._config.database_name, task_id)
return result
class TrytondProxy(object):
'Proxy for function call for trytond'
def __init__(self, name, config, type='model'):
super(TrytondProxy, self).__init__()
self._config = config
self._object = config.pool.get(name, type=type)
__init__.__doc__ = object.__init__.__doc__
def __getattr__(self, name):
'Return attribute value'
return _TrytondMethod(name, self._object, self._config)
class TrytondConfig(Config):
'Configuration for trytond'
def __init__(self, database=None, user='admin', config_file=None):
super(TrytondConfig, self).__init__()
if not database:
database = os.environ.get('TRYTOND_DATABASE_URI')
elif (os.environ.get('TRYTOND_DATABASE_URI')
and not urllib.parse.urlparse(database).scheme):
url = urllib.parse.urlparse(os.environ['TRYTOND_DATABASE_URI'])
os.environ['TRYTOND_DATABASE_URI'] = urllib.parse.urlunparse(
url._replace(path=database))
else:
os.environ['TRYTOND_DATABASE_URI'] = database
if not config_file:
config_file = os.environ.get('TRYTOND_CONFIG')
from trytond.config import config
config.update_etc(config_file)
from trytond.pool import Pool
from trytond.transaction import Transaction
self.database = database
database_name = None
if database:
uri = urllib.parse.urlparse(database)
database_name = uri.path.strip('/')
if not database_name:
database_name = os.environ['DB_NAME']
self.database_name = database_name
self._user = user
self.config_file = config_file
Pool.start()
self.pool = Pool(database_name)
self.pool.init()
with Transaction().start(self.database_name, 0) as transaction:
User = self.pool.get('res.user')
transaction.context = self.context
with transaction.set_context(active_test=False):
self.user = User.search([
('login', '=', user),
], limit=1)[0].id
with transaction.set_user(self.user):
self._context = User.get_preferences(context_only=True)
__init__.__doc__ = object.__init__.__doc__
def __repr__(self):
return ("proteus.config.TrytondConfig"
"(%s, %s, config_file=%s)"
% (repr(self.database), repr(self._user), repr(self.config_file)))
__repr__.__doc__ = object.__repr__.__doc__
def __eq__(self, other):
if not isinstance(other, TrytondConfig):
raise NotImplementedError
return (self.database_name == other.database_name
and self._user == other._user
and self.database == other.database
and self.config_file == other.config_file)
def __hash__(self):
return hash((self.database_name, self._user,
self.database, self.config_file))
def get_proxy(self, name, type='model'):
'Return Proxy class'
return TrytondProxy(name, self, type=type)
def get_proxy_methods(self, name, type='model'):
'Return list of methods'
proxy = self.get_proxy(name, type=type)
methods = [x for x in proxy._object.__rpc__]
if hasattr(proxy._object, '_buttons'):
methods += [x for x in proxy._object._buttons]
return methods
def set_trytond(database=None, user='admin',
config_file=None):
'Set trytond package as backend'
_CONFIG.current = TrytondConfig(database, user, config_file=config_file)
return _CONFIG.current
class XmlrpcProxy(object):
'Proxy for function call for XML-RPC'
def __init__(self, name, config, type='model'):
super(XmlrpcProxy, self).__init__()
self._config = config
self._object = getattr(config.server, '%s.%s' % (type, name))
__init__.__doc__ = object.__init__.__doc__
def __getattr__(self, name):
'Return attribute value'
return getattr(self._object, name)
class XmlrpcConfig(Config):
'Configuration for XML-RPC'
def __init__(self, url, **kwargs):
super(XmlrpcConfig, self).__init__()
self.url = url
self.server = xmlrpc.client.ServerProxy(
url, allow_none=True, use_builtin_types=True, **kwargs)
# TODO add user
self.user = None
self._context = self.server.model.res.user.get_preferences(True, {})
__init__.__doc__ = object.__init__.__doc__
def __repr__(self):
return "proteus.config.XmlrpcConfig(%s)" % repr(self.url)
__repr__.__doc__ = object.__repr__.__doc__
def __eq__(self, other):
if not isinstance(other, XmlrpcConfig):
raise NotImplementedError
return self.url == other.url
def __hash__(self):
return hash(self.url)
def get_proxy(self, name, type='model'):
'Return Proxy class'
return XmlrpcProxy(name, self, type=type)
def get_proxy_methods(self, name, type='model'):
'Return list of methods'
object_ = '%s.%s' % (type, name)
return [x[len(object_) + 1:]
for x in self.server.system.listMethods()
if x.startswith(object_)
and '.' not in x[len(object_) + 1:]]
def set_xmlrpc(url, **kwargs):
'''
Set XML-RPC as backend.
It pass the keyword arguments received to xmlrpclib.ServerProxy()
'''
_CONFIG.current = XmlrpcConfig(url, **kwargs)
return _CONFIG.current
@contextmanager
def set_xmlrpc_session(
url, username, password=None, parameters=None, **kwargs):
"""
Set XML-RPC as backend using session.
"""
if parameters is None:
parameters = {}
else:
parameters = parameters.copy()
if password:
parameters['password'] = password
server = xmlrpc.client.ServerProxy(
url, allow_none=True, use_builtin_types=True, **kwargs)
session = server.common.db.login(username, parameters)
session = ':'.join(map(str, [username] + session))
auth = base64.encodebytes(session.encode('utf-8')).decode('ascii')
auth = ''.join(auth.split()) # get rid of whitespace
kwargs.setdefault('headers', []).append(
('Authorization', 'Session ' + auth))
config = set_xmlrpc(url, **kwargs)
yield config
config.server.common.db.logout()
def get_config():
return _CONFIG.current
+764
View File
@@ -0,0 +1,764 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import datetime
import json
from decimal import Decimal
from functools import reduce
from dateutil.relativedelta import relativedelta
class PYSON(object):
def pyson(self):
raise NotImplementedError
def types(self):
raise NotImplementedError
@staticmethod
def eval(dct, context):
raise NotImplementedError
def __invert__(self):
if self.types() != {bool}:
return Not(Bool(self))
else:
return Not(self)
def __and__(self, other):
if (isinstance(other, PYSON)
and other.types() != {bool}):
other = Bool(other)
if (isinstance(self, And)
and not isinstance(self, Or)):
return And(*self._statements, other)
if self.types() != {bool}:
return And(Bool(self), other)
else:
return And(self, other)
__rand__ = __and__
def __or__(self, other):
if (isinstance(other, PYSON)
and other.types() != {bool}):
other = Bool(other)
if isinstance(self, Or):
return Or(*self._statements, other)
if self.types() != {bool}:
return Or(Bool(self), other)
else:
return Or(self, other)
__ror__ = __or__
def __eq__(self, other):
return Equal(self, other)
def __ne__(self, other):
return Not(Equal(self, other))
def __gt__(self, other):
return Greater(self, other)
def __ge__(self, other):
return Greater(self, other, True)
def __lt__(self, other):
return Less(self, other)
def __le__(self, other):
return Less(self, other, True)
def get(self, k, d=''):
return Get(self, k, d)
def in_(self, obj):
return In(self, obj)
def contains(self, k):
return In(k, self)
def __repr__(self):
klass = self.__class__.__name__
return '%s(%s)' % (klass, ', '.join(map(repr, self.__repr_params__)))
@property
def __repr_params__(self):
return NotImplementedError
class PYSONEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, PYSON):
return obj.pyson()
elif isinstance(obj, datetime.date):
if isinstance(obj, datetime.datetime):
return DateTime(obj.year, obj.month, obj.day,
obj.hour, obj.minute, obj.second, obj.microsecond
).pyson()
else:
return Date(obj.year, obj.month, obj.day).pyson()
elif isinstance(obj, Decimal):
return float(obj)
return super(PYSONEncoder, self).default(obj)
class PYSONDecoder(json.JSONDecoder):
def __init__(self, context=None, noeval=False):
self.__context = context or {}
self.noeval = noeval
super(PYSONDecoder, self).__init__(object_hook=self._object_hook)
def _object_hook(self, dct):
if '__class__' in dct:
klass = CONTEXT.get(dct['__class__'])
if klass:
if not self.noeval:
return klass.eval(dct, self.__context)
else:
dct = dct.copy()
del dct['__class__']
return klass(**dct)
return dct
class Eval(PYSON):
def __init__(self, v, d=''):
super(Eval, self).__init__()
self._value = v
self._default = d
@property
def __repr_params__(self):
return self._value, self._default
def pyson(self):
return {
'__class__': 'Eval',
'v': self._value,
'd': self._default,
}
def types(self):
if isinstance(self._default, PYSON):
return self._default.types()
else:
return {type(self._default)}
@staticmethod
def eval(dct, context):
if '.' in dct['v'] and dct['v'] not in context:
base, name = dct['v'].split('.', 1)
return Eval.eval({
'v': name,
'd': dct['d'],
}, context.get(base) or {})
return context.get(dct['v'], dct['d'])
@property
def basename(self):
name = self._value
if name.startswith('_parent_'):
name = name[len('_parent_'):]
if '.' in name:
name = name.split('.', 1)[0]
return name
class Not(PYSON):
def __init__(self, v):
super(Not, self).__init__()
if isinstance(v, PYSON):
if v.types() != {bool}:
v = Bool(v)
elif not isinstance(v, bool):
v = bool(v)
self._value = v
@property
def __repr_params__(self):
return (self._value,)
def pyson(self):
return {
'__class__': 'Not',
'v': self._value,
}
def types(self):
return {bool}
@staticmethod
def eval(dct, context):
return not dct['v']
class Bool(PYSON):
def __init__(self, v):
super(Bool, self).__init__()
self._value = v
@property
def __repr_params__(self):
return (self._value,)
def pyson(self):
return {
'__class__': 'Bool',
'v': self._value,
}
def types(self):
return {bool}
@staticmethod
def eval(dct, context):
return bool(dct['v'])
class And(PYSON):
def __init__(self, *statements, **kwargs):
super(And, self).__init__()
statements = list(statements) + kwargs.get('s', [])
for i, statement in enumerate(list(statements)):
if isinstance(statement, PYSON):
if statement.types() != {bool}:
statements[i] = Bool(statement)
elif not isinstance(statement, bool):
statements[i] = bool(statement)
assert len(statements) >= 2, 'must have at least 2 statements'
self._statements = statements
@property
def __repr_params__(self):
return tuple(self._statements)
def pyson(self):
return {
'__class__': 'And',
's': self._statements,
}
def types(self):
return {bool}
@staticmethod
def eval(dct, context):
return bool(reduce(lambda x, y: x and y, dct['s']))
class Or(And):
def pyson(self):
res = super(Or, self).pyson()
res['__class__'] = 'Or'
return res
@staticmethod
def eval(dct, context):
return bool(reduce(lambda x, y: x or y, dct['s']))
class Equal(PYSON):
def __init__(self, s1, s2):
statement1, statement2 = s1, s2
super(Equal, self).__init__()
if isinstance(statement1, PYSON):
types1 = statement1.types()
else:
types1 = {type(s1)}
if isinstance(statement2, PYSON):
types2 = statement2.types()
else:
types2 = {type(s2)}
assert types1 == types2, 'statements must have the same type'
self._statement1 = statement1
self._statement2 = statement2
@property
def __repr_params__(self):
return (self._statement1, self._statement2)
def pyson(self):
return {
'__class__': 'Equal',
's1': self._statement1,
's2': self._statement2,
}
def types(self):
return {bool}
@staticmethod
def eval(dct, context):
return dct['s1'] == dct['s2']
class Greater(PYSON):
def __init__(self, s1, s2, e=False):
statement1, statement2, equal = s1, s2, e
super(Greater, self).__init__()
for i in (statement1, statement2):
if isinstance(i, PYSON):
assert i.types().issubset({
int, float, type(None),
datetime.datetime, datetime.date}), \
'statement must be an integer, float, date or datetime'
else:
assert isinstance(i, (
int, float, type(None),
datetime.datetime, datetime.date)), \
'statement must be an integer, float, date or datetime'
if isinstance(equal, PYSON):
if equal.types() != {bool}:
equal = Bool(equal)
elif not isinstance(equal, bool):
equal = bool(equal)
self._statement1 = statement1
self._statement2 = statement2
self._equal = equal
@property
def __repr_params__(self):
return (self._statement1, self._statement2, self._equal)
def pyson(self):
return {
'__class__': 'Greater',
's1': self._statement1,
's2': self._statement2,
'e': self._equal,
}
def types(self):
return {bool}
@staticmethod
def _convert(dct):
for i in ('s1', 's2'):
if dct[i] is None:
dct[i] = 0.0
if not isinstance(dct[i], (int, float)):
dct = dct.copy()
stmt = dct[i]
if isinstance(stmt, datetime.datetime):
stmt = stmt.timestamp()
elif isinstance(stmt, datetime.date):
time = datetime.time(0, 0)
stmt = datetime.datetime.combine(stmt, time).timestamp()
dct[i] = float(stmt)
return dct
@staticmethod
def eval(dct, context):
if dct['s1'] is None or dct['s2'] is None:
return False
dct = Greater._convert(dct)
if dct['e']:
return dct['s1'] >= dct['s2']
else:
return dct['s1'] > dct['s2']
class Less(Greater):
def pyson(self):
res = super(Less, self).pyson()
res['__class__'] = 'Less'
return res
@staticmethod
def eval(dct, context):
if dct['s1'] is None or dct['s2'] is None:
return False
dct = Less._convert(dct)
if dct['e']:
return dct['s1'] <= dct['s2']
else:
return dct['s1'] < dct['s2']
class If(PYSON):
def __init__(self, c, t, e=None):
condition, then_statement, else_statement = c, t, e
super(If, self).__init__()
if isinstance(condition, PYSON):
if condition.types() != {bool}:
condition = Bool(condition)
elif not isinstance(condition, bool):
condition = bool(condition)
self._condition = condition
self._then_statement = then_statement
self._else_statement = else_statement
@property
def __repr_params__(self):
return (self._condition, self._then_statement, self._else_statement)
def pyson(self):
return {
'__class__': 'If',
'c': self._condition,
't': self._then_statement,
'e': self._else_statement,
}
def types(self):
if isinstance(self._then_statement, PYSON):
types = self._then_statement.types()
else:
types = {type(self._then_statement)}
if isinstance(self._else_statement, PYSON):
types |= self._else_statement.types()
else:
types |= {type(self._else_statement)}
return types
@staticmethod
def eval(dct, context):
if dct['c']:
return dct['t']
else:
return dct['e']
class Get(PYSON):
def __init__(self, v, k, d=''):
obj, key, default = v, k, d
super(Get, self).__init__()
if isinstance(obj, PYSON):
assert obj.types() == {dict}, 'obj must be a dict'
else:
assert isinstance(obj, dict), 'obj must be a dict'
self._obj = obj
if isinstance(key, PYSON):
assert key.types() == {str}, 'key must be a string'
else:
assert isinstance(key, str), 'key must be a string'
self._key = key
self._default = default
@property
def __repr_params__(self):
return (self._obj, self._key, self._default)
def pyson(self):
return {
'__class__': 'Get',
'v': self._obj,
'k': self._key,
'd': self._default,
}
def types(self):
if isinstance(self._default, PYSON):
return self._default.types()
else:
return {type(self._default)}
@staticmethod
def eval(dct, context):
return dct['v'].get(dct['k'], dct['d'])
class In(PYSON):
def __init__(self, k, v):
key, obj = k, v
super(In, self).__init__()
if isinstance(key, PYSON):
assert key.types().issubset({str, int}), \
'key must be a string or an integer or a long'
else:
assert isinstance(key, (str, int)), \
'key must be a string or an integer or a long'
if isinstance(obj, PYSON):
assert obj.types().issubset({dict, list}), \
'obj must be a dict or a list'
if obj.types() == {dict}:
if isinstance(key, PYSON):
assert key.types() == {str}, 'key must be a string'
else:
assert isinstance(key, str), 'key must be a string'
else:
assert isinstance(obj, (dict, list))
if isinstance(obj, dict):
if isinstance(key, PYSON):
assert key.types() == {str}, 'key must be a string'
else:
assert isinstance(key, str), 'key must be a string'
self._key = key
self._obj = obj
@property
def __repr_params__(self):
return (self._key, self._obj)
def pyson(self):
return {
'__class__': 'In',
'k': self._key,
'v': self._obj,
}
def types(self):
return {bool}
@staticmethod
def eval(dct, context):
if dct['v']:
return dct['k'] in dct['v']
else:
return False
class Date(PYSON):
def __init__(self, year=None, month=None, day=None,
delta_years=0, delta_months=0, delta_days=0, start=None, **kwargs):
year = kwargs.get('y', year)
month = kwargs.get('M', month)
day = kwargs.get('d', day)
delta_years = kwargs.get('dy', delta_years)
delta_months = kwargs.get('dM', delta_months)
delta_days = kwargs.get('dd', delta_days)
super(Date, self).__init__()
for i in (year, month, day, delta_years, delta_months, delta_days):
if isinstance(i, PYSON):
assert i.types().issubset({int, type(None)}), \
'%s must be an integer or None' % (i,)
else:
assert isinstance(i, (int, type(None))), \
'%s must be an integer or None' % (i,)
self._year = year
self._month = month
self._day = day
self._delta_years = delta_years
self._delta_months = delta_months
self._delta_days = delta_days
self._start = start
@property
def __repr_params__(self):
return (self._year, self._month, self._day,
self._delta_years, self._delta_months, self._delta_days,
self._start)
def pyson(self):
return {
'__class__': 'Date',
'y': self._year,
'M': self._month,
'd': self._day,
'dy': self._delta_years,
'dM': self._delta_months,
'dd': self._delta_days,
'start': self._start,
}
def types(self):
return {datetime.date}
@staticmethod
def eval(dct, context):
today = dct.get('start')
if isinstance(today, datetime.datetime):
today = today.date()
if not isinstance(today, datetime.date):
today = datetime.date.today()
return today + relativedelta(
year=dct['y'],
month=dct['M'],
day=dct['d'],
years=dct['dy'],
months=dct['dM'],
days=dct['dd'],
)
class DateTime(Date):
def __init__(self, year=None, month=None, day=None,
hour=None, minute=None, second=None, microsecond=None,
delta_years=0, delta_months=0, delta_days=0,
delta_hours=0, delta_minutes=0, delta_seconds=0,
delta_microseconds=0, start=None, **kwargs):
hour = kwargs.get('h', hour)
minute = kwargs.get('m', minute)
second = kwargs.get('s', second)
microsecond = kwargs.get('ms', microsecond)
delta_hours = kwargs.get('dh', delta_hours)
delta_minutes = kwargs.get('dm', delta_minutes)
delta_seconds = kwargs.get('ds', delta_seconds)
delta_microseconds = kwargs.get('dms', delta_microseconds)
super(DateTime, self).__init__(year=year, month=month, day=day,
delta_years=delta_years, delta_months=delta_months,
delta_days=delta_days, start=start, **kwargs)
for i in (hour, minute, second, microsecond,
delta_hours, delta_minutes, delta_seconds, delta_microseconds):
if isinstance(i, PYSON):
assert i.types() == {int, type(None)}, \
'%s must be an integer or None' % (i,)
else:
assert isinstance(i, (int, type(None))), \
'%s must be an integer or None' % (i,)
self._hour = hour
self._minute = minute
self._second = second
self._microsecond = microsecond
self._delta_hours = delta_hours
self._delta_minutes = delta_minutes
self._delta_seconds = delta_seconds
self._delta_microseconds = delta_microseconds
@property
def __repr_params__(self):
date_params = super(DateTime, self).__repr_params__
return (date_params[:3]
+ (self._hour, self._minute, self._second, self._microsecond)
+ date_params[3:-1]
+ (self._delta_hours, self._delta_minutes, self._delta_seconds,
self._delta_microseconds)
+ date_params[-1:])
def pyson(self):
res = super(DateTime, self).pyson()
res['__class__'] = 'DateTime'
res['h'] = self._hour
res['m'] = self._minute
res['s'] = self._second
res['ms'] = self._microsecond
res['dh'] = self._delta_hours
res['dm'] = self._delta_minutes
res['ds'] = self._delta_seconds
res['dms'] = self._delta_microseconds
return res
def types(self):
return {datetime.datetime}
@staticmethod
def eval(dct, context):
now = dct.get('start')
if (isinstance(now, datetime.date)
and not isinstance(now, datetime.datetime)):
now = datetime.datetime.combine(now, datetime.time())
if not isinstance(now, datetime.datetime):
now = datetime.datetime.utcnow()
return now + relativedelta(
year=dct['y'],
month=dct['M'],
day=dct['d'],
hour=dct['h'],
minute=dct['m'],
second=dct['s'],
microsecond=dct['ms'],
years=dct['dy'],
months=dct['dM'],
days=dct['dd'],
hours=dct['dh'],
minutes=dct['dm'],
seconds=dct['ds'],
microseconds=dct['dms'],
)
class TimeDelta(PYSON):
def __init__(self, days=0, seconds=0, microseconds=0):
for i in [days, seconds, microseconds]:
if isinstance(i, PYSON):
assert i.types().issubset({int, float}), \
'%s must be an integer' % (i,)
else:
assert isinstance(i, (int, float)), \
'%s must be an integer' % (i,)
self._days = days
self._seconds = seconds
self._microseconds = microseconds
@property
def __repr_params__(self):
return self._days, self._seconds, self._microseconds
def pyson(self):
return {
'__class__': 'TimeDelta',
'd': self._days,
's': self._seconds,
'm': self._microseconds,
}
def types(self):
return {datetime.timedelta}
@staticmethod
def eval(dct, context):
return datetime.timedelta(
days=dct['d'],
seconds=dct['s'],
microseconds=dct['m'],
)
class Len(PYSON):
def __init__(self, v):
super(Len, self).__init__()
if isinstance(v, PYSON):
assert v.types().issubset({dict, list, str}), \
'value must be a dict or a list or a string'
else:
assert isinstance(v, (dict, list, str)), \
'value must be a dict or list or a string'
self._value = v
@property
def __repr_params__(self):
return (self._value,)
def pyson(self):
return {
'__class__': 'Len',
'v': self._value,
}
def types(self):
return {int}
@staticmethod
def eval(dct, context):
return len(dct['v'])
CONTEXT = {
'Eval': Eval,
'Not': Not,
'Bool': Bool,
'And': And,
'Or': Or,
'Equal': Equal,
'Greater': Greater,
'Less': Less,
'If': If,
'Get': Get,
'In': In,
'Date': Date,
'DateTime': DateTime,
'TimeDelta': TimeDelta,
'Len': Len,
'true': True,
'false': False,
}
+9
View File
@@ -0,0 +1,9 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import os
os.environ.setdefault('TRYTOND_DATABASE_URI', 'sqlite:///')
os.environ.setdefault('DB_NAME', ':memory:')
here = os.path.dirname(__file__)
readme = os.path.normpath(os.path.join(here, '..', '..', 'README.rst'))
+17
View File
@@ -0,0 +1,17 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from unittest import TestCase
from proteus import config
from trytond.tests.test_tryton import create_db, db_exist
class ProteusTestCase(TestCase):
@classmethod
def setUpClass(cls):
if not db_exist():
create_db()
def setUp(self):
self.config = config.set_trytond()
+40
View File
@@ -0,0 +1,40 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import proteus.config
from .common import ProteusTestCase
class TestConfig(ProteusTestCase):
def test_proxy(self):
config = proteus.config.get_config()
user_proxy = config.get_proxy('res.user')
user_id = user_proxy.search([('login', '=', 'admin')], 0, 1, None,
config.context)[0]
self.assertTrue(user_id == config.user)
def test_proxy_keyword(self):
config = proteus.config.get_config()
user_proxy = config.get_proxy('res.user')
user_id, = user_proxy.search(
[('login', '=', 'admin')], limit=1, context=config.context)
self.assertTrue(user_id == config.user)
def test_proxy_methods(self):
config = proteus.config.get_config()
self.assertTrue('search' in config.get_proxy_methods('res.user'))
def test_trytond_config_eq(self):
config1 = proteus.config.get_config()
proteus.config.set_trytond()
config2 = proteus.config.get_config()
self.assertEqual(config1, config2)
self.assertRaises(NotImplementedError, config1.__eq__, None)
def test_repr(self):
config = proteus.config.TrytondConfig('sqlite:///:memory:')
self.assertEqual(repr(config),
"proteus.config.TrytondConfig("
"'sqlite:///:memory:', 'admin', config_file=None)")
+16
View File
@@ -0,0 +1,16 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of this
# repository contains the full copyright notices and license terms.
from .common import ProteusTestCase
class TestContext(ProteusTestCase):
def test_config(self):
prev_ctx = self.config._context
with self.config.set_context({'a': 1}):
self.assertEqual(self.config.context['a'], 1)
for key, value in prev_ctx.items():
self.assertEqual(self.config.context[key], value)
self.assertEqual(self.config.context, prev_ctx)
+389
View File
@@ -0,0 +1,389 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from proteus import Model
from .common import ProteusTestCase
class TestModel(ProteusTestCase):
def test_class_cache(self):
User1 = Model.get('res.user')
User2 = Model.get('res.user')
self.assertEqual(id(User1), id(User2))
Model.reset()
User3 = Model.get('res.user')
self.assertNotEqual(id(User1), id(User3))
def test_class_method(self):
User = Model.get('res.user')
self.assertTrue(len(User.search([('login', '=', 'admin')], {})))
def test_int(self):
User = Model.get('res.user')
admin = User.find([('login', '=', 'admin')])[0]
self.assertEqual(int(admin), admin.id)
def test_id_zero(self):
User = Model.get('res.user')
root = User(0)
self.assertEqual(root.login, 'root')
def test_find(self):
User = Model.get('res.user')
admin = User.find([('login', '=', 'admin')])[0]
self.assertEqual(admin.login, 'admin')
def test_many2one(self):
User = Model.get('res.user')
admin = User.find([('login', '=', 'admin')])[0]
self.assertTrue(isinstance(admin.create_uid, User))
try:
admin.create_uid = 'test'
self.fail()
except AssertionError:
pass
admin.create_uid = admin
admin.create_uid = None
User(write_uid=None)
def test_one2many(self):
Group = Model.get('res.group')
administration = Group.find([('name', '=', 'Administration')])[0]
self.assertTrue(isinstance(administration.model_access, list))
self.assertTrue(isinstance(administration.model_access[0],
Model.get('ir.model.access')))
try:
administration.model_access = []
self.fail()
except AttributeError:
pass
def test_many2many(self):
User = Model.get('res.user')
admin = User.find([('login', '=', 'admin')])[0]
self.assertTrue(isinstance(admin.groups, list))
self.assertTrue(isinstance(admin.groups[0],
Model.get('res.group')))
try:
admin.groups = []
self.fail()
except AttributeError:
pass
def test_many2many_append_unique(self):
User = Model.get('res.user')
Group = Model.get('res.group')
admin, = User.find([('login', '=', 'admin')])
group = Group(admin.groups[0].id)
admin.groups.append(group)
self.assertEqual(admin.groups.count(group), 1)
def test_many2many_extend_unique(self):
User = Model.get('res.user')
Group = Model.get('res.group')
admin, = User.find([('login', '=', 'admin')])
group = Group(admin.groups[0].id)
admin.groups.extend([group])
self.assertEqual(admin.groups.count(group), 1)
# TODO test date
def test_reference(self):
Attachment = Model.get('ir.attachment')
User = Model.get('res.user')
admin = User.find([('login', '=', 'admin')])[0]
attachment = Attachment()
attachment.name = 'Test'
attachment.resource = admin
attachment.save()
self.assertEqual(attachment.resource, admin)
def test_id_counter(self):
User = Model.get('res.user')
test1 = User()
self.assertTrue(test1.id < 0)
test2 = User()
self.assertTrue(test2.id < 0)
self.assertNotEqual(test1.id, test2.id)
def test_init(self):
User = Model.get('res.user')
self.assertEqual(User(1).id, 1)
self.assertEqual(User(name='Foo').name, 'Foo')
Lang = Model.get('ir.lang')
en, = Lang.find([('code', '=', 'en')])
self.assertEqual(User(language=en).language, en)
self.assertEqual(User(language=en.id).language, en)
Group = Model.get('res.group')
groups = Group.find()
self.assertEqual(len(User(groups=groups).groups), len(groups))
self.assertEqual(len(User(groups=[x.id for x in groups]).groups),
len(groups))
def test_assign_unknown_field(self):
"Test it is not allowed to assign unknown field"
User = Model.get('res.user')
user = User()
with self.assertRaises(AttributeError):
user.unknown_field = 'foo'
def test_save(self):
User = Model.get('res.user')
test = User()
test.name = 'Test'
test.login = 'test'
test.save()
self.assertTrue(test.id > 0)
test = User(test.id)
self.assertEqual(test.name, 'Test')
self.assertEqual(test.login, 'test')
self.assertTrue(test.active)
test.signature = 'Test signature'
self.assertEqual(test.signature, 'Test signature')
test.save()
self.assertEqual(test.signature, 'Test signature')
test = User(test.id)
self.assertEqual(test.signature, 'Test signature')
Group = Model.get('res.group')
test2 = User(name='Test 2', login='test2',
groups=[Group(name='Test 2')])
test2.save()
self.assertTrue(test2.id > 0)
self.assertEqual(test2.name, 'Test 2')
self.assertEqual(test2.login, 'test2')
test.signature = 'classmethod save'
test2.name = 'Test 2 classmethod'
test3 = User(name='Test 3', login='test3')
User.save([test, test2, test3])
self.assertEqual(test.signature, 'classmethod save')
self.assertEqual(test2.name, 'Test 2 classmethod')
self.assertTrue(test3.id > 0)
self.assertEqual(test3.name, 'Test 3')
def test_save_many2one(self):
User = Model.get('res.user')
test = User()
test.name = 'Test save many2one'
test.login = 'test_save_many2one'
test.save()
Lang = Model.get('ir.lang')
en, = Lang.find([('code', '=', 'en')])
test.language = en
test.save()
self.assertEqual(test.language, en)
test.language = None
test.save()
self.assertFalse(test.language)
def test_save_one2many(self):
Group = Model.get('res.group')
group = Group()
group.name = 'Test save one2many'
group.save()
ModelAccess = Model.get('ir.model.access')
Model_ = Model.get('ir.model')
model_access = ModelAccess()
model_access.model = Model_.find([('model', '=', 'res.group')])[0]
model_access.perm_read = True
model_access.perm_write = True
model_access.perm_create = True
model_access.perm_delete = True
group.model_access.append(model_access)
group.save()
self.assertEqual(len(group.model_access), 1)
model_access_id = group.model_access[0].id
group.name = 'Test save one2many bis'
group.model_access[0].description = 'Test save one2many'
group.save()
self.assertEqual(group.model_access[0].description,
'Test save one2many')
group.model_access.pop()
group.save()
self.assertEqual(group.model_access, [])
self.assertEqual(len(ModelAccess.find([('id', '=', model_access_id)])),
1)
group.model_access.append(ModelAccess(model_access_id))
group.save()
self.assertEqual(len(group.model_access), 1)
group.model_access.remove(group.model_access[0])
group.save()
self.assertEqual(group.model_access, [])
self.assertEqual(len(ModelAccess.find([('id', '=', model_access_id)])),
0)
def test_save_many2many(self):
User = Model.get('res.user')
test = User()
test.name = 'Test save many2many'
test.login = 'test_save_many2many'
test.save()
Group = Model.get('res.group')
group = Group()
group.name = 'Test save many2many'
group.save()
test.groups.append(group)
test.save()
self.assertEqual(len(test.groups), 1)
group_id = test.groups[0].id
test.name = 'Test save many2many bis'
test.groups[0].name = 'Test save many2many bis'
test.save()
self.assertEqual(test.groups[0].name,
'Test save many2many bis')
test.groups.pop()
test.save()
self.assertEqual(test.groups, [])
self.assertEqual(len(Group.find([('id', '=', group_id)])), 1)
test.groups.append(Group(group_id))
test.save()
self.assertEqual(len(test.groups), 1)
test.groups.remove(test.groups[0])
test.save()
self.assertEqual(test.groups, [])
self.assertEqual(len(Group.find([('id', '=', group_id)])), 0)
def test_eq(self):
User = Model.get('res.user')
test = User()
test.name = 'Test eq'
test.login = 'test_eq'
test.save()
admin1 = User.find([('login', '=', 'admin')])[0]
admin2 = User.find([('login', '=', 'admin')])[0]
self.assertEqual(admin1, admin2)
self.assertFalse(admin1 != admin2)
self.assertNotEqual(admin1, test)
self.assertFalse(admin1 == test)
self.assertNotEqual(admin1, None)
self.assertNotEqual(admin1, False)
self.assertNotEqual(admin1, 1)
def test_default_set(self):
User = Model.get('res.user')
Group = Model.get('res.group')
group_ids = [x.id for x in Group.find()]
test = User()
test._default_set({
'name': 'Test',
'groups': group_ids,
})
self.assertEqual(test.name, 'Test')
self.assertEqual([x.id for x in test.groups], group_ids)
test = User()
test._default_set({
'name': 'Test',
'groups': [
{
'name': 'Group 1',
},
{
'name': 'Group 2',
},
],
})
self.assertEqual(test.name, 'Test')
self.assertEqual([x.name for x in test.groups], ['Group 1', 'Group 2'])
def test_delete(self):
Group = Model.get('res.group')
test = Group()
test.name = 'Test delete'
test.save()
test.delete()
def test_duplicate(self):
User = Model.get('res.user')
test = User()
test.name = 'Test duplicate'
test.login = 'test duplicate'
test.save()
copy, = User.duplicate([test], {'name': 'Test copy'})
self.assertEqual(copy.name, 'Test copy')
self.assertEqual(copy.login, 'test duplicate (copy)')
self.assertNotEqual(copy.id, test.id)
def test_on_change(self):
Trigger = Model.get('ir.trigger')
trigger = Trigger()
trigger.on_time = True
self.assertEqual(trigger.on_create, False)
trigger.on_create = True
self.assertEqual(trigger.on_time, False)
def test_on_change_with(self):
Attachment = Model.get('ir.attachment')
attachment = Attachment()
attachment.description = 'Test'
self.assertEqual(attachment.summary, 'Test')
def test_on_change_set(self):
User = Model.get('res.user')
Group = Model.get('res.group')
test = User()
test._on_change_set('name', 'Test')
self.assertEqual(test.name, 'Test')
group_ids = [x.id for x in Group.find()]
test._on_change_set('groups', group_ids)
self.assertEqual([x.id for x in test.groups], group_ids)
test._on_change_set('groups', {'remove': [group_ids[0]]})
self.assertEqual([x.id for x in test.groups], group_ids[1:])
test._on_change_set('groups', {'add': [(-1, {
'name': 'Bar',
})]})
self.assertTrue([x for x in test.groups if x.name == 'Bar'])
test.groups.extend(Group.find())
group = test.groups[0]
test._on_change_set('groups', {'update': [{
'id': group.id,
'name': 'Foo',
}]})
self.assertTrue([x for x in test.groups if x.name == 'Foo'])
def test_model_list_find(self):
User = Model.get('res.user')
Group = Model.get('res.group')
test = User()
groups = test.groups.find(order=[('id', 'ASC')])
all_groups = Group.find([], order=[('id', 'ASC')])
self.assertListEqual(groups, all_groups)
+22
View File
@@ -0,0 +1,22 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import doctest
import os
import proteus
import proteus.config
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
here = os.path.dirname(__file__)
readme = os.path.normpath(os.path.join(here, '..', '..', 'README.rst'))
def load_tests(loader, tests, pattern):
for mod in (proteus, proteus.config):
tests.addTest(doctest.DocTestSuite(mod))
if os.path.isfile(readme):
tests.addTest(doctest.DocFileSuite(
readme, module_relative=False,
setUp=doctest_setup, tearDown=doctest_teardown,
encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
+29
View File
@@ -0,0 +1,29 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
try:
import pydot
except ImportError:
pydot = None
from proteus import Model, Report
from .common import ProteusTestCase
class TestReport(ProteusTestCase):
@unittest.skipIf(not pydot, 'requires pydot')
def test_model_graph(self):
IrModel = Model.get('ir.model')
models = IrModel.find([])
data = {
'level': 1,
'filter': '',
}
report = Report('ir.model.graph')
type_, data, print_, name = report.execute(models, data)
self.assertEqual(type_, 'png')
self.assertEqual(print_, False)
self.assertEqual(name, 'Graph')
+54
View File
@@ -0,0 +1,54 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from proteus import Model, Wizard
from .common import ProteusTestCase
class TestWizard(ProteusTestCase):
def test_translation_clean(self):
translation_clean = Wizard('ir.translation.clean')
self.assertEqual(translation_clean.form.__class__.__name__,
'ir.translation.clean.start')
translation_clean.execute('clean')
self.assertEqual(translation_clean.form.__class__.__name__,
'ir.translation.clean.succeed')
def test_translation_export(self):
Lang = Model.get('ir.lang')
Module = Model.get('ir.module')
translation_export = Wizard('ir.translation.export')
translation_export.form.language, = Lang.find([('code', '=', 'en')])
translation_export.form.module, = Module.find([('name', '=', 'ir')])
translation_export.execute('export')
self.assertTrue(translation_export.form.file)
translation_export.execute('end')
def test_user_config(self):
User = Model.get('res.user')
user_config = Wizard('res.user.config')
user_config.execute('user')
user_config.form.name = 'Foo'
user_config.form.login = 'foo'
user_config.execute('add')
self.assertEqual(user_config.form.name, None)
self.assertEqual(user_config.form.login, None)
user_config.form.name = 'Bar'
user_config.form.login = 'bar'
user_config.execute('end')
self.assertTrue(User.find([('name', '=', 'Foo')]))
self.assertFalse(User.find([('name', '=', 'Bar')]))
def test_translation_update(self):
print_model_graph = Wizard('ir.translation.update')
self.assertEqual(len(print_model_graph.actions), 0)
print_model_graph.execute('update')
self.assertEqual(len(print_model_graph.actions), 1)
def test_configuration_wizard(self):
config_wizard = Wizard('ir.module.config_wizard')
config_wizard.execute('action')
self.assertTrue(config_wizard.actions)
+120
View File
@@ -0,0 +1,120 @@
#!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
from setuptools import find_packages, setup
def read(fname):
return io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
def readme():
content = read('README.rst')
content = re.sub(
r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
return content
def get_version():
init = read(os.path.join('proteus', '__init__.py'))
return re.search('__version__ = "([0-9.]*)"', init).group(1)
def get_require_version(name):
if minor_version % 2:
require = '%s >= %s.%s.dev0, < %s.%s'
else:
require = '%s >= %s.%s, < %s.%s'
require %= (name, major_version, minor_version,
major_version, minor_version + 1)
return require
name = 'proteus'
version = get_version()
major_version, minor_version, _ = version.split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)
download_url = 'http://downloads.tryton.org/%s.%s/' % (
major_version, minor_version)
if minor_version % 2:
version = '%s.%s.dev0' % (major_version, minor_version)
download_url = 'hg+http://hg.tryton.org/%s#egg=%s-%s' % (
name, name, version)
local_version = []
if os.environ.get('CI_JOB_ID'):
local_version.append(os.environ['CI_JOB_ID'])
else:
for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']:
if os.environ.get(build):
local_version.append(os.environ[build])
else:
local_version = []
break
if local_version:
version += '+' + '.'.join(local_version)
dependency_links = []
if minor_version % 2:
dependency_links.append(
'https://trydevpi.tryton.org/?local_version='
+ '.'.join(local_version))
setup(name=name,
version=version,
description='Library to access Tryton server as a client',
long_description=readme(),
author='Tryton',
author_email='bugs@tryton.org',
url='http://www.tryton.org/',
download_url=download_url,
project_urls={
"Bug Tracker": 'https://bugs.tryton.org/',
"Documentation": 'https://docs.tryton.org/',
"Forum": 'https://www.tryton.org/forum',
"Source Code": 'https://hg.tryton.org/proteus',
},
keywords='tryton library cli',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Framework :: Tryton',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Legal Industry',
'License :: OSI Approved :: '
'GNU Library or Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Office/Business',
],
platforms='any',
license='LGPL-3',
python_requires='>=3.7',
install_requires=[
'defusedxml',
"python-dateutil",
],
extras_require={
'trytond': [get_require_version('trytond')],
'test': [
get_require_version('trytond'),
get_require_version('trytond_party'),
],
},
dependency_links=dependency_links,
zip_safe=True,
)
+13
View File
@@ -0,0 +1,13 @@
[tox]
envlist = py37,py38,py39,py310
[testenv]
extras = test
commands =
coverage run -m unittest discover -s proteus.tests
coverage report --include=./proteus/* --omit=*/tests/*
deps = coverage
setenv =
TRYTOND_DATABASE_URI={env:TRYTOND_DATBASE_URI:sqlite://}
DB_NAME={env:DB_NAME::memory:}
install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}} {opts} {packages}
+159
View File
@@ -0,0 +1,159 @@
:orphan:
.. _index-accounting:
Accounting
==========
`Account </projects/modules-account/en/latest>`_
Fundamentals for most accounting needs.
`Asset </projects/modules-account-asset/en/latest>`_
Depreciation of fixed assets.
`Belgian </projects/modules-account-be/en/latest>`_
Belgian accounting.
`Budget </projects/modules-account-budget/en/latest>`_
Budgets for accounts.
`Cash Rounding </projects/modules-account-cash-rounding/en/latest>`_
Round cash amounts.
`Consolidation </projects/modules-account-consolidation/en/latest>`_
Consolidate accounting of multiple companies.
`Credit Limit </projects/modules-account-credit-limit/en/latest>`_
Manages credit limit of parties.
`Deposit </projects/modules-account-deposit/en/latest>`_
Supports customer deposits.
`Dunning </projects/modules-account-dunning/en/latest>`_
Manages dunning on receivables.
`Dunning Email </projects/modules-account-dunning-email/en/latest>`_
Sends dunning emails.
`Dunning Fee </projects/modules-account-dunning-fee/en/latest>`_
Adds fees to dunnings.
`Dunning Letter </projects/modules-account-dunning-letter/en/latest>`_
Prints dunning letters.
`Spanish </projects/modules-account-es/en/latest>`_
Spanish accounting.
`Spanish SII </projects/modules-account-es-sii/en/latest>`_
Sends invoices to "Subministro Inmediato de Información" (SII).
`Europe </projects/modules-account-eu/en/latest>`_
Common European requirements.
`French </projects/modules-account-fr/en/latest>`_
French accounting.
`French Chorus </projects/modules-account-fr-chorus/en/latest>`_
Sends invoices via Chorus Pro.
`German </projects/modules-account-de-skr03>`_
German accounting.
`Invoice </projects/modules-account-invoice/en/latest>`_
Manages customer and supplier invoices.
`Invoice Correction </projects/modules-account-invoice-correction/en/latest>`_
Correct price on posted invoices.
`Invoice Defer </projects/modules-account-invoice-defer/en/latest>`_
Defer expense and revenue.
`Invoice History </projects/modules-account-invoice-history/en/latest>`_
Historize invoice.
`Invoice Line Standalone </projects/modules-account-invoice-line-standalone/en/latest>`_
Supports invoice line without invoice.
`Invoice Secondary Unit </projects/modules-account-invoice-secondary-unit/en/latest>`_
Adds a secondary unit of measure.
`Invoice Stock </projects/modules-account-invoice-stock/en/latest>`_
Links invoice lines and stock moves.
`Invoice Watermark </projects/modules-account-invoice-watermark/en/latest>`_
Adds watermark to printed invoices.
`Move Line Grouping </projects/modules-account-move-line-grouping/en/latest>`_
Show move line grouped.
`Payment </projects/modules-account-payment/en/latest>`_
Manages payments.
`Payment Braintree </projects/modules-account-payment-braintree/en/latest>`_
Receives payment from Braintree.
`Payment Clearing </projects/modules-account-payment-clearing/en/latest>`_
Uses clearing account for payments.
`Payment SEPA </projects/modules-account-payment-sepa/en/latest>`_
Genrates SEPA messages for payments.
`Payment SEPA CFONB </projects/modules-account-payment-sepa-cfonb/en/latest>`_
Adds CFONB flavors to SEPA.
`Payment Stripe </projects/modules-account-payment-stripe/en/latest>`_
Receives payment from Stripe.
`Product </projects/modules-account-product/en/latest>`_
Adds accounting on product and category.
`Receivable Rule </projects/modules-account-receivable-rule/en/latest>`_
Applies rules to receivable.
`Rule </projects/modules-account-rule/en/latest>`_
Applies rules on accounts.
`Statement </projects/modules-account-statement/en/latest>`_
Books bank statement, cash day book etc.
`Statement AEB43 </projects/modules-account-statement-aeb43/en/latest>`_
Imports statements in AEB43 format.
`Statement CODA </projects/modules-account-statement-coda/en/latest>`_
Imports statements in CODA format.
`Statement OFX </projects/modules-account-statement-ofx/en/latest>`_
Imports statements in OFX format.
`Statement Rule </projects/modules-account-statement-rule/en/latest>`_
Applies rules on imported statements.
`Statement SEPA </projects/modules-account-statement-sepa/en/latest>`_
Imports statements in SEPA format.
`Stock Anglo-Saxon </projects/modules-account-stock-anglo-saxon/en/latest>`_
Values stock using the anglo-saxon method.
`Stock Continental </projects/modules-account-stock-continental/en/latest>`_
Values stock using the continental method.
`Stock Landed Cost </projects/modules-account-stock-landed-cost/en/latest>`_
Allocates landed cost.
`Stock Landed Cost Weight </projects/modules-account-stock-landed-cost-weight/en/latest>`_
Allocates landed cost based on weight.
`Stock Shipment Cost </projects/modules-account-stock-shipment-cost/en/latest>`_
Allocates shipment cost.
`Stock Shipment Cost Weight </projects/modules-account-stock-shipment-cost-weight/en/latest>`_
Allocates shipment cost by weight.
`Tax Cash </projects/modules-account-tax-cash/en/latest>`_
Reports tax on cash basis.
`Tax Non-Deductible </projects/modules-account-tax-non-deductible/en/latest>`_
Reports non-deductible tax.
`Tax Rule Country </projects/modules-account-tax-rule-country/en/latest>`_
Applies taxes per country of origin and destination.
+21
View File
@@ -0,0 +1,21 @@
:orphan:
.. _index-analytic-accounting:
Analytic Accounting
===================
`Account </projects/modules-analytic-account/en/latest>`_
Fundamentals for analytic.
`Budget </projects/modules-analytic-budget/en/latest>`_
Budgets for analytic accounts.
`Invoice </projects/modules-analytic-invoice/en/latest>`_
Adds analytic on invoice.
`Purchase </projects/modules-analytic-purchase/en/latest>`_
Adds analytic on purchase.
`Sale </projects/modules-analytic-sale/en/latest>`_
Adds analytic on sale.
+15
View File
@@ -0,0 +1,15 @@
:orphan:
.. _index-authentication:
Authentication
==============
`SAML </projects/modules-authentication-saml/en/latest>`_
Authentication per SAML.
`SMS </projects/modules-authentication-sms/en/latest>`_
Authentication per SMS.
`LDAP </projects/modules-ldap-authentication/en/latest>`_
Authentication per LDAP.
+21
View File
@@ -0,0 +1,21 @@
:orphan:
.. _index-carrier:
Carrier
=======
`Carrier </projects/modules-carrier/en/latest>`_
Fundamentals to manage carriers.
`Carriage </projects/modules-carrier-carriage/en/latest>`_
Supports multiple carriers per document.
`Percentage </projects/modules-carrier-percentage/en/latest>`_
Computes cost based on percentage.
`Subdivision </projects/modules-carrier-subdivision/en/latest>`_
Restricts the usage of a carrier to subdivisions and ZIP codes.
`Weight </projects/modules-carrier-weight/en/latest>`_
Computes cost based on weight.
+12
View File
@@ -0,0 +1,12 @@
:orphan:
.. _index-commission:
Commission
==========
`Commission </projects/modules-commission/en/latest>`_
Fundamentals to commission sale's agents.
`Waiting </projects/modules-commission-waiting/en/latest>`_
Creates waiting account moves.
+12
View File
@@ -0,0 +1,12 @@
:orphan:
.. _index-company:
Company
=======
`Company </projects/modules-company/en/latest>`_
Defines company and employees.
`Work Time </projects/modules-company-work-time/en/latest>`_
Defines work time per company.
+15
View File
@@ -0,0 +1,15 @@
:orphan:
.. _index-currency:
Currency
========
`Currency </projects/modules-currency/en/latest>`_
ISO 4217 list of currencies.
`Romanian </projects/modules-currency-ro/en/latest>`_
Exchange rates from the Romanian National Bank.
`Serbian </projects/modules-currency-rs/en/latest>`_
Exchange rates from the Serbian National Bank.
+12
View File
@@ -0,0 +1,12 @@
:orphan:
.. _index-edocument:
Electronic Document
===================
`UN/CEFACT </projects/modules-edocument-uncefact/en/latest>`_
Supports UN/CEFACT format.
`UNECE </projects/modules-edocument-unece/en/latest>`_
Adds UNECE codes.
+120
View File
@@ -0,0 +1,120 @@
====================
Tryton Documentation
====================
Main
----
`Server </projects/server/en/latest>`_
The main application.
`Desktop Client </projects/client-desktop/en/latest>`_
The application to connect to the server.
`Scripting Client </projects/client-library/en/latest>`_
The library to access models, wizards and reports like a client.
Backend
-------
`GIS </projects/backend-gis/en/latest>`_
Adds GIS support.
Modules
-------
Operational
^^^^^^^^^^^
:ref:`Financial Accounting <index-accounting>`
Reports all transactions of your chart of accounts.
:ref:`Analytic Accounting <index-analytic-accounting>`
Analyze your accounts.
`Attendance </projects/modules-attendance/en/latest>`_
Track presences.
:ref:`Commission <index-commission>`
Commission sale's agents.
:ref:`EDocument <index-edocument>`
Electronic document format.
:ref:`Marketing <index-marketing>`
Communicates with your customers.
:ref:`Production <index-production>`
Transforms raw materials into finished products.
:ref:`Project <index-project>`
Checks the profitability of projects.
:ref:`Purchase <index-purchase>`
Follows your purchases.
:ref:`Sale <index-sale>`
Follows sale orders.
:ref:`Sale Point <index-sale-point>`
Point of Sales.
:ref:`Sale Subscription <index-sale_subscription>`
Subscribes to recurring service.
:ref:`Stock <index-stock>`
Tracks goods in your warehouses.
:ref:`Timesheet <index-timesheet>`
Tracks time spend.
Referential
^^^^^^^^^^^
`Banking </projects/modules-bank/en/latest>`_
Adds bank and account.
:ref:`Company <index-company>`
Structure of the company.
:ref:`Carrier <index-carrier>`
To ship.
`Country </projects/modules-country/en/latest>`_
ISO 3166 list of countries and subdivisions.
:ref:`Currency <index-currency>`
Manage currencies
`Customs </projects/modules-customs/en/latest>`_
Defines customs duty per tariff code.
`Dashboard </projects/modules-dashboard/en/latest>`_
Customized dashboard.
`Google Maps </projects/modules-google-maps/en/latest>`_
Links address to Google map.
`Incoterm </projects/modules-incoterm/en/latest>`_
Defines incoterms.
:ref:`Party <index-party>`
Identify parties.
:ref:`Product <index-product>`
Manages products.
Administration
^^^^^^^^^^^^^^
:ref:`Authentication <index-authentication>`
Extends authentication mechanism.
`Notification Email </projects/modules-notification-email/en/latest>`_
Sends email.
`User Role </projects/modules-user-role/en/latest>`_
Manage user groups with roles.
:ref:`Web <index-web>`
Manage web features.
+18
View File
@@ -0,0 +1,18 @@
:orphan:
.. _index-marketing:
Marketing
=========
`Marketing </projects/modules-marketing/en/latest>`_
Fundamentals for marketing.
`Automation </projects/modules-marketing-automation/en/latest>`_
Uses scenario.
`Campaign </projects/modules-marketing-campaign/en/latest>`_
Manage campaign.
`E-mail </projects/modules-marketing-email/en/latest>`_
Manage mailing lists.
+18
View File
@@ -0,0 +1,18 @@
:orphan:
.. _index-party:
Party
=====
`Party </projects/modules-party/en/latest>`_
Fundamentals to store parties.
`Avatar </projects/modules-party-avatar/en/latest>`_
Adds avatar.
`Relationship </projects/modules-party-relationship/en/latest>`_
Defines relation between parties.
`SIRET </projects/modules-party-siret/en/latest>`_
Adds SIRET and SIREN.
+48
View File
@@ -0,0 +1,48 @@
:orphan:
.. _index-product:
Product
=======
`Product </projects/modules-product/en/latest>`_
Fundamentals to manage products.
`Attribute </projects/modules-product-attribute/en/latest>`_
Adds attributes to products.
`Classification </projects/modules-product-classification/en/latest>`_
Classifies products.
`Classification Taxonomic </projects/modules-product-classification-taxonomic/en/latest>`_
Uses Taxonomic classification.
`Cost FIFO </projects/modules-product-cost-fifo/en/latest>`_
Adds FIFO cost method.
`Cost History </projects/modules-product-cost-history/en/latest>`_
Historize the cost.
`Cost Warehouse </projects/modules-product-cost-warehouse/en/latest>`_
Calculate cost prices per warehouse.
`Measurements </projects/modules-product-measurements/en/latest>`_
Adds measurements to products.
`Price List </projects/modules-product-price-list/en/latest>`_
Computes price.
`Price List Dates </projects/modules-product-price-list-dates/en/latest>`_
Sets start and end date on price lists.
`Price List Parent </projects/modules-product-price-list-parent/en/latest>`_
Adds price list cascading.
`Image </projects/modules-product-image/en/latest>`_
Adds images.
`Image Attribute </projects/modules-product-image-attribute/en/latest>`_
Adds attributes to product images.
`Kit </projects/modules-product-kit/en/latest>`_
Add support for product kits.
+24
View File
@@ -0,0 +1,24 @@
:orphan:
.. _index-production:
Production
==========
`Production </projects/modules-production/en/latest>`_
Fundamentals for production management.
`Outsourcing </projects/modules-production-outsourcing/en/latest>`_
Outsources the production.
`Routing </projects/modules-production-routing/en/latest>`_
Defines routings.
`Split </projects/modules-production-split/en/latest>`_
Split production orders.
`Work </projects/modules-production-work/en/latest>`_
Manage work order for each production.
`Work Timesheet </projects/modules-production-work-timesheet/en/latest>`_
Track time per work.
+18
View File
@@ -0,0 +1,18 @@
:orphan:
.. _index-project:
Project
=======
`Project </projects/modules-project/en/latest>`_
Fundamentals for project management.
`Invoice </projects/modules-project-invoice/en/latest>`_
Invoices the projects.
`Plan </projects/modules-project-plan/en/latest>`_
Plans the projects.
`Revenue </projects/modules-project-revenue/en/latest>`_
Follows cost and revenue of projects.
+42
View File
@@ -0,0 +1,42 @@
:orphan:
.. _index-purchase:
Purchase
========
`Purchase </projects/modules-purchase/en/latest>`_
Fundamentals to follow purchases.
`Amendment </projects/modules-purchase-amendment/en/latest>`_
Amend purchases in processing.
`Blanket Agreement </projects/modules-purchase-blanket-agreement/en/latest>`_
Manage blanket agreements.
`History </projects/modules-purchase-history/en/latest>`_
Manages revisions.
`Invoice Line Standalone </projects/modules-purchase-invoice-line-standalone/en/latest>`_
Generates invoice lines.
`Price List </projects/modules-purchase-price-list/en/latest>`_
Applies price list.
`Product Quantity </projects/modules-purchase-product-quantity/en/latest>`_
Adds constraints on quantity purchased.
`Request </projects/modules-purchase-request/en/latest>`_
Collects the purchase requests.
`Request Quotation </projects/modules-purchase-request-quotation/en/latest>`_
Asks quotation for the purchase requests.
`Requisition </projects/modules-purchase-requisition/en/latest>`_
Requires purchase by employees.
`Secondary Unit </projects/modules-purchase-secondary-unit/en/latest>`_
Adds a secondary unit of measure.
`Shipment Cost </projects/modules-purchase-shipment-cost/en/latest>`_
Computes shipment cost.
+96
View File
@@ -0,0 +1,96 @@
:orphan:
.. _index-sale:
Sale
====
`Sale </projects/modules-sale/en/latest>`_
Fundamentals to follow sales.
`Advance Payment </projects/modules-sale-advance-payment/en/latest>`_
Manage advance payment on sale.
`Amendment </projects/modules-sale-amendment/en/latest>`_
Amend sales in processing.
`Blanket Agreement </projects/modules-sale-blanket-agreement/en/latest>`_
Manage sale blanket agreements.
`Complaint </projects/modules-sale-complaint/en/latest>`_
Solves customer complaints.
`Credit Limit </projects/modules-sale-credit-limit/en/latest>`_
Adds sales to the credit limit.
`Discount </projects/modules-sale-discount/en/latest>`_
Adds discount on lines.
`Extra </projects/modules-sale-extra/en/latest>`_
Add extra lines.
`Gift Card </projects/modules-sale-gift-card/en/latest>`_
Sales gift cards.
`History </projects/modules-sale-history/en/latest>`_
Manages revisions.
`Invoice Date </projects/modules-sale-invoice-date/en/latest>`_
Compute the date of invoice.
`Invoice Grouping </projects/modules-sale-invoice-grouping/en/latest>`_
Groups invoices.
`Opportunity </projects/modules-sale-opportunity/en/latest>`_
Tracks leads and opportunities.
`Payment </projects/modules-sale-payment/en/latest>`_
Pays sales before posting the invoice.
`Price List </projects/modules-sale-price-list/en/latest>`_
Applies price list.
`Product Customer </projects/modules-sale-product-customer/en/latest>`_
Adds customer's name and code for product.
`Product Quantity </projects/modules-sale-product-quantity/en/latest>`_
Adds constraints on quantity sold.
`Product Recommendation </projects/modules-sale-product-recommendation/en/latest>`_
Recommends products.
`Product Recommendation Association Rule </projects/modules-sale-product-recommendation-association-rule/en/latest>`_
Recommends products based on association rules.
`Promotion </projects/modules-sale-promotion/en/latest>`_
Applies promotions.
`Promotion Coupon </projects/modules-sale-promotion-coupon/en/latest>`_
Applies promotions with coupons.
`Promotion Coupon Payment </projects/modules-sale-promotion-coupon-payment/en/latest>`_
Count coupon per identical payment party.
`Shipment Cost </projects/modules-sale-shipment-cost/en/latest>`_
Computes shipment cost.
`Shipment Grouping </projects/modules-sale-shipment-grouping/en/latest>`_
Groups shipments.
`Shipment Tolerance </projects/modules-sale-shipment-tolerance/en/latest>`_
Define tolerance for under and over shipment.
`Secondary Unit </projects/modules-sale-secondary-unit/en/latest>`_
Adds a secondary unit of measure.
`Stock Quantity </projects/modules-sale-stock-quantity/en/latest>`_
Checks stock level.
`Supply </projects/modules-sale-supply/en/latest>`_
Supplies from the sale.
`Supply Drop Shipment </projects/modules-sale-supply-drop-shipment/en/latest>`_
Supplies with drop shipment.
`Supply Production </projects/modules-sale-supply-production/en/latest>`_
Supplies with production.
+11
View File
@@ -0,0 +1,11 @@
:orphan:
.. _index-sale-point:
Point of Sale
=============
.. glossary::
`Sale Point </projects/modules-sale-point/en/latest>`_
Fundamentals for POS.
+12
View File
@@ -0,0 +1,12 @@
:orphan:
.. _index-sale_subscription:
Sale Subscription
=================
`Subscription </projects/modules-sale-subscription/en/latest>`_
Fundamentals to manage subscriptions.
`Asset </projects/modules-sale-subscription-asset/en/latest>`_
Add asset to subscribed service.
+90
View File
@@ -0,0 +1,90 @@
:orphan:
.. _index-stock:
Stock
=====
`Stock </projects/modules-stock/en/latest>`_
Fundamentals to manage warehouses.
`Assign Manual </projects/modules-stock-assign-manual/en/latest>`_
Manually decide where to pick products.
`Consignment </projects/modules-stock-consignment/en/latest>`_
Manages consignment stock from supplier or at customer warehouse.
`Forecast </projects/modules-stock-forecast/en/latest>`_
Forecast the stock levels.
`Inventory Location </projects/modules-stock-inventory-location/en/latest>`_
Creates inventories for many locations.
`Location Move </projects/modules-stock-location-move/en/latest>`_
Makes location movable.
`Location Sequence </projects/modules-stock-location-sequence/en/latest>`_
Orders locations.
`Lot </projects/modules-stock-lot/en/latest>`_
Track products with lot.
`Lot Shelf Life Expiration Date </projects/modules-stock-lot-sled/en/latest>`_
Manages expiration dates.
`Lot Unit </projects/modules-stock-lot-unit/en/latest>`_
Defines unit and quantity per lot.
`Package </projects/modules-stock-package/en/latest>`_
Store packaging on shipments.
`Package Shipping </projects/modules-stock-package-shipping/en/latest>`_
Fundamentals to interact with shipping services.
`Package Shipping DPD </projects/modules-stock-package-shipping-dpd/en/latest>`_
Connects with DPD shipping service.
`Package Shipping MyGLS </projects/modules-stock-package-shipping-mygls/en/latest>`_
Connects with MyGLS shipping service.
`Package Shipping Sendcloud </projects/modules-stock-package-shipping-sendcloud/en/latest>`_
Connects to the Sendcloud shipping service.
`Package Shipping UPS </projects/modules-stock-package-shipping-ups/en/latest>`_
Connects with UPS shipping service.
`Product Location </projects/modules-stock-product-location/en/latest>`_
Defines preferred locations for products.
`Quantity Early Planning </projects/modules-stock-quantity-early-planning/en/latest>`_
Consume earlier stock.
`Quantity Issue </projects/modules-stock-quantity-issue/en/latest>`_
Reports quantity issues.
`Secondary Unit </projects/modules-stock-secondary-unit/en/latest>`_
Adds a secondary unit of measure.
`Shipment Cost </projects/modules-stock-shipment-cost/en/latest>`_
Adds shipment costs to outgoing moves.
`Shipment Cost Weight </projects/modules-stock-shipment-cost-weight/en/latest>`_
Set shipment costs based on weight.
`Shipment Measurements </projects/modules-stock-shipment-measurements/en/latest>`_
Adds measurements to shipments.
`Split </projects/modules-stock-split/en/latest>`_
Splits moves and shipments.
`Supply </projects/modules-stock-supply/en/latest>`_
Supplies warehouses.
`Supply Forecast </projects/modules-stock-supply-forecast/en/latest>`_
Uses forecast to supply warehouses.
`Supply Day </projects/modules-stock-supply-day/en/latest>`_
Compute supply date per week day.
`Supply Production </projects/modules-stock-supply-production/en/latest>`_
Supplies warehouses with production orders.
+12
View File
@@ -0,0 +1,12 @@
:orphan:
.. _index-timesheet:
Timesheet
=========
`Timesheet </projects/modules-timesheet/en/latest>`_
Fundamentals to track time spend.
`Cost </projects/modules-timesheet-cost/en/latest>`_
Tracks employee cost.
+24
View File
@@ -0,0 +1,24 @@
:orphan:
.. _index-web:
Web
===
`Shop </projects/modules-web-shop/en/latest>`_
Fundamentals to sale online.
`Shop Shopify </projects/modules-web-shop-shopify/en/latest>`_
Integration with Shopify.
`Shop Vue Storefront </projects/modules-web-shop-vue-storefront/en/latest>`_
Integration with Vue Storefront.
`Shop Vue Storefront Stripe </projects/modules-web-shop-vue-storefront-stripe/en/latest>`_
Support of Stripe Payment for Vue Storefront.
`Shortener </projects/modules-web-shortener/en/latest>`_
Shortens URL and connects them to actions.
`User </projects/modules-web-user/en/latest>`_
Manages external users.
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
echo '{ "allow_root": true }' > ~/.bowerrc
+17
View File
@@ -0,0 +1,17 @@
clone:
hg:
image: plugins/hg
environment:
- HG_SHARE_POOL=/root/.cache/hg
volumes:
- cache:/root/.cache
pipeline:
npm:
image: tryton/sao-test
commands:
- sh .bower_allow_root.sh
- npm -s install --unsafe-perm --legacy-peer-deps
- npm test
volumes:
- cache-npm:/root/.npm
+228
View File
@@ -0,0 +1,228 @@
Version 6.6.0 - 2022-10-31
--------------------------
* Bug fixes (see mercurial logs for details)
* Support authentication services
* Check server version
Version 6.4.0 - 2022-05-02
* Bug fixes (see mercurial logs for details)
* Support notification message
* Allow Reference to be edited from tree view
* Set ECMAScript version to 6
* Manage optional column
* Display the number of selected records
* Humanize the count result
* Add limit to search_count
* Call view_get for board view
* Limit board action domain to active id and ids
* Manage creatable attribute of view
Version 6.2.0 - 2021-11-01
* Bug fixes (see mercurial logs for details)
* Support grouping attribute
* Add expander on tree to fold or unfold selected rows
* Support monetary and symbol field attributes
* Support digits from relation field
* Add accesskey to widgets and buttons
* Support Binary field in CSV import/export
Version 6.0.0 - 2021-05-03
* Bug fixes (see mercurial logs for details)
* Use appropriate types for email and url widgets
* Add completion on xxx2Many and Dict
* Add attachment preview
* Support document widget
* Support icon of type URL
* Allow sending email with existing attachments
* Add paths and model context to action data
* Add indentation in CSV export of tree
* Manage which records to use for actions
* Add drag and drop on CSV export and import
* Remove tempusdominus dependency
* Handle device cookie
* Add breadcrumb as title of window form
* Manage help for each selection
* Display revision on dialog
* Support empty value for timedelta converter
* Unify PYSON string format
Version 5.8.0 - 2020-11-02
* Bug fixes (see mercurial logs for details)
* Format timedelta in CSV export
* Manage symbol widget
* Fallback to model name as title
* Set treeview footer sticky on bottom
* Add get, in_ and contains methods to PYSON
* Manage deletable and writable state
* Support e-mail template
* Always encode CSV export in UTF-8
* Use tempusdominus and Popper for date time picker
* Support PYSON comparison of date and datetime
* Customize bootstrap default style
* Set field's name as input's name attribute
* Position copied records based on order
* Sanitize translated RichtText fields content (issue9453)
* Allow configuration of default colors for graph and calendar
* Sanitize RichtText fields content (issue9405)
* Escape external string (issue9394)
* Keep context in sessionStorage
* Use existing context for get_preferences
* Escape external strings (issue9351)
* Add context to export URL
* Allow changes to editable tree checkboxes without first selecting the line
Version 5.6.0 - 2020-05-04
* Bug fixes (see mercurial logs for details)
* Support link button on form
* Add URL for the current export
* Add option to export listed records
* Set treeview header sticky on top
* Add noreferrer noopener to external URL (issue9089)
* Manage readonly dates in calendar view
* Manage editable on calendar view
* Manage named separator as label
* Add MultiSelection entry to Dict field
* Position new record based on order
* Reset display_size of TreeView when group is cleared or changed
* Allow relation field to be selected in CSV export
* Hide empty cell on small screen
* Support validate attribute of wizard's Button
* Add infinite scroll
Version 5.4.0 - 2019-11-04
* Bug fixes (see mercurial logs for details)
* Support visual context on tree view
* Support multiselection field
* Support dot notation on PYSON Eval
* Manage sequence
* Add drag and drop on tree views
* Support expand on column
* Set minimal width for columns
* Order Dict keys by sequence
* Support relation fields in domain parser
* Add view modified
* Add Dict widget for tree view
Version 5.2.0 - 2019-05-06
* Bug fixes (see mercurial logs for details)
* Add domain inversion for reference fields
* Add list-form view
* Support HTML widget
* Use locale format for data export
* Add day view on calendar
* Add CSV exports into print toolbar
* Display unread and total of notes
* Use resources method
* Rename roundup.url configuration to bug.url
* Use separate XML parser in Views
* Add range selection with Shift-click
* Use between numbers in filter box
* Fill 'to' with 'from' value on filter box
* Add tab domain in URL
* Use properties
* Allow sao classes to use javascript properties
* Improve layout of CSV import/export
* Add support for height and width on notebook
* Use tab key for tab navigation
* Use record and field properties of widget instead of method arguments
* Reduce offset when no search result
* Add support for plugins
* Add support for expand, height and width attributes
* Add drag & drop support on attachment button
Version 5.0.0 - 2018-10-01
* Bug fixes (see mercurial logs for details)
* Prevent similar tab
* Remove dialog for input file
* Use dropdown for attachment
* Manage icons in input
* Support RTL language direction
* Apply factor on domain parser
* Use tab name in CSV Export/Import
* Add bus management
* Load custom CSS and Javascript
* New icons
* Support timestamp field
* Validate dictionary items
* Add (i)like support to domain inversion
* Improve loading strategy by using views
* Add support of width attribute on tree view
* Use non conflicting keyboard shortcuts
* Use the context to get the suffix of window name
* Call on_change methods after setting default dtstart on calendar view
* Allow to open in new tab Many2One and Reference with CTRL key
* Store session in browser storage
* Increase the space available for tab list
* Allow to toggle menu on large screen
* Manage URL and history
Version 4.8.0 - 2018-04-23
* Bug fixes (see mercurial logs for details)
* Manage active field on search widget
* Add position and length on list view
* Reset record to its original state when discarding the popup window
* Add support of expand attribute on group tag
* Add the context model name in the screen context
* Add sum of records on list view
* Add shortcuts to Date and DateTime widgets
* Use limit to expand tree
* Use spellcheck and lang attributes for textbox widget
* Support icon on page
* Add keyword attribute to button tag
* Support field name on image tag
* Use input number and toLocaleString for numeric fields
* Show related record names for all windows
* Allow to edit Many2One from tree view
* Use translated values when exporting Reference and Selection fields
Version 4.6.0 - 2017-10-30
* Bug fixes (see mercurial logs for details)
* Allow to export model and record name of Reference fields
* Re-position buttons on Binary/Image widget
* Set focus on first visible input when modal is shown
* Improve treeview headers
* Add keyboard shortcuts
* Update states of both toolbar and menu
* Improve toolbar order
* Use login details in title
Version 4.4.0 - 2017-05-01
* Bug fixes (see mercurial logs for details)
* Manage help attribute on tree views
* Manage color attribute on graph view
* Add support for size on Many2Many
* Allow to show plain text in password field
Version 4.2.0 - 2016-11-28
* Bug fixes (see mercurial logs for details)
* Add PYSON Widget
* Add CSV Import/Export
* Manage translated field
* Add favorites menu
* Show records names in wizard title
* Add support for datetime_field to Many2One, Reference
* Add calendar view
* Move info-bar to the top
* Add noeval to PYSONDecoder
* Add support for pyson_order on action window
* Make datetimepicker locale aware
* Restore tab default order when no manual change
* Add support for column sorting
* Manage confirm attribute on buttons
* Call autocompletion when setting record value
* Limit readonly state for xxx2Many
* Simplify login with single database
* Show records names in relate window title
* Add support for count on Action Window Domains
* Manage custom login process
* Add erase on Many2One
* Re-position icons on Many2One widget
Version 4.0.0 - 2016-05-02
* Bug fixes (see mercurial logs for details)
* Timedelta uses 30 days for month
* Manage context model of ir.action.act_window
* Add Note
Version 3.8.0 - 2015-11-02
* Initial release
+21
View File
@@ -0,0 +1,21 @@
Copyright (C) 2012-2022 Nicolas Évrard.
Copyright (C) 2012-2022 Cédric Krier.
Copyright (C) 2012-2014 Bertrand Chenal.
Copyright (C) 2012-2022 B2CK SPRL.
Copyright (C) 2019 Jitbit.
Copyright (C) 2013 Thomas Park
Copyright (C) 2020-2021 Maxime Richez
Copyright (C) 2020-2021 SALUC SA
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+183
View File
@@ -0,0 +1,183 @@
module.exports = function(grunt) {
var _ = grunt.util._;
var locales = ["bg", "ca", "cs", "de", "es", "es_419", "fr", "fa", "hu",
"it", "lo", "lt", "nl", "pl", "pt", "ru", "sl", "zh_CN"];
var jsfiles = [
'src/sao.js',
'src/rpc.js',
'src/pyson.js',
'src/session.js',
'src/common.js',
'src/model.js',
'src/tab.js',
'src/screen.js',
'src/view.js',
'src/view/form.js',
'src/view/tree.js',
'src/view/graph.js',
'src/view/calendar.js',
'src/view/list_form.js',
'src/action.js',
'src/window.js',
'src/wizard.js',
'src/board.js',
'src/bus.js',
'src/plugins.js',
'src/html_sanitizer.js'
];
var less_paths = [
'src',
'bower_components',
'bower_components/bootstrap',
'bower_components/bootstrap/less',
'bower_components/bootstrap-rtl-ondemand/less',
];
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
options: {
failOnError: true
},
msgmerge: {
command: _.map(locales, function(locale) {
var po = "locale/" + locale + ".po";
return (
"msgmerge " +
"-U " + po + " " +
"--no-location " +
"locale/messages.pot;");
}).join("")
},
xgettext: {
command: (
"xgettext " +
"--language=JavaScript --from-code=UTF-8 " +
"--omit-header --no-location " +
"-o locale/messages.pot " +
jsfiles.join(" "))
}
},
po2json: {
options: {
format: 'raw'
},
all: {
src: ['locale/*.po'],
dest: 'locale/'
}
},
concat: {
dist: {
src: jsfiles,
dest: 'dist/<%= pkg.name %>.js'
}
},
jshint: {
dist: {
options: {
jshintrc: 'src/.jshintrc'
},
src: ['dist/<%= pkg.name %>.js']
},
grunt: {
src: ['Gruntfile.js']
},
tests: {
options: {
jshintrc: 'tests/.jshintrc'
},
src: ['tests/*.js']
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %>-<%= pkg.version %> | GPL-3\n' +
'This file is part of Tryton. ' +
'The COPYRIGHT file at the top level of\n' +
'this repository contains the full copyright notices ' +
'and license terms. */\n'
},
dist: {
src: 'dist/<%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
},
less: {
dev: {
options: {
paths: less_paths,
},
files: {
'dist/<%= pkg.name %>.css': 'src/sao.less'
}
},
'default': {
options: {
paths: less_paths,
yuicompress: true
},
files: {
'dist/<%= pkg.name %>.min.css': 'src/sao.less'
}
}
},
watch: {
scripts: {
files: ['src/**/*.js'],
tasks: ['concat', 'jshint']
},
styles: {
files: ['src/*.less'],
tasks: 'less:dev'
}
},
qunit: {
options: {
timeout: 300000,
puppeteer: {
headless: true,
args: [
'--no-sandbox',
],
env: {
TZ: 'UTC',
},
},
},
all: ['tests/*.html']
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-po2json');
grunt.registerTask('default', 'Build for production.', function() {
grunt.task.run(['concat', 'jshint', 'uglify', 'less', 'po2json']);
});
grunt.registerTask('dev', 'Build for development.', function() {
grunt.task.run(['concat', 'jshint', 'less:dev']);
});
grunt.registerTask('devwatch', 'Watch development', function() {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.task.run(['watch']);
});
grunt.registerTask('msgmerge', 'Update locale messages.', function() {
grunt.loadNpmTasks('grunt-shell');
grunt.task.run(['shell:msgmerge']);
});
grunt.registerTask('xgettext', ' Extracts translatable messages', function() {
grunt.loadNpmTasks('grunt-shell');
grunt.task.run(['shell:xgettext']);
});
grunt.registerTask('test', 'Run tests', function() {
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.task.run(['concat', 'jshint', 'less:dev', 'qunit']);
});
};
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
Loaded 100 of 1040 files, more files were not shown because too many files have changed in this diff. Show more