Comment: | Added web2py 1.98.2 |
---|---|
Timelines: | family | ancestors | descendants | both | develop |
Files: | files | file ages | folders |
SHA1: |
eba4a35a21074384f0126c48549544ee |
User & Date: | spiffy on 2011-08-08 04:53:38 |
Other Links: | branch diff | manifest | tags |
2011-08-15
| ||
01:53 | Mobileblur can log in for a user and get all feeds with unread content above a hardcoded threshold check-in: 6548f791b4 user: spiffy tags: develop | |
2011-08-08
| ||
04:53 | Added web2py 1.98.2 check-in: eba4a35a21 user: spiffy tags: develop | |
04:52 | Create new branch named "develop" check-in: 2ef92257d5 user: spiffy tags: develop | |
Added ABOUT version [ea96ed160b].
> > > > > > | 1 2 3 4 5 6 | web2py is an open source full-stack framework for agile development of secure database-driven web-based applications, written and programmable in Python. Created by Massimo Di Pierro <mdipierro@cs.depaul.edu> |
Added LICENSE version [4719a3b620].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | ## Web2py License Web2py is Licensed under the LGPL license version 3 (http://www.gnu.org/licenses/lgpl.html) Copyrighted (c) by Massimo Di Pierro (2007-2011) ### On Commercial Redistribution In accordance with LGPL you may: - redistribute web2py with your apps (including official web2py binary versions) - release your applications which use official web2py libraries under any license you wish But you must: - make clear in the documentation that your application uses web2py - release any modification of the web2py libraries under the LGPLv3 license 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. 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. (Earlier versions of web2py, 1.0.*-1.90.*, were released under the GPL2 license plus a commercial exception which, for practical purposes, was very similar to the current LPGLv3) ### Licenses for third party contributed software web2py contains third party software under the gluon/contrib/ folder. Each file/module in contrib is distributed with web2py under its original license. Here we list some of them. #### gluon.contrib.simplejson LICENSE Copyright (c) 2006 Bob Ippolito - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #### gluon.contrib.rss2.py (originally PyRSS2Gen) LICENSE This is copyright (c) by Dalke Scientific Software, LLC and released under the BSD license. See the file LICENSE in the distribution or <http://www.opensource.org/licenses/bsd-license.php> for details. #### gluon.contrib.markdown (markdown2) LICENSE MIT License from from <http://code.google.com/p/python-markdown2/> #### gluon.contrib.feedparser LICENSE Copyright (c) 2002-2005, Mark Pilgrim All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #### gluon.wsgiserver.py LICENSE (borrowed from cherrypy) Copyright (c) 2004, CherryPy Team (team@cherrypy.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the CherryPy Team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #### gluon.contrib.pam LICENSE Copyright (C) 2007-2009 Chris AtLee <chris@atlee.ca> Licensed under the MIT license #### gluon.contrib.shell LICENSE Copyright (C) by Google inc. Apache 2.0 Lincense #### The javascript licenses are in the code itself |
Added Makefile version [72d1f69846].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | clean: rm -f httpserver.log rm -f parameters*.py rm -f -r applications/*/compiled find ./ -name '*~' -exec rm -f {} \; find ./ -name '#*' -exec rm -f {} \; find ./ -name 'Thumbs.db' -exec rm -f {} \; find ./gluon/ -name '.*' -exec rm -f {} \; find ./gluon/ -name '*class' -exec rm -f {} \; find ./applications/admin/ -name '.*' -exec rm -f {} \; find ./applications/examples/ -name '.*' -exec rm -f {} \; find ./applications/welcome/ -name '.*' -exec rm -f {} \; find ./ -name '*.pyc' -exec rm -f {} \; all: echo "The Makefile is used to build the distribution." echo "In order to run web2py you do not need to make anything." echo "just run web2py.py" epydoc: ### build epydoc rm -f -r applications/examples/static/epydoc/ epydoc --config epydoc.conf cp applications/examples/static/title.png applications/examples/static/epydoc tests: cd gluon/tests; ./test.sh 1>tests.log 2>&1 src: echo 'Version 1.98.2 ('`date +%Y-%m-%d\ %H:%M:%S`')' > VERSION ### rm -f all junk files make clean ### clean up baisc apps rm -f routes.py rm -f applications/*/sessions/* rm -f applications/*/errors/* | echo 'too many files' rm -f applications/*/cache/* rm -f applications/admin/databases/* rm -f applications/welcome/databases/* rm -f applications/examples/databases/* rm -f applications/admin/uploads/* rm -f applications/welcome/uploads/* rm -f applications/examples/uploads/* ### make admin layout and appadmin the default cp applications/admin/views/appadmin.html applications/welcome/views cp applications/admin/views/appadmin.html applications/examples/views cp applications/admin/controllers/appadmin.py applications/welcome/controllers cp applications/admin/controllers/appadmin.py applications/examples/controllers ### update the license cp ABOUT applications/admin/ cp ABOUT applications/examples/ cp LICENSE applications/admin/ cp LICENSE applications/examples/ ### build web2py_src.zip echo '' > NEWINSTALL mv web2py_src.zip web2py_src_old.zip | echo 'no old' cd ..; zip -r web2py/web2py_src.zip web2py/gluon/*.py web2py/gluon/contrib/* web2py/splashlogo.gif web2py/*.py web2py/ABOUT web2py/LICENSE web2py/README web2py/NEWINSTALL web2py/VERSION web2py/Makefile web2py/epydoc.css web2py/epydoc.conf web2py/app.example.yaml web2py/logging.example.conf web2py_exe.conf web2py/queue.example.yaml MANIFEST.in mkweb2pyenv startweb2py web2py/scripts/*.sh web2py/scripts/*.py web2py/applications/admin web2py/applications/examples/ web2py/applications/welcome web2py/applications/__init__.py web2py/site-packages/__init__.py web2py/gluon/tests/*.sh web2py/gluon/tests/*.py mdp: make epydoc make src make app make win app: echo 'did you uncomment import_all in gluon/main.py?' python2.5 -c 'import compileall; compileall.compile_dir("gluon/")' #python web2py.py -S welcome -R __exit__.py find gluon -path '*.pyc' -exec cp {} ../web2py_osx/site-packages/{} \; cd ../web2py_osx/site-packages/; zip -r ../site-packages.zip * mv ../web2py_osx/site-packages.zip ../web2py_osx/web2py/web2py.app/Contents/Resources/lib/python2.5 cp ABOUT ../web2py_osx/web2py/web2py.app/Contents/Resources cp NEWINSTALL ../web2py_osx/web2py/web2py.app/Contents/Resources cp LICENSE ../web2py_osx/web2py/web2py.app/Contents/Resources cp VERSION ../web2py_osx/web2py/web2py.app/Contents/Resources cp README ../web2py_osx/web2py/web2py.app/Contents/Resources cp splashlogo.gif ../web2py_osx/web2py/web2py.app/Contents/Resources cp options_std.py ../web2py_osx/web2py/web2py.app/Contents/Resources cp routes.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources cp router.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources cp app.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources cp queue.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources cp -r applications/admin ../web2py_osx/web2py/web2py.app/Contents/Resources/applications cp -r applications/welcome ../web2py_osx/web2py/web2py.app/Contents/Resources/applications cp -r applications/examples ../web2py_osx/web2py/web2py.app/Contents/Resources/applications cp applications/__init__.py ../web2py_osx/web2py/web2py.app/Contents/Resources/applications cd ../web2py_osx; zip -r web2py_osx.zip web2py mv ../web2py_osx/web2py_osx.zip . win: echo 'did you uncomment import_all in gluon/main.py?' python2.5 -c 'import compileall; compileall.compile_dir("gluon/")' find gluon -path '*.pyc' -exec cp {} ../web2py_win/library/{} \; cd ../web2py_win/library/; zip -r ../library.zip * mv ../web2py_win/library.zip ../web2py_win/web2py cp ABOUT ../web2py_win/web2py/ cp NEWINSTALL ../web2py_win/web2py/ cp LICENSE ../web2py_win/web2py/ cp VERSION ../web2py_win/web2py/ cp README ../web2py_win/web2py/ cp splashlogo.gif ../web2py_win/web2py/ cp options_std.py ../web2py_win/web2py/ cp routes.example.py ../web2py_win/web2py/ cp router.example.py ../web2py_win/web2py/ cp app.example.yaml ../web2py_win/web2py/ cp queue.example.yaml ../web2py_win/web2py/ cp -r applications/admin ../web2py_win/web2py/applications cp -r applications/welcome ../web2py_win/web2py/applications cp -r applications/examples ../web2py_win/web2py/applications cp applications/__init__.py ../web2py_win/web2py/applications cd ../web2py_win; zip -r web2py_win.zip web2py mv ../web2py_win/web2py_win.zip . run: python2.5 web2py.py -a hello push: make src echo '' > NEWINSTALL hg push bzr push bzr+ssh://mdipierro@bazaar.launchpad.net/~mdipierro/web2py/devel --use-existing-dir |
Added NEWINSTALL version [adc83b19e7].
> | 1 |
Added README version [b3e52ddfca].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 | ## INSTALLATION INSTRUCTION - IMPORTANT To start web2py there is NO NEED to install it. Just unzip and do: > python web2py.py Thats is it!!! ## web2py file structure start web2py with: python web2py.py `` \project README LICENSE TODO Makefile ## make all and make app web2py.py ## the startup script (*) parameters.py ## created at startup admin.tar ## the admin app (*) examples.tar ## examples and documentation app (*) welcome.tar ## the welcome app (entry point) (*) \gluon ## the core libraries (*) \deposit ## used for zip and install apps setup_app.py ## used by py2app to make OSX executable setup_exe.py ## used by py2app to make Winows executble wsgihandler.py ## to use Gluon with mod_wsgi \dist ## used by py2app, py2exe \build ## used by py2app, py2exe \tests ## under development stuff \docs ## in progress documentation \applications ## are the apps \welcome ## application welcome, for example \models \views \controllers \sessions \errors \cache \static \uploads \modules `` ## EWF v1.5 -> v1.6 - load and save .py in ascii, avoids problem with LF+CR on windows - added path.join in compileapp, fixed problem with Windows compileapp ## EWF v1.6 -> v1.7 - in paths replace '\' with '/' to fix problem with windows paths - using limitby in database administration - replaced mime/miltupart with multipart/form-data to fix a windows problem ## EWF v1.7 -> Gluon v1.0 - Name change - Improved layout.html ## Gluon v1.0 -> v1.1 - bug in sqlhtml with JOINS queries ## Gluon v1.1 -> v1.2 - fixed some typos in examples - IS_IN_SET now supports labels - cleanup in sql.py does not cleanup, just checks valid field and table names ## Gluon v1.3 - added IS_IN_DB, IS_NOT_IN_DB and updated examples accordingly ## Gluon v1.4 - fixed problem with IS_INT_IN_RANGE and IS_FLOAT_IN_RANGE. Now an error in a validator is reported as a ticket. Good validators should not raise Exceptions. - IS_IN_DB displays "label (id)" - it can upload files without extension - migration is now optional (define_table has migrate=False option) ## Gluon v1.5 - <form> -> <form method="post"> in errors.html - replace('//','////') in sub in template.py ## Gluon v1.8 - no more chdir (thread unsafe) - no more sys.stdout (thread unsafe) - response.body is StringIO() - admin/default/site informs about upgrade - response.locker (optional) ## Gluon v1.9 - allow "count(*)" in select - db.execute() - fixed problem with continue and return in template - removed try: ... except in sql.py - fixed '\t' ## Gluon v1.10 - fixed concurrency problems with SQLDB._instances and SQLDB._folders, now use lock - now, by default, edit SQLFORMs retain uploaded files ## Gluon v1.11 - appadmin allows to keep or delete uploaded files ## Gluon v1.12 - in sql.py - handles NULL values properly - unicode support (data always stored in utf-8) - 'date' -> datetime.date ,'time' -> datetime.time, 'datetime' -> datetime.datetime, 'boolean' -> True/False - most types have default validators - SQLField(...,required=True) option. - SQLRows has __str__ that serializes in CSV and xml() that serializes in HTML - SQLTable has import_from_csv_file(...) - gluon.simplejson for AJAX - in validators.py - IS_IN_DB(db,..) - db can be an SQLSet or an SQLDB - better error messages - in admin - new import/export in csv, update and delete interface. - in appadmin - edit form allows to keep stored encrypted password - in main.py - http://host not defaults to http://host/init/default/index - New third party modules - gluon.simplejson(.dumps, .loads) - gluon.pyrtf(.dumps) - gluon.rss2(.dumps) ## Gluon v1.13 - (this is one of the biggest revisions ever) - Improved sql.py has support MySQL, cxOracle (experimental), extract, like and better testing - SQLDB.tables and SQLTable.fields are now SQLCalableList objects - Fixed bug with editing integer fields storing zero - Admin interface now says "insert new [tablename]" and display insert, select or update properly in the title. - Added a cache mechamism. Works for data, controllers, views and SQLRows. - main.py now uses a request.folder absolute path when not os.name in ['nt','posix']. Seems to work on windowsce devices, except no file locking has consequences. - Now you can put modules in applications/[anyapp]/modules and import them with - import applications.[anyapp].modules.[module] as [module] - Fixed problem with init - New applications/examples/controller/global.py controller for docs. ## Gluon v1.14 - Fixed a bug fix in URLs ## Gluon v1.15 - New try:... except. in gluon/main.py for when sessions cannot be saved - Now validator/formatter method allows IS_DATE('%d/%m/%Y') ## web2py v1.16 - yes we changed the name! Turns out Gluon was trademarked by somebody else. - Although we are not infringing the trademark since this is a non-commercial - product we could have run into some issues. So we have been professional - and changed the name to web2py. - Now SQLFORMs and FORM can have a formname and multiple forms are allowed - per page. - A new examples/default/index page. - web2py.py instead of runme.py - mysql sets utf8 encoding. - input integer field values are automatically converted int(). ## web2py v1.17 - I posted v1.16 too soon. v1.17 was released after 1h to fix some bugs. ## web2py v1.18 - removed vulnerability in accept_languages and session_id - Minor bug fixes. Typos and cleanup cache. Textarea now clears. - Support for PyAMF. - T returns a class, not a string - new template parser (faster?) - got rid of sintaxhighlighter in favor of server side CODE - fix problem with cacheondisk locking - fix 'None' instead of NULL in IS_NOT_IN_DB (I think) - gluon.contrib.markdown - notnull and unique in SQLField now supported (tested on sqlite mysql and postgresql) - Storage now has __getstate__ and __setstate__ needed for pickling. - session files are now locked to make it work better with asynchronous requests - cxoracle should work, apart for limitby - .../examples is now mapped to .../examples/default/index etc. - .../init is now mapped to .../welcome if init is not present ## web2py 1.19 - minor typos ## web2py 1.20 - new IFRAME, LABEL, FIELDSET validators - P(..cr2br=True) option - FORM and SQLFORM have hidden=dict(...) option for REST - testing framework. - improved examples pages ## web2py 1.21 - replaced paste.httpserver with cherrypy.wsgi server - temporary sessions are no longer saved - widget has [stop] button and graph - logging is done by main by appfactory - fixed a bug in sql belongs ## web2py 1.22-1.25 - fixed minor bugs, added IS_NULL_OR ## web2py 1.26 - added shell.py (thanks Limodou!) - added memcache support ## web2py 1.27 - IS_NULL_OR now works will all fields - admin creates paths to static files - wsgiserver options are passed to HttpServer - faking limitby for oracle to make appadmin work - all objects inherit from object - fixed bug in app names with . - fixed bug in created RestrictedError object on windows - shell is now in gluon and accessible via web2py.py ## web2py 1.28 - fixed bug with belongs, faster sql.py - included jquery.js - minor aestetical fixes - sortable.js is gone ## web2py 1.29 - Now selet mutliple works with get, so does is IS_LENGTH - Added IS_LIST_OF - fixed problem with admin from windows and localhost ## web2py 1.30 - added flv to contenttype - added support for appengine ## web2py 1.31-1.41 - some bug fixes, mostly better appengine support - mssql support - firebird support - widgets support - connection pools ## 1.42 - fixed security issue by removing slash escape in mysql - removed random everywhere - use uuid for session and tickets - use http_x_forward_for to figure out the client causing a ticket - use longtext and longblob for mysql - main now really catches all exceptions - no more warnings on GAE ## 1.43-1.48 - html.py rewrite (better support for custom forms) (Bill Ferrett) - new stickers in examples (thanks Mateusz) - on windows can run in taskbar (Mark Larsen) - in admin|edit page link to edit|controller (Nathan Freeze) - better error codes and routes_onerror (Timothy Farrell) - DAL support for groupy and having - DAL support for expressions instead of values - DAL has experimental Informix support - fixed bug with non-printable chars in DAL - 'text' fields limited to 2**16 (to avoid mysql problems) - widget has -quiet and -debug (Attila Csipa) - web2py_session uses BLOB instead of TEXT - improved IS_URL - Runs with python 2.6 (Tim) - On GAE uses GAE for static files (Robin) ## 1.49 - fixed a bug with taskbar widget, thanks Mark - fixed a bug with form.latest - made many DIV methods private (_) ## 1.50 - Fixed some bugs introduced in 1.49 ## 1.51 - Fixed more bugs introduced in 1.49 (sql _extra and html select) - support for sqlite:memory: ## 1.52 - Fixed a minor bug with _extra[key] and key not str. - check for upgrade via ajax ## 1.53 - On GAE upload data goes automatically in datastore (blob created automatically) - New appadmin runs on GAE (most of it, not all) - Martin Hufsky patch allow slicing of fields in DAL expressions ## 1.54 - fixed minor bugs ## 1.55? - rowcount - fixed bug when IS_IN_DB involved multiple fields on GAE - T.set_current_languages - better unittests - response.custom_commit and response.custom_rollback - you can next cache calls (like cache a controller that caches a select). Thanks Iceberg - db(....id==None).select() no longer returns an error but an empty SQLRows on GAE - db(...).delete(delete_uploads=True) and SQLFORM.accepts(....delete_uploads=True) will delete all referenced uploaded files - DIV.element and DIV.update - sqlrows.json() - SQLFORM.widgets - URL(r=request,args=0) - IS_IN_DB(...,multiple=True) for Many2Many (sort of) - In URL(...,f) f is url encoded - In routes_in=[['a/b/c/','a/b/c/?var=value']] - simplejson 2.0.7 ## 1.56 - Consider the following table: - db.define_table('cirlce', - db.Field('radius','double'), - db.Field('area','double'), - db.Field('modified_on','datetime')) - now you can do: ## add a comment in the forms - db.circle.area.comment="(this is a comment)" ## do not show area in create/edit forms - db.circle.area.writable=False - ## do not show now in display forms - db.circle.modified_on.readable=False ## automatically timestamp when record cretaed - db.circle.modified_on.default=request.now ## automatically timestamp when record is modified - db.circle.modified_on.update=request.now ## make the radius appear in bold in display and table - db.circle.radius.represent=lambda value: B(value) ## make a form that automatically computes area - pi=3.1415 - form=SQLFOM(db.circle) - if form.accepts(request.vars, - onvalidation=lambda form: form.vars.area=pi*form.vars.radius**2): ... ## make a create form in two possible ways: - form=SQLFORM(db.circle) - form=SQLFORM(db.circle,0) ## make an update form in two possible ways: - form=SQLFORM(db.circle,record) - form=SQLFORM(db.circle,record_id) ## make a display form in two possible ways: - form=SQLFORM(db.circle,record,readonly=True) - form=SQLFORM(db.circle,record_id,readonly=True) ## so now you can do... - form=SQLFORM(db.circle,request.args[-1]) - and you get a create form if the URL ends in /0, you get an update - form if the URL ends in /[valid_record_id] ## you can also define once for all - timestamp=SQLTable(None,'timestamp', - SQLField('created_on','datetime', - writable=False, - default=request.now), - SQLField('modified_on','datetime', - writable=False, - default=request.now,update=request.now)) ## and use it in all your tables - db.define_table('mytable',db.Field('somefield'),timestamp) ## ## ## - One more feature in trunk.... - db.define_table('image',SQLField('file','upload')) - db.image.file.authorize=lambda row: True or False - then controller - def download(): return response.download(request,db) - id' is now a hidden field sqlform - gql references converted to long - admin login has autofocus - new notation proposed by Robin, db.table[id] - new UploadWidget shows images - new generic.html shows request, response, session - new LEGEND helper (thanks Marcus) - fixed doctests in sql (thanks Robin) - new notation for DB - record=db.table[id] - db.table[id]=dict(...) - del db.table[id] - request.env.web2py_version - new class gluon.storage.Settings has lock_keys, lock_values - jquery 1.3.1 - PEP8 compliance - new examples application - runs on jython (no database drivers yet, thanks Phyo) - fixed bugs in tests - passes all unittest but test_rewite (not sure it should pass that one) - Lots of patches from Fran Boone (about tools) and Dougla Soares de Andarde (Python 2.6 compliance, user use of hashlib instead of md5, new markdown2.py) ## 1.56.1-1.56.4 - fixing lots of small bugs with tool and languages - jquery.1.3.2 ## 1.57 - New ajax edit with keepalive (no longer logged out when editing code) - Fixed conflict resolution page. - Removed /user/bin/python from models/controllers ## 1.58 - Fixed some CRON bugs - Fixed a bug with new ajax edit - Experimental DB2 support in DAL - Customizable font size in admin edit page - New welcome/models/db.py shows how to memcache sessions on GAE with MEMDB - More expressive titles in admin - DB2 support. Thanks Denes! ## 1.59-1.60 - fixed lots of small bugs - routes_in can filter by http_host ## 1.61 - fixed some typos - auth.add_permissions(0,....) 0 indicates group of current user - crud.update has deletable=True or False - fixed issue with GAE detection -> gluon.settings.web2py_runtime -> request ## 1.62 - SQLFORMS and crud now show readble fields - Better WingIDE support - Languages are automatically translated - T.force and lazyT works better, optional T.lazy=False - gluon.storage.Messages are now translated without T - if routes.py then request.env.web2py_original_uri - db.table.field.isattachment = True - internationalizaiton of admin by Yair - admin.py by Alvaro - new MENU helper - new w2p file format - new welcome app with auth, service and crud turned on ## 1.63-1.63.4 - no more import gluon. - support for generic.xxx - simplejson can handle datetime date and time ## 1.63.5 - You can do jQuery.noConflict() without breaking web2py_ajax - Wigets can have attributes (thanks Hans) - Lots of internal cleanup and better code reusage (thanks Hans) ## 1.64 - Models 2-3 times faster (thanks Alexey) - Better LDAP support - Works with Jython (including sqlite and postgresql with zxJDBC): - download jython-2.5rc3.jar - download qlite-jdbc-3.6.14.2.jar - java -jar jython-xxx.jar - export CLASSPATH=$CLASSPATH:/Users/mdipierro/jython2.5rc3/sqlite-jdbc-3.6.14.2.jar - cd web2py - ../jython2.5rc3/jython web2py.py ## 1.64.2 - New IS_COMPLEX validator, thank Mr. Freeze - Experimental Informix support - Autologin on registration ## 1.64.3 - Some bug fixes ## 1.64.4 - Som bug fixes - Informix Support - response.render(stream) - SQLFORM.factory - SQLFORM.widgets.radio and SQLFORM.widgets.checkboxes ## 1.65 - reST docstrings for Sphinx, thanks Hans - gluon/conrtib/login_methods/gae_google_account.py for google CAS login on GAE, thanks Hans - fixed problem with Auth and Firebird 'password' issue - new auth.settings.create_user_groups - tickets stored on datastore on GAE and also logged, thanks Hans - imporved IS_LENGTH with max and min, thanks Mateusz - improved IS_EMAIL with filters, thanks Mateusz - new IS_IMAGE checks for format and size, thanks Mateusz - new IS_IPV4, thanks Mateusz ## 1.65.1 - spreadsheet - shell history, thanks sherdim - crontab editor, thanks Angelo - gluon/contrib/login_methods/cas_auth.py (thanks Hans) - DAL(...) instead of SQLDB(...) - DAL('gae') instead of GQLDB() - Field instead of SQLField - (the old syntax still works) ## 1.65.2 - Fixed some small auth bugs - Field.store(...) ## 1.65.3-10 - Fixed some small bugs and typos in the docstrings - Fixed AMF3 support ## 1.65.11 - Fixed a sqlhtml bug with image upload ## 1.65.12 - lables in auth auto-translate (thanks Alvaro) - better ldap_auth (thanks Fran) - auth chacks locally for blocked accounts even for alternate login methods (thanks Fran) ## 1.65.13 - request.url (thanks Jonathan) - restored uploadfield_newfilename - new examples layout nad logo (thanks Mateusz) ## 1.66 - new doctypes - form.vars.newfilename - new HTML and XHTML helpers - better IS_LENGTH ## 1.67.0 - Python 2.4 support (again) - New layout for welcome - changed defauld field sizes to 512 - Field(uploadfolder="...") - appadmin works on GAE (again, somehting got broken at some point) - new wsgiserver 3.2.0 should fix recurrent broken download problems ## 1.67.1 - Bux fixed ## 1.67.2 - Security fix in markdown ## 1.68.1 - New official markdown with security fix - rows.first() - rows.last() - New cron - New hindi and spanish translation - cached uploads allow for progress bars (thanks AndCycle) - ingres support (thanks Chris) - legacy database support for db2, mssql with non-int primary keys (thanks Denes) - default setting of content-type (this may cause strange behavior in old apps when downloading images) - IS_UPPER and IS_LOWER works with unicode - CLENUP not takes regex of allowed/now allowed chartares - New rewrite.py allows dynamic routes - Better error messages for IS_INT_* and IS_FLOAT_* ## 1.68.2 - Fixing bug with admin and missing crontab - Fixing bug with rewrite.load on GAE (thanks Willian Wang) ## 1.69.1 - Fixed a bug introduced in 1.68 about inserting unicode in DAL - Fixed other small bugs - Better support for legacy databases (thank Denes) - response.meta replaces response.author, response.keywords, response.description - response.files stets dependes in plugins - better admin for packing/unpacking plugins - reference fiels nor evaluate to DALRef with lazy evaluation (cool, thanks Mr Freeze) - can insert a record in place of a reference - record[e] instead of record._extra[e] (tentatively!) - record.update_record() with no args - rows.find() (thanks Mr Freeze) - rows.exclude() - rows.sort() - rows[:] ## 1.70.1 - Fixed bug with Rows.as_list and DALRef - Added Rows.as_dict (thanks Mr Freeze and Thedeus) - Added request.wsgi (thanks hcvst) allows running wsgi apps under web2py and applying wegi middleware to regular web2py actions that return strings. - Experimental distributed transactions between postgresql, mysql and firebird - Finally local_import is here! ## 1.71.1 - Complete rewrite of Rows - renamed DALStorage->Rows, DALRef->Reference - Experimental serializarion of Row and Rows (get serialized to dict and list of dict) - DAL(...,folder) and template.render(content=, context=) make it more modular ## 1.72.1 - 1.72.3 - Better support for legacy databases ## 1.73.1 - Fixed problem with storage and comparison of Row objects - Fixed problem with mail on GAE - Fixed problem with T in IS_DATE(TIME) error_message and format - Rows[i].delete_record() - Even better support for legacy databases - Experimantal support for non UTF8 encoding in DB - Better IPV4 (thanks Thandeus) - T.current_languages default to 'en' and new T.set_current_languages(...) (thanks Yarko) - INPUT(...,hideerror=False) used to fix rare chechbox widget problem - Admin allows change of admin password - New gluon/contrib/populate.py - Size of input/textarea set by CSS no more by jQuery (thanks Iceberg) - Customizable CSV (thanks Thandeus) - More bug fixed (thanks Thandeus) - Better regex for template fixed Jython problem (thank Jonathan) ## 1.74.1 - Moved to mercurial - Default validators use the new define_table(....,format='...') - New get_vars and post_vars compatible in 2.5 and 2.6 (thanks Tim) - Major rewrite of gql.py extends DAL syntax on GAE - No more *.w2p, welcome.w2p is create automatically, base apps are always upgraded - export_to_csv(delimiter = ',', quotechar = '"', quoting = csv.QUOTE_MINIMAL), thanks Thadeus ## 1.74.2-4 - Fix bugs including including unicode in emails and blobs on GAE ## 1.74.5 - bug fixes - restored python 2.4 support,thanks ont.rif - support for native types on Google App Engine - cache.ram usage statictics, thanks Thadus - no more auth manu in scaffolding - no more spash screen with -Q - fixed doctest in html.py, thanks Anand Vaidya - export_to_csv_file has represent, thanks Thadeus ## 1.74.6 - bug fixes - IS_IN_DB(...,_and=IS_NOT_IN_DB) - Smaller populate, thanks Piotr - better slicing of fields, thanks Michael Fig - Cache stats, thanks Thadeus - Better gql.py - IS_IN_DB and IS_IN_SET default to zero='', no longer zero=None ## 1.74.7 - request_password_reset and password reset verification - python web2py.py -S app -M -R script.py -A arg1 arg2 arg3 - T("%(a)s") % dict(a="hello") ## 1.74.8 - IS_SLUG, thanks Gustavo and Jonathan - web2py.py -nogui, thanks Jeff Bauer - solved a problem with jython, thanks Tim Farrel - login has "remember be option", thanks Piotr Banasziewicz - fixed problem with keepvalue in update forms, thanks Miguel Lopez ## 1.74.9 - IS_IN_SET(((0,'label0'),(1,'label1'))), thanks Falko Krause - SQLFORM(...).accpets stores True or False in boolean types no None, thanks Frederik Wagner - SQLFORM.factory(...,table_name='no_table'), thanks Thedeus - jQuery 1.4.1 - Fixed major problem with internationalization of multiple languages. - Fixed a serius security issue with login - Possibly fixed some issues with cron ## 1.75.1 - better cron - better fetch - logging of email failures - new web2py.fedora.sh - new setup-web2py-ubuntu.sh - experimental autocomplete - menus work on IE6 ## 1.75.2 - fetch supports cache - curd.update(....,onaccept=crud.archive) magic - new UUID mechnism fixes session conflicts with cloned machine in cloud - allow to upload app and overwrite existing old ones, thanks Jonathan - print gluon.tools.prettydate(request.now,T), thanks Richard ## 1.75.3 - added support for PAM authentican for apps and for admin - INTRODUCED MAJOR BUG IN BEAUTIFY (upgrade to 1.75.4) IMMEDIATELY ## 1.75.4 - customizable BEAUTIFY, thanks John ## 1.75.5 - fixed behaviour with languages.py, thanks Iceberg - added chinese (thanks Iceberg) and Hungarian (thanks Gyuris) - fixed problem with GAE deleted by id (thanks what_ho) - fixed bug in LOAD with custom views, thanks vhang - improved IS_IN_SET takes iterator, dict, list and list of tuples, thanks Iceberg - Auth(...,controller='default') - Fixed major bug in parsing repeated request.vars, thanks Ben - IS_DATE and IS_DATETIME can now handle any 0<year - allow to disable editarea onload, thanks Alex ## 1.76.1 - editarea 0.8.2 + zencoding - new (better) cron locking meachnism - no storing session cookies on session.forget(), thank you Alvaro - routes_apps_raw allows disabling of request.args validation, thanks Jonathan and Denes - fixed problem with edit_languages ad multiple tabs, thanks Iceberg - crud captcha, thanks you Nathan - softcron disabled by default in wsgihandler and fcgihandler ## 1.76.2-1.76.3 - major fix in cron (will I ever get this 100% right?) - fix in delete for GAE - auth.settings.login_captcha and auth.settings.register_captcha - crud.settings.create_captcha and crud.settings.update_captcha - automatic update button in admin ## 1.76.4 - SQLTABLE(db(db.auth_user.id>0).select(),headers='fieldname:capitalize') - Oracle limitby improved (thanks Sergey) - fixed migrations in Firebird, thanks Jose Jachuf - gluon/contrib/login_methods/linkedin_account.py (to be tested) ## 1.76.5 - Fixed a typo in auth that created some registration problems ## 1.77.1 - Replaced CherryPy with Rocket web server, thanks Tim - CacheOnDisk allows to specify a folder - IS_DATE/DATETIME can handle any year since 0 - SQLTABLE(...,headers='fieldname:capitalize') - Field().with_alias, thanks Nathan and Mengu - has_membership(group=...,role=...), thank Jonathan - db.define_table(username=True), thanks Jonathan - gluon.tools.prettydate - can specify hostname in routes_out (same syntax as routes in), thanks Martin - db.table.bulk_insert([...records...]) now works on GAE, thanks Jon - IS_EMAIL validates on 'localhost', thanks Jonathan - welcome/views/layout.html uses ez.css, thanks Yarko - mail attachments support utf8, thanks szimszon - works with PyPy, thanks Joe - better Firebird support, thanks Jose - better Oracle support, thanks Gabriele - cron supports days of week - SQLFORM(...,formstyle="table3cols") or "table2cols" or "divs" or "ul" - crud.settings.formstyle - web2py.py -f folder allows to specify locations of applications, thanks Iceberg - better/faster regex in template works in Jython - fixed lots of small bugs ## 1.77.2 - fixed x-index in calendar ## 1.77.3 - some cleanup of code in compileapp ## 1.78.1 - new template system allows {{block name}}{{end}}, thanks Thadeus - fixed mime headers in emails, included PGP in emails, thanks Gyuris - automatic database retry connect when pooling and lost connections - OPTGROUP helper, thanks Iceberg - web2py_ajax_trap captures all form submissions, thank you Skiros - multicolumn checkwidget and arbitrary chars in multiple is_in_set, thanks hy - Québécois for welcome, thanks Chris - crud.search(), thanks Mr Freeze - DAL(...migrate,fake_migrate), thanks Thadeus ## 1.78.3 - reverted temporarily to old template system because of backward compatibility issues ## 1.79.1 - x509 emails, thanks Gyuris - attachment and html in Mail on GAE, thanks PanosJee - fixed docstring in SQLTABLE, thanks aabelyakov - TAG(html) parese html into helpers (experimental, still some problems with unicode, , thanks RobertVa for unicode help) - DIV.elements(find=re.compile(....)) - DIV.flatten() - DIV.elements('....') supports jQuery syntax in '....' - better it-it.py and it.py, thanks Marcello Della Longa - Many Bug fixes: - improved support for DAL and joins in postgresql/oracle, thanks Nico de Groot - bux fixex in html.py, thanks Ian - fixed an issue with registration_key==None, thanks Jay Kelkar - fixed bug in gql.py, thanks NoNoNo - fixed problem with multiple and checkboxes, thanks MIchael Howden - fixed bug in gae, thanks NoNoNo - restored 2.4 compatibility, thanks Paolo Gasparello - auth.update() when pictures in profile - formstyle can be a function, thanks Howden - escape in sanitizer, thanks Howes - add missing settings, thanks Hamdy - find and exclude return empty Rows instead of [], thanks iceberg - simplejson 2.1.1 should fix compatibility problems - added sms_utils and Authorize.net in contrib ## 1.79.2 - solved simplejson imcompatibility problem ## 1.80.1 - MARKMIN helper (no backward compatibility promise yet) - self._last_reference, thanks Dave (no backward compatibility promise yet) - IS_EQUAL_TO - zh-tw and better internationalization page, thanks Daniel Lin and Iceberg - better crud.search, thanks MrFreeze - Rocket interfaces, thanks Nik Klever - db.table.field.uploadseparate=True, thanks Gyuris - SCOPE_IDENITY for MSSQL, thanks Jose - fixed email attachment issue, thanks Bob_in_Comox - fixed problem with groupby and IS_IN_DB - other bug fixes - new implementation for local_import - ajax(..,...,null) - fixed Chrome bug in calendar.js, thanks Iceberg - experimental scrips/web2py-setup-fedora.sh - generic.load, thanks Iceberg ## 1.81.1 - rpx (janrain) support out of the box, allows login with Facebook, MySpace, etc. Thanks Mr Freeze - Increased security (escape single and double quotes, thanks Craig" - Fixed a bug with db.table.field.uploadseparate=True and autodelete - New welcome app with superfish and jQuery 1.4.2 - Deleted openwysiwyg from admin - In XML and xmlescape quote defaults to True. Both ' and " are escaped. Thanks Craig Younkins ## 1.81.2 - fixed bug in Auth ## 1.81.3 - fixed bug in label names in formstyle - fixed id names in admin test.html page ## 1.81.4 - Fixed gluon.tools to work work with load and base.css to nowrap labels ## 1.81.5 - Fixed a few bugs. The most important bugs we fixed are in memcache (thanks Scott) and in a process starvation issue with Rocket (thanks Mike Ellis and Tim). ## 1.82.1 - request.ajax to detect if action is called via ajax, tahnks Jonathan and David Mako - more captcha options, thanks Vidul - openid and oauth2 thanks Michele and Keith - better PluginManager and load components - new template system, thanks Thadeus - new db.table(id,[field=value]) and db.table(query) syntax - URL('index') (no more r=request), thanks Thadeus - mail.send(message='<html>...</html>', ....) - DAL([....]) for load balancing - @service.soap(...) with mysimplesoap, thanks Mariano - hideerror ## 1.83.1 - New error reporting mechanism (thanks Mariano) - New routing system with app level routing (thanks Jonathan) - Integrated GAE appstat and GAE precompilation (thanks Scott) - New Field types "list:string", "list:integer", "list:reference" - request.cid, request.ajax, A(cid=request.cid), response.js ## 1.83.2 - mostly cleanup ## 1.84.1-4 - flash now stays put in the top right corner - improved behavior for URL and T objects - new app level logging with logging.conf (thanks Jonathan) - improved OpenID (thanks Michele) - web2py_ajax handles prepend, append, hide (thanks Juris) - web2py_ajax also handels pre-validation of decimal fields - ru-ru translation (thanks Michele) - sk-sk translation (thanks Julius) - migrations save .table only if changed and after each ALTER TABLE (no more mysql inconsistencies) - fixed bugs in SQLCustomField, Field(default=...), IS_IMAGE, IS_DECIMAL_IN_RANGE and a few more. - Better validators (IS_DECIMAL_IN_RANGE, IS_INT_IN_RANGE, etc) thanks Jonatham - Polymmodel support on GAE - Experimental ListWidget - moved DAL and routes to thread.local (thanks Jonathan, again) - scripts/extract_mysql_models.py, thanks Falko Krause and Ron McOuat - scripts/dbsessions2trash.py, thanks Scott ## 1.85.1-3 - fixed some bugs - added pyfpdf, thank Mariano ## 1.86.1-1.86.3 - markmin2latex - markmin2pdf - fixed some bugs - Storage getfirst, getlast, getall by Kevin and Nathan - db(db.table), db(db.table.id) both suported and equivalent to db(db.table.id>0) - postresql ssl support - less un-necessary logging and warnings on GAE - IS_DECIMAL_IN_RANGE and IS_FLOAT_IN_RANGE support dot="," (dot="." is default) - on_failed_authorization can be a function, thanks Niphold - gluon/contrib/login_methods/cas_auth.py for integration between CAS and Auth. ## 1.86.3 - Error reporting on save, thanks Mariano recalled ## 1.87.1-2 - new layout for examples, thanks Bruno and Martin - admin allow ``DEMO_MODE=True`` and ``FILTER_APPS=['welcome']`` - fixed a possible problem with CRON and paths ## 1.87.3 - fixed a major bug introduced in 1.87.1 that prevents appadmin from working for new apps created with 1.87.1-2. - upgraded to clockpick 1.28, thanks villas ## 1.88.1-2 - better list: string support, thanks Bob - jquery 1.4.3 - scripts/autoroutes.py - new admin wizard - added retrieve_username to navbar (if username) - internal rewrite for arbitrary paths (abspath), thanks Jonathan - populate support for list: and decimal, thanks Chirstian - markmin2latex has extra attribute - better mercual admin allows list of files, versions and retrieve - new error report system, thanks Thadeus and Selecta - SQLFORM.accepts(detect_record_change).record_changed - fixed cron for bytecode compiled apps, thanks Álvaro J. Iradier Muro - other bugs fixes and pep8 compliant fixes ## 1.89.1-.5 - new admin layout (thanks Branko Vukelic) - new admin search - new admin language selector (thanks Yair) - new Welcome app (thanks Martin Mulone) - better wizard - admin support for DEMO_MODE=True - admin exposes GAE deployment button (always) - MENU support None links (thanks Michael Wolfe) - web2py.py -J for running cron (thanks Jonathan Lundell) - fixed ~db.table.id on GAE (thanks MicLee) - service.jsonrpc supports service.JsonRpcException (thanks Matt) - bug fixes ## 1.90.1 - new DAL (complete rewrite of the web2py DAL is more modular) - rewrite has fail safe reload, thanks Jonathan - better CAS with v2 support, thanks Olivier ROCH VILATO - better markmin2latex - session.connect(separate=True) to handle many session files, thanks huaiyu wang - changed bahvior of impersonate (more secure, can generate form or used as API) - new rocket, thanks Tim - new pyfpdf - no more old style classes - experimental couchdb support in new dal (only insert, select, update by id) - mysql support out of the box via pymysql - SQLITABLE(...,headers='labels') thanks Bruno - optional: digitally signed URLs, thanks Brian Meredyk - minor bug fixes ## 1.90.2-4 - pymysql no longer requires ssl (if not used) - fixed bug with virtualfields - fixed bug in truncate (new dal) - fixed bug in select with alternate primary key (new dal) - fixed bug with IS_IN_DB and self refences (also new dal) ## 1.90.5 - set poll = False in rocket because of poll python thread bug often unfixed, thanks Jonathan - fixes issue with crud and reCaptcha ## 1.90.6 - fix issue with pickling new dal Row and Rows. ## 1.91.1 - LICENSE CHANGE FROM GPLv2 to LGPLv3 - URL(...,hash_vars=...) allows to specify which vars need to be signed - fixed bug with aliasing in new DAL ## 1.91.2-1.91.5 - fixed a problem with deplyment on GAE - other new dal bug fixes ## 1.91.6 - web2py comet via gluon/contrib/comet_messaging.py (html5 websockets) experimental - fixed problem with services (broken in 1.91.5), thanks Vollrath - customizable uploadwidget, thanks Fran - fixed problem with mail unicode support, thanks Richard - fixed problem with linkto=None and references fields in SQLTABLE, thanks villas - no more upgrade button on windows since does not work - better remember-me login, thanks Martin Weissenboeck - support for recatcha options - support for GAE namespaces via DAL('gae://namespace') - new rocket (1.2.2), thanks Tim - many other bug fixes and improvements (thanks Jonathan) ## 1.92.1 - much improved routing (thanks Jonathan) - Expression.__mod__ (thanks Denes) - admin has MULTI_USER_MODE (admin/models/0.py) - support for count(distinct=...) - has_permissions(...,group_id) - IS_MATCH(...,strict=True) - URL(...,scheme=,host=,port=), thanks Jonathan - admin in Afrikaans, thanks Caleb - auth.signature (experimental) - many other bug fixes ## 1.93.1-2 - support for multiple interfaces, thanks Jonathan - jquery 1.5.1 - simplejson 2.1.3 - customizable simplejson - leaner app.yaml - css3 buttons in welcome - android support (experimental) - Field(':hidden'), Field('.readonly'), Field('name=value') - combined expressions print db.data.body.len().sum() - wizard can download plugins - better json serilization (object.custom_json) - better xml serialization (object.custom_xml) - better formstyle support - better comet_messaging.py (needs more testing) - many bug fixes ## 1.94.1 - moderniz 1.17 - web2py no longer saves session if no change, this makes it up up to 10x faster for simple actions - experimental REST API - better support for MSSQL NOT NULL - small bug fixes ## 1.94.2 - reverted wrong behavior of auth.requires(condition) in 1.94.1 ## 1.94.3 - fixed major bug in auth redirection ## 1.94.4 - removed debug print statement that caused problems on GAE and mod_wsgi ## 1.94.5 - fixed a major bug with session introdued in 1.94.1 ## 1.94.6 - fixed a number of minor bugs including adding some missing files - better session handling on session._unlock(..), thanks Jonathan - added experimental pip support, thanks Lifeeth - added experimental SAP DB support ## 1.95.1 - Google MySQL support (experimental) - pip support, thanks lifeeth - better setup_exe.py, thanks meredyk - importved pyfpdf - domain check in email_auth.py, thanks Gyuris - added change_password_onvalidation and change_password_onaccept - DAL(...,migrate_enabled=True) - login_methods/loginza.py, thanks Vladimir - bpython shell support, thanks Arun - request.uuid and response.uuid (for a future toolbar) - db._timings contains database query timing info - efficient db(...).isempty() - setup-web2py-nginx-uwsgi-ubuntu.sh - Many bug fixes, thanks Jonathan ## 1.96.1 - "from gluon import *" imports in every python module a web2py environment (A, DIV,..SQLFORM, DAL, Field,...) including current.request, current.response, current.session, current.T, current.cache, thanks Jonathan. - conditional models in models/<controller>/a.py and models/<controller>/<function>/a.py - from mymodule import *, looks for mymodule in applications/thisapp/modules first and then in sys.path. No more need for local_import. Thanks Pierre. - usage of generic.* views is - by default - restricted to localhost for security. This can be changed in a granular way with: response.generic_patterns=['*']. This is a slight change of behavior for new app but a major security fix. - all applications have cas 2.0 provider at http://.../user/cas/login - all applications can delegate to login to external provider Auth(...,cas_provider='http://.../other_app/default/user/cas') - A(...,callback=URL(...),larget='id') does Ajax - URL(...,user_signature=True), LOAD(...,user_signature=True) can sign urls and @auth.requires_signature() will check the signature for any decorated action. - DAL(...,migrate_enabled=False) to disable all migrations - DAL(...,fake_migrate_all=True) to rebuild all corrupted metadata - new DAL metadata format (databases/*.table) - DAL(...,adapter_arg={}) allows support for alternate drivers - DAL now allows circular table defintions - DAL(..,auto_import=True) automatically imports tables from metadata without need to db.define_table(...)s. - new alterante syntax for inner joins: db(...).select(join=...) - experimental cubrid database support - DAL 'request_tenant' fields are special, the altomatically filer all records based on their default value. - db._common_fields.append(Field('owner')) allows to add fields to ALL tables - DAL ignores repeated fields with same names - web2py_ajax.html is more modular, thanks Anthony - request.is_local - request.is_http - new sessions2trash.py thanks Jim Karsten - corrupted cache files are automatically deleted - new simpler API gluon.contrib.AuthorizeNet.procss(...) - fixed recaptcha (as they released new API) - messages in validators have default internationalization - No more Auth(globals(),db), just Auth(db). Same for Crud and Service. - scripts/access.wsgi allows apache+mod_wsgi to delegate authentication of any URL to any web2py app - json now supports T(...) - scripts/setup-web2py-nginx-uwsgi-ubuntu.sh - web2py HTTP responses now set: "X-Powered-By: web2py", thanks Bruno - mostly fixed generic.pdf. You can view any page in PDF if you have pdflatex installed or if your html follows the pyfpdf convention. - auth.settings.extra_fields['auth_user'].append(Field('country')) allows to extend auth_* tables without need of definiting a custom auth_* table. Must be placed before auth.define_tables() - {{=response.toolbar()}} to help you debug applications - web based shell now supports object modifications (but no redefinitions of non-serializable types) - jQuery 1.6.1 - Lots of bug fixes # 1.96.2-1.96.4 - bug fixes # 1.97.1 - validate_and_update, thanks Bruno - fixed problem with new custom import, thanks Mart - fixed pyamf 0.6, thanks Alexei and Nickd - fixed "+ =" bug in wizard - fixed problem with allowed_patterns - fixed problems with LOAD and vars and ajax - closed lots of google code tickets - checkboxes should now work with list:string - web2py works on Android, thanks Corne Dickens - new cpdb.py, thanks Mart - improved translation (frech in particuler), thanks Pierre - improved cas_auth.py, thanks Sergio - IS_DATE and IS_DATETIME validators now work with native types - better description of --shell, thanks Anthony - extra SQLTABLE columns, thanks Martin - fixed toolbar conflics, thanks Simon - GAE password shows with **** # 1.98.1 - fixed some problems with LOAD(ajax=False), thanks Anthony - jquery 1.6.2 - gevent.pywsgi adds ssl support, thanks Vasile - import/export of blobs are base64 encoded - max number of login attemts in admin, thanks Ross - fixed joins with alias tables - new field.custom_delete attribute - removed resctions on large 'text fields, thanks Martin - field.represent = lambda value,record: .... (record is optional) - FORM.validate() and FORM.process(), thanks Bruno - faster visrtualfields, thanks Howsec - mail has ssl support separate from tls, thanks Eric - TAG objects are now pickable - new CAT tag for no tags - request.user_agent(), thanks Ross - fixed fawps support - SQLFORM(...,separator=': ') now customizable - many small bug fixes |
Added VERSION version [2164f2cc2a].
> | 1 | Version 1.98.2 (2011-08-04 00:47:09) |
Added __init__.py version [adc83b19e7].
> | 1 |
Added anyserver.py version [b44d99a317].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | #!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) This file is based, althought a rewrite, on MIT code from the Bottle web framework. """ import os, sys, optparse path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) sys.path = [path]+[p for p in sys.path if not p==path] import gluon.main from gluon.fileutils import read_file, write_file class Servers: @staticmethod def cgi(app, address=None, **options): from wsgiref.handlers import CGIHandler CGIHandler().run(app) # Just ignore host and port here @staticmethod def flup(app,address, **options): import flup.server.fcgi flup.server.fcgi.WSGIServer(app, bindAddress=address).run() @staticmethod def wsgiref(app,address,**options): # pragma: no cover from wsgiref.simple_server import make_server, WSGIRequestHandler class QuietHandler(WSGIRequestHandler): def log_request(*args, **kw): pass options['handler_class'] = QuietHandler srv = make_server(address[0],address[1],app,**options) srv.serve_forever() @staticmethod def cherrypy(app,address, **options): from cherrypy import wsgiserver server = wsgiserver.CherryPyWSGIServer(address, app) server.start() @staticmethod def rocket(app,address, **options): from gluon.rocket import CherryPyWSGIServer server = CherryPyWSGIServer(address, app) server.start() @staticmethod def rocket_with_repoze_profiler(app,address, **options): from gluon.rocket import CherryPyWSGIServer from repoze.profile.profiler import AccumulatingProfileMiddleware from gluon.settings import global_settings global_settings.web2py_crontype = 'none' wrapped = AccumulatingProfileMiddleware( app, log_filename='wsgi.prof', discard_first_request=True, flush_at_shutdown=True, path = '/__profile__' ) server = CherryPyWSGIServer(address, wrapped) server.start() @staticmethod def paste(app,address,**options): from paste import httpserver from paste.translogger import TransLogger httpserver.serve(app, host=address[0], port=address[1], **options) @staticmethod def fapws(app,address, **options): import fapws._evwsgi as evwsgi from fapws import base evwsgi.start(address[0],str(address[1])) evwsgi.set_base_module(base) def app(environ, start_response): environ['wsgi.multiprocess'] = False return app(environ, start_response) evwsgi.wsgi_cb(('',app)) evwsgi.run() @staticmethod def gevent(app,address, **options): from gevent import monkey; monkey.patch_all() from gevent import pywsgi from gevent.pool import Pool pywsgi.WSGIServer(address, app, spawn = 'workers' in options and Pool(int(option.workers)) or 'default').serve_forever() @staticmethod def bjoern(app,address, **options): import bjoern bjoern.run(app, *address) @staticmethod def tornado(app,address, **options): import tornado.wsgi import tornado.httpserver import tornado.ioloop container = tornado.wsgi.WSGIContainer(app) server = tornado.httpserver.HTTPServer(container) server.listen(address=address[0], port=address[1]) tornado.ioloop.IOLoop.instance().start() @staticmethod def twisted(app,address, **options): from twisted.web import server, wsgi from twisted.python.threadpool import ThreadPool from twisted.internet import reactor thread_pool = ThreadPool() thread_pool.start() reactor.addSystemEventTrigger('after', 'shutdown', thread_pool.stop) factory = server.Site(wsgi.WSGIResource(reactor, thread_pool, app)) reactor.listenTCP(address[1], factory, interface=address[0]) reactor.run() @staticmethod def diesel(app,address, **options): from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(app, port=address[1]) app.run() @staticmethod def gnuicorn(app,address, **options): import gunicorn.arbiter gunicorn.arbiter.Arbiter(address, 4, app).run() @staticmethod def eventlet(app,address, **options): from eventlet import wsgi, listen wsgi.server(listen(address), app) def run(servername,ip,port,softcron=True,logging=False,profiler=None): if logging: application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, logfilename='httpserver.log', profilerfilename=profiler) else: application = gluon.main.wsgibase if softcron: from gluon.settings import global_settings global_settings.web2py_crontype = 'soft' getattr(Servers,servername)(application,(ip,int(port))) def main(): usage = "python anyserver.py -s tornado -i 127.0.0.1 -p 8000 -l -P" try: version = read_file('VERSION') except IOError: version = '' parser = optparse.OptionParser(usage, None, optparse.Option, version) parser.add_option('-l', '--logging', action='store_true', default=False, dest='logging', help='log into httpserver.log') parser.add_option('-P', '--profiler', default=False, dest='profiler', help='profiler filename') servers = ', '.join(x for x in dir(Servers) if not x[0]=='_') parser.add_option('-s', '--server', default='rocket', dest='server', help='server name (%s)' % servers) parser.add_option('-i', '--ip', default='127.0.0.1', dest='ip', help='ip address') parser.add_option('-p', '--port', default='8000', dest='port', help='port number') parser.add_option('-w', '--workers', default='', dest='workers', help='number of workers number') (options, args) = parser.parse_args() print 'starting %s on %s:%s...' % (options.server,options.ip,options.port) run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) if __name__=='__main__': main() |
Added app.example.yaml version [090b9f077a].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | # For Google App Engine deployment, copy this file to app.yaml # and edit as required # See http://code.google.com/appengine/docs/python/config/appconfig.html # and http://web2py.com/book/default/chapter/11?search=app.yaml application: web2py version: 1 api_version: 1 runtime: python default_expiration: "24h" derived_file_type: - python_precompiled handlers: - url: /_ah/stats.* script: $PYTHON_LIB/google/appengine/ext/appstats/ui.py login: admin - url: /(?P<a>.+?)/static/(?P<b>.+) static_files: applications/\1/static/\2 upload: applications/(.+?)/static/(.+) secure: optional - url: /favicon.ico static_files: applications/welcome/static/favicon.ico upload: applications/welcome/static/favicon.ico - url: /robots.txt static_files: applications/welcome/static/robots.txt upload: applications/welcome/static/robots.txt - url: /_ah/admin/.* script: $PYTHON_LIB/google/appengine/ext/admin login: admin - url: /_ah/queue/default script: gaehandler.py login: admin - url: .* script: gaehandler.py secure: optional admin_console: pages: - name: Appstats url: /_ah/stats skip_files: | ^(.*/)?( (app\.yaml)| (app\.yml)| (index\.yaml)| (index\.yml)| (#.*#)| (.*~)| (.*\.py[co])| (.*/RCS/.*)| (\..*)| (applications/(admin|examples)/.*)| ((admin|examples|welcome)\.(w2p|tar))| (applications/.*?/(cron|databases|errors|cache|sessions)/.*)| ((logs|scripts)/.*)| (anyserver\.py)| (web2py\.py)| ((cgi|fcgi|modpython|wsgi)handler\.py)| (epydoc\.(conf|css))| (httpserver\.log)| (logging\.example\.conf)| (route[rs]\.example\.py)| (setup_(app|exe)\.py)| (splashlogo\.gif)| (parameters_\d+\.py)| (options_std.py)| (gluon/tests/.*)| (gluon/(rocket|winservice)\.py)| (contrib/(gateways|markdown|memcache|pymysql)/.*)| (contrib/(populate|taskbar_widget)\.py)| (google_appengine/.*)| (.*\.(bak|orig))| )$ builtins: - remote_api: on - datastore_admin: on |
Added appengine_config.py version [72d08f192b].
> > > > | 1 2 3 4 | def webapp_add_wsgi_middleware(app): from google.appengine.ext.appstats import recording app = recording.appstats_wsgi_middleware(app) return app |
Added applications/__init__.py version [da39a3ee5e].
Added applications/admin/ABOUT version [ea96ed160b].
> > > > > > | 1 2 3 4 5 6 | web2py is an open source full-stack framework for agile development of secure database-driven web-based applications, written and programmable in Python. Created by Massimo Di Pierro <mdipierro@cs.depaul.edu> |
Added applications/admin/LICENSE version [4719a3b620].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | ## Web2py License Web2py is Licensed under the LGPL license version 3 (http://www.gnu.org/licenses/lgpl.html) Copyrighted (c) by Massimo Di Pierro (2007-2011) ### On Commercial Redistribution In accordance with LGPL you may: - redistribute web2py with your apps (including official web2py binary versions) - release your applications which use official web2py libraries under any license you wish But you must: - make clear in the documentation that your application uses web2py - release any modification of the web2py libraries under the LGPLv3 license 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. 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. (Earlier versions of web2py, 1.0.*-1.90.*, were released under the GPL2 license plus a commercial exception which, for practical purposes, was very similar to the current LPGLv3) ### Licenses for third party contributed software web2py contains third party software under the gluon/contrib/ folder. Each file/module in contrib is distributed with web2py under its original license. Here we list some of them. #### gluon.contrib.simplejson LICENSE Copyright (c) 2006 Bob Ippolito - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #### gluon.contrib.rss2.py (originally PyRSS2Gen) LICENSE This is copyright (c) by Dalke Scientific Software, LLC and released under the BSD license. See the file LICENSE in the distribution or <http://www.opensource.org/licenses/bsd-license.php> for details. #### gluon.contrib.markdown (markdown2) LICENSE MIT License from from <http://code.google.com/p/python-markdown2/> #### gluon.contrib.feedparser LICENSE Copyright (c) 2002-2005, Mark Pilgrim All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #### gluon.wsgiserver.py LICENSE (borrowed from cherrypy) Copyright (c) 2004, CherryPy Team (team@cherrypy.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the CherryPy Team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #### gluon.contrib.pam LICENSE Copyright (C) 2007-2009 Chris AtLee <chris@atlee.ca> Licensed under the MIT license #### gluon.contrib.shell LICENSE Copyright (C) by Google inc. Apache 2.0 Lincense #### The javascript licenses are in the code itself |
Added applications/admin/__init__.py version [da39a3ee5e].
Added applications/admin/controllers/appadmin.py version [1eb6fe022d].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 | # -*- coding: utf-8 -*- # ########################################################## # ## make sure administrator is on localhost # ########################################################### import os import socket import datetime import copy import gluon.contenttype import gluon.fileutils # ## critical --- make a copy of the environment global_env = copy.copy(globals()) global_env['datetime'] = datetime http_host = request.env.http_host.split(':')[0] remote_addr = request.env.remote_addr try: hosts = (http_host, socket.gethostname(), socket.gethostbyname(http_host), '::1','127.0.0.1','::ffff:127.0.0.1') except: hosts = (http_host, ) if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\ in ['https', 'HTTPS']: session.secure() elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"): raise HTTP(200, T('appadmin is disabled because insecure channel')) if (request.application=='admin' and not session.authorized) or \ (request.application!='admin' and not gluon.fileutils.check_credentials(request)): redirect(URL('admin', 'default', 'index')) ignore_rw = True response.view = 'appadmin.html' response.menu = [[T('design'), False, URL('admin', 'default', 'design', args=[request.application])], [T('db'), False, URL('index')], [T('state'), False, URL('state')], [T('cache'), False, URL('ccache')]] # ########################################################## # ## auxiliary functions # ########################################################### def get_databases(request): dbs = {} for (key, value) in global_env.items(): cond = False try: cond = isinstance(value, GQLDB) except: cond = isinstance(value, SQLDB) if cond: dbs[key] = value return dbs databases = get_databases(None) def eval_in_global_env(text): exec ('_ret=%s' % text, {}, global_env) return global_env['_ret'] def get_database(request): if request.args and request.args[0] in databases: return eval_in_global_env(request.args[0]) else: session.flash = T('invalid request') redirect(URL('index')) def get_table(request): db = get_database(request) if len(request.args) > 1 and request.args[1] in db.tables: return (db, request.args[1]) else: session.flash = T('invalid request') redirect(URL('index')) def get_query(request): try: return eval_in_global_env(request.vars.query) except Exception: return None def query_by_table_type(tablename,db,request=request): keyed = hasattr(db[tablename],'_primarykey') if keyed: firstkey = db[tablename][db[tablename]._primarykey[0]] cond = '>0' if firstkey.type in ['string', 'text']: cond = '!=""' qry = '%s.%s.%s%s' % (request.args[0], request.args[1], firstkey.name, cond) else: qry = '%s.%s.id>0' % tuple(request.args[:2]) return qry # ########################################################## # ## list all databases and tables # ########################################################### def index(): return dict(databases=databases) # ########################################################## # ## insert a new record # ########################################################### def insert(): (db, table) = get_table(request) form = SQLFORM(db[table], ignore_rw=ignore_rw) if form.accepts(request.vars, session): response.flash = T('new record inserted') return dict(form=form,table=db[table]) # ########################################################## # ## list all records in table and insert new record # ########################################################### def download(): import os db = get_database(request) return response.download(request,db) def csv(): import gluon.contenttype response.headers['Content-Type'] = \ gluon.contenttype.contenttype('.csv') db = get_database(request) query = get_query(request) if not query: return None response.headers['Content-disposition'] = 'attachment; filename=%s_%s.csv'\ % tuple(request.vars.query.split('.')[:2]) return str(db(query).select()) def import_csv(table, file): table.import_from_csv_file(file) def select(): import re db = get_database(request) dbname = request.args[0] regex = re.compile('(?P<table>\w+)\.(?P<field>\w+)=(?P<value>\d+)') if len(request.args)>1 and hasattr(db[request.args[1]],'_primarykey'): regex = re.compile('(?P<table>\w+)\.(?P<field>\w+)=(?P<value>.+)') if request.vars.query: match = regex.match(request.vars.query) if match: request.vars.query = '%s.%s.%s==%s' % (request.args[0], match.group('table'), match.group('field'), match.group('value')) else: request.vars.query = session.last_query query = get_query(request) if request.vars.start: start = int(request.vars.start) else: start = 0 nrows = 0 stop = start + 100 table = None rows = [] orderby = request.vars.orderby if orderby: orderby = dbname + '.' + orderby if orderby == session.last_orderby: if orderby[0] == '~': orderby = orderby[1:] else: orderby = '~' + orderby session.last_orderby = orderby session.last_query = request.vars.query form = FORM(TABLE(TR(T('Query:'), '', INPUT(_style='width:400px', _name='query', _value=request.vars.query or '', requires=IS_NOT_EMPTY(error_message=T("Cannot be empty")))), TR(T('Update:'), INPUT(_name='update_check', _type='checkbox', value=False), INPUT(_style='width:400px', _name='update_fields', _value=request.vars.update_fields or '')), TR(T('Delete:'), INPUT(_name='delete_check', _class='delete', _type='checkbox', value=False), ''), TR('', '', INPUT(_type='submit', _value='submit'))), _action=URL(r=request,args=request.args)) if request.vars.csvfile != None: try: import_csv(db[request.vars.table], request.vars.csvfile.file) response.flash = T('data uploaded') except Exception, e: response.flash = DIV(T('unable to parse csv file'),PRE(str(e))) if form.accepts(request.vars, formname=None): # regex = re.compile(request.args[0] + '\.(?P<table>\w+)\.id\>0') regex = re.compile(request.args[0] + '\.(?P<table>\w+)\..+') match = regex.match(form.vars.query.strip()) if match: table = match.group('table') try: nrows = db(query).count() if form.vars.update_check and form.vars.update_fields: db(query).update(**eval_in_global_env('dict(%s)' % form.vars.update_fields)) response.flash = T('%s rows updated', nrows) elif form.vars.delete_check: db(query).delete() response.flash = T('%s rows deleted', nrows) nrows = db(query).count() if orderby: rows = db(query).select(limitby=(start, stop), orderby=eval_in_global_env(orderby)) else: rows = db(query).select(limitby=(start, stop)) except Exception, e: (rows, nrows) = ([], 0) response.flash = DIV(T('Invalid Query'),PRE(str(e))) return dict( form=form, table=table, start=start, stop=stop, nrows=nrows, rows=rows, query=request.vars.query, ) # ########################################################## # ## edit delete one record # ########################################################### def update(): (db, table) = get_table(request) keyed = hasattr(db[table],'_primarykey') record = None if keyed: key = [f for f in request.vars if f in db[table]._primarykey] if key: record = db(db[table][key[0]] == request.vars[key[0]]).select().first() else: record = db(db[table].id == request.args(2)).select().first() if not record: qry = query_by_table_type(table, db) session.flash = T('record does not exist') redirect(URL('select', args=request.args[:1], vars=dict(query=qry))) if keyed: for k in db[table]._primarykey: db[table][k].writable=False form = SQLFORM(db[table], record, deletable=True, delete_label=T('Check to delete'), ignore_rw=ignore_rw and not keyed, linkto=URL('select', args=request.args[:1]), upload=URL(r=request, f='download', args=request.args[:1])) if form.accepts(request.vars, session): session.flash = T('done!') qry = query_by_table_type(table, db) redirect(URL('select', args=request.args[:1], vars=dict(query=qry))) return dict(form=form,table=db[table]) # ########################################################## # ## get global variables # ########################################################### def state(): return dict() def ccache(): form = FORM( P(TAG.BUTTON("Clear CACHE?", _type="submit", _name="yes", _value="yes")), P(TAG.BUTTON("Clear RAM", _type="submit", _name="ram", _value="ram")), P(TAG.BUTTON("Clear DISK", _type="submit", _name="disk", _value="disk")), ) if form.accepts(request.vars, session): clear_ram = False clear_disk = False session.flash = "" if request.vars.yes: clear_ram = clear_disk = True if request.vars.ram: clear_ram = True if request.vars.disk: clear_disk = True if clear_ram: cache.ram.clear() session.flash += "Ram Cleared " if clear_disk: cache.disk.clear() session.flash += "Disk Cleared" redirect(URL(r=request)) try: from guppy import hpy; hp=hpy() except ImportError: hp = False import shelve, os, copy, time, math from gluon import portalocker ram = { 'bytes': 0, 'objects': 0, 'hits': 0, 'misses': 0, 'ratio': 0, 'oldest': time.time() } disk = copy.copy(ram) total = copy.copy(ram) for key, value in cache.ram.storage.items(): if isinstance(value, dict): ram['hits'] = value['hit_total'] - value['misses'] ram['misses'] = value['misses'] try: ram['ratio'] = ram['hits'] * 100 / value['hit_total'] except (KeyError, ZeroDivisionError): ram['ratio'] = 0 else: if hp: ram['bytes'] += hp.iso(value[1]).size ram['objects'] += hp.iso(value[1]).count if value[0] < ram['oldest']: ram['oldest'] = value[0] locker = open(os.path.join(request.folder, 'cache/cache.lock'), 'a') portalocker.lock(locker, portalocker.LOCK_EX) disk_storage = shelve.open(os.path.join(request.folder, 'cache/cache.shelve')) try: for key, value in disk_storage.items(): if isinstance(value, dict): disk['hits'] = value['hit_total'] - value['misses'] disk['misses'] = value['misses'] try: disk['ratio'] = disk['hits'] * 100 / value['hit_total'] except (KeyError, ZeroDivisionError): disk['ratio'] = 0 else: if hp: disk['bytes'] += hp.iso(value[1]).size disk['objects'] += hp.iso(value[1]).count if value[0] < disk['oldest']: disk['oldest'] = value[0] finally: portalocker.unlock(locker) locker.close() disk_storage.close() total['bytes'] = ram['bytes'] + disk['bytes'] total['objects'] = ram['objects'] + disk['objects'] total['hits'] = ram['hits'] + disk['hits'] total['misses'] = ram['misses'] + disk['misses'] try: total['ratio'] = total['hits'] * 100 / (total['hits'] + total['misses']) except (KeyError, ZeroDivisionError): total['ratio'] = 0 if disk['oldest'] < ram['oldest']: total['oldest'] = disk['oldest'] else: total['oldest'] = ram['oldest'] def GetInHMS(seconds): hours = math.floor(seconds / 3600) seconds -= hours * 3600 minutes = math.floor(seconds / 60) seconds -= minutes * 60 seconds = math.floor(seconds) return (hours, minutes, seconds) ram['oldest'] = GetInHMS(time.time() - ram['oldest']) disk['oldest'] = GetInHMS(time.time() - disk['oldest']) total['oldest'] = GetInHMS(time.time() - total['oldest']) return dict(form=form, total=total, ram=ram, disk=disk) |
Added applications/admin/controllers/default.py version [a84fa2354b].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 | # coding: utf8 from gluon.admin import * from gluon.fileutils import abspath, read_file, write_file from glob import glob import shutil import platform if DEMO_MODE and request.function in ['change_password','pack','pack_plugin','upgrade_web2py','uninstall','cleanup','compile_app','remove_compiled_app','delete','delete_plugin','create_file','upload_file','update_languages','reload_routes']: session.flash = T('disabled in demo mode') redirect(URL('site')) if not is_manager() and request.function in ['change_password','upgrade_web2py']: session.flash = T('disabled in multi user mode') redirect(URL('site')) if FILTER_APPS and request.args(0) and not request.args(0) in FILTER_APPS: session.flash = T('disabled in demo mode') redirect(URL('site')) def safe_open(a,b): if DEMO_MODE and 'w' in b: class tmp: def write(self,data): pass return tmp() return open(a,b) def safe_read(a, b='r'): safe_file = safe_open(a, b) try: return safe_file.read() finally: safe_file.close() def safe_write(a, value, b='w'): safe_file = safe_open(a, b) try: safe_file.write(value) finally: safe_file.close() def get_app(name=None): app = name or request.args(0) if app and (not MULTI_USER_MODE or db(db.app.name==app)(db.app.owner==auth.user.id).count()): return app session.flash = 'App does not exist or your are not authorized' redirect(URL('site')) def index(): """ Index handler """ send = request.vars.send if DEMO_MODE: session.authorized = True session.last_time = t0 if not send: send = URL('site') if session.authorized: redirect(send) elif request.vars.password: if verify_password(request.vars.password): session.authorized = True login_record(True) if CHECK_VERSION: session.check_version = True else: session.check_version = False session.last_time = t0 if isinstance(send, list): # ## why does this happen? send = str(send[0]) redirect(send) else: times_denied = login_record(False) if times_denied >= allowed_number_of_attempts: response.flash = \ T('admin disabled because too many invalid login attempts') elif times_denied == allowed_number_of_attempts - 1: response.flash = \ T('You have one more login attempt before you are locked out') else: response.flash = T('invalid password.') return dict(send=send) def check_version(): """ Checks if web2py is up to date """ session.forget() session._unlock(response) new_version, version_number = check_new_version(request.env.web2py_version, WEB2PY_VERSION_URL) if new_version == -1: return A(T('Unable to check for upgrades'), _href=WEB2PY_URL) elif new_version != True: return A(T('web2py is up to date'), _href=WEB2PY_URL) elif platform.system().lower() in ('windows','win32','win64') and os.path.exists("web2py.exe"): return SPAN('You should upgrade to version %s' % version_number) else: return sp_button(URL('upgrade_web2py'), T('upgrade now')) \ + XML(' <strong class="upgrade_version">%s</strong>' % version_number) def logout(): """ Logout handler """ session.authorized = None if MULTI_USER_MODE: redirect(URL('user/logout')) redirect(URL('index')) def change_password(): if session.pam_user: session.flash = T('PAM authenticated user, cannot change password here') redirect(URL('site')) form=SQLFORM.factory(Field('current_admin_password','password'), Field('new_admin_password','password',requires=IS_STRONG()), Field('new_admin_password_again','password')) if form.accepts(request.vars): if not verify_password(request.vars.current_admin_password): form.errors.current_admin_password = T('invalid password') elif form.vars.new_admin_password != form.vars.new_admin_password_again: form.errors.new_admin_password_again = T('no match') else: path = abspath('parameters_%s.py' % request.env.server_port) safe_write(path, 'password="%s"' % CRYPT()(request.vars.new_admin_password)[0]) session.flash = T('password changed') redirect(URL('site')) return dict(form=form) def site(): """ Site handler """ myversion = request.env.web2py_version # Shortcut to make the elif statements more legible file_or_appurl = 'file' in request.vars or 'appurl' in request.vars if DEMO_MODE: pass elif request.vars.filename and not 'file' in request.vars: # create a new application appname = cleanpath(request.vars.filename).replace('.', '_') if app_create(appname, request): if MULTI_USER_MODE: db.app.insert(name=appname,owner=auth.user.id) session.flash = T('new application "%s" created', appname) redirect(URL('design',args=appname)) else: session.flash = \ T('unable to create application "%s" (it may exist already)', request.vars.filename) redirect(URL(r=request)) elif file_or_appurl and not request.vars.filename: # can't do anything without an app name msg = 'you must specify a name for the uploaded application' response.flash = T(msg) elif file_or_appurl and request.vars.filename: # fetch an application via URL or file upload f = None if request.vars.appurl is not '': try: f = urllib.urlopen(request.vars.appurl) except Exception, e: session.flash = DIV(T('Unable to download app because:'),PRE(str(e))) redirect(URL(r=request)) fname = request.vars.appurl elif request.vars.file is not '': f = request.vars.file.file fname = request.vars.file.filename if f: appname = cleanpath(request.vars.filename).replace('.', '_') installed = app_install(appname, f, request, fname, overwrite=request.vars.overwrite_check) if f and installed: msg = 'application %(appname)s installed with md5sum: %(digest)s' session.flash = T(msg, dict(appname=appname, digest=md5_hash(installed))) elif f and request.vars.overwrite_check: msg = 'unable to install application "%(appname)s"' session.flash = T(msg, dict(appname=request.vars.filename)) else: msg = 'unable to install application "%(appname)s"' session.flash = T(msg, dict(appname=request.vars.filename)) redirect(URL(r=request)) regex = re.compile('^\w+$') if is_manager(): apps = [f for f in os.listdir(apath(r=request)) if regex.match(f)] else: apps = [f.name for f in db(db.app.owner==auth.user_id).select()] if FILTER_APPS: apps = [f for f in apps if f in FILTER_APPS] apps = sorted(apps,lambda a,b:cmp(a.upper(),b.upper())) return dict(app=None, apps=apps, myversion=myversion) def pack(): app = get_app() if len(request.args) == 1: fname = 'web2py.app.%s.w2p' % app filename = app_pack(app, request) else: fname = 'web2py.app.%s.compiled.w2p' % app filename = app_pack_compiled(app, request) if filename: response.headers['Content-Type'] = 'application/w2p' disposition = 'attachment; filename=%s' % fname response.headers['Content-Disposition'] = disposition return safe_read(filename, 'rb') else: session.flash = T('internal error') redirect(URL('site')) def pack_plugin(): app = get_app() if len(request.args) == 2: fname = 'web2py.plugin.%s.w2p' % request.args[1] filename = plugin_pack(app, request.args[1], request) if filename: response.headers['Content-Type'] = 'application/w2p' disposition = 'attachment; filename=%s' % fname response.headers['Content-Disposition'] = disposition return safe_read(filename, 'rb') else: session.flash = T('internal error') redirect(URL('plugin',args=request.args)) def upgrade_web2py(): if 'upgrade' in request.vars: (success, error) = upgrade(request) if success: session.flash = T('web2py upgraded; please restart it') else: session.flash = T('unable to upgrade because "%s"', error) redirect(URL('site')) elif 'noupgrade' in request.vars: redirect(URL('site')) return dict() def uninstall(): app = get_app() if 'delete' in request.vars: if MULTI_USER_MODE: if is_manager() and db(db.app.name==app).delete(): pass elif db(db.app.name==app)(db.app.owner==auth.user.id).delete(): pass else: session.flash = T('no permission to uninstall "%s"', app) redirect(URL('site')) if app_uninstall(app, request): session.flash = T('application "%s" uninstalled', app) else: session.flash = T('unable to uninstall "%s"', app) redirect(URL('site')) elif 'nodelete' in request.vars: redirect(URL('site')) return dict(app=app) def cleanup(): app = get_app() clean = app_cleanup(app, request) if not clean: session.flash = T("some files could not be removed") else: session.flash = T('cache, errors and sessions cleaned') redirect(URL('site')) def compile_app(): app = get_app() c = app_compile(app, request) if not c: session.flash = T('application compiled') else: session.flash = DIV(T('Cannot compile: there are errors in your app:'), CODE(c)) redirect(URL('site')) def remove_compiled_app(): """ Remove the compiled application """ app = get_app() remove_compiled_application(apath(app, r=request)) session.flash = T('compiled application removed') redirect(URL('site')) def delete(): """ Object delete handler """ app = get_app() filename = '/'.join(request.args) sender = request.vars.sender if isinstance(sender, list): # ## fix a problem with Vista sender = sender[0] if 'nodelete' in request.vars: redirect(URL(sender)) elif 'delete' in request.vars: try: os.unlink(apath(filename, r=request)) session.flash = T('file "%(filename)s" deleted', dict(filename=filename)) except Exception: session.flash = T('unable to delete file "%(filename)s"', dict(filename=filename)) redirect(URL(sender)) return dict(filename=filename, sender=sender) def peek(): """ Visualize object code """ app = get_app() filename = '/'.join(request.args) try: data = safe_read(apath(filename, r=request)).replace('\r','') except IOError: session.flash = T('file does not exist') redirect(URL('site')) extension = filename[filename.rfind('.') + 1:].lower() return dict(app=request.args[0], filename=filename, data=data, extension=extension) def test(): """ Execute controller tests """ app = get_app() if len(request.args) > 1: file = request.args[1] else: file = '.*\.py' controllers = listdir(apath('%s/controllers/' % app, r=request), file + '$') return dict(app=app, controllers=controllers) def keepalive(): return '' def search(): keywords=request.vars.keywords or '' app = get_app() def match(filename,keywords): filename=os.path.join(apath(app, r=request),filename) if keywords in read_file(filename,'rb'): return True return False path = apath(request.args[0], r=request) files1 = glob(os.path.join(path,'*/*.py')) files2 = glob(os.path.join(path,'*/*.html')) files3 = glob(os.path.join(path,'*/*/*.html')) files=[x[len(path)+1:].replace('\\','/') for x in files1+files2+files3 if match(x,keywords)] return response.json({'files':files}) def edit(): """ File edit handler """ # Load json only if it is ajax edited... app = get_app() filename = '/'.join(request.args) # Try to discover the file type if filename[-3:] == '.py': filetype = 'python' elif filename[-5:] == '.html': filetype = 'html' elif filename[-5:] == '.load': filetype = 'html' elif filename[-4:] == '.css': filetype = 'css' elif filename[-3:] == '.js': filetype = 'js' else: filetype = 'html' # ## check if file is not there path = apath(filename, r=request) if request.vars.revert and os.path.exists(path + '.bak'): try: data = safe_read(path + '.bak') data1 = safe_read(path) except IOError: session.flash = T('Invalid action') if 'from_ajax' in request.vars: return response.json({'error': str(T('Invalid action'))}) else: redirect(URL('site')) safe_write(path, data) file_hash = md5_hash(data) saved_on = time.ctime(os.stat(path)[stat.ST_MTIME]) safe_write(path + '.bak', data1) response.flash = T('file "%s" of %s restored', (filename, saved_on)) else: try: data = safe_read(path) except IOError: session.flash = T('Invalid action') if 'from_ajax' in request.vars: return response.json({'error': str(T('Invalid action'))}) else: redirect(URL('site')) file_hash = md5_hash(data) saved_on = time.ctime(os.stat(path)[stat.ST_MTIME]) if request.vars.file_hash and request.vars.file_hash != file_hash: session.flash = T('file changed on disk') data = request.vars.data.replace('\r\n', '\n').strip() + '\n' safe_write(path + '.1', data) if 'from_ajax' in request.vars: return response.json({'error': str(T('file changed on disk')), 'redirect': URL('resolve', args=request.args)}) else: redirect(URL('resolve', args=request.args)) elif request.vars.data: safe_write(path + '.bak', data) data = request.vars.data.replace('\r\n', '\n').strip() + '\n' safe_write(path, data) file_hash = md5_hash(data) saved_on = time.ctime(os.stat(path)[stat.ST_MTIME]) response.flash = T('file saved on %s', saved_on) data_or_revert = (request.vars.data or request.vars.revert) # Check compile errors highlight = None if filetype == 'python' and request.vars.data: import _ast try: code = request.vars.data.rstrip().replace('\r\n','\n')+'\n' compile(code, path, "exec", _ast.PyCF_ONLY_AST) except Exception, e: start = sum([len(line)+1 for l, line in enumerate(request.vars.data.split("\n")) if l < e.lineno-1]) if e.text and e.offset: offset = e.offset - (len(e.text) - len(e.text.splitlines()[-1])) else: offset = 0 highlight = {'start': start, 'end': start + offset + 1} try: ex_name = e.__class__.__name__ except: ex_name = 'unknown exception!' response.flash = DIV(T('failed to compile file because:'), BR(), B(ex_name), T(' at line %s') % e.lineno, offset and T(' at char %s') % offset or '', PRE(str(e))) if data_or_revert and request.args[1] == 'modules': # Lets try to reload the modules try: mopath = '.'.join(request.args[2:])[:-3] exec 'import applications.%s.modules.%s' % (request.args[0], mopath) reload(sys.modules['applications.%s.modules.%s' % (request.args[0], mopath)]) except Exception, e: response.flash = DIV(T('failed to reload module because:'),PRE(str(e))) edit_controller = None editviewlinks = None view_link = None if filetype == 'html' and len(request.args) >= 3: cfilename = os.path.join(request.args[0], 'controllers', request.args[2] + '.py') if os.path.exists(apath(cfilename, r=request)): edit_controller = URL('edit', args=[cfilename]) view = request.args[3].replace('.html','') view_link = URL(request.args[0],request.args[2],view) elif filetype == 'python' and request.args[1] == 'controllers': ## it's a controller file. ## Create links to all of the associated view files. app = get_app() viewname = os.path.splitext(request.args[2])[0] viewpath = os.path.join(app,'views',viewname) aviewpath = apath(viewpath, r=request) viewlist = [] if os.path.exists(aviewpath): if os.path.isdir(aviewpath): viewlist = glob(os.path.join(aviewpath,'*.html')) elif os.path.exists(aviewpath+'.html'): viewlist.append(aviewpath+'.html') if len(viewlist): editviewlinks = [] for v in viewlist: vf = os.path.split(v)[-1] vargs = "/".join([viewpath.replace(os.sep,"/"),vf]) editviewlinks.append(A(T(vf.split(".")[0]),\ _href=URL('edit',args=[vargs]))) if len(request.args) > 2 and request.args[1] == 'controllers': controller = (request.args[2])[:-3] functions = regex_expose.findall(data) else: (controller, functions) = (None, None) if 'from_ajax' in request.vars: return response.json({'file_hash': file_hash, 'saved_on': saved_on, 'functions':functions, 'controller': controller, 'application': request.args[0], 'highlight': highlight }) else: editarea_preferences = {} editarea_preferences['FONT_SIZE'] = '10' editarea_preferences['FULL_SCREEN'] = 'false' editarea_preferences['ALLOW_TOGGLE'] = 'true' editarea_preferences['REPLACE_TAB_BY_SPACES'] = '4' editarea_preferences['DISPLAY'] = 'onload' for key in editarea_preferences: if globals().has_key(key): editarea_preferences[key]=globals()[key] return dict(app=request.args[0], filename=filename, filetype=filetype, data=data, edit_controller=edit_controller, file_hash=file_hash, saved_on=saved_on, controller=controller, functions=functions, view_link=view_link, editarea_preferences=editarea_preferences, editviewlinks=editviewlinks) def resolve(): """ """ filename = '/'.join(request.args) # ## check if file is not there path = apath(filename, r=request) a = safe_read(path).split('\n') try: b = safe_read(path + '.1').split('\n') except IOError: session.flash = 'Other file, no longer there' redirect(URL('edit', args=request.args)) d = difflib.ndiff(a, b) def leading(line): """ """ # TODO: we really need to comment this z = '' for (k, c) in enumerate(line): if c == ' ': z += ' ' elif c == ' \t': z += ' ' elif k == 0 and c == '?': pass else: break return XML(z) def getclass(item): """ Determine item class """ if item[0] == ' ': return 'normal' if item[0] == '+': return 'plus' if item[0] == '-': return 'minus' if request.vars: c = ''.join([item[2:] for (i, item) in enumerate(d) if item[0] \ == ' ' or 'line%i' % i in request.vars]) safe_write(path, c) session.flash = 'files merged' redirect(URL('edit', args=request.args)) else: # Making the short circuit compatible with <= python2.4 gen_data = lambda index,item: not item[:1] in ['+','-'] and "" \ or INPUT(_type='checkbox', _name='line%i' % index, value=item[0] == '+') diff = TABLE(*[TR(TD(gen_data(i,item)), TD(item[0]), TD(leading(item[2:]), TT(item[2:].rstrip())), _class=getclass(item)) for (i, item) in enumerate(d) if item[0] != '?']) return dict(diff=diff, filename=filename) def edit_language(): """ Edit language file """ app = get_app() filename = '/'.join(request.args) from gluon.languages import read_dict, write_dict strings = read_dict(apath(filename, r=request)) keys = sorted(strings.keys(),lambda x,y: cmp(x.lower(), y.lower())) rows = [] rows.append(H2(T('Original/Translation'))) for key in keys: name = md5_hash(key) if key==strings[key]: _class='untranslated' else: _class='translated' if len(key) <= 40: elem = INPUT(_type='text', _name=name,value=strings[key], _size=70,_class=_class) else: elem = TEXTAREA(_name=name, value=strings[key], _cols=70, _rows=5, _class=_class) # Making the short circuit compatible with <= python2.4 k = (strings[key] != key) and key or B(key) rows.append(P(k, BR(), elem, TAG.BUTTON(T('delete'), _onclick='return delkey("%s")' % name), _id=name)) rows.append(INPUT(_type='submit', _value=T('update'))) form = FORM(*rows) if form.accepts(request.vars, keepvalues=True): strs = dict() for key in keys: name = md5_hash(key) if form.vars[name]==chr(127): continue strs[key] = form.vars[name] write_dict(apath(filename, r=request), strs) session.flash = T('file saved on %(time)s', dict(time=time.ctime())) redirect(URL(r=request,args=request.args)) return dict(app=request.args[0], filename=filename, form=form) def about(): """ Read about info """ app = get_app() # ## check if file is not there about = safe_read(apath('%s/ABOUT' % app, r=request)) license = safe_read(apath('%s/LICENSE' % app, r=request)) return dict(app=app, about=MARKMIN(about), license=MARKMIN(license)) def design(): """ Application design handler """ app = get_app() if not response.flash and app == request.application: msg = T('ATTENTION: you cannot edit the running application!') response.flash = msg if request.vars.pluginfile!=None and not isinstance(request.vars.pluginfile,str): filename=os.path.basename(request.vars.pluginfile.filename) if plugin_install(app, request.vars.pluginfile.file, request, filename): session.flash = T('new plugin installed') redirect(URL('design',args=app)) else: session.flash = \ T('unable to create application "%s"', request.vars.filename) redirect(URL(r=request)) elif isinstance(request.vars.pluginfile,str): session.flash = T('plugin not specified') redirect(URL(r=request)) # If we have only pyc files it means that # we cannot design if os.path.exists(apath('%s/compiled' % app, r=request)): session.flash = \ T('application is compiled and cannot be designed') redirect(URL('site')) # Get all models models = listdir(apath('%s/models/' % app, r=request), '.*\.py$') models=[x.replace('\\','/') for x in models] defines = {} for m in models: data = safe_read(apath('%s/models/%s' % (app, m), r=request)) defines[m] = regex_tables.findall(data) defines[m].sort() # Get all controllers controllers = sorted(listdir(apath('%s/controllers/' % app, r=request), '.*\.py$')) controllers = [x.replace('\\','/') for x in controllers] functions = {} for c in controllers: data = safe_read(apath('%s/controllers/%s' % (app, c), r=request)) items = regex_expose.findall(data) functions[c] = items # Get all views views = sorted(listdir(apath('%s/views/' % app, r=request), '[\w/\-]+\.\w+$')) views = [x.replace('\\','/') for x in views] extend = {} include = {} for c in views: data = safe_read(apath('%s/views/%s' % (app, c), r=request)) items = regex_extend.findall(data) if items: extend[c] = items[0][1] items = regex_include.findall(data) include[c] = [i[1] for i in items] # Get all modules modules = listdir(apath('%s/modules/' % app, r=request), '.*\.py$') modules = modules=[x.replace('\\','/') for x in modules] modules.sort() # Get all static files statics = listdir(apath('%s/static/' % app, r=request), '[^\.#].*') statics = [x.replace('\\','/') for x in statics] statics.sort() # Get all languages languages = listdir(apath('%s/languages/' % app, r=request), '[\w-]*\.py') #Get crontab cronfolder = apath('%s/cron' % app, r=request) if not os.path.exists(cronfolder): os.mkdir(cronfolder) crontab = apath('%s/cron/crontab' % app, r=request) if not os.path.exists(crontab): safe_write(crontab, '#crontab') plugins=[] def filter_plugins(items,plugins): plugins+=[item[7:].split('/')[0].split('.')[0] for item in items if item.startswith('plugin_')] plugins[:]=list(set(plugins)) plugins.sort() return [item for item in items if not item.startswith('plugin_')] return dict(app=app, models=filter_plugins(models,plugins), defines=defines, controllers=filter_plugins(controllers,plugins), functions=functions, views=filter_plugins(views,plugins), modules=filter_plugins(modules,plugins), extend=extend, include=include, statics=filter_plugins(statics,plugins), languages=languages, crontab=crontab, plugins=plugins) def delete_plugin(): """ Object delete handler """ app=request.args(0) plugin = request.args(1) plugin_name='plugin_'+plugin if 'nodelete' in request.vars: redirect(URL('design',args=app)) elif 'delete' in request.vars: try: for folder in ['models','views','controllers','static','modules']: path=os.path.join(apath(app,r=request),folder) for item in os.listdir(path): if item.startswith(plugin_name): filename=os.path.join(path,item) if os.path.isdir(filename): shutil.rmtree(filename) else: os.unlink(filename) session.flash = T('plugin "%(plugin)s" deleted', dict(plugin=plugin)) except Exception: session.flash = T('unable to delete file plugin "%(plugin)s"', dict(plugin=plugin)) redirect(URL('design',args=request.args(0))) return dict(plugin=plugin) def plugin(): """ Application design handler """ app = get_app() plugin = request.args(1) if not response.flash and app == request.application: msg = T('ATTENTION: you cannot edit the running application!') response.flash = msg # If we have only pyc files it means that # we cannot design if os.path.exists(apath('%s/compiled' % app, r=request)): session.flash = \ T('application is compiled and cannot be designed') redirect(URL('site')) # Get all models models = listdir(apath('%s/models/' % app, r=request), '.*\.py$') models=[x.replace('\\','/') for x in models] defines = {} for m in models: data = safe_read(apath('%s/models/%s' % (app, m), r=request)) defines[m] = regex_tables.findall(data) defines[m].sort() # Get all controllers controllers = sorted(listdir(apath('%s/controllers/' % app, r=request), '.*\.py$')) controllers = [x.replace('\\','/') for x in controllers] functions = {} for c in controllers: data = safe_read(apath('%s/controllers/%s' % (app, c), r=request)) items = regex_expose.findall(data) functions[c] = items # Get all views views = sorted(listdir(apath('%s/views/' % app, r=request), '[\w/\-]+\.\w+$')) views = [x.replace('\\','/') for x in views] extend = {} include = {} for c in views: data = safe_read(apath('%s/views/%s' % (app, c), r=request)) items = regex_extend.findall(data) if items: extend[c] = items[0][1] items = regex_include.findall(data) include[c] = [i[1] for i in items] # Get all modules modules = listdir(apath('%s/modules/' % app, r=request), '.*\.py$') modules = modules=[x.replace('\\','/') for x in modules] modules.sort() # Get all static files statics = listdir(apath('%s/static/' % app, r=request), '[^\.#].*') statics = [x.replace('\\','/') for x in statics] statics.sort() # Get all languages languages = listdir(apath('%s/languages/' % app, r=request), '[\w-]*\.py') #Get crontab crontab = apath('%s/cron/crontab' % app, r=request) if not os.path.exists(crontab): safe_write(crontab, '#crontab') def filter_plugins(items): regex=re.compile('^plugin_'+plugin+'(/.*|\..*)?$') return [item for item in items if regex.match(item)] return dict(app=app, models=filter_plugins(models), defines=defines, controllers=filter_plugins(controllers), functions=functions, views=filter_plugins(views), modules=filter_plugins(modules), extend=extend, include=include, statics=filter_plugins(statics), languages=languages, crontab=crontab) def create_file(): """ Create files handler """ try: app = get_app(name=request.vars.location.split('/')[0]) path = apath(request.vars.location, r=request) filename = re.sub('[^\w./-]+', '_', request.vars.filename) if path[-11:] == '/languages/': # Handle language files if len(filename) == 0: raise SyntaxError if not filename[-3:] == '.py': filename += '.py' app = path.split('/')[-3] path=os.path.join(apath(app, r=request),'languages',filename) if not os.path.exists(path): safe_write(path, '') findT(apath(app, r=request), filename[:-3]) session.flash = T('language file "%(filename)s" created/updated', dict(filename=filename)) redirect(request.vars.sender) elif path[-8:] == '/models/': # Handle python models if not filename[-3:] == '.py': filename += '.py' if len(filename) == 3: raise SyntaxError text = '# coding: utf8\n' elif path[-13:] == '/controllers/': # Handle python controllers if not filename[-3:] == '.py': filename += '.py' if len(filename) == 3: raise SyntaxError text = '# coding: utf8\n# %s\ndef index(): return dict(message="hello from %s")' text = text % (T('try something like'), filename) elif path[-7:] == '/views/': if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin): filename = 'plugin_%s/%s' % (request.vars.plugin, filename) # Handle template (html) views if filename.find('.')<0: filename += '.html' extension = filename.split('.')[-1].lower() if len(filename) == 5: raise SyntaxError msg = T('This is the %(filename)s template', dict(filename=filename)) if extension == 'html': text = dedent(""" {{extend 'layout.html'}} <h1>%s</h1> {{=BEAUTIFY(response._vars)}}""" % msg) else: generic = os.path.join(path,'generic.'+extension) if os.path.exists(generic): text = read_file(generic) else: text = '' elif path[-9:] == '/modules/': if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin): filename = 'plugin_%s/%s' % (request.vars.plugin, filename) # Handle python module files if not filename[-3:] == '.py': filename += '.py' if len(filename) == 3: raise SyntaxError text = dedent(""" #!/usr/bin/env python # coding: utf8 from gluon import *\n""") elif path[-8:] == '/static/': if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin): filename = 'plugin_%s/%s' % (request.vars.plugin, filename) text = '' else: redirect(request.vars.sender) full_filename = os.path.join(path, filename) dirpath = os.path.dirname(full_filename) if not os.path.exists(dirpath): os.makedirs(dirpath) if os.path.exists(full_filename): raise SyntaxError safe_write(full_filename, text) session.flash = T('file "%(filename)s" created', dict(filename=full_filename[len(path):])) redirect(URL('edit', args=[os.path.join(request.vars.location, filename)])) except Exception, e: if not isinstance(e,HTTP): session.flash = T('cannot create file') redirect(request.vars.sender) def upload_file(): """ File uploading handler """ try: filename = None app = get_app(name=request.vars.location.split('/')[0]) path = apath(request.vars.location, r=request) if request.vars.filename: filename = re.sub('[^\w\./]+', '_', request.vars.filename) else: filename = os.path.split(request.vars.file.filename)[-1] if path[-8:] == '/models/' and not filename[-3:] == '.py': filename += '.py' if path[-9:] == '/modules/' and not filename[-3:] == '.py': filename += '.py' if path[-13:] == '/controllers/' and not filename[-3:] == '.py': filename += '.py' if path[-7:] == '/views/' and not filename[-5:] == '.html': filename += '.html' if path[-11:] == '/languages/' and not filename[-3:] == '.py': filename += '.py' filename = os.path.join(path, filename) dirpath = os.path.dirname(filename) if not os.path.exists(dirpath): os.makedirs(dirpath) safe_write(filename, request.vars.file.file.read(), 'wb') session.flash = T('file "%(filename)s" uploaded', dict(filename=filename[len(path):])) except Exception: if filename: d = dict(filename = filename[len(path):]) else: d = dict(filename = 'unkown') session.flash = T('cannot upload file "%(filename)s"', d) redirect(request.vars.sender) def errors(): """ Error handler """ import operator import os import pickle import hashlib app = get_app() method = request.args(1) or 'new' if method == 'new': errors_path = apath('%s/errors' % app, r=request) delete_hashes = [] for item in request.vars: if item[:7] == 'delete_': delete_hashes.append(item[7:]) hash2error = dict() for fn in listdir(errors_path, '^\w.*'): fullpath = os.path.join(errors_path, fn) if not os.path.isfile(fullpath): continue try: fullpath_file = open(fullpath, 'r') try: error = pickle.load(fullpath_file) finally: fullpath_file.close() except IOError: continue hash = hashlib.md5(error['traceback']).hexdigest() if hash in delete_hashes: os.unlink(fullpath) else: try: hash2error[hash]['count'] += 1 except KeyError: error_lines = error['traceback'].split("\n") last_line = error_lines[-2] error_causer = os.path.split(error['layer'])[1] hash2error[hash] = dict(count=1, pickel=error, causer=error_causer, last_line=last_line, hash=hash,ticket=fn) decorated = [(x['count'], x) for x in hash2error.values()] decorated.sort(key=operator.itemgetter(0), reverse=True) return dict(errors = [x[1] for x in decorated], app=app, method=method) else: for item in request.vars: if item[:7] == 'delete_': os.unlink(apath('%s/errors/%s' % (app, item[7:]), r=request)) func = lambda p: os.stat(apath('%s/errors/%s' % \ (app, p), r=request)).st_mtime tickets = sorted(listdir(apath('%s/errors/' % app, r=request), '^\w.*'), key=func, reverse=True) return dict(app=app, tickets=tickets, method=method) def make_link(path): """ Create a link from a path """ tryFile = path.replace('\\', '/') if os.path.isabs(tryFile) and os.path.isfile(tryFile): (folder, filename) = os.path.split(tryFile) (base, ext) = os.path.splitext(filename) app = get_app() editable = {'controllers': '.py', 'models': '.py', 'views': '.html'} for key in editable.keys(): check_extension = folder.endswith("%s/%s" % (app,key)) if ext.lower() == editable[key] and check_extension: return A('"' + tryFile + '"', _href=URL(r=request, f='edit/%s/%s/%s' % (app, key, filename))).xml() return '' def make_links(traceback): """ Make links using the given traceback """ lwords = traceback.split('"') # Making the short circuit compatible with <= python2.4 result = (len(lwords) != 0) and lwords[0] or '' i = 1 while i < len(lwords): link = make_link(lwords[i]) if link == '': result += '"' + lwords[i] else: result += link if i + 1 < len(lwords): result += lwords[i + 1] i = i + 1 i = i + 1 return result class TRACEBACK(object): """ Generate the traceback """ def __init__(self, text): """ TRACEBACK constructor """ self.s = make_links(CODE(text).xml()) def xml(self): """ Returns the xml """ return self.s def ticket(): """ Ticket handler """ if len(request.args) != 2: session.flash = T('invalid ticket') redirect(URL('site')) app = get_app() myversion = request.env.web2py_version ticket = request.args[1] e = RestrictedError() e.load(request, app, ticket) return dict(app=app, ticket=ticket, output=e.output, traceback=(e.traceback and TRACEBACK(e.traceback)), snapshot=e.snapshot, code=e.code, layer=e.layer, myversion=myversion) def error(): """ Generate a ticket (for testing) """ raise RuntimeError('admin ticket generator at your service') def update_languages(): """ Update available languages """ app = get_app() update_all_languages(apath(app, r=request)) session.flash = T('Language files (static strings) updated') redirect(URL('design',args=app)) def twitter(): session.forget() session._unlock(response) import gluon.tools import gluon.contrib.simplejson as sj try: if TWITTER_HASH: page = gluon.tools.fetch('http://twitter.com/%s?format=json'%TWITTER_HASH) return sj.loads(page)['#timeline'] else: return 'disabled' except Exception, e: return DIV(T('Unable to download because:'),BR(),str(e)) def user(): if MULTI_USER_MODE: if not db(db.auth_user).count(): auth.settings.registration_requires_approval = False return dict(form=auth()) else: return dict(form=T("Disabled")) def reload_routes(): """ Reload routes.py """ gluon.rewrite.load() redirect(URL('site')) |
Added applications/admin/controllers/gae.py version [482652b0a7].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | ### this works on linux only import re try: import fcntl import subprocess import signal import os import shutil from gluon.fileutils import read_file, write_file except: session.flash='sorry, only on Unix systems' redirect(URL(request.application,'default','site')) forever=10**8 def kill(): p = cache.ram('gae_upload',lambda:None,forever) if not p or p.poll()!=None: return 'oops' os.kill(p.pid, signal.SIGKILL) cache.ram('gae_upload',lambda:None,-1) class EXISTS(object): def __init__(self, error_message='file not found'): self.error_message = error_message def __call__(self, value): if os.path.exists(value): return (value,None) return (value,self.error_message) def deploy(): regex = re.compile('^\w+$') apps = sorted(file for file in os.listdir(apath(r=request)) if regex.match(file)) form = SQLFORM.factory( Field('appcfg',default=GAE_APPCFG,label='Path to appcfg.py', requires=EXISTS(error_message=T('file not found'))), Field('google_application_id',requires=IS_ALPHANUMERIC()), Field('applications','list:string', requires=IS_IN_SET(apps,multiple=True), label=T('web2py apps to deploy')), Field('email',requires=IS_EMAIL(),label=T('GAE Email')), Field('password','password',requires=IS_NOT_EMPTY(),label=T('GAE Password'))) cmd = output = errors= "" if form.accepts(request,session): try: kill() except: pass ignore_apps = [item for item in apps \ if not item in form.vars.applications] regex = re.compile('\(applications/\(.*') yaml = apath('../app.yaml', r=request) if not os.path.exists(yaml): example = apath('../app.example.yaml', r=request) shutil.copyfile(example,yaml) data = read_file(yaml) data = re.sub('application:.*','application: %s' % form.vars.google_application_id,data) data = regex.sub('(applications/(%s)/.*)|' % '|'.join(ignore_apps),data) write_file(yaml, data) path = request.env.applications_parent cmd = '%s --email=%s --passin update %s' % \ (form.vars.appcfg, form.vars.email, path) p = cache.ram('gae_upload', lambda s=subprocess,c=cmd:s.Popen(c, shell=True, stdin=s.PIPE, stdout=s.PIPE, stderr=s.PIPE, close_fds=True),-1) p.stdin.write(form.vars.password+'\n') fcntl.fcntl(p.stdout.fileno(), fcntl.F_SETFL, os.O_NONBLOCK) fcntl.fcntl(p.stderr.fileno(), fcntl.F_SETFL, os.O_NONBLOCK) return dict(form=form,command=cmd) def callback(): p = cache.ram('gae_upload',lambda:None,forever) if not p or p.poll()!=None: return '<done/>' try: output = p.stdout.read() except: output='' try: errors = p.stderr.read() except: errors='' return (output+errors).replace('\n','<br/>') |
Added applications/admin/controllers/mercurial.py version [1de693f43a].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | from gluon.fileutils import read_file, write_file if DEMO_MODE or MULTI_USER_MODE: session.flash = T('disabled in demo mode') redirect(URL('default','site')) if not have_mercurial: session.flash=T("Sorry, could not find mercurial installed") redirect(URL('default','design',args=request.args(0))) _hgignore_content = """\ syntax: glob *~ *.pyc *.pyo *.bak *.bak2 cache/* private/* uploads/* databases/* sessions/* errors/* """ def hg_repo(path): import os uio = ui.ui() uio.quiet = True if not os.environ.get('HGUSER') and not uio.config("ui", "username"): os.environ['HGUSER'] = 'web2py@localhost' try: repo = hg.repository(ui=uio, path=path) except: repo = hg.repository(ui=uio, path=path, create=True) hgignore = os.path.join(path, '.hgignore') if not os.path.exists(hgignore): write_file(hgignore, _hgignore_content) return repo def commit(): app = request.args(0) path = apath(app, r=request) repo = hg_repo(path) form = FORM('Comment:',INPUT(_name='comment',requires=IS_NOT_EMPTY()), INPUT(_type='submit',_value='Commit')) if form.accepts(request.vars,session): oldid = repo[repo.lookup('.')] cmdutil.addremove(repo) repo.commit(text=form.vars.comment) if repo[repo.lookup('.')] == oldid: response.flash = 'no changes' try: files = TABLE(*[TR(file) for file in repo[repo.lookup('.')].files()]) changes = TABLE(TR(TH('revision'),TH('description'))) for change in repo.changelog: ctx=repo.changectx(change) revision, description = ctx.rev(), ctx.description() changes.append(TR(A(revision,_href=URL('revision', args=(app,revision))), description)) except: files = [] changes = [] return dict(form=form,files=files,changes=changes,repo=repo) def revision(): app = request.args(0) path = apath(app, r=request) repo = hg_repo(path) revision = request.args(1) ctx=repo.changectx(revision) form=FORM(INPUT(_type='submit',_value='revert')) if form.accepts(request.vars): hg.update(repo, revision) session.flash = "reverted to revision %s" % ctx.rev() redirect(URL('default','design',args=app)) return dict( files=ctx.files(), rev=str(ctx.rev()), desc=ctx.description(), form=form ) |
Added applications/admin/controllers/shell.py version [45f3dbfd56].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | import sys import cStringIO import gluon.contrib.shell import code, thread from gluon.shell import env if DEMO_MODE or MULTI_USER_MODE: session.flash = T('disabled in demo mode') redirect(URL('default','site')) FE=10**9 def index(): app = request.args(0) or 'admin' reset() return dict(app=app) def callback(): app = request.args[0] command = request.vars.statement escape = command[:1]!='!' history = session['history:'+app] = session.get('history:'+app,gluon.contrib.shell.History()) if not escape: command = command[1:] if command == '%reset': reset() return '*** reset ***' elif command[0] == '%': try: command=session['commands:'+app][int(command[1:])] except ValueError: return '' session['commands:'+app].append(command) environ=env(app,True) output = gluon.contrib.shell.run(history,command,environ) k = len(session['commands:'+app]) - 1 #output = PRE(output) #return TABLE(TR('In[%i]:'%k,PRE(command)),TR('Out[%i]:'%k,output)) return 'In [%i] : %s%s\n' % (k + 1, command, output) def reset(): app = request.args(0) or 'admin' session['commands:'+app] = [] session['history:'+app] = gluon.contrib.shell.History() return 'done' |
Added applications/admin/controllers/toolbar.py version [f7ea6cbe56].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import os from gluon.settings import global_settings, read_file # def index(): app = request.args(0) return dict(app=app) def profiler(): """ to use the profiler start web2py with -F profiler.log """ KEY = 'web2py_profiler_size' filename = global_settings.cmd_options.profiler_filename data = 'profiler disabled' if filename: if KEY in request.cookies: size = int(request.cookies[KEY].value) else: size = 0 if os.path.exists(filename): data = read_file('profiler.log','rb') if size<len(data): data = data[size:] else: size=0 size += len(data) response.cookies[KEY] = size return data |
Added applications/admin/controllers/wizard.py version [60791b7dca].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 | # -*- coding: utf-8 -*- import os, uuid, re, pickle, urllib, glob from gluon.admin import app_create, plugin_install from gluon.fileutils import abspath, read_file, write_file def reset(session): session.app={ 'name':'', 'params':[('title','My New App'), ('subtitle','powered by web2py'), ('author','you'), ('author_email','you@example.com'), ('keywords',''), ('description',''), ('layout_theme','Default'), ('database_uri','sqlite://storage.sqlite'), ('security_key',str(uuid.uuid4())), ('email_server','localhost'), ('email_sender','you@example.com'), ('email_login',''), ('login_method','local'), ('login_config',''), ('plugins',[])], 'tables':['auth_user'], 'table_auth_user':['username','first_name','last_name','email','password'], 'pages':['index','error'], 'page_index':'# Welcome to my new app', 'page_error':'# Error: the document does not exist', } if not session.app: reset(session) def listify(x): if not isinstance(x,(list,tuple)): return x and [x] or [] return x def clean(name): return re.sub('\W+','_',name.strip().lower()) def index(): response.view='wizard/step.html' reset(session) apps=os.listdir(os.path.join(request.folder,'..')) form=SQLFORM.factory(Field('name',requires=[IS_NOT_EMPTY(),IS_ALPHANUMERIC()])) if form.accepts(request.vars): app = form.vars.name session.app['name'] = app if MULTI_USER_MODE and db(db.app.name==app)(db.app.owner!=auth.user.id).count(): session.flash = 'App belongs already to other user' elif app in apps: meta = os.path.normpath(\ os.path.join(os.path.normpath(request.folder), '..',app,'wizard.metadata')) if os.path.exists(meta): try: metafile = open(meta,'rb') try: session.app = pickle.load(metafile) finally: metafile.close() session.flash = "The app exists, was created by wizard, continue to overwrite!" except: session.flash = "The app exists, was NOT created by wizard, continue to overwrite!" redirect(URL('step1')) return dict(step='Start',form=form) def step1(): from gluon.contrib.simplejson import loads import urllib if not session.themes: url=LAYOUTS_APP+'/default/layouts.json' try: data = urllib.urlopen(url).read() session.themes = ['Default'] + loads(data)['layouts'] except: session.themes = ['Default'] themes = session.themes if not session.plugins: url = PLUGINS_APP+'/default/plugins.json' try: data = urllib.urlopen(url).read() session.plugins = loads(data)['plugins'] except: session.plugins = [] plugins = [x.split('.')[2] for x in session.plugins] response.view='wizard/step.html' params = dict(session.app['params']) form=SQLFORM.factory( Field('title',default=params.get('title',None), requires=IS_NOT_EMPTY()), Field('subtitle',default=params.get('subtitle',None)), Field('author',default=params.get('author',None)), Field('author_email',default=params.get('author_email',None)), Field('keywords',default=params.get('keywords',None)), Field('description','text', default=params.get('description',None)), Field('layout_theme',requires=IS_IN_SET(themes), default=params.get('layout_theme',themes[0])), Field('database_uri',default=params.get('database_uri',None)), Field('security_key',default=params.get('security_key',None)), Field('email_server',default=params.get('email_server',None)), Field('email_sender',default=params.get('email_sender',None)), Field('email_login',default=params.get('email_login',None)), Field('login_method',requires=IS_IN_SET(('local','janrain')), default=params.get('login_method','local')), Field('login_config',default=params.get('login_config',None)), Field('plugins','list:string',requires=IS_IN_SET(plugins,multiple=True))) if form.accepts(request.vars): session.app['params']=[(key,form.vars.get(key,None)) for key,value in session.app['params']] redirect(URL('step2')) return dict(step='1: Setting Parameters',form=form) def step2(): response.view='wizard/step.html' form=SQLFORM.factory(Field('table_names','list:string', default=session.app['tables'])) if form.accepts(request.vars): table_names = [clean(t) for t in listify(form.vars.table_names) if t.strip()] if [t for t in table_names if t.startswith('auth_') and not t=='auth_user']: form.error.table_names = T('invalid table names (auth_* tables already defined)') else: session.app['tables']=table_names for table in session.app['tables']: if not 'table_'+table in session.app: session.app['table_'+table]=['name'] if not table=='auth_user': for key in ['create','read','update','select','search']: name = table+'_'+key if not name in session.app['pages']: session.app['pages'].append(name) session.app['page_'+name]='## %s %s' % (key.capitalize(),table) if session.app['tables']: redirect(URL('step3',args=0)) else: redirect(URL('step4')) return dict(step='2: Tables',form=form) def step3(): response.view='wizard/step.html' n=int(request.args(0) or 0) m=len(session.app['tables']) if n>=m: redirect(URL('step2')) table=session.app['tables'][n] form=SQLFORM.factory(Field('field_names','list:string', default=session.app.get('table_'+table,[]))) if form.accepts(request.vars) and form.vars.field_names: fields=listify(form.vars.field_names) if table=='auth_user': for field in ['first_name','last_name','username','email','password']: if not field in fields: fields.append(field) session.app['table_'+table]=[t.strip().lower() for t in listify(form.vars.field_names) if t.strip()] try: tables=sort_tables(session.app['tables']) except RuntimeError: response.flash=T('invalid circual reference') else: if n<m-1: redirect(URL('step3',args=n+1)) else: redirect(URL('step4')) return dict(step='3: Fields for table "%s" (%s of %s)' % (table,n+1,m),table=table,form=form) def step4(): response.view='wizard/step.html' form=SQLFORM.factory(Field('pages','list:string', default=session.app['pages'])) if form.accepts(request.vars): session.app['pages']=[clean(t) for t in listify(form.vars.pages) if t.strip()] if session.app['pages']: redirect(URL('step5',args=0)) else: redirect(URL('step6')) return dict(step='4: Pages',form=form) def step5(): response.view='wizard/step.html' n=int(request.args(0) or 0) m=len(session.app['pages']) if n>=m: redirect(URL('step4')) page=session.app['pages'][n] markmin_url='http://web2py.com/examples/static/markmin.html' form=SQLFORM.factory(Field('content','text', default=session.app.get('page_'+page,[]), comment=A('use markmin',_href=markmin_url,_target='_blank')), formstyle='table2cols') if form.accepts(request.vars): session.app['page_'+page]=form.vars.content if n<m-1: redirect(URL('step5',args=n+1)) else: redirect(URL('step6')) return dict(step='5: View for page "%s" (%s of %s)' % (page,n+1,m),form=form) def step6(): response.view='wizard/step.html' params = dict(session.app['params']) app = session.app['name'] form=SQLFORM.factory( Field('generate_model','boolean',default=True), Field('generate_controller','boolean',default=True), Field('generate_views','boolean',default=True), Field('generate_menu','boolean',default=True), Field('apply_layout','boolean',default=True), Field('erase_database','boolean',default=True), Field('populate_database','boolean',default=True)) if form.accepts(request.vars): if DEMO_MODE: session.flash = T('Application cannot be generated in demo mode') redirect(URL('index')) create(form.vars) session.flash = 'Application %s created' % app redirect(URL('generated')) return dict(step='6: Generate app "%s"' % app,form=form) def generated(): return dict(app=session.app['name']) def sort_tables(tables): import re regex = re.compile('(%s)' % '|'.join(tables)) is_auth_user = 'auth_user' in tables d={} for table in tables: d[table]=[] for field in session.app['table_%s' % table]: d[table]+=regex.findall(field) tables=[] if is_auth_user: tables.append('auth_user') def append(table,trail=[]): if table in trail: raise RuntimeError for t in d[table]: append(t,trail=trail+[table]) if not table in tables: tables.append(table) for table in d: append(table) return tables def make_table(table,fields): rawtable=table if table!='auth_user': table='t_'+table s='' s+='\n'+'#'*40+'\n' s+="db.define_table('%s',\n" % table s+=" Field('id','id',\n" s+=" represent=lambda id:SPAN(id,' ',A('view',_href=URL('%s_read',args=id)))),\n"%rawtable first_field='id' for field in fields: items=[x.lower() for x in field.split()] has = {} keys = [] for key in ['notnull','unique','integer','double','boolean','float', 'boolean', 'date','time','datetime','text','wiki', 'html','file','upload','image','true', 'hidden','readonly','writeonly','multiple', 'notempty','required']: if key in items[1:]: keys.append(key) has[key] = True tables = session.app['tables'] refs = [t for t in tables if t in items] items = items[:1] + [x for x in items[1:] if not x in keys and not x in tables] barename = name = '_'.join(items) if table[:2]=='t_': name='f_'+name if first_field=='id': first_field=name ### determine field type ftype='string' deftypes={'integer':'integer','double':'double','boolean':'boolean', 'float':'double','bool':'boolean', 'date':'date','time':'time','datetime':'datetime', 'text':'text','file':'upload','image':'upload','upload':'upload', 'wiki':'text', 'html':'text'} for key,t in deftypes.items(): if key in has: ftype = t if refs: key = refs[0] if not key=='auth_user': key='t_'+key if 'multiple' in has: ftype='list:reference %s' % key else: ftype='reference %s' % key if ftype=='string' and 'multiple' in has: ftype='list:string' elif ftype=='integer' and 'multiple' in has: ftype='list:integer' elif name=='password': ftype='password' s+=" Field('%s', type='%s'" % (name, ftype) ### determine field attributes if 'notnull' in has or 'notempty' in has or 'required' in has: s+=', notnull=True' if 'unique' in has: s+=', unique=True' if ftype=='boolean' and 'true' in has: s+=",\n default=True" ### determine field representation if 'image' in has: s+=",\n represent=lambda x: x and IMG(_alt='image',_src=URL('download',args=x), _width='200px') or ''" elif ftype in ('file','upload'): s+=",\n represent=lambda x: x and A('download',_href=URL('download',args=x)) or ''" elif 'wiki' in has: s+=",\n represent=lambda x: MARKMIN(x)" s+=",\n comment='WIKI (markmin)'" elif 'html' in has: s+=",\n represent=lambda x: XML(x,sanitize=True)" s+=",\n comment='HTML (sanitized)'" ### determine field access if name=='password' or 'writeonly' in has: s+=",\n readable=False" elif 'hidden' in has: s+=",\n writable=False, readable=False" elif 'readonly' in has: s+=",\n writable=False" ### make up a label s+=",\n label=T('%s')),\n" % \ ' '.join(x.capitalize() for x in barename.split('_')) if table!='auth_user': s+=" Field('is_active','boolean',default=True,\n" s+=" label=T('Active'),writable=False,readable=False),\n" s+=" Field('created_on','datetime',default=request.now,\n" s+=" label=T('Created On'),writable=False,readable=False),\n" s+=" Field('modified_on','datetime',default=request.now,\n" s+=" label=T('Modified On'),writable=False,readable=False,\n" s+=" update=request.now),\n" if not table=='auth_user' and 'auth_user' in session.app['tables']: s+=" Field('created_by',db.auth_user,default=auth.user_id,\n" s+=" label=T('Created By'),writable=False,readable=False),\n" s+=" Field('modified_by',db.auth_user,default=auth.user_id,\n" s+=" label=T('Modified By'),writable=False,readable=False,\n" s+=" update=auth.user_id),\n" elif table=='auth_user': s+=" Field('registration_key',default='',\n" s+=" writable=False,readable=False),\n" s+=" Field('reset_password_key',default='',\n" s+=" writable=False,readable=False),\n" s+=" Field('registration_id',default='',\n" s+=" writable=False,readable=False),\n" s+=" format='%("+first_field+")s',\n" s+=" migrate=settings.migrate)\n\n" if table=='auth_user': s+=""" db.auth_user.first_name.requires = IS_NOT_EMPTY(error_message=auth.messages.is_empty) db.auth_user.last_name.requires = IS_NOT_EMPTY(error_message=auth.messages.is_empty) db.auth_user.password.requires = CRYPT(key=auth.settings.hmac_key) db.auth_user.username.requires = IS_NOT_IN_DB(db, db.auth_user.username) db.auth_user.registration_id.requires = IS_NOT_IN_DB(db, db.auth_user.registration_id) db.auth_user.email.requires = (IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, db.auth_user.email)) """ else: s+="db.define_table('%s_archive',db.%s,Field('current_record','reference %s'))\n" % (table,table,table) return s def fix_db(filename): params = dict(session.app['params']) content = read_file(filename,'rb') if 'auth_user' in session.app['tables']: auth_user = make_table('auth_user',session.app['table_auth_user']) content = content.replace('sqlite://storage.sqlite', params['database_uri']) content = content.replace('auth.define_tables()',\ auth_user+'auth.define_tables(migrate = settings.migrate)') content += """ mail.settings.server = settings.email_server mail.settings.sender = settings.email_sender mail.settings.login = settings.email_login """ if params['login_method']=='janrain': content+=""" from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled=['register','change_password','request_reset_password'] auth.settings.login_form = RPXAccount(request, api_key = settings.login_config.split(':')[-1], domain = settings.login_config.split(':')[0], url = "http://%s/%s/default/user/login" % (request.env.http_host,request.application)) """ write_file(filename, content, 'wb') def make_menu(pages): s=""" response.title = settings.title response.subtitle = settings.subtitle response.meta.author = '%s <%s>' % (settings.author, settings.author_email) response.meta.keywords = settings.keywords response.meta.description = settings.description response.menu = [ """ for page in pages: if not page.endswith('_read') and \ not page.endswith('_update') and \ not page.endswith('_search') and \ not page.startswith('_') and not page.startswith('error'): s+=" (T('%s'),URL('default','%s')==URL(),URL('default','%s'),[]),\n" % \ (' '.join(x.capitalize() for x in page.split('_')),page,page) s+=']' return s def make_page(page,contents): if 'auth_user' in session.app['tables'] and not page in ('index','error'): s="@auth.requires_login()\ndef %s():\n" % page else: s="def %s():\n" % page items=page.rsplit('_',1) if items[0] in session.app['tables'] and len(items)==2: t=items[0] if items[1]=='read': s+=" record = db.t_%s(request.args(0)) or redirect(URL('error'))\n" % t s+=" form=crud.read(db.t_%s,record)\n" % t s+=" return dict(form=form)\n\n" elif items[1]=='update': s+=" record = db.t_%s(request.args(0),is_active=True) or redirect(URL('error'))\n" % t s+=" form=crud.update(db.t_%s,record,next='%s_read/[id]',\n" % (t,t) s+=" ondelete=lambda form: redirect(URL('%s_select')),\n" % t s+=" onaccept=crud.archive)\n" s+=" return dict(form=form)\n\n" elif items[1]=='create': s+=" form=crud.create(db.t_%s,next='%s_read/[id]')\n" % (t,t) s+=" return dict(form=form)\n\n" elif items[1]=='select': s+=" f,v=request.args(0),request.args(1)\n" s+=" try: query=f and db.t_%s[f]==v or db.t_%s\n" % (t,t) s+=" except: redirect(URL('error'))\n" s+=" rows=db(query)(db.t_%s.is_active==True).select()\n" % t s+=" return dict(rows=rows)\n\n" elif items[1]=='search': s+=" form, rows=crud.search(db.t_%s,query=db.t_%s.is_active==True)\n" % (t,t) s+=" return dict(form=form, rows=rows)\n\n" else: t=None else: t=None if not t: s+=" return dict()\n\n" return s def make_view(page,contents): s="{{extend 'layout.html'}}\n\n" s+=str(MARKMIN(contents)) items=page.rsplit('_',1) if items[0] in session.app['tables'] and len(items)==2: t=items[0] if items[1]=='read': s+="\n{{=A(T('edit %s'),_href=URL('%s_update',args=request.args(0)))}}\n<br/>\n"%(t,t) s+='\n{{=form}}\n' s+="{{for t,f in db.t_%s._referenced_by:}}{{if not t[-8:]=='_archive':}}" % t s+="[{{=A(t[2:],_href=URL('%s_select'%t[2:],args=(f,form.record.id)))}}]" s+='{{pass}}{{pass}}' elif items[1]=='create': s+="\n{{=A(T('select %s'),_href=URL('%s_select'))}}\n<br/>\n"%(t,t) s+='\n{{=form}}\n' elif items[1]=='update': s+="\n{{=A(T('show %s'),_href=URL('%s_read',args=request.args(0)))}}\n<br/>\n"%(t,t) s+='\n{{=form}}\n' elif items[1]=='select': s+="\n{{if request.args:}}<h3>{{=T('For %s #%s' % (request.args(0)[2:],request.args(1)))}}</h3>{{pass}}\n" s+="\n{{=A(T('create new %s'),_href=URL('%s_create'))}}\n<br/>\n"%(t,t) s+="\n{{=A(T('search %s'),_href=URL('%s_search'))}}\n<br/>\n"%(t,t) s+="\n{{if rows:}}" s+="\n {{headers=dict((str(k),k.label) for k in db.t_%s)}}" % t s+="\n {{=SQLTABLE(rows,headers=headers)}}" s+="\n{{else:}}" s+="\n {{=TAG.blockquote(T('No Data'))}}" s+="\n{{pass}}\n" elif items[1]=='search': s+="\n{{=A(T('create new %s'),_href=URL('%s_create'))}}\n<br/>\n"%(t,t) s+='\n{{=form}}\n' s+="\n{{if rows:}}" s+="\n {{headers=dict((str(k),k.label) for k in db.t_%s)}}" % t s+="\n {{=SQLTABLE(rows,headers=headers)}}" s+="\n{{else:}}" s+="\n {{=TAG.blockquote(T('No Data'))}}" s+="\n{{pass}}\n" return s def populate(tables): s = 'from gluon.contrib.populate import populate\n' s+= 'if not db(db.auth_user).count():\n' for table in sort_tables(tables): t=table=='auth_user' and 'auth_user' or 't_'+table s+=" populate(db.%s,10)\n" % t return s def create(options): if DEMO_MODE: session.flash = T('disabled in demo mode') redirect(URL('step6')) params = dict(session.app['params']) app = session.app['name'] if not app_create(app,request,force=True,key=params['security_key']): session.flash = 'Failure to create application' redirect(URL('step6')) ### save metadata in newapp/wizard.metadata try: meta = os.path.join(request.folder,'..',app,'wizard.metadata') file=open(meta,'wb') pickle.dump(session.app,file) file.close() except IOError: session.flash = 'Failure to write wizard metadata' redirect(URL('step6')) ### apply theme if options.apply_layout and params['layout_theme']!='Default': try: fn = 'web2py.plugin.layout_%s.w2p' % params['layout_theme'] theme = urllib.urlopen(LAYOUTS_APP+'/static/plugin_layouts/plugins/'+fn) plugin_install(app, theme, request, fn) except: session.flash = T("unable to download layout") ### apply plugins for plugin in params['plugins']: try: plugin_name = 'web2py.plugin.'+plugin+'.w2p' stream = urllib.urlopen(PLUGINS_APP+'/static/'+plugin_name) plugin_install(app, stream, request, plugin_name) except Exception, e: session.flash = T("unable to download plugin: %s" % plugin) ### write configuration file into newapp/models/0.py model = os.path.join(request.folder,'..',app,'models','0.py') file = open(model, 'wb') try: file.write("from gluon.storage import Storage\n") file.write("settings = Storage()\n\n") file.write("settings.migrate = True\n") for key,value in session.app['params']: file.write("settings.%s = %s\n" % (key,repr(value))) finally: file.close() ### write configuration file into newapp/models/menu.py if options.generate_menu: model = os.path.join(request.folder,'..',app,'models','menu.py') file = open(model,'wb') try: file.write(make_menu(session.app['pages'])) finally: file.close() ### customize the auth_user table model = os.path.join(request.folder,'..',app,'models','db.py') fix_db(model) ### create newapp/models/db_wizard.py if options.generate_model: model = os.path.join(request.folder,'..',app,'models','db_wizard.py') file = open(model,'wb') try: file.write('### we prepend t_ to tablenames and f_ to fieldnames for disambiguity\n\n') tables = sort_tables(session.app['tables']) for table in tables: if table=='auth_user': continue file.write(make_table(table,session.app['table_'+table])) finally: file.close() model = os.path.join(request.folder,'..',app, 'models','db_wizard_populate.py') if os.path.exists(model): os.unlink(model) if options.populate_database and session.app['tables']: file = open(model,'wb') try: file.write(populate(session.app['tables'])) finally: file.close() ### create newapp/controllers/default.py if options.generate_controller: controller = os.path.join(request.folder,'..',app,'controllers','default.py') file = open(controller,'wb') try: file.write("""# -*- coding: utf-8 -*- ### required - do no delete def user(): return dict(form=auth()) def download(): return response.download(request,db) def call(): session.forget() return service() ### end requires """) for page in session.app['pages']: file.write(make_page(page,session.app.get('page_'+page,''))) finally: file.close() ### create newapp/views/default/*.html if options.generate_views: for page in session.app['pages']: view = os.path.join(request.folder,'..',app,'views','default',page+'.html') file = open(view,'wb') try: file.write(make_view(page,session.app.get('page_'+page,''))) finally: file.close() if options.erase_database: path = os.path.join(request.folder,'..',app,'databases','*') for file in glob.glob(path): os.unlink(file) |
Added applications/admin/cron/crontab version [51acb7e26c].
> | 1 | 10 * * * * root **applications/admin/cron/expire_sessions.py |
Added applications/admin/languages/af.py version [6394eb18fe].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | # coding: utf8 { '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '(requires internet access)': '(vereis internet toegang)', '(something like "it-it")': '(iets soos "it-it")', 'About': 'Oor', 'About application': 'Oor program', 'Additional code for your application': 'Additionele kode vir u application', 'Admin language': 'Admin taal', 'Application name:': 'Program naam:', 'Controllers': 'Beheerders', 'Deploy on Google App Engine': 'Stuur na Google App Engine toe', 'Edit application': 'Wysig program', 'Installed applications': 'Geinstalleerde apps', 'Languages': 'Tale', 'License for': 'Lisensie vir', 'Models': 'Modelle', 'Modules': 'Modules', 'New application wizard': 'Nuwe app wizard', 'New simple application': 'Nuwe eenvoudige app', 'Plugins': 'Plugins', 'Powered by': 'Aangedryf deur', 'Searching:': 'Soek:', 'Static files': 'Static files', 'Sure you want to delete this object?': 'Is jy seker jy will hierde object verwyder?', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no plugins': 'Daar is geen plugins', 'These files are served without processing, your images go here': 'Hierdie lêre is sonder veranderinge geserved, jou images gaan hier', 'To create a plugin, name a file/folder plugin_[name]': 'Om ''n plugin te skep, noem ''n lêer/gids plugin_[name]', 'Translation strings for the application': 'Vertaling woorde vir die program', 'Upload & install packed application': 'Oplaai & install gepakte program', 'Upload a package:': 'Oplaai ''n package:', 'Use an url:': 'Gebruik n url:', 'Views': 'Views', 'about': 'oor', 'administrative interface': 'administrative interface', 'and rename it:': 'en verander die naam:', 'change admin password': 'verander admin wagwoord', 'check for upgrades': 'soek vir upgrades', 'clean': 'maak skoon', 'collapse/expand all': 'collapse/expand all', 'compile': 'kompileer', 'controllers': 'beheerders', 'create': 'skep', 'create file with filename:': 'skep lêer met naam:', 'created by': 'geskep deur', 'crontab': 'crontab', 'currently running': 'loop tans', 'database administration': 'database administration', 'deploy': 'deploy', 'direction: ltr': 'direction: ltr', 'download layouts': 'aflaai layouts', 'download plugins': 'aflaai plugins', 'edit': 'wysig', 'errors': 'foute', 'exposes': 'exposes', 'extends': 'extends', 'files': 'lêre', 'filter': 'filter', 'help': 'hulp', 'includes': 'includes', 'install': 'installeer', 'languages': 'tale', 'loading...': 'laai...', 'logout': 'logout', 'models': 'modelle', 'modules': 'modules', 'overwrite installed app': 'skryf oor geinstalleerde program', 'pack all': 'pack alles', 'plugins': 'plugins', 'shell': 'shell', 'site': 'site', 'start wizard': 'start wizard', 'static': 'static', 'test': 'toets', 'uninstall': 'verwyder', 'update all languages': 'update all languages', 'upload': 'oplaai', 'upload file:': 'oplaai lêer:', 'upload plugin file:': 'upload plugin lêer:', 'versioning': 'versioning', 'views': 'views', 'web2py Recent Tweets': 'web2py Onlangse Tweets', } |
Added applications/admin/languages/bg-bg.py version [7882283c41].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '%s записите бяха изтрити', '%s rows updated': '%s записите бяха обновени', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(something like "it-it")', 'A new version of web2py is available': 'A new version of web2py is available', 'A new version of web2py is available: %s': 'A new version of web2py is available: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.', 'ATTENTION: you cannot edit the running application!': 'ATTENTION: you cannot edit the running application!', 'About': 'About', 'About application': 'About application', 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'Admin is disabled because insecure channel', 'Admin is disabled because unsecure channel': 'Admin is disabled because unsecure channel', 'Admin language': 'Admin language', 'Administrator Password:': 'Administrator Password:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Are you sure you want to delete file "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?', 'Are you sure you want to uninstall application "%s"': 'Are you sure you want to uninstall application "%s"', 'Are you sure you want to uninstall application "%s"?': 'Are you sure you want to uninstall application "%s"?', 'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?', 'Available databases and tables': 'Available databases and tables', 'Cannot be empty': 'Cannot be empty', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.', 'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:', 'Check to delete': 'Check to delete', 'Checking for upgrades...': 'Checking for upgrades...', 'Controllers': 'Controllers', 'Create new simple application': 'Create new simple application', 'Current request': 'Current request', 'Current response': 'Current response', 'Current session': 'Current session', 'DESIGN': 'DESIGN', 'Date and Time': 'Date and Time', 'Delete': 'Delete', 'Delete:': 'Delete:', 'Deploy on Google App Engine': 'Deploy on Google App Engine', 'Design for': 'Design for', 'EDIT': 'EDIT', 'Edit application': 'Edit application', 'Edit current record': 'Edit current record', 'Editing Language file': 'Editing Language file', 'Editing file': 'Editing file', 'Editing file "%s"': 'Editing file "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Error logs for "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'Functions with no doctests will result in [passed] tests.', 'Hello World': 'Здравей, свят', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': 'Import/Export', 'Installed applications': 'Installed applications', 'Internal State': 'Internal State', 'Invalid Query': 'Невалидна заявка', 'Invalid action': 'Invalid action', 'Language files (static strings) updated': 'Language files (static strings) updated', 'Languages': 'Languages', 'Last saved on:': 'Last saved on:', 'License for': 'License for', 'Login': 'Login', 'Login to the Administrative Interface': 'Login to the Administrative Interface', 'Models': 'Models', 'Modules': 'Modules', 'NO': 'NO', 'New Record': 'New Record', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'No databases in this application', 'Original/Translation': 'Original/Translation', 'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here', 'Peeking at file': 'Peeking at file', 'Plugin "%s" in application': 'Plugin "%s" in application', 'Plugins': 'Plugins', 'Powered by': 'Powered by', 'Query:': 'Query:', 'Resolve Conflict file': 'Resolve Conflict file', 'Rows in table': 'Rows in table', 'Rows selected': 'Rows selected', 'Saved file hash:': 'Saved file hash:', 'Searching:': 'Searching:', 'Static files': 'Static files', 'Sure you want to delete this object?': 'Сигурен ли си, че искаш да изтриеш този обект?', 'TM': 'TM', 'Testing application': 'Testing application', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': 'There are no controllers', 'There are no models': 'There are no models', 'There are no modules': 'There are no modules', 'There are no plugins': 'There are no plugins', 'There are no static files': 'There are no static files', 'There are no translators, only default language is supported': 'There are no translators, only default language is supported', 'There are no views': 'There are no views', 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is the %(filename)s template': 'This is the %(filename)s template', 'Ticket': 'Ticket', 'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'Unable to check for upgrades', 'Unable to download': 'Unable to download', 'Unable to download app because:': 'Unable to download app because:', 'Unable to download because': 'Unable to download because', 'Update:': 'Update:', 'Upload & install packed application': 'Upload & install packed application', 'Upload a package:': 'Upload a package:', 'Upload existing application': 'Upload existing application', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.', 'Use an url:': 'Use an url:', 'Version': 'Version', 'Views': 'Views', 'Welcome to web2py': 'Добре дошъл в web2py', 'YES': 'YES', 'about': 'about', 'additional code for your application': 'additional code for your application', 'admin disabled because no admin password': 'admin disabled because no admin password', 'admin disabled because not supported on google app engine': 'admin disabled because not supported on google apps engine', 'admin disabled because unable to access password file': 'admin disabled because unable to access password file', 'administrative interface': 'administrative interface', 'and rename it (required):': 'and rename it (required):', 'and rename it:': 'and rename it:', 'appadmin': 'appadmin', 'appadmin is disabled because insecure channel': 'appadmin is disabled because insecure channel', 'application "%s" uninstalled': 'application "%s" uninstalled', 'application compiled': 'application compiled', 'application is compiled and cannot be designed': 'application is compiled and cannot be designed', 'arguments': 'arguments', 'back': 'back', 'cache': 'cache', 'cache, errors and sessions cleaned': 'cache, errors and sessions cleaned', 'cannot create file': 'cannot create file', 'cannot upload file "%(filename)s"': 'cannot upload file "%(filename)s"', 'change admin password': 'change admin password', 'check all': 'check all', 'check for upgrades': 'check for upgrades', 'clean': 'clean', 'click here for online examples': 'щракни тук за онлайн примери', 'click here for the administrative interface': 'щракни тук за административния интерфейс', 'click to check for upgrades': 'click to check for upgrades', 'code': 'code', 'collapse/expand all': 'collapse/expand all', 'compile': 'compile', 'compiled application removed': 'compiled application removed', 'controllers': 'controllers', 'create': 'create', 'create file with filename:': 'create file with filename:', 'create new application:': 'create new application:', 'created by': 'created by', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'currently saved or', 'data uploaded': 'данните бяха качени', 'database': 'database', 'database %s select': 'database %s select', 'database administration': 'database administration', 'db': 'дб', 'defines tables': 'defines tables', 'delete': 'delete', 'delete all checked': 'delete all checked', 'delete plugin': 'delete plugin', 'deploy': 'deploy', 'design': 'дизайн', 'direction: ltr': 'direction: ltr', 'done!': 'готово!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'edit', 'edit controller': 'edit controller', 'edit views:': 'edit views:', 'errors': 'errors', 'export as csv file': 'export as csv file', 'exposes': 'exposes', 'extends': 'extends', 'failed to reload module': 'failed to reload module', 'failed to reload module because:': 'failed to reload module because:', 'file "%(filename)s" created': 'file "%(filename)s" created', 'file "%(filename)s" deleted': 'file "%(filename)s" deleted', 'file "%(filename)s" uploaded': 'file "%(filename)s" uploaded', 'file "%(filename)s" was not deleted': 'file "%(filename)s" was not deleted', 'file "%s" of %s restored': 'file "%s" of %s restored', 'file changed on disk': 'file changed on disk', 'file does not exist': 'file does not exist', 'file saved on %(time)s': 'file saved on %(time)s', 'file saved on %s': 'file saved on %s', 'files': 'files', 'filter': 'filter', 'help': 'help', 'htmledit': 'htmledit', 'includes': 'includes', 'insert new': 'insert new', 'insert new %s': 'insert new %s', 'install': 'install', 'internal error': 'internal error', 'invalid password': 'invalid password', 'invalid request': 'невалидна заявка', 'invalid ticket': 'invalid ticket', 'language file "%(filename)s" created/updated': 'language file "%(filename)s" created/updated', 'languages': 'languages', 'languages updated': 'languages updated', 'loading...': 'loading...', 'login': 'login', 'logout': 'logout', 'merge': 'merge', 'models': 'models', 'modules': 'modules', 'new application "%s" created': 'new application "%s" created', 'new plugin installed': 'new plugin installed', 'new record inserted': 'новият запис беше добавен', 'next 100 rows': 'next 100 rows', 'no match': 'no match', 'or import from csv file': 'or import from csv file', 'or provide app url:': 'or provide app url:', 'or provide application url:': 'or provide application url:', 'overwrite installed app': 'overwrite installed app', 'pack all': 'pack all', 'pack compiled': 'pack compiled', 'pack plugin': 'pack plugin', 'password changed': 'password changed', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted', 'plugins': 'plugins', 'previous 100 rows': 'previous 100 rows', 'record': 'record', 'record does not exist': 'записът не съществува', 'record id': 'record id', 'remove compiled': 'remove compiled', 'restore': 'restore', 'revert': 'revert', 'save': 'save', 'selected': 'selected', 'session expired': 'session expired', 'shell': 'shell', 'site': 'site', 'some files could not be removed': 'some files could not be removed', 'start wizard': 'start wizard', 'state': 'състояние', 'static': 'static', 'submit': 'submit', 'table': 'table', 'test': 'test', 'the application logic, each URL path is mapped in one exposed function in the controller': 'the application logic, each URL path is mapped in one exposed function in the controller', 'the data representation, define database tables and sets': 'the data representation, define database tables and sets', 'the presentations layer, views are also known as templates': 'the presentations layer, views are also known as templates', 'these files are served without processing, your images go here': 'these files are served without processing, your images go here', 'to previous version.': 'to previous version.', 'translation strings for the application': 'translation strings for the application', 'try': 'try', 'try something like': 'try something like', 'unable to create application "%s"': 'unable to create application "%s"', 'unable to delete file "%(filename)s"': 'unable to delete file "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"', 'unable to parse csv file': 'не е възможна обработката на csv файла', 'unable to uninstall "%s"': 'unable to uninstall "%s"', 'unable to upgrade because "%s"': 'unable to upgrade because "%s"', 'uncheck all': 'uncheck all', 'uninstall': 'uninstall', 'update': 'update', 'update all languages': 'update all languages', 'upgrade web2py now': 'upgrade web2py now', 'upload': 'upload', 'upload application:': 'upload application:', 'upload file:': 'upload file:', 'upload plugin file:': 'upload plugin file:', 'variables': 'variables', 'versioning': 'versioning', 'view': 'view', 'views': 'views', 'web2py Recent Tweets': 'web2py Recent Tweets', 'web2py is up to date': 'web2py is up to date', 'web2py upgraded; please restart it': 'web2py upgraded; please restart it', } |
Added applications/admin/languages/de-de.py version [d326e7c06f].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Update" ist ein optionaler Ausdruck wie "Feld1 = \'newvalue". JOIN Ergebnisse können nicht aktualisiert oder gelöscht werden', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '%s Zeilen gelöscht', '%s rows updated': '%s Zeilen aktualisiert', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(so etwas wie "it-it")', 'A new version of web2py is available': 'Eine neue Version von web2py ist verfügbar', 'A new version of web2py is available: %s': 'Eine neue Version von web2py ist verfügbar: %s', 'A new version of web2py is available: Version 1.85.3 (2010-09-18 07:07:46)\n': 'Eine neue Version von web2py ist verfügbar: Version 1.85.3 (2010-09-18 07:07:46)\n', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ACHTUNG: Die Einwahl benötigt eine sichere (HTTPS) Verbindung. Es sei denn sie läuft Lokal(localhost).', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ACHTUNG: Testen ist nicht threadsicher. Führen sie also nicht mehrere Tests gleichzeitig aus.', 'ATTENTION: This is an experimental feature and it needs more testing.': 'ACHTUNG: Dies ist eine experimentelle Funktion und benötigt noch weitere Tests.', 'ATTENTION: you cannot edit the running application!': 'ACHTUNG: Eine laufende Anwendung kann nicht editiert werden!', 'About': 'Über', 'About application': 'Über die Anwendung', 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals', 'Admin is disabled because unsecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals', 'Admin language': 'Admin language', 'Administrator Password:': 'Administrator Passwort:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Sind Sie sich sicher, dass Sie diese Datei löschen wollen "%s"?', 'Are you sure you want to uninstall application "%s"': 'Sind Sie sich sicher, dass Sie diese Anwendung deinstallieren wollen "%s"', 'Are you sure you want to uninstall application "%s"?': 'Sind Sie sich sicher, dass Sie diese Anwendung deinstallieren wollen "%s"?', 'Are you sure you want to upgrade web2py now?': 'Sind Sie sich sicher, dass Sie web2py jetzt upgraden möchten?', 'Authentication': 'Authentifizierung', 'Available databases and tables': 'Verfügbare Datenbanken und Tabellen', 'Cannot be empty': 'Darf nicht leer sein', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Nicht Kompilierbar:Es sind Fehler in der Anwendung. Beseitigen Sie die Fehler und versuchen Sie es erneut.', 'Change Password': 'Passwort ändern', 'Check to delete': 'Markiere zum löschen', 'Checking for upgrades...': 'Auf Updates überprüfen...', 'Client IP': 'Client IP', 'Controller': 'Controller', 'Controllers': 'Controller', 'Copyright': 'Urheberrecht', 'Create new simple application': 'Erzeuge neue Anwendung', 'Current request': 'Aktuelle Anfrage (request)', 'Current response': 'Aktuelle Antwort (response)', 'Current session': 'Aktuelle Sitzung (session)', 'DB Model': 'DB Modell', 'DESIGN': 'design', 'Database': 'Datenbank', 'Date and Time': 'Datum und Uhrzeit', 'Delete': 'Löschen', 'Delete:': 'Löschen:', 'Deploy on Google App Engine': 'Auf Google App Engine installieren', 'Description': 'Beschreibung', 'Design for': 'Design für', 'E-mail': 'E-mail', 'EDIT': 'BEARBEITEN', 'Edit': 'Bearbeiten', 'Edit Profile': 'Bearbeite Profil', 'Edit This App': 'Bearbeite diese Anwendung', 'Edit application': 'Bearbeite Anwendung', 'Edit current record': 'Bearbeite aktuellen Datensatz', 'Editing Language file': 'Sprachdatei bearbeiten', 'Editing file': 'Bearbeite Datei', 'Editing file "%s"': 'Bearbeite Datei "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Fehlerprotokoll für "%(app)s"', 'Exception instance attributes': 'Atribute der Ausnahmeinstanz', 'Expand Abbreviation': 'Kürzel erweitern', 'First name': 'Vorname', 'Functions with no doctests will result in [passed] tests.': 'Funktionen ohne doctests erzeugen [passed] in Tests', 'Go to Matching Pair': 'gehe zum übereinstimmenden Paar', 'Group ID': 'Gruppen ID', 'Hello World': 'Hallo Welt', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'Falls der obere Test eine Fehler-Ticketnummer enthält deutet das auf einen Fehler in der Ausführung des Controllers hin, noch bevor der Doctest ausgeführt werden konnte. Gewöhnlich führen fehlerhafte Einrückungen oder fehlerhafter Code ausserhalb der Funktion zu solchen Fehlern. Ein grüner Titel deutet darauf hin, dass alle Test(wenn sie vorhanden sind) erfolgreich durchlaufen wurden. In diesem Fall werden die Testresultate nicht angezeigt.', 'If you answer "yes", be patient, it may take a while to download': '', 'If you answer yes, be patient, it may take a while to download': 'If you answer yes, be patient, it may take a while to download', 'Import/Export': 'Importieren/Exportieren', 'Index': 'Index', 'Installed applications': 'Installierte Anwendungen', 'Internal State': 'interner Status', 'Invalid Query': 'Ungültige Abfrage', 'Invalid action': 'Ungültige Aktion', 'Invalid email': 'Ungültige Email', 'Key bindings': 'Tastenbelegungen', 'Key bindings for ZenConding Plugin': 'Tastenbelegungen für das ZenConding Plugin', 'Language files (static strings) updated': 'Sprachdatei (statisch Strings) aktualisiert', 'Languages': 'Sprachen', 'Last name': 'Nachname', 'Last saved on:': 'Zuletzt gespeichert am:', 'Layout': 'Layout', 'License for': 'Lizenz für', 'Login': 'Anmelden', 'Login to the Administrative Interface': 'An das Administrations-Interface anmelden', 'Logout': 'Abmeldung', 'Lost Password': 'Passwort vergessen', 'Main Menu': 'Menú principal', 'Match Pair': 'Paare finden', 'Menu Model': 'Menü Modell', 'Merge Lines': 'Zeilen zusammenfügen', 'Models': 'Modelle', 'Modules': 'Module', 'NO': 'NEIN', 'Name': 'Name', 'New Record': 'Neuer Datensatz', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'Next Edit Point': 'nächster Bearbeitungsschritt', 'No databases in this application': 'Keine Datenbank in dieser Anwendung', 'Origin': 'Herkunft', 'Original/Translation': 'Original/Übersetzung', 'Password': 'Passwort', 'Peeking at file': 'Dateiansicht', 'Plugin "%s" in application': 'Plugin "%s" in Anwendung', 'Plugins': 'Plugins', 'Powered by': 'Unterstützt von', 'Previous Edit Point': 'vorheriger Bearbeitungsschritt', 'Query:': 'Abfrage:', 'Record ID': 'Datensatz ID', 'Register': 'registrieren', 'Registration key': 'Registrierungsschlüssel', 'Reset Password key': 'Passwortschlüssel zurücksetzen', 'Resolve Conflict file': 'bereinige Konflikt-Datei', 'Role': 'Rolle', 'Rows in table': 'Zeilen in Tabelle', 'Rows selected': 'Zeilen ausgewählt', 'Save via Ajax': 'via Ajax sichern', 'Saved file hash:': 'Gespeicherter Datei-Hash:', 'Searching:': 'Searching:', 'Static files': 'statische Dateien', 'Stylesheet': 'Stylesheet', 'Sure you want to delete this object?': 'Wollen Sie das Objekt wirklich löschen?', 'TM': 'TM', 'Table name': 'Tabellen Name', 'Testing application': 'Teste die Anwendung', 'Testing controller': 'teste Controller', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'Die "query" ist eine Bedingung wie "db.table1.field1 == \'Wert\'". Etwas wie "db.table1.field1 db.table2.field2 ==" führt zu einem SQL JOIN.', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The output of the file is a dictionary that was rendered by the view': 'The output of the file is a dictionary that was rendered by the view', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': 'Keine Controller vorhanden', 'There are no models': 'Keine Modelle vorhanden', 'There are no modules': 'Keine Module vorhanden', 'There are no plugins': 'There are no plugins', 'There are no static files': 'Keine statischen Dateien vorhanden', 'There are no translators, only default language is supported': 'Keine Übersetzungen vorhanden, nur die voreingestellte Sprache wird unterstützt', 'There are no views': 'Keine Views vorhanden', 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is a copy of the scaffolding application': 'Dies ist eine Kopie einer Grundgerüst-Anwendung', 'This is the %(filename)s template': 'Dies ist das Template %(filename)s', 'Ticket': 'Ticket', 'Timestamp': 'Timestamp', 'To create a plugin, name a file/folder plugin_[name]': 'Um ein Plugin zu erstellen benennen Sie eine(n) Datei/Ordner plugin_[Name]', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'überprüfen von Upgrades nicht möglich', 'Unable to download': 'herunterladen nicht möglich', 'Unable to download app': 'herunterladen der Anwendung nicht möglich', 'Update:': 'Aktualisiere:', 'Upload & install packed application': 'Verpackte Anwendung hochladen und installieren', 'Upload a package:': 'Upload a package:', 'Upload existing application': 'lade existierende Anwendung hoch', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Benutze (...)&(...) für AND, (...)|(...) für OR, und ~(...) für NOT, um komplexe Abfragen zu erstellen.', 'Use an url:': 'Use an url:', 'User ID': 'Benutzer ID', 'Version': 'Version', 'View': 'View', 'Views': 'Views', 'Welcome %s': 'Willkommen %s', 'Welcome to web2py': 'Willkommen zu web2py', 'Which called the function': 'Which called the function', 'Wrap with Abbreviation': 'mit Kürzel einhüllen', 'YES': 'JA', 'You are successfully running web2py': 'web2by wird erfolgreich ausgeführt', 'You can modify this application and adapt it to your needs': 'Sie können diese Anwendung verändern und Ihren Bedürfnissen anpassen', 'You visited the url': 'Sie besuchten die URL', 'about': 'Über', 'additional code for your application': 'zusätzlicher Code für Ihre Anwendung', 'admin disabled because no admin password': ' admin ist deaktiviert, weil kein Admin-Passwort gesetzt ist', 'admin disabled because not supported on google apps engine': 'admin ist deaktiviert, es existiert dafür keine Unterstützung auf der google apps engine', 'admin disabled because unable to access password file': 'admin ist deaktiviert, weil kein Zugriff auf die Passwortdatei besteht', 'administrative interface': 'administrative interface', 'and rename it (required):': 'und benenne sie um (erforderlich):', 'and rename it:': ' und benenne sie um:', 'appadmin': 'appadmin', 'appadmin is disabled because insecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals', 'application "%s" uninstalled': 'Anwendung "%s" deinstalliert', 'application compiled': 'Anwendung kompiliert', 'application is compiled and cannot be designed': 'Die Anwendung ist kompiliert kann deswegen nicht mehr geändert werden', 'arguments': 'arguments', 'back': 'zurück', 'beautify': 'beautify', 'cache': 'Cache', 'cache, errors and sessions cleaned': 'Zwischenspeicher (cache), Fehler und Sitzungen (sessions) gelöscht', 'call': 'call', 'cannot create file': 'Kann Datei nicht erstellen', 'cannot upload file "%(filename)s"': 'Kann Datei nicht Hochladen "%(filename)s"', 'change admin password': 'Administrator-Passwort ändern', 'change password': 'Passwort ändern', 'check all': 'alles auswählen', 'check for upgrades': 'check for upgrades', 'clean': 'löschen', 'click here for online examples': 'hier klicken für online Beispiele', 'click here for the administrative interface': 'hier klicken für die Administrationsoberfläche ', 'click to check for upgrades': 'hier klicken um nach Upgrades zu suchen', 'code': 'code', 'collapse/expand all': 'collapse/expand all', 'compile': 'kompilieren', 'compiled application removed': 'kompilierte Anwendung gelöscht', 'controllers': 'Controllers', 'create': 'erstellen', 'create file with filename:': 'erzeuge Datei mit Dateinamen:', 'create new application:': 'erzeuge neue Anwendung:', 'created by': 'created by', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'des derzeit gespeicherten oder', 'customize me!': 'pass mich an!', 'data uploaded': 'Daten hochgeladen', 'database': 'Datenbank', 'database %s select': 'Datenbank %s ausgewählt', 'database administration': 'Datenbankadministration', 'db': 'db', 'defines tables': 'definiere Tabellen', 'delete': 'löschen', 'delete all checked': 'lösche alle markierten', 'delete plugin': 'Plugin löschen', 'deploy': 'deploy', 'design': 'design', 'direction: ltr': 'direction: ltr', 'documentation': 'Dokumentation', 'done!': 'fertig!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'bearbeiten', 'edit controller': 'Bearbeite Controller', 'edit profile': 'bearbeite Profil', 'edit views:': 'Views bearbeiten:', 'errors': 'Fehler', 'escape': 'escape', 'export as csv file': 'Exportieren als CSV-Datei', 'exposes': 'stellt zur Verfügung', 'extends': 'erweitert', 'failed to reload module': 'neu laden des Moduls fehlgeschlagen', 'file "%(filename)s" created': 'Datei "%(filename)s" erstellt', 'file "%(filename)s" deleted': 'Datei "%(filename)s" gelöscht', 'file "%(filename)s" uploaded': 'Datei "%(filename)s" hochgeladen', 'file "%(filename)s" was not deleted': 'Datei "%(filename)s" wurde nicht gelöscht', 'file "%s" of %s restored': 'Datei "%s" von %s wiederhergestellt', 'file changed on disk': 'Datei auf Festplatte geändert', 'file does not exist': 'Datei existiert nicht', 'file saved on %(time)s': 'Datei gespeichert am %(time)s', 'file saved on %s': 'Datei gespeichert auf %s', 'files': 'files', 'filter': 'filter', 'help': 'Hilfe', 'htmledit': 'htmledit', 'includes': 'Einfügen', 'index': 'index', 'insert new': 'neu einfügen', 'insert new %s': 'neu einfügen %s', 'install': 'installieren', 'internal error': 'interner Fehler', 'invalid password': 'Ungültiges Passwort', 'invalid request': 'ungültige Anfrage', 'invalid ticket': 'ungültiges Ticket', 'language file "%(filename)s" created/updated': 'Sprachdatei "%(filename)s" erstellt/aktualisiert', 'languages': 'Sprachen', 'languages updated': 'Sprachen aktualisiert', 'loading...': 'lade...', 'located in the file': 'located in Datei', 'login': 'anmelden', 'logout': 'abmelden', 'lost password?': 'Passwort vergessen?', 'merge': 'verbinden', 'models': 'Modelle', 'modules': 'Module', 'new application "%s" created': 'neue Anwendung "%s" erzeugt', 'new record inserted': 'neuer Datensatz eingefügt', 'next 100 rows': 'nächsten 100 Zeilen', 'or import from csv file': 'oder importieren von cvs Datei', 'or provide app url:': 'oder geben Sie eine Anwendungs-URL an:', 'or provide application url:': 'oder geben Sie eine Anwendungs-URL an:', 'overwrite installed app': 'installierte Anwendungen überschreiben', 'pack all': 'verpacke alles', 'pack compiled': 'Verpacke kompiliert', 'pack plugin': 'Plugin verpacken', 'please wait!': 'bitte warten!', 'plugins': 'plugins', 'previous 100 rows': 'vorherige 100 zeilen', 'record': 'Datensatz', 'record does not exist': 'Datensatz existiert nicht', 'record id': 'Datensatz id', 'register': 'Registrierung', 'remove compiled': 'kompilat gelöscht', 'restore': 'wiederherstellen', 'revert': 'zurückkehren', 'save': 'sichern', 'selected': 'ausgewählt(e)', 'session expired': 'Sitzung Abgelaufen', 'shell': 'shell', 'site': 'Seite', 'some files could not be removed': 'einige Dateien konnten nicht gelöscht werden', 'start wizard': 'start wizard', 'state': 'Status', 'static': 'statische Dateien', 'submit': 'Absenden', 'table': 'Tabelle', 'test': 'Test', 'test_def': 'test_def', 'test_for': 'test_for', 'test_if': 'test_if', 'test_try': 'test_try', 'the application logic, each URL path is mapped in one exposed function in the controller': 'Die Logik der Anwendung, jeder URL-Pfad wird auf eine Funktion abgebildet die der Controller zur Verfügung stellt', 'the data representation, define database tables and sets': 'Die Datenrepräsentation definiert Mengen von Tabellen und Datenbanken ', 'the presentations layer, views are also known as templates': 'Die Präsentationsschicht, Views sind auch bekannt als Vorlagen/Templates', 'these files are served without processing, your images go here': 'Diese Dateien werden ohne Verarbeitung ausgeliefert. Beispielsweise Bilder kommen hier hin.', 'to previous version.': 'zu einer früheren Version.', 'translation strings for the application': 'Übersetzungs-Strings für die Anwendung', 'try': 'versuche', 'try something like': 'versuche so etwas wie', 'unable to create application "%s"': 'erzeugen von Anwendung "%s" nicht möglich', 'unable to delete file "%(filename)s"': 'löschen von Datein "%(filename)s" nicht möglich', 'unable to parse csv file': 'analysieren der cvs Datei nicht möglich', 'unable to uninstall "%s"': 'deinstallieren von "%s" nicht möglich', 'uncheck all': 'alles demarkieren', 'uninstall': 'deinstallieren', 'update': 'aktualisieren', 'update all languages': 'aktualisiere alle Sprachen', 'upgrade web2py now': 'jetzt web2py upgraden', 'upload': 'upload', 'upload application:': 'lade Anwendung hoch:', 'upload file:': 'lade Datei hoch:', 'upload plugin file:': 'Plugin-Datei hochladen:', 'user': 'user', 'variables': 'variables', 'versioning': 'Versionierung', 'view': 'View', 'views': 'Views', 'web2py Recent Tweets': 'neuste Tweets von web2py', 'web2py is up to date': 'web2py ist auf dem neuesten Stand', 'xml': 'xml', } |
Added applications/admin/languages/es-es.py version [677aa3fba3].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"actualice" es una expresión opcional como "campo1=\'nuevo_valor\'". No se puede actualizar o eliminar resultados de un JOIN', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '%s filas eliminadas', '%s rows updated': '%s filas actualizadas', '(something like "it-it")': '(algo como "it-it")', 'A new version of web2py is available': 'Hay una nueva versión de web2py disponible', 'A new version of web2py is available: %s': 'Hay una nueva versión de web2py disponible: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATENCION: Inicio de sesión requiere una conexión segura (HTTPS) o localhost.', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATENCION: NO EJECUTE VARIAS PRUEBAS SIMULTANEAMENTE, NO SON THREAD SAFE.', 'ATTENTION: you cannot edit the running application!': 'ATENCION: no puede modificar la aplicación que se ejecuta!', 'About': 'Acerca de', 'About application': 'Acerca de la aplicación', 'Admin is disabled because insecure channel': 'Admin deshabilitado, el canal no es seguro', 'Admin is disabled because unsecure channel': 'Admin deshabilitado, el canal no es seguro', 'Administrator Password:': 'Contraseña del Administrador:', 'Are you sure you want to delete file "%s"?': '¿Está seguro que desea eliminar el archivo "%s"?', 'Are you sure you want to delete plugin "%s"?': '¿Está seguro que quiere eliminar el plugin "%s"?', 'Are you sure you want to uninstall application "%s"': '¿Está seguro que desea desinstalar la aplicación "%s"', 'Are you sure you want to uninstall application "%s"?': '¿Está seguro que desea desinstalar la aplicación "%s"?', 'Are you sure you want to upgrade web2py now?': '¿Está seguro que desea actualizar web2py ahora?', 'Available databases and tables': 'Bases de datos y tablas disponibles', 'Cannot be empty': 'No puede estar vacío', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'No se puede compilar: hay errores en su aplicación. Depure, corrija errores y vuelva a intentarlo.', 'Cannot compile: there are errors in your app:': 'No se puede compilar: hay errores en su aplicación:', 'Change Password': 'Cambie Contraseña', 'Check to delete': 'Marque para eliminar', 'Checking for upgrades...': 'Buscando actulizaciones...', 'Click row to expand traceback': 'Click row to expand traceback', 'Client IP': 'IP del Cliente', 'Controllers': 'Controladores', 'Count': 'Count', 'Create new application using the Wizard': 'Create new application using the Wizard', 'Create new simple application': 'Cree una nueva aplicación', 'Current request': 'Solicitud en curso', 'Current response': 'Respuesta en curso', 'Current session': 'Sesión en curso', 'DESIGN': 'DISEÑO', 'Date and Time': 'Fecha y Hora', 'Delete': 'Elimine', 'Delete:': 'Elimine:', 'Deploy on Google App Engine': 'Instale en Google App Engine', 'Description': 'Descripción', 'Design for': 'Diseño para', 'E-mail': 'Correo electrónico', 'EDIT': 'EDITAR', 'Edit Profile': 'Editar Perfil', 'Edit application': 'Editar aplicación', 'Edit current record': 'Edite el registro actual', 'Editing Language file': 'Editando archivo de lenguaje', 'Editing file': 'Editando archivo', 'Editing file "%s"': 'Editando archivo "%s"', 'Enterprise Web Framework': 'Armazón Empresarial para Internet', 'Error': 'Error', 'Error logs for "%(app)s"': 'Bitácora de errores en "%(app)s"', 'Exception instance attributes': 'Atributos de la instancia de Excepción', 'File': 'File', 'First name': 'Nombre', 'Functions with no doctests will result in [passed] tests.': 'Funciones sin doctests equivalen a pruebas [aceptadas].', 'Group ID': 'ID de Grupo', 'Hello World': 'Hola Mundo', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'Si el reporte anterior contiene un número de tiquete este indica un falla en la ejecución del controlador, antes de cualquier intento de ejecutat doctests. Esto generalmente se debe a un error en la indentación o un error por fuera del código de la función.\r\nUn titulo verde indica que todas las pruebas pasaron (si existen). En dicho caso los resultados no se muestran.', 'Import/Export': 'Importar/Exportar', 'Installed applications': 'Aplicaciones instaladas', 'Internal State': 'Estado Interno', 'Invalid Query': 'Consulta inválida', 'Invalid action': 'Acción inválida', 'Invalid email': 'Correo inválido', 'Language files (static strings) updated': 'Archivos de lenguaje (cadenas estáticas) actualizados', 'Languages': 'Lenguajes', 'Last name': 'Apellido', 'Last saved on:': 'Guardado en:', 'License for': 'Licencia para', 'Login': 'Inicio de sesión', 'Login to the Administrative Interface': 'Inicio de sesión para la Interfaz Administrativa', 'Logout': 'Fin de sesión', 'Lost Password': 'Contraseña perdida', 'Models': 'Modelos', 'Modules': 'Módulos', 'NO': 'NO', 'Name': 'Nombre', 'New Record': 'Registro nuevo', 'No databases in this application': 'No hay bases de datos en esta aplicación', 'Origin': 'Origen', 'Original/Translation': 'Original/Traducción', 'PAM authenticated user, cannot change password here': 'usuario autenticado por PAM, no puede cambiar la contraseña aquí', 'Password': 'Contraseña', 'Peeking at file': 'Visualizando archivo', 'Plugin "%s" in application': 'Plugin "%s" en aplicación', 'Plugins': 'Plugins', 'Powered by': 'Este sitio usa', 'Query:': 'Consulta:', 'Record ID': 'ID de Registro', 'Register': 'Registrese', 'Registration key': 'Contraseña de Registro', 'Resolve Conflict file': 'archivo Resolución de Conflicto', 'Role': 'Rol', 'Rows in table': 'Filas en la tabla', 'Rows selected': 'Filas seleccionadas', 'Saved file hash:': 'Hash del archivo guardado:', 'Static files': 'Archivos estáticos', 'Sure you want to delete this object?': '¿Está seguro que desea eliminar este objeto?', 'TM': 'MR', 'Table name': 'Nombre de la tabla', 'Testing application': 'Probando aplicación', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'La "consulta" es una condición como "db.tabla1.campo1==\'valor\'". Algo como "db.tabla1.campo1==db.tabla2.campo2" resulta en un JOIN SQL.', 'There are no controllers': 'No hay controladores', 'There are no models': 'No hay modelos', 'There are no modules': 'No hay módulos', 'There are no static files': 'No hay archivos estáticos', 'There are no translators, only default language is supported': 'No hay traductores, sólo el lenguaje por defecto es soportado', 'There are no views': 'No hay vistas', 'This is the %(filename)s template': 'Esta es la plantilla %(filename)s', 'Ticket': 'Tiquete', 'Timestamp': 'Timestamp', 'To create a plugin, name a file/folder plugin_[name]': 'Para crear un plugin, nombre un archivo/carpeta plugin_[nombre]', 'Unable to check for upgrades': 'No es posible verificar la existencia de actualizaciones', 'Unable to download': 'No es posible la descarga', 'Unable to download app': 'No es posible descargar la aplicación', 'Unable to download app because:': 'No es posible descargar la aplicación porque:', 'Unable to download because': 'No es posible descargar porque', 'Update:': 'Actualice:', 'Upload & install packed application': 'Suba e instale aplicación empaquetada', 'Upload existing application': 'Suba esta aplicación', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Use (...)&(...) para AND, (...)|(...) para OR, y ~(...) para NOT, para crear consultas más complejas.', 'User ID': 'ID de Usuario', 'Version': 'Versión', 'Views': 'Vistas', 'Welcome to web2py': 'Bienvenido a web2py', 'YES': 'SI', 'about': 'acerca de', 'additional code for your application': 'código adicional para su aplicación', 'admin disabled because no admin password': ' por falta de contraseña', 'admin disabled because not supported on google app engine': 'admin deshabilitado, no es soportado en GAE', 'admin disabled because unable to access password file': 'admin deshabilitado, imposible acceder al archivo con la contraseña', 'and rename it (required):': 'y renombrela (requerido):', 'and rename it:': ' y renombrelo:', 'appadmin': 'appadmin', 'appadmin is disabled because insecure channel': 'admin deshabilitado, el canal no es seguro', 'application "%s" uninstalled': 'aplicación "%s" desinstalada', 'application compiled': 'aplicación compilada', 'application is compiled and cannot be designed': 'la aplicación está compilada y no puede ser modificada', 'arguments': 'argumentos', 'back': 'atrás', 'browse': 'buscar', 'cache': 'cache', 'cache, errors and sessions cleaned': 'cache, errores y sesiones eliminados', 'cannot create file': 'no es posible crear archivo', 'cannot upload file "%(filename)s"': 'no es posible subir archivo "%(filename)s"', 'change admin password': 'cambie contraseña admin', 'check all': 'marcar todos', 'clean': 'limpiar', 'click here for online examples': 'haga clic aquí para ver ejemplos en línea', 'click here for the administrative interface': 'haga clic aquí para usar la interfaz administrativa', 'click to check for upgrades': 'haga clic para buscar actualizaciones', 'click to open': 'click to open', 'code': 'código', 'commit (mercurial)': 'commit (mercurial)', 'compile': 'compilar', 'compiled application removed': 'aplicación compilada removida', 'controllers': 'controladores', 'create': 'crear', 'create file with filename:': 'cree archivo con nombre:', 'create new application:': 'nombre de la nueva aplicación:', 'created by': 'creado por', 'crontab': 'crontab', 'currently saved or': 'actualmente guardado o', 'customize me!': 'Adaptame!', 'data uploaded': 'datos subidos', 'database': 'base de datos', 'database %s select': 'selección en base de datos %s', 'database administration': 'administración base de datos', 'db': 'db', 'defines tables': 'define tablas', 'delete': 'eliminar', 'delete all checked': 'eliminar marcados', 'delete plugin': 'eliminar plugin', 'design': 'modificar', 'direction: ltr': 'direction: ltr', 'done!': 'listo!', 'edit': 'editar', 'edit controller': 'editar controlador', 'edit views:': 'editar vistas:', 'errors': 'errores', 'export as csv file': 'exportar como archivo CSV', 'exposes': 'expone', 'extends': 'extiende', 'failed to reload module': 'recarga del módulo ha fallado', 'failed to reload module because:': 'no es posible recargar el módulo por:', 'file "%(filename)s" created': 'archivo "%(filename)s" creado', 'file "%(filename)s" deleted': 'archivo "%(filename)s" eliminado', 'file "%(filename)s" uploaded': 'archivo "%(filename)s" subido', 'file "%(filename)s" was not deleted': 'archivo "%(filename)s" no fué eliminado', 'file "%s" of %s restored': 'archivo "%s" de %s restaurado', 'file changed on disk': 'archivo modificado en el disco', 'file does not exist': 'archivo no existe', 'file saved on %(time)s': 'archivo guardado %(time)s', 'file saved on %s': 'archivo guardado %s', 'help': 'ayuda', 'htmledit': 'htmledit', 'includes': 'incluye', 'insert new': 'inserte nuevo', 'insert new %s': 'inserte nuevo %s', 'install': 'instalar', 'internal error': 'error interno', 'invalid password': 'contraseña inválida', 'invalid request': 'solicitud inválida', 'invalid ticket': 'tiquete inválido', 'language file "%(filename)s" created/updated': 'archivo de lenguaje "%(filename)s" creado/actualizado', 'languages': 'lenguajes', 'languages updated': 'lenguajes actualizados', 'loading...': 'cargando...', 'login': 'inicio de sesión', 'logout': 'fin de sesión', 'manage': 'manage', 'merge': 'combinar', 'models': 'modelos', 'modules': 'módulos', 'new application "%s" created': 'nueva aplicación "%s" creada', 'new plugin installed': 'nuevo plugin instalado', 'new record inserted': 'nuevo registro insertado', 'next 100 rows': '100 filas siguientes', 'no match': 'no encontrado', 'or import from csv file': 'o importar desde archivo CSV', 'or provide app url:': 'o provea URL de la aplicación:', 'or provide application url:': 'o provea URL de la aplicación:', 'overwrite installed app': 'sobreescriba aplicación instalada', 'pack all': 'empaquetar todo', 'pack compiled': 'empaquete compiladas', 'pack plugin': 'empaquetar plugin', 'password changed': 'contraseña cambiada', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" eliminado', 'previous 100 rows': '100 filas anteriores', 'record': 'registro', 'record does not exist': 'el registro no existe', 'record id': 'id de registro', 'remove compiled': 'eliminar compiladas', 'restore': 'restaurar', 'revert': 'revertir', 'save': 'guardar', 'selected': 'seleccionado(s)', 'session expired': 'sesión expirada', 'shell': 'shell', 'site': 'sitio', 'some files could not be removed': 'algunos archivos no pudieron ser removidos', 'state': 'estado', 'static': 'estáticos', 'submit': 'enviar', 'table': 'tabla', 'test': 'probar', 'the application logic, each URL path is mapped in one exposed function in the controller': 'la lógica de la aplicación, cada ruta URL se mapea en una función expuesta en el controlador', 'the data representation, define database tables and sets': 'la representación de datos, define tablas y conjuntos de base de datos', 'the presentations layer, views are also known as templates': 'la capa de presentación, las vistas también son llamadas plantillas', 'these files are served without processing, your images go here': 'estos archivos son servidos sin procesar, sus imágenes van aquí', 'to previous version.': 'a la versión previa.', 'translation strings for the application': 'cadenas de caracteres de traducción para la aplicación', 'try': 'intente', 'try something like': 'intente algo como', 'unable to create application "%s"': 'no es posible crear la aplicación "%s"', 'unable to delete file "%(filename)s"': 'no es posible eliminar el archivo "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'no es posible eliminar plugin "%(plugin)s"', 'unable to parse csv file': 'no es posible analizar el archivo CSV', 'unable to uninstall "%s"': 'no es posible instalar "%s"', 'unable to upgrade because "%s"': 'no es posible actualizar porque "%s"', 'uncheck all': 'desmarcar todos', 'uninstall': 'desinstalar', 'update': 'actualizar', 'update all languages': 'actualizar todos los lenguajes', 'upgrade web2py now': 'actualize web2py ahora', 'upload application:': 'subir aplicación:', 'upload file:': 'suba archivo:', 'upload plugin file:': 'suba archivo de plugin:', 'variables': 'variables', 'versioning': 'versiones', 'view': 'vista', 'views': 'vistas', 'web2py Recent Tweets': 'Tweets Recientes de web2py', 'web2py is up to date': 'web2py está actualizado', 'web2py upgraded; please restart it': 'web2py actualizado; favor reiniciar', } |
Added applications/admin/languages/fr-fr.py version [ed6f3ea1be].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression en option tels que "field1 = \'newvalue\'". Vous ne pouvez pas mettre à jour ou supprimer les résultats d\'une jointure "a JOIN"', '%Y-%m-%d': '%d-%m-%Y', '%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S', '%s rows deleted': 'lignes %s supprimé', '%s rows updated': 'lignes %s mis à jour', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(quelque chose comme "it-it") ', 'A new version of web2py is available: %s': 'Une nouvelle version de web2py est disponible: %s ', 'A new version of web2py is available: Version 1.68.2 (2009-10-21 09:59:29)\n': 'Une nouvelle version de web2py est disponible: Version 1.68.2 (2009-10-21 09:59:29)\r\n', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATTENTION: nécessite une connexion sécurisée (HTTPS) ou être en localhost. ', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATTENTION: les tests ne sont pas thread-safe DONC NE PAS EFFECTUER DES TESTS MULTIPLES SIMULTANÉMENT.', 'ATTENTION: you cannot edit the running application!': "ATTENTION: vous ne pouvez pas modifier l'application qui tourne!", 'About': 'À propos', 'About application': "A propos de l'application", 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'Admin est désactivé parce que canal non sécurisé', 'Admin language': 'Admin language', 'Administrator Password:': 'Mot de passe Administrateur:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Etes-vous sûr de vouloir supprimer le fichier «%s»?', 'Are you sure you want to delete plugin "%s"?': 'Etes-vous sûr de vouloir effacer le plugin "%s"?', 'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?', 'Are you sure you want to uninstall application "%s"?': "Êtes-vous sûr de vouloir désinstaller l'application «%s»?", 'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?', 'Available databases and tables': 'Bases de données et tables disponible', 'Cannot be empty': 'Ne peut pas être vide', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Ne peut pas compiler: il y a des erreurs dans votre application. corriger les erreurs et essayez à nouveau.', 'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:', 'Check to delete': 'Cocher pour supprimer', 'Checking for upgrades...': 'Vérification des mises à jour ... ', 'Controllers': 'Contrôleurs', 'Create new simple application': 'Créer une nouvelle application', 'Current request': 'Requête actuel', 'Current response': 'Réponse actuelle', 'Current session': 'Session en cours', 'Date and Time': 'Date et heure', 'Delete': 'Supprimer', 'Delete this file (you will be asked to confirm deletion)': 'Delete this file (you will be asked to confirm deletion)', 'Delete:': 'Supprimer:', 'Deploy on Google App Engine': 'Déployer sur Google App Engine', 'EDIT': 'MODIFIER', 'Edit application': "Modifier l'application", 'Edit current record': 'Modifier cet entrée', 'Editing Language file': 'Modifier le fichier de langue', 'Editing file': 'Modifier le fichier', 'Editing file "%s"': 'Modifier le fichier "% s" ', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Journal d\'erreurs pour "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'Des fonctions sans doctests entraînera tests [passed] .', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': "Si le rapport ci-dessus contient un numéro de ticket, cela indique une défaillance dans l'exécution du contrôleur, avant toute tentative d'exécuter les doctests. Cela est généralement dû à une erreur d'indentation ou une erreur à l'extérieur du code de la fonction.\r\nUn titre verte indique que tous les tests (si définie) passed. Dans ce cas, les résultats des essais ne sont pas affichées.", 'Import/Export': 'Importer/Exporter', 'Installed applications': 'Les applications installées', 'Internal State': 'État Interne', 'Invalid Query': 'Requête non valide', 'Invalid action': 'Action non valide', 'Language files (static strings) updated': 'Fichiers de langue (static strings) Mise à jour ', 'Languages': 'Langues', 'Last saved on:': 'Dernière sauvegarde le:', 'License for': 'Licence pour', 'Login': 'Connexion', 'Login to the Administrative Interface': "Se connecter à l'interface d'administration", 'Models': 'Modèles', 'Modules': 'Modules', 'NO': 'NON', 'New Record': 'Nouvel Entrée', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'Aucune base de données dans cette application', 'Original/Translation': 'Original / Traduction', 'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here', 'Peeking at file': 'Jeter un oeil au fichier', 'Plugin "%s" in application': 'Plugin "%s" dans l\'application', 'Plugins': 'Plugins', 'Powered by': 'Propulsé par', 'Query:': 'Requête: ', 'Resolve Conflict file': 'Résoudre les conflits de fichiers', 'Rows in table': 'Lignes de la table', 'Rows selected': 'Lignes sélectionnées', "Run tests in this file (to run all files, you may also use the button labelled 'test')": "Run tests in this file (to run all files, you may also use the button labelled 'test')", 'Save': 'Save', 'Saved file hash:': 'Hash du Fichier enregistré:', 'Searching:': 'Searching:', 'Static files': 'Fichiers statiques', 'Sure you want to delete this object?': 'Vous êtes sûr de vouloir supprimer cet objet? ', 'TM': 'MD', 'Testing application': "Test de l'application", 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'La "requête" est une condition comme "db.table1.field1==\'value\'". Quelque chose comme "db.table1.field1==db.table2.field2" aboutit à un JOIN SQL.', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': "Il n'existe pas de contrôleurs", 'There are no models': "Il n'existe pas de modèles", 'There are no modules': "Il n'existe pas de modules", 'There are no plugins': 'There are no plugins', 'There are no static files': "Il n'existe pas de fichiers statiques", 'There are no translators, only default language is supported': "Il n'y a pas de traducteurs, est prise en charge uniquement la langue par défaut", 'There are no views': "Il n'existe pas de vues", 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is the %(filename)s template': 'Ceci est le modèle %(filename)s ', 'Ticket': 'Ticket', 'To create a plugin, name a file/folder plugin_[name]': 'Pour créer un plugin, créer un fichier /dossier plugin_[nom]', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'Impossible de vérifier les mises à niveau', 'Unable to download': 'Impossible de télécharger', 'Unable to download app': 'Impossible de télécharger app', 'Unable to download app because:': 'Unable to download app because:', 'Unable to download because': 'Unable to download because', 'Update:': 'Mise à jour:', 'Upload & install packed application': 'Upload & install packed application', 'Upload a package:': 'Upload a package:', 'Upload existing application': 'charger une application existante', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Utilisez (...)&(...) pour AND, (...)|(...) pour OR, et ~(...) pour NOT et construire des requêtes plus complexes. ', 'Use an url:': 'Use an url:', 'Version': 'Version', 'Views': 'Vues', 'Web Framework': 'Web Framework', 'YES': 'OUI', 'about': 'à propos', 'additional code for your application': 'code supplémentaire pour votre application', 'admin disabled because no admin password': 'admin désactivé car aucun mot de passe admin', 'admin disabled because not supported on google app engine': 'admin désactivé car non pris en charge sur Google Apps engine', 'admin disabled because unable to access password file': "admin désactivé car incapable d'accéder au fichier mot de passe", 'administrative interface': 'administrative interface', 'and rename it (required):': 'et renommez-la (obligatoire):', 'and rename it:': 'et renommez-le:', 'appadmin': 'appadmin', 'appadmin is disabled because insecure channel': 'appadmin est désactivé parce que canal non sécurisé', 'application "%s" uninstalled': 'application "%s" désinstallé', 'application %(appname)s installed with md5sum: %(digest)s': 'application %(appname)s installed with md5sum: %(digest)s', 'application compiled': 'application compilée', 'application is compiled and cannot be designed': "l'application est compilée et ne peut être désigné", 'arguments': 'arguments', 'back': 'retour', 'cache': 'cache', 'cache, errors and sessions cleaned': 'cache, erreurs et sessions nettoyé', 'cannot create file': 'ne peu pas créer de fichier', 'cannot upload file "%(filename)s"': 'ne peu pas charger le fichier "%(filename)s"', 'change admin password': 'change admin password', 'check all': 'tous vérifier ', 'check for upgrades': 'check for upgrades', 'clean': 'nettoyer', 'click to check for upgrades': 'Cliquez pour vérifier les mises à niveau', 'code': 'code', 'collapse/expand all': 'collapse/expand all', 'compile': 'compiler', 'compiled application removed': 'application compilée enlevé', 'controllers': 'contrôleurs', 'create': 'create', 'create file with filename:': 'créer un fichier avec nom de fichier:', 'create new application:': 'créer une nouvelle application:', 'created by': 'créé par', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'actuellement enregistrés ou', 'data uploaded': 'données chargées', 'database': 'base de données', 'database %s select': 'base de données %s sélectionner', 'database administration': 'administration base de données', 'db': 'db', 'defines tables': 'définit les tables', 'delete': 'supprimer', 'delete all checked': 'supprimer tout ce qui est cocher', 'delete plugin': ' supprimer plugin', 'deploy': 'deploy', 'design': 'conception', 'direction: ltr': 'direction: ltr', 'docs': 'docs', 'done!': 'fait!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'modifier', 'edit controller': 'modifier contrôleur', 'edit views:': 'edit views:', 'errors': 'erreurs', 'export as csv file': 'exportation au format CSV', 'exposes': 'expose', 'exposes:': 'exposes:', 'extends': 'étend', 'failed to reload module': 'impossible de recharger le module', 'failed to reload module because:': 'failed to reload module because:', 'file "%(filename)s" created': 'fichier "%(filename)s" créé', 'file "%(filename)s" deleted': 'fichier "%(filename)s" supprimé', 'file "%(filename)s" uploaded': 'fichier "%(filename)s" chargé', 'file "%s" of %s restored': 'fichier "%s" de %s restauré', 'file changed on disk': 'fichier modifié sur le disque', 'file does not exist': "fichier n'existe pas", 'file saved on %(time)s': 'fichier enregistré le %(time)s', 'file saved on %s': 'fichier enregistré le %s', 'files': 'files', 'filter': 'filter', 'help': 'aide', 'htmledit': 'edition html', 'includes': 'inclus', 'index': 'index', 'insert new': 'insérer nouveau', 'insert new %s': 'insérer nouveau %s', 'install': 'install', 'internal error': 'erreur interne', 'invalid password': 'mot de passe invalide', 'invalid request': 'Demande incorrecte', 'invalid ticket': 'ticket non valide', 'language file "%(filename)s" created/updated': 'fichier de langue "%(filename)s" créé/mis à jour', 'languages': 'langues', 'loading...': 'Chargement ...', 'login': 'connexion', 'logout': 'déconnexion', 'merge': 'fusionner', 'models': 'modèles', 'modules': 'modules', 'new application "%s" created': 'nouvelle application "%s" créée', 'new plugin installed': 'nouveau plugin installé', 'new record inserted': 'nouvelle entrée inséré', 'next 100 rows': '100 lignes suivantes', 'no match': 'no match', 'or import from csv file': 'ou importer depuis un fichier CSV ', 'or provide app url:': 'or provide app url:', 'or provide application url:': "ou fournir l'URL de l'application:", 'overwrite installed app': 'overwrite installed app', 'pack all': 'tout empaqueter', 'pack compiled': 'paquet compilé', 'pack plugin': 'paquet plugin', 'password changed': 'password changed', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" supprimé', 'plugins': 'plugins', 'previous 100 rows': '100 lignes précédentes', 'record': 'entrée', 'record does not exist': "l'entrée n'existe pas", 'record id': 'id entrée', 'remove compiled': 'retirer compilé', 'restore': 'restaurer', 'revert': 'revenir', 'save': 'sauver', 'selected': 'sélectionnés', 'session expired': 'la session a expiré ', 'shell': 'shell', 'site': 'site', 'some files could not be removed': 'certains fichiers ne peuvent pas être supprimés', 'start wizard': 'start wizard', 'state': 'état', 'static': 'statiques', 'submit': 'envoyer', 'table': 'table', 'test': 'tester', 'the application logic, each URL path is mapped in one exposed function in the controller': "la logique de l'application, chaque route URL est mappé dans une fonction exposée dans le contrôleur", 'the data representation, define database tables and sets': 'la représentation des données, défini les tables de bases de données et sets', 'the presentations layer, views are also known as templates': 'la couche des présentations, les vues sont également connus en tant que modèles', 'these files are served without processing, your images go here': 'ces fichiers sont servis sans transformation, vos images vont ici', 'to previous version.': 'à la version précédente.', 'translation strings for the application': "chaînes de traduction de l'application", 'try': 'essayer', 'try something like': 'essayez quelque chose comme', 'unable to create application "%s"': 'impossible de créer l\'application "%s"', 'unable to delete file "%(filename)s"': 'impossible de supprimer le fichier "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'impossible de supprimer le plugin "%(plugin)s"', 'unable to parse csv file': "impossible d'analyser les fichiers CSV", 'unable to uninstall "%s"': 'impossible de désinstaller "%s"', 'unable to upgrade because "%s"': 'unable to upgrade because "%s"', 'uncheck all': 'tout décocher', 'uninstall': 'désinstaller', 'update': 'mettre à jour', 'update all languages': 'mettre à jour toutes les langues', 'upgrade now': 'upgrade now', 'upgrade web2py now': 'upgrade web2py now', 'upload': 'upload', 'upload application:': "charger l'application:", 'upload file:': 'charger le fichier:', 'upload plugin file:': 'charger fichier plugin:', 'user': 'user', 'variables': 'variables', 'versioning': 'versioning', 'view': 'vue', 'views': 'vues', 'web2py Recent Tweets': 'web2py Tweets récentes', 'web2py is up to date': 'web2py est à jour', 'web2py upgraded; please restart it': 'web2py upgraded; please restart it', } |
Added applications/admin/languages/he.py version [f3c994794b].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"עדכן" הוא ביטוי אופציונאלי, כגון "field1=newvalue". אינך יוכל להשתמש בjoin, בעת שימוש ב"עדכן" או "מחק".', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '%s רשומות נמחקו', '%s rows updated': '%s רשומות עודכנו', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(למשל "it-it")', 'A new version of web2py is available: %s': 'גירסא חדשה של web2py זמינה: %s', 'A new version of web2py is available: Version 1.85.3 (2010-09-18 07:07:46)\n': 'A new version of web2py is available: Version 1.85.3 (2010-09-18 07:07:46)\r\n', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'לתשומת ליבך: ניתן להתחבר רק בערוץ מאובטח (HTTPS) או מlocalhost', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'לתשומת ליבך: אין לערוך מספר בדיקות במקביל, שכן הן עשויות להפריע זו לזו', 'ATTENTION: you cannot edit the running application!': 'לתשומת ליבך: לא ניתן לערוך אפליקציה בזמן הרצתה', 'About': 'אודות', 'About application': 'אודות אפליקציה', 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'ממשק האדמין נוטרל בשל גישה לא מאובטחת', 'Admin language': 'Admin language', 'Administrator Password:': 'סיסמת מנהל', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'האם אתה בטוח שברצונך למחוק את הקובץ "%s"?', 'Are you sure you want to delete plugin "%s"?': 'האם אתה בטוח שברצונך למחוק את התוסף "%s"?', 'Are you sure you want to uninstall application "%s"?': 'האם אתה בטוח שברצונך להסיר את האפליקציה "%s"?', 'Are you sure you want to upgrade web2py now?': 'האם אתה בטוח שאתה רוצה לשדרג את web2py עכשיו?', 'Available databases and tables': 'מסדי נתונים וטבלאות זמינים', 'Cannot be empty': 'אינו יכול להישאר ריק', 'Cannot compile: there are errors in your app:': 'לא ניתן לקמפל: ישנן שגיאות באפליקציה שלך:', 'Check to delete': 'סמן כדי למחוק', 'Checking for upgrades...': 'מחפש עדכונים', 'Controllers': 'בקרים', 'Create new simple application': 'צור אפליקציה חדשה', 'Current request': 'בקשה נוכחית', 'Current response': 'מענה נוכחי', 'Current session': 'סשן זה', 'Date and Time': 'תאריך ושעה', 'Delete': 'מחק', 'Delete:': 'מחק:', 'Deploy on Google App Engine': 'העלה ל Google App Engine', 'Detailed traceback description': 'Detailed traceback description', 'EDIT': 'ערוך!', 'Edit application': 'ערוך אפליקציה', 'Edit current record': 'ערוך רשומה נוכחית', 'Editing Language file': 'עורך את קובץ השפה', 'Editing file "%s"': 'עורך את הקובץ "%s"', 'Enterprise Web Framework': 'סביבת הפיתוח לרשת', 'Error logs for "%(app)s"': 'דו"ח שגיאות עבור אפליקציה "%(app)s"', 'Error snapshot': 'Error snapshot', 'Error ticket': 'Error ticket', 'Exception instance attributes': 'נתוני החריגה', 'Frames': 'Frames', 'Functions with no doctests will result in [passed] tests.': 'פונקציות שלא הוגדר להן doctest ירשמו כבדיקות ש[עברו בהצלחה].', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'אם בדו"ח לעיל מופיע מספר דו"ח שגיאה, זה מצביע על שגיאה בבקר, עוד לפני שניתן היה להריץ את הdoctest. לרוב מדובר בשגיאת הזחה, או שגיאה שאינה בקוד של הפונקציה.\r\nכותרת ירוקה מצביע על כך שכל הבדיקות (אם הוגדרו) עברו בהצלחה, במידה ותוצאות הבדיקה אינן מופיעות.', 'Import/Export': 'יבא\יצא', 'Installed applications': 'אפליקציות מותקנות', 'Internal State': 'מצב מובנה', 'Invalid Query': 'שאילתה לא תקינה', 'Invalid action': 'הוראה לא קיימת', 'Language files (static strings) updated': 'קובץ השפה (מחרוזות סטאטיות) עודכן', 'Languages': 'שפות', 'Last saved on:': 'לאחרונה נשמר בתאריך:', 'License for': 'רשיון עבור', 'Login': 'התחבר', 'Login to the Administrative Interface': 'התחבר לממשק המנהל', 'Models': 'מבני נתונים', 'Modules': 'מודולים', 'NO': 'לא', 'New Record': 'רשומה חדשה', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'אין מסדי נתונים לאפליקציה זו', 'Original/Translation': 'מקור\תרגום', 'PAM authenticated user, cannot change password here': 'שינוי סיסמא באמצעות PAM אינו יכול להתבצע כאן', 'Peeking at file': 'מעיין בקובץ', 'Plugin "%s" in application': 'פלאגין "%s" של אפליקציה', 'Plugins': 'תוספים', 'Powered by': 'מופעל ע"י', 'Query:': 'שאילתה:', 'Resolve Conflict file': 'הסר קובץ היוצר קונפליקט', 'Rows in table': 'רשומות בטבלה', 'Rows selected': 'רשומות נבחרו', 'Saved file hash:': 'גיבוב הקובץ השמור:', 'Static files': 'קבצים סטאטיים', 'Sure you want to delete this object?': 'האם אתה בטוח שברצונך למחוק אובייקט זה?', 'TM': 'סימן רשום', 'Testing application': 'בודק את האפליקציה', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '"שאליתה" היא תנאי כגון "db1.table1.filed1=\'value\'" ביטוי כמו db.table1.field1=db.table2.field1 יחולל join', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': 'אין בקרים', 'There are no models': 'אין מבני נתונים', 'There are no modules': 'אין מודולים', 'There are no plugins': 'There are no plugins', 'There are no static files': 'אין קבצים סטאטיים', 'There are no translators, only default language is supported': 'אין תרגומים. רק שפת ברירת המחדל נתמכת', 'There are no views': 'אין קבצי תצוגה', 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is the %(filename)s template': 'זוהי תבנית הקובץ %(filename)s ', 'Ticket': 'דו"ח שגיאה', 'Ticket ID': 'Ticket ID', 'To create a plugin, name a file/folder plugin_[name]': 'כדי ליצור תוסף, קרא לקובץ או סיפריה בשם לפי התבנית plugin_[name]', 'Traceback': 'Traceback', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'לא ניתן היה לבדוק אם יש שדרוגים', 'Unable to download app because:': 'לא ניתן היה להוריד את האפליקציה כי:', 'Unable to download because': 'לא הצלחתי להוריד כי', 'Update:': 'עדכן:', 'Upload & install packed application': 'העלה והתקן אפליקציה ארוזה', 'Upload a package:': 'Upload a package:', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'השתמש ב (...)&(...) עבור תנאי AND, (...)|(...) עבור תנאי OR ו~(...) עבור תנאי NOT ליצירת שאילתות מורכבות', 'Use an url:': 'Use an url:', 'Version': 'גירסא', 'Views': 'מראה', 'YES': 'כן', 'about': 'אודות', 'additional code for your application': 'קוד נוסף עבור האפליקציה שלך', 'admin disabled because no admin password': 'ממשק המנהל מנוטרל כי לא הוגדרה סיסמת מנהל', 'admin disabled because not supported on google app engine': 'ממשק המנהל נוטרל, כי אין תמיכה בGoogle app engine', 'admin disabled because unable to access password file': 'ממשק מנהל נוטרל, כי לא ניתן לגשת לקובץ הסיסמאות', 'administrative interface': 'administrative interface', 'and rename it (required):': 'ושנה את שמו (חובה):', 'and rename it:': 'ושנה את שמו:', 'appadmin': 'מנהל מסד הנתונים', 'appadmin is disabled because insecure channel': 'מנהל מסד הנתונים נוטרל בשל ערוץ לא מאובטח', 'application "%s" uninstalled': 'אפליקציה "%s" הוסרה', 'application compiled': 'אפליקציה קומפלה', 'application is compiled and cannot be designed': 'לא ניתן לערוך אפליקציה מקומפלת', 'arguments': 'פרמטרים', 'back': 'אחורה', 'cache': 'מטמון', 'cache, errors and sessions cleaned': 'מטמון, שגיאות וסשן נוקו', 'cannot create file': 'לא מצליח ליצור קובץ', 'cannot upload file "%(filename)s"': 'לא הצלחתי להעלות את הקובץ "%(filename)s"', 'change admin password': 'סיסמת מנהל שונתה', 'check all': 'סמן הכל', 'check for upgrades': 'check for upgrades', 'clean': 'נקה', 'click to check for upgrades': 'לחץ כדי לחפש עדכונים', 'code': 'קוד', 'collapse/expand all': 'collapse/expand all', 'compile': 'קמפל', 'compiled application removed': 'אפליקציה מקומפלת הוסרה', 'controllers': 'בקרים', 'create': 'צור', 'create file with filename:': 'צור קובץ בשם:', 'create new application:': 'צור אפליקציה חדשה:', 'created by': 'נוצר ע"י', 'crontab': 'משימות מתוזמנות', 'currently running': 'currently running', 'currently saved or': 'נשמר כעת או', 'data uploaded': 'המידע הועלה', 'database': 'מסד נתונים', 'database %s select': 'מסד הנתונים %s נבחר', 'database administration': 'ניהול מסד נתונים', 'db': 'מסד נתונים', 'defines tables': 'הגדר טבלאות', 'delete': 'מחק', 'delete all checked': 'סמן הכל למחיקה', 'delete plugin': 'מחק תוסף', 'deploy': 'deploy', 'design': 'עיצוב', 'direction: ltr': 'direction: rtl', 'done!': 'הסתיים!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'ערוך', 'edit controller': 'ערוך בקר', 'edit views:': 'ערוך קיבצי תצוגה:', 'errors': 'שגיאות', 'export as csv file': 'יצא לקובץ csv', 'exposes': 'חושף את', 'extends': 'הרחבה של', 'failed to reload module because:': 'נכשל בטעינה חוזרת של מודול בגלל:', 'file "%(filename)s" created': 'הקובץ "%(filename)s" נוצר', 'file "%(filename)s" deleted': 'הקובץ "%(filename)s" נמחק', 'file "%(filename)s" uploaded': 'הקובץ "%(filename)s" הועלה', 'file "%s" of %s restored': 'הקובץ "%s" of %s שוחזר', 'file changed on disk': 'קובץ שונה על גבי הדיסק', 'file does not exist': 'קובץ לא נמצא', 'file saved on %(time)s': 'הקובץ נשמר בשעה %(time)s', 'file saved on %s': 'הקובץ נשמר ב%s', 'filter': 'filter', 'help': 'עזרה', 'htmledit': 'עורך ויזואלי', 'includes': 'מכיל', 'insert new': 'הכנס נוסף', 'insert new %s': 'הכנס %s נוסף', 'inspect attributes': 'inspect attributes', 'install': 'התקן', 'internal error': 'שגיאה מובנית', 'invalid password': 'סיסמא שגויה', 'invalid request': 'בקשה לא תקינה', 'invalid ticket': 'דו"ח שגיאה לא קיים', 'language file "%(filename)s" created/updated': 'קובץ השפה "%(filename)s" נוצר\עודכן', 'languages': 'שפות', 'loading...': 'טוען...', 'locals': 'locals', 'login': 'התחבר', 'logout': 'התנתק', 'merge': 'מזג', 'models': 'מבני נתונים', 'modules': 'מודולים', 'new application "%s" created': 'האפליקציה "%s" נוצרה', 'new plugin installed': 'פלאגין חדש הותקן', 'new record inserted': 'הרשומה נוספה', 'next 100 rows': '100 הרשומות הבאות', 'no match': 'לא נמצאה התאמה', 'or import from csv file': 'או יבא מקובץ csv', 'or provide app url:': 'או ספק כתובת url של אפליקציה', 'overwrite installed app': 'התקן על גבי אפלקציה מותקנת', 'pack all': 'ארוז הכל', 'pack compiled': 'ארוז מקומפל', 'pack plugin': 'ארוז תוסף', 'password changed': 'סיסמא שונתה', 'plugin "%(plugin)s" deleted': 'תוסף "%(plugin)s" נמחק', 'plugins': 'plugins', 'previous 100 rows': '100 הרשומות הקודמות', 'record': 'רשומה', 'record does not exist': 'הרשומה אינה קיימת', 'record id': 'מזהה רשומה', 'remove compiled': 'הסר מקומפל', 'request': 'request', 'response': 'response', 'restore': 'שחזר', 'revert': 'חזור לגירסא קודמת', 'selected': 'נבחרו', 'session': 'session', 'session expired': 'תם הסשן', 'shell': 'שורת פקודה', 'site': 'אתר', 'some files could not be removed': 'לא ניתן היה להסיר חלק מהקבצים', 'start wizard': 'start wizard', 'state': 'מצב', 'static': 'קבצים סטאטיים', 'submit': 'שלח', 'table': 'טבלה', 'test': 'בדיקות', 'the application logic, each URL path is mapped in one exposed function in the controller': 'הלוגיקה של האפליקציה, כל url ממופה לפונקציה חשופה בבקר', 'the data representation, define database tables and sets': 'ייצוג המידע, בו מוגדרים טבלאות ומבנים', 'the presentations layer, views are also known as templates': 'שכבת התצוגה, המכונה גם template', 'these files are served without processing, your images go here': 'אלו הם קבצים הנשלחים מהשרת ללא עיבוד. הכנס את התמונות כאן', 'to previous version.': 'אין גירסא קודמת', 'translation strings for the application': 'מחרוזות תרגום עבור האפליקציה', 'try': 'נסה', 'try something like': 'נסה משהו כמו', 'unable to create application "%s"': 'נכשל ביצירת האפליקציה "%s"', 'unable to delete file "%(filename)s"': 'נכשל במחיקת הקובץ "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'נכשל במחיקת התוסף "%(plugin)s"', 'unable to parse csv file': 'לא הצלחתי לנתח את הקלט של קובץ csv', 'unable to uninstall "%s"': 'לא ניתן להסיר את "%s"', 'unable to upgrade because "%s"': 'לא ניתן היה לשדרג כי "%s"', 'uncheck all': 'הסר סימון מהכל', 'uninstall': 'הסר התקנה', 'update': 'עדכן', 'update all languages': 'עדכן את כלל קיבצי השפה', 'upgrade now': 'upgrade now', 'upgrade web2py now': 'שדרג את web2py עכשיו', 'upload': 'upload', 'upload application:': 'העלה אפליקציה:', 'upload file:': 'העלה קובץ:', 'upload plugin file:': 'העלה קובץ תוסף:', 'variables': 'משתנים', 'versioning': 'מנגנון גירסאות', 'view': 'הצג', 'views': 'מראה', 'web2py Recent Tweets': 'ציוצים אחרונים של web2py', 'web2py is up to date': 'web2py מותקנת בגירסתה האחרונה', 'web2py upgraded; please restart it': 'web2py שודרגה; נא אתחל אותה', } |
Added applications/admin/languages/it-it.py version [f838859834].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOIN ', '%Y-%m-%d': '%d/%m/%Y', '%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S', '%s rows deleted': '%s righe ("record") cancellate', '%s rows updated': '%s righe ("record") modificate', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(qualcosa simile a "it-it")', 'A new version of web2py is available: %s': 'È disponibile una nuova versione di web2py: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': "ATTENZIONE: L'accesso richiede una connessione sicura (HTTPS) o l'esecuzione di web2py in locale (connessione su localhost)", 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATTENTZIONE: NON ESEGUIRE PIÙ TEST IN PARALLELO (I TEST NON SONO "THREAD SAFE")', 'ATTENTION: you cannot edit the running application!': "ATTENZIONE: non puoi modificare l'applicazione correntemente in uso ", 'About': 'Informazioni', 'About application': "Informazioni sull'applicazione", 'Admin is disabled because insecure channel': 'amministrazione disabilitata: comunicazione non sicura', 'Administrator Password:': 'Password Amministratore:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Confermi di voler cancellare il file "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Confermi di voler cancellare il plugin "%s"?', 'Are you sure you want to uninstall application "%s"?': 'Confermi di voler disinstallare l\'applicazione "%s"?', 'Are you sure you want to upgrade web2py now?': 'Confermi di voler aggiornare web2py ora?', 'Available databases and tables': 'Database e tabelle disponibili', 'Cannot be empty': 'Non può essere vuoto', 'Cannot compile: there are errors in your app:': "Compilazione fallita: ci sono errori nell'applicazione.", 'Check to delete': 'Seleziona per cancellare', 'Checking for upgrades...': 'Controllo aggiornamenti in corso...', 'Controller': 'Controller', 'Controllers': 'Controllers', 'Copyright': 'Copyright', 'Create new simple application': 'Crea nuova applicazione', 'Current request': 'Richiesta (request) corrente', 'Current response': 'Risposta (response) corrente', 'Current session': 'Sessione (session) corrente', 'DB Model': 'Modello di DB', 'Database': 'Database', 'Date and Time': 'Data and Ora', 'Delete': 'Cancella', 'Delete:': 'Cancella:', 'Deploy on Google App Engine': 'Installa su Google App Engine', 'EDIT': 'MODIFICA', 'Edit': 'Modifica', 'Edit This App': 'Modifica questa applicazione', 'Edit application': 'Modifica applicazione', 'Edit current record': 'Modifica record corrente', 'Editing Language file': 'Modifica file linguaggio', 'Editing file "%s"': 'Modifica del file "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Log degli errori per "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'I test delle funzioni senza "doctests" risulteranno sempre [passed].', 'Hello World': 'Salve Mondo', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': 'Importa/Esporta', 'Index': 'Indice', 'Installed applications': 'Applicazioni installate', 'Internal State': 'Stato interno', 'Invalid Query': 'Richiesta (query) non valida', 'Invalid action': 'Azione non valida', 'Language files (static strings) updated': 'Linguaggi (documenti con stringhe statiche) aggiornati', 'Languages': 'Linguaggi', 'Last saved on:': 'Ultimo salvataggio:', 'Layout': 'Layout', 'License for': 'Licenza relativa a', 'Login': 'Accesso', 'Login to the Administrative Interface': "Accesso all'interfaccia amministrativa", 'Main Menu': 'Menu principale', 'Menu Model': 'Menu Modelli', 'Models': 'Modelli', 'Modules': 'Moduli', 'NO': 'NO', 'New Record': 'Nuovo elemento (record)', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'Nessun database presente in questa applicazione', 'Original/Translation': 'Originale/Traduzione', 'PAM authenticated user, cannot change password here': 'utente autenticato tramite PAM, impossibile modificare password qui', 'Peeking at file': 'Uno sguardo al file', 'Plugin "%s" in application': 'Plugin "%s" nell\'applicazione', 'Plugins': 'I Plugins', 'Powered by': 'Powered by', 'Query:': 'Richiesta (query):', 'Resolve Conflict file': 'File di risoluzione conflitto', 'Rows in table': 'Righe nella tabella', 'Rows selected': 'Righe selezionate', 'Saved file hash:': 'Hash del file salvato:', 'Static files': 'Files statici', 'Stylesheet': 'Foglio di stile (stylesheet)', 'Sure you want to delete this object?': 'Vuoi veramente cancellare questo oggetto?', 'TM': 'TM', 'Testing application': 'Test applicazione in corsg', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'La richiesta (query) è una condizione come ad esempio "db.tabella1.campo1==\'valore\'". Una condizione come "db.tabella1.campo1==db.tabella2.campo2" produce un "JOIN" SQL.', 'There are no controllers': 'Non ci sono controller', 'There are no models': 'Non ci sono modelli', 'There are no modules': 'Non ci sono moduli', 'There are no static files': 'Non ci sono file statici', 'There are no translators, only default language is supported': 'Non ci sono traduzioni, viene solo supportato il linguaggio di base', 'There are no views': 'Non ci sono viste ("view")', 'This is the %(filename)s template': 'Questo è il template %(filename)s', 'Ticket': 'Ticket', 'To create a plugin, name a file/folder plugin_[name]': 'Per creare un plugin, chiamare un file o cartella plugin_[nome]', 'Unable to check for upgrades': 'Impossibile controllare presenza di aggiornamenti', 'Unable to download app because:': 'Impossibile scaricare applicazione perché', 'Unable to download because': 'Impossibile scaricare perché', 'Update:': 'Aggiorna:', 'Upload & install packed application': 'Carica ed installa pacchetto con applicazione', 'Upload a package:': 'Upload a package:', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Per costruire richieste (query) più complesse si usano (...)&(...) come "e" (AND), (...)|(...) come "o" (OR), e ~(...) come negazione (NOT).', 'Use an url:': 'Use an url:', 'Version': 'Versione', 'View': 'Vista', 'Views': 'viste', 'Welcome %s': 'Benvenuto %s', 'Welcome to web2py': 'Benvenuto su web2py', 'YES': 'SI', 'about': 'informazioni', 'additional code for your application': 'righe di codice aggiuntive per la tua applicazione', 'admin disabled because no admin password': 'amministrazione disabilitata per mancanza di password amministrativa', 'admin disabled because not supported on google app engine': 'amministrazione non supportata da Google Apps Engine', 'admin disabled because unable to access password file': 'amministrazione disabilitata per impossibilità di leggere il file delle password', 'administrative interface': 'administrative interface', 'and rename it (required):': 'e rinominala (obbligatorio):', 'and rename it:': 'e rinominala:', 'appadmin': 'appadmin ', 'appadmin is disabled because insecure channel': 'amministrazione app (appadmin) disabilitata: comunicazione non sicura', 'application "%s" uninstalled': 'applicazione "%s" disinstallata', 'application compiled': 'applicazione compilata', 'application is compiled and cannot be designed': "l'applicazione è compilata e non si può modificare", 'arguments': 'arguments', 'back': 'indietro', 'cache': 'cache', 'cache, errors and sessions cleaned': 'pulitura cache, errori and sessioni ', 'cannot create file': 'impossibile creare il file', 'cannot upload file "%(filename)s"': 'impossibile caricare il file "%(filename)s"', 'change admin password': 'change admin password', 'change password': 'cambia password', 'check all': 'controlla tutto', 'check for upgrades': 'check for upgrades', 'clean': 'pulisci', 'click here for online examples': 'clicca per vedere gli esempi', 'click here for the administrative interface': "clicca per l'interfaccia amministrativa", 'click to check for upgrades': 'clicca per controllare presenza di aggiornamenti', 'code': 'code', 'compile': 'compila', 'compiled application removed': "rimosso il codice compilato dell'applicazione", 'controllers': 'controllers', 'create': 'crea', 'create file with filename:': 'crea un file col nome:', 'create new application:': 'create new application:', 'created by': 'creato da', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'attualmente salvato o', 'customize me!': 'Personalizzami!', 'data uploaded': 'dati caricati', 'database': 'database', 'database %s select': 'database %s select', 'database administration': 'amministrazione database', 'db': 'db', 'defines tables': 'defininisce le tabelle', 'delete': 'Cancella', 'delete all checked': 'cancella tutti i selezionati', 'delete plugin': 'cancella plugin', 'deploy': 'deploy', 'design': 'progetta', 'direction: ltr': 'direction: ltr', 'done!': 'fatto!', 'edit': 'modifica', 'edit controller': 'modifica controller', 'edit profile': 'modifica profilo', 'edit views:': 'modifica viste (view):', 'errors': 'errori', 'export as csv file': 'esporta come file CSV', 'exposes': 'espone', 'extends': 'estende', 'failed to reload module because:': 'ricaricamento modulo fallito perché:', 'file "%(filename)s" created': 'creato il file "%(filename)s"', 'file "%(filename)s" deleted': 'cancellato il file "%(filename)s"', 'file "%(filename)s" uploaded': 'caricato il file "%(filename)s"', 'file "%s" of %s restored': 'ripristinato "%(filename)s"', 'file changed on disk': 'il file ha subito una modifica su disco', 'file does not exist': 'file inesistente', 'file saved on %(time)s': "file salvato nell'istante %(time)s", 'file saved on %s': 'file salvato: %s', 'help': 'aiuto', 'htmledit': 'modifica come html', 'includes': 'include', 'insert new': 'inserisci nuovo', 'insert new %s': 'inserisci nuovo %s', 'install': 'installa', 'internal error': 'errore interno', 'invalid password': 'password non valida', 'invalid request': 'richiesta non valida', 'invalid ticket': 'ticket non valido', 'language file "%(filename)s" created/updated': 'file linguaggio "%(filename)s" creato/aggiornato', 'languages': 'linguaggi', 'loading...': 'caricamento...', 'login': 'accesso', 'logout': 'uscita', 'merge': 'unisci', 'models': 'modelli', 'modules': 'moduli', 'new application "%s" created': 'creata la nuova applicazione "%s"', 'new plugin installed': 'installato nuovo plugin', 'new record inserted': 'nuovo record inserito', 'next 100 rows': 'prossime 100 righe', 'no match': 'nessuna corrispondenza', 'or import from csv file': 'oppure importa da file CSV', 'or provide app url:': "oppure fornisci url dell'applicazione:", 'overwrite installed app': 'sovrascrivi applicazione installata', 'pack all': 'crea pacchetto', 'pack compiled': 'crea pacchetto del codice compilato', 'pack plugin': 'crea pacchetto del plugin', 'password changed': 'password modificata', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" cancellato', 'previous 100 rows': '100 righe precedenti', 'record': 'record', 'record does not exist': 'il record non esiste', 'record id': 'ID del record', 'register': 'registrazione', 'remove compiled': 'rimozione codice compilato', 'restore': 'ripristino', 'revert': 'versione precedente', 'selected': 'selezionato', 'session expired': 'sessions scaduta', 'shell': 'shell', 'site': 'sito', 'some files could not be removed': 'non è stato possibile rimuovere alcuni files', 'start wizard': 'start wizard', 'state': 'stato', 'static': 'statico', 'submit': 'invia', 'table': 'tabella', 'test': 'test', 'the application logic, each URL path is mapped in one exposed function in the controller': 'logica dell\'applicazione, ogni percorso "URL" corrisponde ad una funzione esposta da un controller', 'the data representation, define database tables and sets': 'rappresentazione dei dati, definizione di tabelle di database e di "set" ', 'the presentations layer, views are also known as templates': 'Presentazione dell\'applicazione, viste (views, chiamate anche "templates")', 'these files are served without processing, your images go here': 'questi files vengono serviti così come sono, le immagini vanno qui', 'to previous version.': 'torna a versione precedente', 'translation strings for the application': "stringhe di traduzioni per l'applicazione", 'try': 'prova', 'try something like': 'prova qualcosa come', 'unable to create application "%s"': 'impossibile creare applicazione "%s"', 'unable to delete file "%(filename)s"': 'impossibile rimuovere file "%(plugin)s"', 'unable to delete file plugin "%(plugin)s"': 'impossibile rimuovere file di plugin "%(plugin)s"', 'unable to parse csv file': 'non riesco a decodificare questo file CSV', 'unable to uninstall "%s"': 'impossibile disinstallare "%s"', 'unable to upgrade because "%s"': 'impossibile aggiornare perché "%s"', 'uncheck all': 'smarca tutti', 'uninstall': 'disinstalla', 'update': 'aggiorna', 'update all languages': 'aggiorna tutti i linguaggi', 'upgrade web2py now': 'upgrade web2py now', 'upload application:': 'carica applicazione:', 'upload file:': 'carica file:', 'upload plugin file:': 'carica file di plugin:', 'variables': 'variables', 'versioning': 'sistema di versioni', 'view': 'vista', 'views': 'viste', 'web2py Recent Tweets': 'Tweets recenti per web2py', 'web2py is up to date': 'web2py è aggiornato', 'web2py upgraded; please restart it': 'web2py aggiornato; prego riavviarlo', } |
Added applications/admin/languages/it.py version [bef6439651].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOIN ', '%Y-%m-%d': '%d/%m/%Y', '%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S', '%s rows deleted': '%s righe ("record") cancellate', '%s rows updated': '%s righe ("record") modificate', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(qualcosa simile a "it-it")', 'A new version of web2py is available: %s': 'È disponibile una nuova versione di web2py: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': "ATTENZIONE: L'accesso richiede una connessione sicura (HTTPS) o l'esecuzione di web2py in locale (connessione su localhost)", 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATTENTZIONE: NON ESEGUIRE PIÙ TEST IN PARALLELO (I TEST NON SONO "THREAD SAFE")', 'ATTENTION: you cannot edit the running application!': "ATTENZIONE: non puoi modificare l'applicazione correntemente in uso ", 'About': 'Informazioni', 'About application': "Informazioni sull'applicazione", 'Admin is disabled because insecure channel': 'amministrazione disabilitata: comunicazione non sicura', 'Admin language': 'Admin language', 'Administrator Password:': 'Password Amministratore:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Confermi di voler cancellare il file "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Confermi di voler cancellare il plugin "%s"?', 'Are you sure you want to uninstall application "%s"?': 'Confermi di voler disinstallare l\'applicazione "%s"?', 'Are you sure you want to upgrade web2py now?': 'Confermi di voler aggiornare web2py ora?', 'Available databases and tables': 'Database e tabelle disponibili', 'Cannot be empty': 'Non può essere vuoto', 'Cannot compile: there are errors in your app:': "Compilazione fallita: ci sono errori nell'applicazione.", 'Check to delete': 'Seleziona per cancellare', 'Checking for upgrades...': 'Controllo aggiornamenti in corso...', 'Controller': 'Controller', 'Controllers': 'Controllers', 'Copyright': 'Copyright', 'Create new simple application': 'Crea nuova applicazione', 'Current request': 'Richiesta (request) corrente', 'Current response': 'Risposta (response) corrente', 'Current session': 'Sessione (session) corrente', 'DB Model': 'Modello di DB', 'Database': 'Database', 'Date and Time': 'Data and Ora', 'Delete': 'Cancella', 'Delete:': 'Cancella:', 'Deploy on Google App Engine': 'Installa su Google App Engine', 'EDIT': 'MODIFICA', 'Edit': 'Modifica', 'Edit This App': 'Modifica questa applicazione', 'Edit application': 'Modifica applicazione', 'Edit current record': 'Modifica record corrente', 'Editing Language file': 'Modifica file linguaggio', 'Editing file "%s"': 'Modifica del file "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Log degli errori per "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'I test delle funzioni senza "doctests" risulteranno sempre [passed].', 'Hello World': 'Salve Mondo', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': 'Importa/Esporta', 'Index': 'Indice', 'Installed applications': 'Applicazioni installate', 'Internal State': 'Stato interno', 'Invalid Query': 'Richiesta (query) non valida', 'Invalid action': 'Azione non valida', 'Language files (static strings) updated': 'Linguaggi (documenti con stringhe statiche) aggiornati', 'Languages': 'Linguaggi', 'Last saved on:': 'Ultimo salvataggio:', 'Layout': 'Layout', 'License for': 'Licenza relativa a', 'Login': 'Accesso', 'Login to the Administrative Interface': "Accesso all'interfaccia amministrativa", 'Main Menu': 'Menu principale', 'Menu Model': 'Menu Modelli', 'Models': 'Modelli', 'Modules': 'Moduli', 'NO': 'NO', 'New Record': 'Nuovo elemento (record)', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'Nessun database presente in questa applicazione', 'Original/Translation': 'Originale/Traduzione', 'PAM authenticated user, cannot change password here': 'utente autenticato tramite PAM, impossibile modificare password qui', 'Peeking at file': 'Uno sguardo al file', 'Plugin "%s" in application': 'Plugin "%s" nell\'applicazione', 'Plugins': 'I Plugins', 'Powered by': 'Powered by', 'Query:': 'Richiesta (query):', 'Resolve Conflict file': 'File di risoluzione conflitto', 'Rows in table': 'Righe nella tabella', 'Rows selected': 'Righe selezionate', 'Saved file hash:': 'Hash del file salvato:', 'Static files': 'Files statici', 'Stylesheet': 'Foglio di stile (stylesheet)', 'Sure you want to delete this object?': 'Vuoi veramente cancellare questo oggetto?', 'TM': 'TM', 'Testing application': 'Test applicazione in corsg', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'La richiesta (query) è una condizione come ad esempio "db.tabella1.campo1==\'valore\'". Una condizione come "db.tabella1.campo1==db.tabella2.campo2" produce un "JOIN" SQL.', 'There are no controllers': 'Non ci sono controller', 'There are no models': 'Non ci sono modelli', 'There are no modules': 'Non ci sono moduli', 'There are no static files': 'Non ci sono file statici', 'There are no translators, only default language is supported': 'Non ci sono traduzioni, viene solo supportato il linguaggio di base', 'There are no views': 'Non ci sono viste ("view")', 'This is the %(filename)s template': 'Questo è il template %(filename)s', 'Ticket': 'Ticket', 'To create a plugin, name a file/folder plugin_[name]': 'Per creare un plugin, chiamare un file o cartella plugin_[nome]', 'Unable to check for upgrades': 'Impossibile controllare presenza di aggiornamenti', 'Unable to download app because:': 'Impossibile scaricare applicazione perché', 'Unable to download because': 'Impossibile scaricare perché', 'Unable to download because:': 'Unable to download because:', 'Update:': 'Aggiorna:', 'Upload & install packed application': 'Carica ed installa pacchetto con applicazione', 'Upload a package:': 'Upload a package:', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Per costruire richieste (query) più complesse si usano (...)&(...) come "e" (AND), (...)|(...) come "o" (OR), e ~(...) come negazione (NOT).', 'Use an url:': 'Use an url:', 'Version': 'Versione', 'View': 'Vista', 'Views': 'viste', 'Welcome %s': 'Benvenuto %s', 'Welcome to web2py': 'Benvenuto su web2py', 'YES': 'SI', 'about': 'informazioni', 'additional code for your application': 'righe di codice aggiuntive per la tua applicazione', 'admin disabled because no admin password': 'amministrazione disabilitata per mancanza di password amministrativa', 'admin disabled because not supported on google app engine': 'amministrazione non supportata da Google Apps Engine', 'admin disabled because unable to access password file': 'amministrazione disabilitata per impossibilità di leggere il file delle password', 'administrative interface': 'administrative interface', 'and rename it (required):': 'e rinominala (obbligatorio):', 'and rename it:': 'e rinominala:', 'appadmin': 'appadmin ', 'appadmin is disabled because insecure channel': 'amministrazione app (appadmin) disabilitata: comunicazione non sicura', 'application "%s" uninstalled': 'applicazione "%s" disinstallata', 'application compiled': 'applicazione compilata', 'application is compiled and cannot be designed': "l'applicazione è compilata e non si può modificare", 'arguments': 'arguments', 'back': 'indietro', 'cache': 'cache', 'cache, errors and sessions cleaned': 'pulitura cache, errori and sessioni ', 'cannot create file': 'impossibile creare il file', 'cannot upload file "%(filename)s"': 'impossibile caricare il file "%(filename)s"', 'change admin password': 'change admin password', 'change password': 'cambia password', 'check all': 'controlla tutto', 'check for upgrades': 'check for upgrades', 'clean': 'pulisci', 'click here for online examples': 'clicca per vedere gli esempi', 'click here for the administrative interface': "clicca per l'interfaccia amministrativa", 'click to check for upgrades': 'clicca per controllare presenza di aggiornamenti', 'code': 'code', 'compile': 'compila', 'compiled application removed': "rimosso il codice compilato dell'applicazione", 'controllers': 'controllers', 'create': 'crea', 'create file with filename:': 'crea un file col nome:', 'create new application:': 'create new application:', 'created by': 'creato da', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'attualmente salvato o', 'customize me!': 'Personalizzami!', 'data uploaded': 'dati caricati', 'database': 'database', 'database %s select': 'database %s select', 'database administration': 'amministrazione database', 'db': 'db', 'defines tables': 'defininisce le tabelle', 'delete': 'Cancella', 'delete all checked': 'cancella tutti i selezionati', 'delete plugin': 'cancella plugin', 'deploy': 'deploy', 'design': 'progetta', 'direction: ltr': 'direction: ltr', 'done!': 'fatto!', 'edit': 'modifica', 'edit controller': 'modifica controller', 'edit profile': 'modifica profilo', 'edit views:': 'modifica viste (view):', 'errors': 'errori', 'export as csv file': 'esporta come file CSV', 'exposes': 'espone', 'extends': 'estende', 'failed to reload module because:': 'ricaricamento modulo fallito perché:', 'file "%(filename)s" created': 'creato il file "%(filename)s"', 'file "%(filename)s" deleted': 'cancellato il file "%(filename)s"', 'file "%(filename)s" uploaded': 'caricato il file "%(filename)s"', 'file "%s" of %s restored': 'ripristinato "%(filename)s"', 'file changed on disk': 'il file ha subito una modifica su disco', 'file does not exist': 'file inesistente', 'file saved on %(time)s': "file salvato nell'istante %(time)s", 'file saved on %s': 'file salvato: %s', 'help': 'aiuto', 'htmledit': 'modifica come html', 'includes': 'include', 'insert new': 'inserisci nuovo', 'insert new %s': 'inserisci nuovo %s', 'install': 'installa', 'internal error': 'errore interno', 'invalid password': 'password non valida', 'invalid request': 'richiesta non valida', 'invalid ticket': 'ticket non valido', 'language file "%(filename)s" created/updated': 'file linguaggio "%(filename)s" creato/aggiornato', 'languages': 'linguaggi', 'loading...': 'caricamento...', 'login': 'accesso', 'logout': 'uscita', 'merge': 'unisci', 'models': 'modelli', 'modules': 'moduli', 'new application "%s" created': 'creata la nuova applicazione "%s"', 'new plugin installed': 'installato nuovo plugin', 'new record inserted': 'nuovo record inserito', 'next 100 rows': 'prossime 100 righe', 'no match': 'nessuna corrispondenza', 'or import from csv file': 'oppure importa da file CSV', 'or provide app url:': "oppure fornisci url dell'applicazione:", 'overwrite installed app': 'sovrascrivi applicazione installata', 'pack all': 'crea pacchetto', 'pack compiled': 'crea pacchetto del codice compilato', 'pack plugin': 'crea pacchetto del plugin', 'password changed': 'password modificata', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" cancellato', 'previous 100 rows': '100 righe precedenti', 'record': 'record', 'record does not exist': 'il record non esiste', 'record id': 'ID del record', 'register': 'registrazione', 'remove compiled': 'rimozione codice compilato', 'restore': 'ripristino', 'revert': 'versione precedente', 'selected': 'selezionato', 'session expired': 'sessions scaduta', 'shell': 'shell', 'site': 'sito', 'some files could not be removed': 'non è stato possibile rimuovere alcuni files', 'start wizard': 'start wizard', 'state': 'stato', 'static': 'statico', 'submit': 'invia', 'table': 'tabella', 'test': 'test', 'the application logic, each URL path is mapped in one exposed function in the controller': 'logica dell\'applicazione, ogni percorso "URL" corrisponde ad una funzione esposta da un controller', 'the data representation, define database tables and sets': 'rappresentazione dei dati, definizione di tabelle di database e di "set" ', 'the presentations layer, views are also known as templates': 'Presentazione dell\'applicazione, viste (views, chiamate anche "templates")', 'these files are served without processing, your images go here': 'questi files vengono serviti così come sono, le immagini vanno qui', 'to previous version.': 'torna a versione precedente', 'translation strings for the application': "stringhe di traduzioni per l'applicazione", 'try': 'prova', 'try something like': 'prova qualcosa come', 'unable to create application "%s"': 'impossibile creare applicazione "%s"', 'unable to delete file "%(filename)s"': 'impossibile rimuovere file "%(plugin)s"', 'unable to delete file plugin "%(plugin)s"': 'impossibile rimuovere file di plugin "%(plugin)s"', 'unable to parse csv file': 'non riesco a decodificare questo file CSV', 'unable to uninstall "%s"': 'impossibile disinstallare "%s"', 'unable to upgrade because "%s"': 'impossibile aggiornare perché "%s"', 'uncheck all': 'smarca tutti', 'uninstall': 'disinstalla', 'update': 'aggiorna', 'update all languages': 'aggiorna tutti i linguaggi', 'upgrade web2py now': 'upgrade web2py now', 'upload application:': 'carica applicazione:', 'upload file:': 'carica file:', 'upload plugin file:': 'carica file di plugin:', 'variables': 'variables', 'versioning': 'sistema di versioni', 'view': 'vista', 'views': 'viste', 'web2py Recent Tweets': 'Tweets recenti per web2py', 'web2py is up to date': 'web2py è aggiornato', 'web2py upgraded; please restart it': 'web2py aggiornato; prego riavviarlo', } |
Added applications/admin/languages/pl-pl.py version [4ff0dcf09e].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': 'Wierszy usuniętych: %s', '%s rows updated': 'Wierszy uaktualnionych: %s', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(coś podobnego do "it-it")', 'A new version of web2py is available': 'Nowa wersja web2py jest dostępna', 'A new version of web2py is available: %s': 'A new version of web2py is available: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'UWAGA: Wymagane jest bezpieczne (HTTPS) połączenie lub połączenia z lokalnego adresu.', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.', 'ATTENTION: you cannot edit the running application!': 'UWAGA: nie można edytować uruchomionych aplikacji!', 'About': 'Informacje o', 'About application': 'Informacje o aplikacji', 'Admin is disabled because insecure channel': 'Admin is disabled because insecure channel', 'Admin is disabled because unsecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia', 'Admin language': 'Admin language', 'Administrator Password:': 'Hasło administratora:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Czy na pewno chcesz usunąć plik "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?', 'Are you sure you want to uninstall application "%s"': 'Czy na pewno chcesz usunąć aplikację "%s"', 'Are you sure you want to uninstall application "%s"?': 'Czy na pewno chcesz usunąć aplikację "%s"?', 'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?', 'Available databases and tables': 'Dostępne bazy danych i tabele', 'Cannot be empty': 'Nie może być puste', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Nie można skompilować: w Twojej aplikacji są błędy . Znajdź je, popraw a następnie spróbój ponownie.', 'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:', 'Check to delete': 'Zaznacz aby usunąć', 'Checking for upgrades...': 'Checking for upgrades...', 'Controllers': 'Kontrolery', 'Create new simple application': 'Utwórz nową aplikację', 'Current request': 'Aktualne żądanie', 'Current response': 'Aktualna odpowiedź', 'Current session': 'Aktualna sesja', 'DESIGN': 'PROJEKTUJ', 'Date and Time': 'Data i godzina', 'Delete': 'Usuń', 'Delete:': 'Usuń:', 'Deploy on Google App Engine': 'Umieść na Google App Engine', 'Design for': 'Projekt dla', 'EDIT': 'EDYTUJ', 'Edit application': 'Edycja aplikacji', 'Edit current record': 'Edytuj aktualny rekord', 'Editing Language file': 'Editing Language file', 'Editing file': 'Edycja pliku', 'Editing file "%s"': 'Edycja pliku "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Wpisy błędów dla "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'Functions with no doctests will result in [passed] tests.', 'Hello World': 'Witaj Świecie', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': 'Importuj/eksportuj', 'Installed applications': 'Zainstalowane aplikacje', 'Internal State': 'Stan wewnętrzny', 'Invalid Query': 'Błędne zapytanie', 'Invalid action': 'Błędna akcja', 'Language files (static strings) updated': 'Language files (static strings) updated', 'Languages': 'Tłumaczenia', 'Last saved on:': 'Ostatnio zapisany:', 'License for': 'Licencja dla', 'Login': 'Zaloguj', 'Login to the Administrative Interface': 'Logowanie do panelu administracyjnego', 'Models': 'Modele', 'Modules': 'Moduły', 'NO': 'NIE', 'New Record': 'Nowy rekord', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'Brak baz danych w tej aplikacji', 'Original/Translation': 'Oryginał/tłumaczenie', 'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here', 'Peeking at file': 'Podgląd pliku', 'Plugin "%s" in application': 'Plugin "%s" in application', 'Plugins': 'Plugins', 'Powered by': 'Powered by', 'Query:': 'Zapytanie:', 'Resolve Conflict file': 'Resolve Conflict file', 'Rows in table': 'Wiersze w tabeli', 'Rows selected': 'Wierszy wybranych', 'Saved file hash:': 'Suma kontrolna zapisanego pliku:', 'Static files': 'Pliki statyczne', 'Sure you want to delete this object?': 'Czy na pewno chcesz usunąć ten obiekt?', 'TM': 'TM', 'Testing application': 'Testing application', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '"Zapytanie" jest warunkiem postaci "db.tabela1.pole1==\'wartość\'". Takie coś jak "db.tabela1.pole1==db.tabela2.pole2" oznacza SQL JOIN.', 'There are no controllers': 'Brak kontrolerów', 'There are no models': 'Brak modeli', 'There are no modules': 'Brak modułów', 'There are no static files': 'Brak plików statycznych', 'There are no translators, only default language is supported': 'Brak plików tłumaczeń, wspierany jest tylko domyślny język', 'There are no views': 'Brak widoków', 'This is the %(filename)s template': 'To jest szablon %(filename)s', 'Ticket': 'Bilet', 'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]', 'Unable to check for upgrades': 'Nie można sprawdzić aktualizacji', 'Unable to download': 'Nie można ściągnąć', 'Unable to download app because:': 'Unable to download app because:', 'Unable to download because': 'Unable to download because', 'Update:': 'Uaktualnij:', 'Upload & install packed application': 'Upload & install packed application', 'Upload a package:': 'Upload a package:', 'Upload existing application': 'Wyślij istniejącą aplikację', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Użyj (...)&(...) jako AND, (...)|(...) jako OR oraz ~(...) jako NOT do tworzenia bardziej skomplikowanych zapytań.', 'Use an url:': 'Use an url:', 'Version': 'Version', 'Views': 'Widoki', 'Welcome to web2py': 'Witaj w web2py', 'YES': 'TAK', 'about': 'informacje', 'additional code for your application': 'dodatkowy kod Twojej aplikacji', 'admin disabled because no admin password': 'panel administracyjny wyłączony z powodu braku hasła administracyjnego', 'admin disabled because not supported on google app engine': 'admin disabled because not supported on google apps engine', 'admin disabled because unable to access password file': 'panel administracyjny wyłączony z powodu braku dostępu do pliku z hasłem', 'administrative interface': 'administrative interface', 'and rename it (required):': 'i nadaj jej nową nazwę (wymagane):', 'and rename it:': 'i nadaj mu nową nazwę:', 'appadmin': 'administracja aplikacji', 'appadmin is disabled because insecure channel': 'appadmin is disabled because insecure channel', 'application "%s" uninstalled': 'aplikacja "%s" została odinstalowana', 'application compiled': 'aplikacja została skompilowana', 'application is compiled and cannot be designed': 'aplikacja jest skompilowana i nie może być projektowana', 'arguments': 'arguments', 'back': 'back', 'cache': 'cache', 'cache, errors and sessions cleaned': 'pamięć podręczna, bilety błędów oraz pliki sesji zostały wyczyszczone', 'cannot create file': 'nie można utworzyć pliku', 'cannot upload file "%(filename)s"': 'nie można wysłać pliku "%(filename)s"', 'change admin password': 'change admin password', 'check all': 'zaznacz wszystko', 'check for upgrades': 'check for upgrades', 'clean': 'oczyść', 'click here for online examples': 'kliknij aby przejść do interaktywnych przykładów', 'click here for the administrative interface': 'kliknij aby przejść do panelu administracyjnego', 'click to check for upgrades': 'kliknij aby sprawdzić aktualizacje', 'code': 'code', 'compile': 'skompiluj', 'compiled application removed': 'skompilowana aplikacja została usunięta', 'controllers': 'kontrolery', 'create': 'create', 'create file with filename:': 'utwórz plik o nazwie:', 'create new application:': 'utwórz nową aplikację:', 'created by': 'created by', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'aktualnie zapisany lub', 'data uploaded': 'dane wysłane', 'database': 'baza danych', 'database %s select': 'wybór z bazy danych %s', 'database administration': 'administracja bazy danych', 'db': 'baza danych', 'defines tables': 'zdefiniuj tabele', 'delete': 'usuń', 'delete all checked': 'usuń wszystkie zaznaczone', 'delete plugin': 'delete plugin', 'deploy': 'deploy', 'design': 'projektuj', 'direction: ltr': 'direction: ltr', 'done!': 'zrobione!', 'edit': 'edytuj', 'edit controller': 'edytuj kontroler', 'edit views:': 'edit views:', 'errors': 'błędy', 'export as csv file': 'eksportuj jako plik csv', 'exposes': 'eksponuje', 'extends': 'rozszerza', 'failed to reload module': 'nie udało się przeładować modułu', 'failed to reload module because:': 'failed to reload module because:', 'file "%(filename)s" created': 'plik "%(filename)s" został utworzony', 'file "%(filename)s" deleted': 'plik "%(filename)s" został usunięty', 'file "%(filename)s" uploaded': 'plik "%(filename)s" został wysłany', 'file "%(filename)s" was not deleted': 'plik "%(filename)s" nie został usunięty', 'file "%s" of %s restored': 'plik "%s" z %s został odtworzony', 'file changed on disk': 'plik na dysku został zmieniony', 'file does not exist': 'plik nie istnieje', 'file saved on %(time)s': 'plik zapisany o %(time)s', 'file saved on %s': 'plik zapisany o %s', 'help': 'pomoc', 'htmledit': 'edytuj HTML', 'includes': 'zawiera', 'insert new': 'wstaw nowy rekord tabeli', 'insert new %s': 'wstaw nowy rekord do tabeli %s', 'install': 'install', 'internal error': 'wewnętrzny błąd', 'invalid password': 'błędne hasło', 'invalid request': 'błędne zapytanie', 'invalid ticket': 'błędny bilet', 'language file "%(filename)s" created/updated': 'plik tłumaczeń "%(filename)s" został utworzony/uaktualniony', 'languages': 'pliki tłumaczeń', 'languages updated': 'pliki tłumaczeń zostały uaktualnione', 'loading...': 'wczytywanie...', 'login': 'zaloguj', 'logout': 'wyloguj', 'merge': 'merge', 'models': 'modele', 'modules': 'moduły', 'new application "%s" created': 'nowa aplikacja "%s" została utworzona', 'new plugin installed': 'new plugin installed', 'new record inserted': 'nowy rekord został wstawiony', 'next 100 rows': 'następne 100 wierszy', 'no match': 'no match', 'or import from csv file': 'lub zaimportuj z pliku csv', 'or provide app url:': 'or provide app url:', 'or provide application url:': 'lub podaj url aplikacji:', 'overwrite installed app': 'overwrite installed app', 'pack all': 'spakuj wszystko', 'pack compiled': 'spakuj skompilowane', 'pack plugin': 'pack plugin', 'password changed': 'password changed', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted', 'previous 100 rows': 'poprzednie 100 wierszy', 'record': 'record', 'record does not exist': 'rekord nie istnieje', 'record id': 'id rekordu', 'remove compiled': 'usuń skompilowane', 'restore': 'odtwórz', 'revert': 'przywróć', 'save': 'zapisz', 'selected': 'zaznaczone', 'session expired': 'sesja wygasła', 'shell': 'powłoka', 'site': 'strona główna', 'some files could not be removed': 'niektóre pliki nie mogły zostać usunięte', 'start wizard': 'start wizard', 'state': 'stan', 'static': 'pliki statyczne', 'submit': 'submit', 'table': 'tabela', 'test': 'testuj', 'the application logic, each URL path is mapped in one exposed function in the controller': 'logika aplikacji, każda ścieżka URL jest mapowana na jedną z funkcji eksponowanych w kontrolerze', 'the data representation, define database tables and sets': 'reprezentacja danych, definicje zbiorów i tabel bazy danych', 'the presentations layer, views are also known as templates': 'warstwa prezentacji, widoki zwane są również szablonami', 'these files are served without processing, your images go here': 'pliki obsługiwane bez interpretacji, to jest miejsce na Twoje obrazy', 'to previous version.': 'do poprzedniej wersji.', 'translation strings for the application': 'ciągi tłumaczeń dla aplikacji', 'try': 'spróbój', 'try something like': 'spróbój czegos takiego jak', 'unable to create application "%s"': 'nie można utworzyć aplikacji "%s"', 'unable to delete file "%(filename)s"': 'nie można usunąć pliku "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"', 'unable to parse csv file': 'nie można sparsować pliku csv', 'unable to uninstall "%s"': 'nie można odinstalować "%s"', 'unable to upgrade because "%s"': 'unable to upgrade because "%s"', 'uncheck all': 'odznacz wszystko', 'uninstall': 'odinstaluj', 'update': 'uaktualnij', 'update all languages': 'uaktualnij wszystkie pliki tłumaczeń', 'upgrade web2py now': 'upgrade web2py now', 'upload application:': 'wyślij plik aplikacji:', 'upload file:': 'wyślij plik:', 'upload plugin file:': 'upload plugin file:', 'variables': 'variables', 'versioning': 'versioning', 'view': 'widok', 'views': 'widoki', 'web2py Recent Tweets': 'najnowsze tweety web2py', 'web2py is up to date': 'web2py jest aktualne', 'web2py upgraded; please restart it': 'web2py upgraded; please restart it', } |
Added applications/admin/languages/pl.py version [83ac10247b].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': 'Wierszy usuniętych: %s', '%s rows updated': 'Wierszy uaktualnionych: %s', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(coś podobnego do "it-it")', 'A new version of web2py is available': 'Nowa wersja web2py jest dostępna', 'A new version of web2py is available: %s': 'Nowa wersja web2py jest dostępna: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'UWAGA: Wymagane jest bezpieczne (HTTPS) połączenie lub połączenie z lokalnego adresu.', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'UWAGA: TESTOWANIE NIE JEST BEZPIECZNE W ŚRODOWISKU WIELOWĄTKOWYM, TAK WIĘC NIE URUCHAMIAJ WIELU TESTÓW JEDNOCZEŚNIE.', 'ATTENTION: you cannot edit the running application!': 'UWAGA: nie można edytować uruchomionych aplikacji!', 'About': 'Informacje o', 'About application': 'Informacje o aplikacji', 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia', 'Admin is disabled because unsecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia', 'Administrator Password:': 'Hasło administratora:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': 'Czy na pewno chcesz usunąć plik "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Czy na pewno chcesz usunąć wtyczkę "%s"?', 'Are you sure you want to uninstall application "%s"': 'Czy na pewno chcesz usunąć aplikację "%s"', 'Are you sure you want to uninstall application "%s"?': 'Czy na pewno chcesz usunąć aplikację "%s"?', 'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?', 'Available databases and tables': 'Dostępne bazy danych i tabele', 'Cannot be empty': 'Nie może być puste', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Nie można skompilować: w Twojej aplikacji są błędy . Znajdź je, popraw a następnie spróbój ponownie.', 'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:', 'Check to delete': 'Zaznacz aby usunąć', 'Checking for upgrades...': 'Sprawdzanie aktualizacji...', 'Controllers': 'Kontrolery', 'Create new simple application': 'Utwórz nową aplikację', 'Current request': 'Aktualne żądanie', 'Current response': 'Aktualna odpowiedź', 'Current session': 'Aktualna sesja', 'DESIGN': 'PROJEKTUJ', 'Date and Time': 'Data i godzina', 'Delete': 'Usuń', 'Delete:': 'Usuń:', 'Deploy on Google App Engine': 'Umieść na Google App Engine', 'Design for': 'Projekt dla', 'EDIT': 'EDYTUJ', 'Edit application': 'Edycja aplikacji', 'Edit current record': 'Edytuj aktualny rekord', 'Editing Language file': 'Edytuj plik tłumaczeń', 'Editing file': 'Edycja pliku', 'Editing file "%s"': 'Edycja pliku "%s"', 'Enterprise Web Framework': 'Enterprise Web Framework', 'Error logs for "%(app)s"': 'Wpisy błędów dla "%(app)s"', 'Exception instance attributes': 'Exception instance attributes', 'Functions with no doctests will result in [passed] tests.': 'Funkcje bez doctestów będą dołączone do [zaliczonych] testów.', 'Hello World': 'Witaj Świecie', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'Jeżeli powyższy raport zawiera numer biletu błędu, oznacza to błąd podczas wykonywania kontrolera przez próbą uruchomienia doctestów. Zazwyczaj jest to spowodowane nieprawidłowymi wcięciami linii kodu lub błędami w module poza ciałem funkcji.\nTytuł w kolorze zielonym oznacza, ze wszystkie (zdefiniowane) testy zakończyły się sukcesem. W tej sytuacji ich wyniki nie są pokazane.', 'Import/Export': 'Importuj/eksportuj', 'Installed applications': 'Zainstalowane aplikacje', 'Internal State': 'Stan wewnętrzny', 'Invalid Query': 'Błędne zapytanie', 'Invalid action': 'Błędna akcja', 'Language files (static strings) updated': 'Pliki tłumaczeń (ciągi statyczne) zostały uaktualnione', 'Languages': 'Tłumaczenia', 'Last saved on:': 'Ostatnio zapisany:', 'License for': 'Licencja dla', 'Login': 'Zaloguj', 'Login to the Administrative Interface': 'Logowanie do panelu administracyjnego', 'Models': 'Modele', 'Modules': 'Moduły', 'NO': 'NIE', 'New Record': 'Nowy rekord', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': 'Brak baz danych w tej aplikacji', 'Original/Translation': 'Oryginał/tłumaczenie', 'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here', 'Peeking at file': 'Podgląd pliku', 'Plugin "%s" in application': 'Wtyczka "%s" w aplikacji', 'Plugins': 'Wtyczki', 'Powered by': 'Zasilane przez', 'Query:': 'Zapytanie:', 'Resolve Conflict file': 'Rozwiąż konflikt plików', 'Rows in table': 'Wiersze w tabeli', 'Rows selected': 'Wierszy wybranych', 'Saved file hash:': 'Suma kontrolna zapisanego pliku:', 'Searching:': 'Searching:', 'Static files': 'Pliki statyczne', 'Sure you want to delete this object?': 'Czy na pewno chcesz usunąć ten obiekt?', 'TM': 'TM', 'Testing application': 'Testowanie aplikacji', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '"Zapytanie" jest warunkiem postaci "db.tabela1.pole1==\'wartość\'". Takie coś jak "db.tabela1.pole1==db.tabela2.pole2" oznacza SQL JOIN.', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': 'Brak kontrolerów', 'There are no models': 'Brak modeli', 'There are no modules': 'Brak modułów', 'There are no plugins': 'There are no plugins', 'There are no static files': 'Brak plików statycznych', 'There are no translators, only default language is supported': 'Brak plików tłumaczeń, wspierany jest tylko domyślny język', 'There are no views': 'Brak widoków', 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is the %(filename)s template': 'To jest szablon %(filename)s', 'Ticket': 'Bilet', 'To create a plugin, name a file/folder plugin_[name]': 'Aby utworzyć wtyczkę, nazwij plik/katalog plugin_[nazwa]', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'Nie można sprawdzić aktualizacji', 'Unable to download': 'Nie można ściągnąć', 'Unable to download app': 'Nie można ściągnąć aplikacji', 'Unable to download app because:': 'Unable to download app because:', 'Unable to download because': 'Unable to download because', 'Update:': 'Uaktualnij:', 'Upload & install packed application': 'Upload & install packed application', 'Upload a package:': 'Upload a package:', 'Upload existing application': 'Wyślij istniejącą aplikację', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Użyj (...)&(...) jako AND, (...)|(...) jako OR oraz ~(...) jako NOT do tworzenia bardziej skomplikowanych zapytań.', 'Use an url:': 'Use an url:', 'Version': 'Wersja', 'Views': 'Widoki', 'Welcome to web2py': 'Witaj w web2py', 'YES': 'TAK', 'about': 'informacje', 'additional code for your application': 'dodatkowy kod Twojej aplikacji', 'admin disabled because no admin password': 'panel administracyjny wyłączony z powodu braku hasła administracyjnego', 'admin disabled because not supported on google app engine': 'panel administracyjny wyłączony z powodu braku wsparcia na google apps engine', 'admin disabled because unable to access password file': 'panel administracyjny wyłączony z powodu braku dostępu do pliku z hasłem', 'administrative interface': 'administrative interface', 'and rename it (required):': 'i nadaj jej nową nazwę (wymagane):', 'and rename it:': 'i nadaj mu nową nazwę:', 'appadmin': 'administracja aplikacji', 'appadmin is disabled because insecure channel': 'administracja aplikacji wyłączona z powodu braku bezpiecznego połączenia', 'application "%s" uninstalled': 'aplikacja "%s" została odinstalowana', 'application compiled': 'aplikacja została skompilowana', 'application is compiled and cannot be designed': 'aplikacja jest skompilowana i nie może być projektowana', 'arguments': 'arguments', 'back': 'wstecz', 'cache': 'cache', 'cache, errors and sessions cleaned': 'pamięć podręczna, bilety błędów oraz pliki sesji zostały wyczyszczone', 'cannot create file': 'nie można utworzyć pliku', 'cannot upload file "%(filename)s"': 'nie można wysłać pliku "%(filename)s"', 'change admin password': 'change admin password', 'check all': 'zaznacz wszystko', 'check for upgrades': 'check for upgrades', 'clean': 'oczyść', 'click here for online examples': 'kliknij aby przejść do interaktywnych przykładów', 'click here for the administrative interface': 'kliknij aby przejść do panelu administracyjnego', 'click to check for upgrades': 'kliknij aby sprawdzić aktualizacje', 'code': 'code', 'collapse/expand all': 'collapse/expand all', 'compile': 'skompiluj', 'compiled application removed': 'skompilowana aplikacja została usunięta', 'controllers': 'kontrolery', 'create': 'create', 'create file with filename:': 'utwórz plik o nazwie:', 'create new application:': 'utwórz nową aplikację:', 'created by': 'utworzone przez', 'crontab': 'crontab', 'currently running': 'currently running', 'currently saved or': 'aktualnie zapisany lub', 'data uploaded': 'dane wysłane', 'database': 'baza danych', 'database %s select': 'wybór z bazy danych %s', 'database administration': 'administracja bazy danych', 'db': 'baza danych', 'defines tables': 'zdefiniuj tabele', 'delete': 'usuń', 'delete all checked': 'usuń wszystkie zaznaczone', 'delete plugin': 'usuń wtyczkę', 'deploy': 'deploy', 'design': 'projektuj', 'direction: ltr': 'direction: ltr', 'done!': 'zrobione!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'edytuj', 'edit controller': 'edytuj kontroler', 'edit views:': 'edit views:', 'errors': 'błędy', 'export as csv file': 'eksportuj jako plik csv', 'exposes': 'eksponuje', 'extends': 'rozszerza', 'failed to reload module': 'nie udało się przeładować modułu', 'failed to reload module because:': 'failed to reload module because:', 'file "%(filename)s" created': 'plik "%(filename)s" został utworzony', 'file "%(filename)s" deleted': 'plik "%(filename)s" został usunięty', 'file "%(filename)s" uploaded': 'plik "%(filename)s" został wysłany', 'file "%(filename)s" was not deleted': 'plik "%(filename)s" nie został usunięty', 'file "%s" of %s restored': 'plik "%s" z %s został odtworzony', 'file changed on disk': 'plik na dysku został zmieniony', 'file does not exist': 'plik nie istnieje', 'file saved on %(time)s': 'plik zapisany o %(time)s', 'file saved on %s': 'plik zapisany o %s', 'files': 'files', 'filter': 'filter', 'help': 'pomoc', 'htmledit': 'edytuj HTML', 'includes': 'zawiera', 'insert new': 'wstaw nowy rekord tabeli', 'insert new %s': 'wstaw nowy rekord do tabeli %s', 'install': 'install', 'internal error': 'wewnętrzny błąd', 'invalid password': 'błędne hasło', 'invalid request': 'błędne zapytanie', 'invalid ticket': 'błędny bilet', 'language file "%(filename)s" created/updated': 'plik tłumaczeń "%(filename)s" został utworzony/uaktualniony', 'languages': 'pliki tłumaczeń', 'languages updated': 'pliki tłumaczeń zostały uaktualnione', 'loading...': 'wczytywanie...', 'login': 'zaloguj', 'logout': 'wyloguj', 'merge': 'zespól', 'models': 'modele', 'modules': 'moduły', 'new application "%s" created': 'nowa aplikacja "%s" została utworzona', 'new plugin installed': 'nowa wtyczka została zainstalowana', 'new record inserted': 'nowy rekord został wstawiony', 'next 100 rows': 'następne 100 wierszy', 'no match': 'no match', 'or import from csv file': 'lub zaimportuj z pliku csv', 'or provide app url:': 'or provide app url:', 'or provide application url:': 'lub podaj url aplikacji:', 'overwrite installed app': 'overwrite installed app', 'pack all': 'spakuj wszystko', 'pack compiled': 'spakuj skompilowane', 'pack plugin': 'spakuj wtyczkę', 'password changed': 'password changed', 'plugin "%(plugin)s" deleted': 'wtyczka "%(plugin)s" została usunięta', 'plugins': 'plugins', 'previous 100 rows': 'poprzednie 100 wierszy', 'record': 'rekord', 'record does not exist': 'rekord nie istnieje', 'record id': 'ID rekordu', 'remove compiled': 'usuń skompilowane', 'restore': 'odtwórz', 'revert': 'przywróć', 'save': 'zapisz', 'selected': 'zaznaczone', 'session expired': 'sesja wygasła', 'shell': 'powłoka', 'site': 'strona główna', 'some files could not be removed': 'niektóre pliki nie mogły zostać usunięte', 'start wizard': 'start wizard', 'state': 'stan', 'static': 'pliki statyczne', 'submit': 'wyślij', 'table': 'tabela', 'test': 'testuj', 'the application logic, each URL path is mapped in one exposed function in the controller': 'logika aplikacji, każda ścieżka URL jest mapowana na jedną z funkcji eksponowanych w kontrolerze', 'the data representation, define database tables and sets': 'reprezentacja danych, definicje zbiorów i tabel bazy danych', 'the presentations layer, views are also known as templates': 'warstwa prezentacji, widoki zwane są również szablonami', 'these files are served without processing, your images go here': 'pliki obsługiwane bez interpretacji, to jest miejsce na Twoje obrazy', 'to previous version.': 'do poprzedniej wersji.', 'translation strings for the application': 'ciągi tłumaczeń dla aplikacji', 'try': 'spróbój', 'try something like': 'spróbój czegos takiego jak', 'unable to create application "%s"': 'nie można utworzyć aplikacji "%s"', 'unable to delete file "%(filename)s"': 'nie można usunąć pliku "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'nie można usunąc pliku wtyczki "%(plugin)s"', 'unable to parse csv file': 'nie można sparsować pliku csv', 'unable to uninstall "%s"': 'nie można odinstalować "%s"', 'unable to upgrade because "%s"': 'unable to upgrade because "%s"', 'uncheck all': 'odznacz wszystko', 'uninstall': 'odinstaluj', 'update': 'uaktualnij', 'update all languages': 'uaktualnij wszystkie pliki tłumaczeń', 'upgrade web2py now': 'upgrade web2py now', 'upload': 'upload', 'upload application:': 'wyślij plik aplikacji:', 'upload file:': 'wyślij plik:', 'upload plugin file:': 'wyślij plik wtyczki:', 'variables': 'variables', 'versioning': 'versioning', 'view': 'widok', 'views': 'widoki', 'web2py Recent Tweets': 'najnowsze tweety web2py', 'web2py is up to date': 'web2py jest aktualne', 'web2py upgraded; please restart it': 'web2py upgraded; please restart it', } |
Added applications/admin/languages/pt-br.py version [33973b63ad].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novo_valor\'". Não é permitido atualizar ou apagar resultados de um JOIN', '%Y-%m-%d': '%d/%m/%Y', '%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S', '%s rows deleted': '%s registros apagados', '%s rows updated': '%s registros atualizados', '(requires internet access)': '(requer acesso a internet)', '(something like "it-it")': '(algo como "it-it")', 'A new version of web2py is available': 'Está disponível uma nova versão do web2py', 'A new version of web2py is available: %s': 'Está disponível uma nova versão do web2py: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATENÇÃO o login requer uma conexão segura (HTTPS) ou executar de localhost.', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATENÇÃO OS TESTES NÃO THREAD SAFE, NÃO EFETUE MÚLTIPLOS TESTES AO MESMO TEMPO.', 'ATTENTION: you cannot edit the running application!': 'ATENÇÃO: Não pode modificar a aplicação em execução!', 'About': 'Sobre', 'About application': 'Sobre a aplicação', 'Additional code for your application': 'Additional code for your application', 'Admin is disabled because insecure channel': 'Admin desabilitado pois o canal não é seguro', 'Admin is disabled because unsecure channel': 'Admin desabilitado pois o canal não é seguro', 'Admin language': 'Linguagem do Admin', 'Administrator Password:': 'Senha de administrador:', 'Application name:': 'Nome da aplicação:', 'Are you sure you want to delete file "%s"?': 'Tem certeza que deseja apagar o arquivo "%s"?', 'Are you sure you want to delete plugin "%s"?': 'Tem certeza que deseja apagar o plugin "%s"?', 'Are you sure you want to uninstall application "%s"': 'Tem certeza que deseja apagar a aplicação "%s"?', 'Are you sure you want to uninstall application "%s"?': 'Tem certeza que deseja apagar a aplicação "%s"?', 'Are you sure you want to upgrade web2py now?': 'Tem certeza que deseja atualizar o web2py agora?', 'Available databases and tables': 'Bancos de dados e tabelas disponíveis', 'Cannot be empty': 'Não pode ser vazio', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': 'Não é possível compilar: Existem erros em sua aplicação. Depure, corrija os errros e tente novamente', 'Cannot compile: there are errors in your app:': 'Não é possível compilar: Existem erros em sua aplicação', 'Change Password': 'Trocar Senha', 'Check to delete': 'Marque para apagar', 'Checking for upgrades...': 'Buscando atualizações...', 'Click row to expand traceback': 'Clique em uma coluna para expandir o log do erro', 'Client IP': 'IP do cliente', 'Controllers': 'Controladores', 'Count': 'Contagem', 'Create new application using the Wizard': 'Criar nova aplicação utilizando o assistente', 'Create new simple application': 'Crie uma nova aplicação', 'Current request': 'Requisição atual', 'Current response': 'Resposta atual', 'Current session': 'Sessão atual', 'DESIGN': 'Projeto', 'Date and Time': 'Data e Hora', 'Delete': 'Apague', 'Delete:': 'Apague:', 'Deploy on Google App Engine': 'Publicar no Google App Engine', 'Description': 'Descrição', 'Design for': 'Projeto de', 'Detailed traceback description': 'Detailed traceback description', 'E-mail': 'E-mail', 'EDIT': 'EDITAR', 'Edit Profile': 'Editar Perfil', 'Edit application': 'Editar aplicação', 'Edit current record': 'Editar o registro atual', 'Editing Language file': 'Editando arquivo de linguagem', 'Editing file': 'Editando arquivo', 'Editing file "%s"': 'Editando arquivo "%s"', 'Enterprise Web Framework': 'Framework web empresarial', 'Error': 'Erro', 'Error logs for "%(app)s"': 'Logs de erro para "%(app)s"', 'Error snapshot': 'Error snapshot', 'Error ticket': 'Error ticket', 'Exception instance attributes': 'Atributos da instancia de excessão', 'File': 'Arquivo', 'First name': 'Nome', 'Frames': 'Frames', 'Functions with no doctests will result in [passed] tests.': 'Funções sem doctests resultarão em testes [aceitos].', 'Group ID': 'ID do Grupo', 'Hello World': 'Olá Mundo', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'Se o relatório acima contém um número de ticket, isso indica uma falha no controlador em execução, antes de tantar executar os doctests. Isto acontece geralmente por erro de endentação ou erro fora do código da função.\nO titulo em verde indica que os testes (se definidos) passaram. Neste caso os testes não são mostrados.', 'Import/Export': 'Importar/Exportar', 'Installed applications': 'Aplicações instaladas', 'Internal State': 'Estado Interno', 'Invalid Query': 'Consulta inválida', 'Invalid action': 'Ação inválida', 'Invalid email': 'E-mail inválido', 'Language files (static strings) updated': 'Arquivos de linguagem (textos estáticos) atualizados', 'Languages': 'Linguagens', 'Last name': 'Sobrenome', 'Last saved on:': 'Salvo em:', 'License for': 'Licença para', 'Login': 'Entrar', 'Login to the Administrative Interface': 'Entrar na interface adminitrativa', 'Logout': 'Sair', 'Lost Password': 'Senha perdida', 'Models': 'Modelos', 'Modules': 'Módulos', 'NO': 'NÃO', 'Name': 'Nome', 'New Record': 'Novo registro', 'New application wizard': 'Assistente para novas aplicações ', 'New simple application': 'Nova aplicação básica', 'No databases in this application': 'Não existem bancos de dados nesta aplicação', 'Origin': 'Origem', 'Original/Translation': 'Original/Tradução', 'PAM authenticated user, cannot change password here': 'usuario autenticado por PAM, não pode alterar a senha por aqui', 'Password': 'Senha', 'Peeking at file': 'Visualizando arquivo', 'Plugin "%s" in application': 'Plugin "%s" na aplicação', 'Plugins': 'Plugins', 'Powered by': 'Este site utiliza', 'Query:': 'Consulta:', 'Record ID': 'ID do Registro', 'Register': 'Registrar-se', 'Registration key': 'Chave de registro', 'Resolve Conflict file': 'Arquivo de resolução de conflito', 'Role': 'Papel', 'Rows in table': 'Registros na tabela', 'Rows selected': 'Registros selecionados', 'Saved file hash:': 'Hash do arquivo salvo:', 'Searching:': 'Searching:', 'Static files': 'Arquivos estáticos', 'Sure you want to delete this object?': 'Tem certeza que deseja apaagr este objeto?', 'TM': 'MR', 'Table name': 'Nome da tabela', 'Testing application': 'Testando a aplicação', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': 'A "consulta" é uma condição como "db.tabela.campo1==\'valor\'". Algo como "db.tabela1.campo1==db.tabela2.campo2" resulta em um JOIN SQL.', 'The application logic, each URL path is mapped in one exposed function in the controller': 'The application logic, each URL path is mapped in one exposed function in the controller', 'The data representation, define database tables and sets': 'The data representation, define database tables and sets', 'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates', 'There are no controllers': 'Não existem controllers', 'There are no models': 'Não existem modelos', 'There are no modules': 'Não existem módulos', 'There are no plugins': 'There are no plugins', 'There are no static files': 'Não existem arquicos estáticos', 'There are no translators, only default language is supported': 'Não há traduções, somente a linguagem padrão é suportada', 'There are no views': 'Não existem visões', 'These files are served without processing, your images go here': 'These files are served without processing, your images go here', 'This is the %(filename)s template': 'Este é o template %(filename)s', 'Ticket': 'Ticket', 'Ticket ID': 'Ticket ID', 'Timestamp': 'Data Atual', 'To create a plugin, name a file/folder plugin_[name]': 'Para criar um plugin, nomeio um arquivo/pasta como plugin_[nome]', 'Traceback': 'Traceback', 'Translation strings for the application': 'Translation strings for the application', 'Unable to check for upgrades': 'Não é possível checar as atualizações', 'Unable to download': 'Não é possível efetuar o download', 'Unable to download app': 'Não é possível baixar a aplicação', 'Unable to download app because:': 'Não é possível baixar a aplicação porque:', 'Unable to download because': 'Não é possível baixar porque', 'Update:': 'Atualizar:', 'Upload & install packed application': 'Faça upload e instale uma aplicação empacotada', 'Upload a package:': 'Faça upload de um pacote:', 'Upload existing application': 'Faça upload de uma aplicação existente', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Use (...)&(...) para AND, (...)|(...) para OR, y ~(...) para NOT, para criar consultas mais complexas.', 'Use an url:': 'Use uma url:', 'User ID': 'ID do Usuario', 'Version': 'Versão', 'Views': 'Visões', 'Welcome to web2py': 'Bem-vindo ao web2py', 'YES': 'SIM', 'about': 'sobre', 'additional code for your application': 'código adicional para sua aplicação', 'admin disabled because no admin password': ' admin desabilitado por falta de senha definida', 'admin disabled because not supported on google app engine': 'admin dehabilitado, não é soportado no GAE', 'admin disabled because unable to access password file': 'admin desabilitado, não foi possível ler o arquivo de senha', 'administrative interface': 'interface administrativa', 'and rename it (required):': 'e renomeie (requerido):', 'and rename it:': ' e renomeie:', 'appadmin': 'appadmin', 'appadmin is disabled because insecure channel': 'admin desabilitado, canal inseguro', 'application "%s" uninstalled': 'aplicação "%s" desinstalada', 'application compiled': 'aplicação compilada', 'application is compiled and cannot be designed': 'A aplicação está compilada e não pode ser modificada', 'arguments': 'argumentos', 'back': 'voltar', 'browse': 'buscar', 'cache': 'cache', 'cache, errors and sessions cleaned': 'cache, erros e sessões eliminadas', 'cannot create file': 'Não é possível criar o arquivo', 'cannot upload file "%(filename)s"': 'não é possível fazer upload do arquivo "%(filename)s"', 'change admin password': 'mudar senha de administrador', 'check all': 'marcar todos', 'check for upgrades': 'checar por atualizações', 'clean': 'limpar', 'click here for online examples': 'clique para ver exemplos online', 'click here for the administrative interface': 'Clique aqui para acessar a interface administrativa', 'click to check for upgrades': 'clique aqui para checar por atualizações', 'click to open': 'clique para abrir', 'code': 'código', 'collapse/expand all': 'collapse/expand all', 'commit (mercurial)': 'commit (mercurial)', 'compile': 'compilar', 'compiled application removed': 'aplicação compilada removida', 'controllers': 'controladores', 'create': 'criar', 'create file with filename:': 'criar um arquivo com o nome:', 'create new application:': 'nome da nova aplicação:', 'created by': 'criado por', 'crontab': 'crontab', 'currently running': 'Executando', 'currently saved or': 'Atualmente salvo ou', 'customize me!': 'Modifique-me', 'data uploaded': 'Dados enviados', 'database': 'banco de dados', 'database %s select': 'Seleção no banco de dados %s', 'database administration': 'administração de banco de dados', 'db': 'db', 'defines tables': 'define as tabelas', 'delete': 'apagar', 'delete all checked': 'apagar marcados', 'delete plugin': 'apagar plugin', 'deploy': 'publicar', 'design': 'modificar', 'direction: ltr': 'direção: ltr', 'done!': 'feito!', 'download layouts': 'download layouts', 'download plugins': 'download plugins', 'edit': 'editar', 'edit controller': 'editar controlador', 'edit views:': 'editar visões:', 'errors': 'erros', 'export as csv file': 'exportar como arquivo CSV', 'exposes': 'expõe', 'extends': 'estende', 'failed to reload module': 'Falha ao recarregar o módulo', 'failed to reload module because:': 'falha ao recarregar o módulo por:', 'file "%(filename)s" created': 'arquivo "%(filename)s" criado', 'file "%(filename)s" deleted': 'arquivo "%(filename)s" apagado', 'file "%(filename)s" uploaded': 'arquivo "%(filename)s" enviado', 'file "%(filename)s" was not deleted': 'arquivo "%(filename)s" não foi apagado', 'file "%s" of %s restored': 'arquivo "%s" de %s restaurado', 'file changed on disk': 'arquivo modificado no disco', 'file does not exist': 'arquivo não existe', 'file saved on %(time)s': 'arquivo salvo em %(time)s', 'file saved on %s': 'arquivo salvo em %s', 'files': 'files', 'filter': 'filter', 'help': 'ajuda', 'htmledit': 'htmledit', 'includes': 'inclui', 'insert new': 'inserir novo', 'insert new %s': 'inserir novo %s', 'inspect attributes': 'inspect attributes', 'install': 'instalar', 'internal error': 'erro interno', 'invalid password': 'senha inválida', 'invalid request': 'solicitação inválida', 'invalid ticket': 'ticket inválido', 'language file "%(filename)s" created/updated': 'arquivo de linguagem "%(filename)s" criado/atualizado', 'languages': 'linguagens', 'languages updated': 'linguagens atualizadas', 'loading...': 'carregando...', 'locals': 'locals', 'login': 'inicio de sessão', 'logout': 'finalizar sessão', 'manage': 'gerenciar', 'merge': 'juntar', 'models': 'modelos', 'modules': 'módulos', 'new application "%s" created': 'nova aplicação "%s" criada', 'new plugin installed': 'novo plugin instalado', 'new record inserted': 'novo registro inserido', 'next 100 rows': 'próximos 100 registros', 'no match': 'não encontrado', 'or import from csv file': 'ou importar de um arquivo CSV', 'or provide app url:': 'ou forneça a url de uma aplicação:', 'or provide application url:': 'ou forneça a url de uma aplicação:', 'overwrite installed app': 'sobrescrever aplicação instalada', 'pack all': 'criar pacote', 'pack compiled': 'criar pacote compilado', 'pack plugin': 'empacotar plugin', 'password changed': 'senha alterada', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" eliminado', 'plugins': 'plugins', 'previous 100 rows': '100 registros anteriores', 'record': 'registro', 'record does not exist': 'o registro não existe', 'record id': 'id do registro', 'remove compiled': 'eliminar compilados', 'request': 'request', 'response': 'response', 'restore': 'restaurar', 'revert': 'reverter', 'save': 'salvar', 'selected': 'selecionado(s)', 'session': 'session', 'session expired': 'sessão expirada', 'shell': 'Terminal', 'site': 'site', 'some files could not be removed': 'alguns arquicos não puderam ser removidos', 'start wizard': 'iniciar assistente', 'state': 'estado', 'static': 'estáticos', 'submit': 'enviar', 'table': 'tabela', 'test': 'testar', 'the application logic, each URL path is mapped in one exposed function in the controller': 'A lógica da aplicação, cada URL é mapeada para uma função exposta pelo controlador', 'the data representation, define database tables and sets': 'A representação dos dadps, define tabelas e estruturas de dados', 'the presentations layer, views are also known as templates': 'A camada de apresentação, As visões também são chamadas de templates', 'these files are served without processing, your images go here': 'Estes arquivos são servidos sem processamento, suas imagens ficam aqui', 'to previous version.': 'para a versão anterior.', 'translation strings for the application': 'textos traduzidos para a aplicação', 'try': 'tente', 'try something like': 'tente algo como', 'unable to create application "%s"': 'não é possível criar a aplicação "%s"', 'unable to delete file "%(filename)s"': 'não é possível criar o arquico "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'não é possível criar o plugin "%(plugin)s"', 'unable to parse csv file': 'não é possível analisar o arquivo CSV', 'unable to uninstall "%s"': 'não é possível instalar "%s"', 'unable to upgrade because "%s"': 'não é possível atualizar porque "%s"', 'uncheck all': 'desmarcar todos', 'uninstall': 'desinstalar', 'update': 'atualizar', 'update all languages': 'atualizar todas as linguagens', 'upgrade web2py now': 'atualize o web2py agora', 'upload': 'upload', 'upload application:': 'Fazer upload de uma aplicação:', 'upload file:': 'Enviar arquivo:', 'upload plugin file:': 'Enviar arquivo de plugin:', 'variables': 'variáveis', 'versioning': 'versionamento', 'view': 'visão', 'views': 'visões', 'web2py Recent Tweets': 'Tweets Recentes de @web2py', 'web2py is up to date': 'web2py está atualizado', 'web2py upgraded; please restart it': 'web2py atualizado; favor reiniciar', } |
Added applications/admin/languages/zh-cn.py version [d9ae1038f2].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | # coding: utf8 { '"browse"': '游览', '"save"': '"保存"', '"submit"': '"提交"', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新"是可配置项 如 "field1=\'newvalue\'",你无法在JOIN 中更新或删除', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '%s 行已删', '%s rows updated': '%s 行更新', '(requires internet access)': '(requires internet access)', '(something like "it-it")': '(就酱 "it-it")', 'A new version of web2py is available': '新版本web2py已经可用', 'A new version of web2py is available: %s': '新版本web2py已经可用: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': '', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': '', 'ATTENTION: you cannot edit the running application!': '注意: 不能修改正在运行中的应用!', 'About': '关于', 'About application': '关于这个应用', 'Admin is disabled because insecure channel': '管理因不安全通道而关闭', 'Admin is disabled because unsecure channel': '管理因不稳定通道而关闭', 'Admin language': 'Admin language', 'Administrator Password:': '管理员密码:', 'Application name:': 'Application name:', 'Are you sure you want to delete file "%s"?': '你真想删除文件"%s"?', 'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?', 'Are you sure you want to uninstall application "%s"': '你真确定要卸载应用 "%s"', 'Are you sure you want to uninstall application "%s"?': '你真确定要卸载应用 "%s" ?', 'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?', 'Available databases and tables': '可用数据库/表', 'Cannot be empty': '不能不填', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': '无法编译: 应用中有错误,请修订后再试.', 'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:', 'Change Password': '修改密码', 'Check to delete': '检验删除', 'Checking for upgrades...': '是否有升级版本检查ing...', 'Client IP': '客户端IP', 'Controllers': '控制器s', 'Create new simple application': '创建一个新应用', 'Current request': '当前请求', 'Current response': '当前返回', 'Current session': '当前会话', 'DESIGN': '设计', 'Date and Time': '时间日期', 'Delete': '删除', 'Delete:': '删除:', 'Deploy on Google App Engine': '部署到GAE', 'Description': '描述', 'Design for': '设计:', 'E-mail': '邮箱:', 'EDIT': '编辑', 'Edit Profile': '修订配置', 'Edit application': '修订应用', 'Edit current record': '修订当前记录', 'Editing Language file': '修订语言文件', 'Editing file': '修订文件', 'Editing file "%s"': '修订文件 %s', 'Enterprise Web Framework': '强悍的网络开发框架', 'Error logs for "%(app)s"': '"%(app)s" 的错误日志', 'Exception instance attributes': 'Exception instance attributes', 'First name': '姓', 'Functions with no doctests will result in [passed] tests.': '', 'Group ID': '组ID', 'Hello World': '道可道,非常道;名可名,非常名', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': '导入/导出', 'Installed applications': '已安装的应用', 'Internal State': '内部状态', 'Invalid Query': '无效查询', 'Invalid action': '无效动作', 'Invalid email': '无效的email', 'Language files (static strings) updated': '语言文件(静态部分)已更新', 'Languages': '语言', 'Last name': '名', 'Last saved on:': '最后保存于:', 'License for': '许可证', 'Login': '登录', 'Login to the Administrative Interface': '登录到管理员界面', 'Logout': '注销', 'Lost Password': '忘记密码', 'Models': '模型s', 'Modules': '模块s', 'NO': '不', 'Name': '姓名', 'New Record': '新记录', 'New application wizard': 'New application wizard', 'New simple application': 'New simple application', 'No databases in this application': '这应用没有数据库', 'Origin': '起源', 'Original/Translation': '原始文件/翻译文件', 'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here', 'Password': '密码', 'Peeking at file': '选个文件', 'Plugin "%s" in application': 'Plugin "%s" in application', 'Plugins': 'Plugins', 'Powered by': '', 'Query:': '查询', 'Record ID': '记录ID', 'Register': '注册', 'Registration key': '注册密匙', 'Resolve Conflict file': '解决冲突文件', 'Role': '角色', 'Rows in table': '表行', 'Rows selected': '行选择', 'Saved file hash:': '已存文件Hash:', 'Static files': '静态文件', 'Sure you want to delete this object?': '真的要删除这个对象?', 'TM': '', 'Table name': '表名', 'Testing application': '应用测试', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '', 'There are no controllers': '冇控制器', 'There are no models': '冇模型s', 'There are no modules': '冇模块s', 'There are no static files': '冇静态文件', 'There are no translators, only default language is supported': '没有找到相应翻译,只能使用默认语言', 'There are no views': '冇视图', 'This is the %(filename)s template': '这是 %(filename)s 模板', 'Ticket': '传票', 'Timestamp': '时间戳', 'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]', 'Unable to check for upgrades': '无法检查是否需要升级', 'Unable to download': '无法下载', 'Unable to download app': '无法下载应用', 'Unable to download app because:': 'Unable to download app because:', 'Unable to download because': 'Unable to download because', 'Update:': '更新:', 'Upload & install packed application': 'Upload & install packed application', 'Upload a package:': 'Upload a package:', 'Upload existing application': '上传已有应用', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': '', 'Use an url:': 'Use an url:', 'User ID': '用户ID', 'Version': '版本', 'Views': '视图', 'Welcome to web2py': '欢迎使用web2py', 'YES': '是', 'about': '关于', 'additional code for your application': '给你的应用附加代码', 'admin disabled because no admin password': '管理员需要设定密码,否则无法管理', 'admin disabled because not supported on google app engine': '未支持GAE,无法管理', 'admin disabled because unable to access password file': '需要可以操作密码文件,否则无法进行管理', 'administrative interface': 'administrative interface', 'and rename it (required):': '重命名为 (必须):', 'and rename it:': ' 重命名为:', 'appadmin': '应用管理', 'appadmin is disabled because insecure channel': '应用管理因非法通道失效', 'application "%s" uninstalled': '应用"%s" 已被卸载', 'application compiled': '应用已编译完', 'application is compiled and cannot be designed': '应用已编译完无法设计', 'arguments': 'arguments', 'back': 'back', 'cache': 'cache', 'cache, errors and sessions cleaned': '缓存、错误、sesiones已被清空', 'cannot create file': '无法创建文件', 'cannot upload file "%(filename)s"': '无法上传文件 "%(filename)s"', 'change admin password': 'change admin password', 'check all': '检查所有', 'check for upgrades': 'check for upgrades', 'clean': '清除', 'click here for online examples': '猛击此处,查看在线实例', 'click here for the administrative interface': '猛击此处,进入管理界面', 'click to check for upgrades': '猛击查看是否有升级版本', 'code': 'code', 'compile': '编译', 'compiled application removed': '已编译应用已移走', 'controllers': '控制器', 'create': 'create', 'create file with filename:': '创建文件用这名:', 'create new application:': '创建新应用:', 'created by': '创建自', 'crontab': '定期事务', 'currently running': 'currently running', 'currently saved or': '保存当前的或', 'customize me!': '定制俺!', 'data uploaded': '数据已上传', 'database': '数据库', 'database %s select': '数据库 %s 选择', 'database administration': '数据库管理', 'db': '', 'defines tables': '已定义表', 'delete': '删除', 'delete all checked': '删除所有选择的', 'delete plugin': 'delete plugin', 'deploy': 'deploy', 'design': '设计', 'direction: ltr': 'direction: ltr', 'done!': '搞定!', 'edit': '修改', 'edit controller': '修订控制器', 'edit views:': 'edit views:', 'errors': '错误', 'export as csv file': '导出为CSV文件', 'exposes': '暴露', 'extends': '扩展', 'failed to reload module': '重新加载模块失败', 'failed to reload module because:': 'failed to reload module because:', 'file "%(filename)s" created': '文件 "%(filename)s" 已创建', 'file "%(filename)s" deleted': '文件 "%(filename)s" 已删除', 'file "%(filename)s" uploaded': '文件 "%(filename)s" 已上传', 'file "%(filename)s" was not deleted': '文件 "%(filename)s" 没删除', 'file "%s" of %s restored': '文件"%s" 有关 %s 已重存', 'file changed on disk': '硬盘上的文件已经修改', 'file does not exist': '文件并不存在', 'file saved on %(time)s': '文件保存于 %(time)s', 'file saved on %s': '文件保存在 %s', 'help': '帮助', 'htmledit': 'html编辑', 'includes': '包含', 'insert new': '新插入', 'insert new %s': '新插入 %s', 'install': 'install', 'internal error': '内部错误', 'invalid password': '无效密码', 'invalid request': '无效请求', 'invalid ticket': '无效传票', 'language file "%(filename)s" created/updated': '语言文件 "%(filename)s"被创建/更新', 'languages': '语言', 'languages updated': '语言已被刷新', 'loading...': '载入中...', 'login': '登录', 'logout': '注销', 'merge': '合并', 'models': '模型s', 'modules': '模块s', 'new application "%s" created': '新应用 "%s"已被创建', 'new plugin installed': 'new plugin installed', 'new record inserted': '新记录被插入', 'next 100 rows': '后100行', 'no match': 'no match', 'or import from csv file': '或者,从csv文件导入', 'or provide app url:': 'or provide app url:', 'or provide application url:': '或者,提供应用所在地址链接:', 'overwrite installed app': 'overwrite installed app', 'pack all': '全部打包', 'pack compiled': '包编译完', 'pack plugin': 'pack plugin', 'password changed': 'password changed', 'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted', 'previous 100 rows': '前100行', 'record': 'record', 'record does not exist': '记录并不存在', 'record id': '记录ID', 'remove compiled': '已移除', 'restore': '重存', 'revert': '恢复', 'save': '保存', 'selected': '已选', 'session expired': '会话过期', 'shell': '', 'site': '总站', 'some files could not be removed': '有些文件无法被移除', 'start wizard': 'start wizard', 'state': '状态', 'static': '静态文件', 'submit': '提交', 'table': '表', 'test': '测试', 'the application logic, each URL path is mapped in one exposed function in the controller': '应用逻辑:每个URL由控制器暴露的函式完成映射', 'the data representation, define database tables and sets': '数据表达式,定义数据库/表', 'the presentations layer, views are also known as templates': '提交层/视图都在模板中可知', 'these files are served without processing, your images go here': '', 'to previous version.': 'to previous version.', 'to previous version.': '退回前一版本', 'translation strings for the application': '应用的翻译字串', 'try': '尝试', 'try something like': '尝试', 'unable to create application "%s"': '无法创建应用 "%s"', 'unable to delete file "%(filename)s"': '无法删除文件 "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"', 'unable to parse csv file': '无法生成 cvs', 'unable to uninstall "%s"': '无法卸载 "%s"', 'unable to upgrade because "%s"': 'unable to upgrade because "%s"', 'uncheck all': '反选全部', 'uninstall': '卸载', 'update': '更新', 'update all languages': '更新所有语言', 'upgrade web2py now': 'upgrade web2py now', 'upload application:': '提交已有的应用:', 'upload file:': '提交文件:', 'upload plugin file:': 'upload plugin file:', 'variables': 'variables', 'versioning': '版本', 'view': '视图', 'views': '视图s', 'web2py Recent Tweets': 'twitter上的web2py进展实播', 'web2py is up to date': 'web2py现在已经是最新的版本了', 'web2py upgraded; please restart it': 'web2py upgraded; please restart it', } |
Added applications/admin/languages/zh-tw.py version [599934d534].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | # coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" 是選擇性的條件式, 格式就像 "欄位1=\'值\'". 但是 JOIN 的資料不可以使用 update 或是 delete"', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s rows deleted': '已刪除 %s 筆', '%s rows updated': '已更新 %s 筆', '(something like "it-it")': '(格式類似 "zh-tw")', 'A new version of web2py is available': '新版的 web2py 已發行', 'A new version of web2py is available: %s': '新版的 web2py 已發行: %s', 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': '注意: 登入管理帳號需要安全連線(HTTPS)或是在本機連線(localhost).', 'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': '注意: 因為在測試模式不保證多執行緒安全性,也就是說不可以同時執行多個測試案例', 'ATTENTION: you cannot edit the running application!': '注意:不可編輯正在執行的應用程式!', 'About': '關於', 'About application': '關於本應用程式', 'Admin is disabled because insecure channel': '管理功能(Admin)在不安全連線環境下自動關閉', 'Admin is disabled because unsecure channel': '管理功能(Admin)在不安全連線環境下自動關閉', 'Administrator Password:': '管理員密碼:', 'Are you sure you want to delete file "%s"?': '確定要刪除檔案"%s"?', 'Are you sure you want to delete plugin "%s"?': '確定要刪除插件 "%s"?', 'Are you sure you want to uninstall application "%s"': '確定要移除應用程式 "%s"', 'Are you sure you want to uninstall application "%s"?': '確定要移除應用程式 "%s"', 'Are you sure you want to upgrade web2py now?': '確定現在要升級 web2py?', 'Authentication': '驗證', 'Available databases and tables': '可提供的資料庫和資料表', 'Cannot be empty': '不可空白', 'Cannot compile: there are errors in your app. Debug it, correct errors and try again.': '無法編譯:應用程式中含有錯誤,請除錯後再試一次.', 'Cannot compile: there are errors in your app:': '無法編譯: 在你的應用程式存在錯誤:', 'Change Password': '變更密碼', 'Check to delete': '打勾代表刪除', 'Check to delete:': '打勾代表刪除:', 'Checking for upgrades...': '檢查新版本中...', 'Client IP': '客戶端網址(IP)', 'Controller': '控件', 'Controllers': '控件', 'Copyright': '版權所有', 'Create new simple application': '創建應用程式', 'Current request': '目前網路資料要求(request)', 'Current response': '目前網路資料回應(response)', 'Current session': '目前網路連線資訊(session)', 'DB Model': '資料庫模組', 'DESIGN': '設計', 'Database': '資料庫', 'Date and Time': '日期和時間', 'Delete': '刪除', 'Delete:': '刪除:', 'Deploy on Google App Engine': '配置到 Google App Engine', 'Description': '描述', 'Design for': '設計為了', 'E-mail': '電子郵件', 'EDIT': '編輯', 'Edit': '編輯', 'Edit Profile': '編輯設定檔', 'Edit This App': '編輯本應用程式', 'Edit application': '編輯應用程式', 'Edit current record': '編輯當前紀錄', 'Editing Language file': '編輯語言檔案', 'Editing file': '編輯檔案', 'Editing file "%s"': '編輯檔案"%s"', 'Enterprise Web Framework': '企業網站平台', 'Error logs for "%(app)s"': '"%(app)s"的錯誤紀錄', 'Exception instance attributes': 'Exception instance attributes', 'First name': '名', 'Functions with no doctests will result in [passed] tests.': '沒有 doctests 的函式會顯示 [passed].', 'Group ID': '群組編號', 'Hello World': '嗨! 世界', 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.': 'If the report above contains a ticket number it indicates a failure in executing the controller, before any attempt to execute the doctests. This is usually due to an indentation error or an error outside function code.\nA green title indicates that all tests (if defined) passed. In this case test results are not shown.', 'Import/Export': '匯入/匯出', 'Index': '索引', 'Installed applications': '已安裝應用程式', 'Internal State': '內部狀態', 'Invalid Query': '不合法的查詢', 'Invalid action': '不合法的動作(action)', 'Invalid email': '不合法的電子郵件', 'Language files (static strings) updated': '語言檔已更新', 'Languages': '各國語言', 'Last name': '姓', 'Last saved on:': '最後儲存時間:', 'Layout': '網頁配置', 'License for': '許可證', 'Login': '登入', 'Login to the Administrative Interface': '登入到管理員介面', 'Logout': '登出', 'Lost Password': '密碼遺忘', 'Main Menu': '主選單', 'Menu Model': '選單模組(menu)', 'Models': '資料模組', 'Modules': '程式模組', 'NO': '否', 'Name': '名字', 'New Record': '新紀錄', 'No databases in this application': '這應用程式不含資料庫', 'Origin': '原文', 'Original/Translation': '原文/翻譯', 'PAM authenticated user, cannot change password here': 'PAM 授權使用者, 無法在此變更密碼', 'Password': '密碼', "Password fields don't match": '密碼欄不匹配', 'Peeking at file': '選個文件', 'Plugin "%s" in application': '在應用程式的插件 "%s"', 'Plugins': '插件', 'Powered by': '基於以下技術構建:', 'Query:': '查詢:', 'Record ID': '紀錄編號', 'Register': '註冊', 'Registration key': '註冊金鑰', 'Remember me (for 30 days)': '記住帳號(30 天)', 'Reset Password key': '重設密碼', 'Resolve Conflict file': '解決衝突檔案', 'Role': '角色', 'Rows in table': '在資料表裏的資料', 'Rows selected': '筆資料被選擇', 'Saved file hash:': '檔案雜湊值已紀錄:', 'Static files': '靜態檔案', 'Stylesheet': '網頁風格檔', 'Submit': '傳送', 'Sure you want to delete this object?': '確定要刪除此物件?', 'TM': 'TM', 'Table name': '資料表名稱', 'Testing application': '測試中的應用程式', 'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '"查詢"是一個像 "db.表1.欄位1==\'值\'" 的條件式. 以"db.表1.欄位1==db.表2.欄位2"方式則相當於執行 JOIN SQL.', 'There are no controllers': '沒有控件(controllers)', 'There are no models': '沒有資料庫模組(models)', 'There are no modules': '沒有程式模組(modules)', 'There are no static files': '沒有靜態檔案', 'There are no translators, only default language is supported': '沒有翻譯檔,只支援原始語言', 'There are no views': '沒有視圖', 'This is the %(filename)s template': '這是%(filename)s檔案的樣板(template)', 'Ticket': '問題單', 'Timestamp': '時間標記', 'To create a plugin, name a file/folder plugin_[name]': '檔案或目錄名稱以 plugin_開頭來創建插件', 'Unable to check for upgrades': '無法做升級檢查', 'Unable to download': '無法下載', 'Unable to download app': '無法下載應用程式', 'Unable to download app because:': '無法下載應用程式因為:', 'Unable to download because': '因為下列原因無法下載:', 'Update:': '更新:', 'Upload & install packed application': '上傳並安裝已打包的應用程式', 'Upload existing application': '更新存在的應用程式', 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': '使用下列方式來組合更複雜的條件式, (...)&(...) 代表同時存在的條件, (...)|(...) 代表擇一的條件, ~(...)則代表反向條件.', 'User %(id)s Logged-in': '使用者 %(id)s 已登入', 'User %(id)s Registered': '使用者 %(id)s 已註冊', 'User ID': '使用者編號', 'Verify Password': '驗證密碼', 'Version': '版本', 'View': '視圖', 'Views': '視圖', 'Welcome %s': '歡迎 %s', 'Welcome to web2py': '歡迎使用 web2py', 'YES': '是', 'about': '關於', 'additional code for your application': '應用程式額外的程式碼', 'admin disabled because no admin password': '管理介面關閉原因是沒有設定管理員密碼 ', 'admin disabled because not supported on google app engine': '管理介面關閉原因是不支援在google apps engine環境下運作', 'admin disabled because unable to access password file': '管理介面關閉原因是無法存取密碼檔', 'amy_ajax': 'amy_ajax', 'and rename it (required):': '同時更名為(必要的):', 'and rename it:': '同時更名為:', 'appadmin': '應用程式管理員', 'appadmin is disabled because insecure channel': '管理介面關閉理由是連線方式不安全', 'application "%s" uninstalled': '已移除應用程式 "%s"', 'application compiled': '已編譯應用程式', 'application is compiled and cannot be designed': '應用程式已經編譯無法重新設計', 'arguments': 'arguments', 'back': '回復(back)', 'cache': '快取記憶體', 'cache, errors and sessions cleaned': '快取記憶體,錯誤紀錄,連線紀錄已清除', 'cannot create file': '無法創建檔案', 'cannot upload file "%(filename)s"': '無法上傳檔案 "%(filename)s"', 'change admin password': 'change admin password', 'change_password': '變更密碼', 'check all': '全選', 'clean': '清除', 'click here for online examples': '點此處進入線上範例', 'click here for the administrative interface': '點此處進入管理介面', 'click to check for upgrades': '點擊打勾以便升級', 'code': 'code', 'compile': '編譯', 'compiled application removed': '已移除已編譯的應用程式', 'controllers': '控件', 'create': '創建', 'create file with filename:': '創建檔案:', 'create new application:': '創建新應用程式:', 'created by': '創建自', 'crontab': '定時執行表', 'currently saved or': '現在存檔或', 'customize me!': '請調整我!', 'data uploaded': '資料已上傳', 'database': '資料庫', 'database %s select': '已選擇 %s 資料庫', 'database administration': '資料庫管理', 'db': 'db', 'defines tables': '定義資料表', 'delete': '刪除', 'delete all checked': '刪除所有已選擇項目', 'delete plugin': '刪除插件', 'delete_plugin': '刪除插件', 'design': '設計', 'direction: ltr': 'direction: ltr', 'done!': '完成!', 'edit': '編輯', 'edit controller': '編輯控件', 'edit views:': '編輯視圖', 'edit_language': '編輯語言檔', 'errors': '錯誤紀錄', 'export as csv file': '以逗號分隔檔(csv)格式匯出', 'exposes': '外顯', 'extends': '擴展', 'failed to reload module because:': '因為下列原因無法重新載入程式模組:', 'file "%(filename)s" created': '檔案 "%(filename)s" 已創建', 'file "%(filename)s" deleted': '檔案 "%(filename)s" 已刪除', 'file "%(filename)s" uploaded': '檔案 "%(filename)s" 已上傳', 'file "%s" of %s restored': '檔案 %s 的 "%s" 已回存', 'file changed on disk': '在磁碟上檔案已改變', 'file does not exist': '檔案不存在', 'file saved on %(time)s': '檔案已於 %(time)s 儲存', 'file saved on %s': '檔案在 %s 已儲存', 'help': '說明檔', 'htmledit': 'html編輯', 'includes': '包含', 'index': '索引', 'insert new': '插入新資料', 'insert new %s': '插入新資料 %s', 'install': '安裝', 'internal error': '內部錯誤', 'invalid password': '密碼錯誤', 'invalid request': '不合法的網路要求(request)', 'invalid ticket': '不合法的問題單號', 'language file "%(filename)s" created/updated': '語言檔"%(filename)s"已創建或更新', 'languages': '語言檔', 'loading...': '載入中...', 'login': '登入', 'logout': '登出', 'merge': '合併', 'models': '資料庫模組', 'modules': '程式模組', 'new application "%s" created': '已創建新的應用程式 "%s"', 'new plugin installed': '已安裝新插件', 'new record inserted': '已新增新紀錄', 'next 100 rows': '往後 100 筆', 'no match': '無法匹配', 'or import from csv file': '或是從逗號分隔檔(CSV)匯入', 'or provide app url:': '或是提供應用程式的安裝網址:', 'overwrite installed app': '覆蓋已安裝的應用程式', 'pack all': '全部打包', 'pack compiled': '打包已編譯資料', 'pack plugin': '打包插件', 'password changed': '密碼已變更', 'peek': '選取', 'plugin': '插件', 'plugin "%(plugin)s" deleted': '已刪除插件"%(plugin)s"', 'previous 100 rows': '往前 100 筆', 'record': '紀錄', 'record does not exist': '紀錄不存在', 'record id': '紀錄編號', 'register': '註冊', 'remove compiled': '編譯檔案已移除', 'resolve': '解決', 'restore': '回存', 'revert': '反向恢復', 'save': '儲存', 'selected': '已選擇', 'session expired': '連線(session)已過時', 'shell': '命令列操作介面', 'site': '網站', 'some files could not be removed': '部份檔案無法移除', 'state': '狀態', 'static': '靜態檔案', 'submit': '傳送', 'table': '資料表', 'test': '測試', 'the application logic, each URL path is mapped in one exposed function in the controller': '應用程式邏輯 - 每個網址路徑對應到一個控件的函式', 'the data representation, define database tables and sets': '資料展現層 - 用來定義資料表和集合', 'the presentations layer, views are also known as templates': '外觀展現層 - 視圖有時也被稱為樣板', 'these files are served without processing, your images go here': '這些檔案保留未經處理,你的影像檔在此', 'ticket': '問題單', 'to previous version.': '到前一個版本', 'translation strings for the application': '翻譯此應用程式的字串', 'try': '嘗試', 'try something like': '嘗試如', 'unable to create application "%s"': '無法創建應用程式 "%s"', 'unable to delete file "%(filename)s"': '無法刪除檔案 "%(filename)s"', 'unable to delete file plugin "%(plugin)s"': '無法刪查插件檔 "%(plugin)s"', 'unable to parse csv file': '無法解析逗號分隔檔(csv)', 'unable to uninstall "%s"': '無法移除安裝 "%s"', 'unable to upgrade because "%s"': '無法升級因為 "%s"', 'uncheck all': '全不選', 'uninstall': '解除安裝', 'update': '更新', 'update all languages': '將程式中待翻譯語句更新到所有的語言檔', 'upgrade web2py now': 'upgrade web2py now', 'upgrade_web2py': '升級 web2py', 'upload application:': '上傳應用程式:', 'upload file:': '上傳檔案:', 'upload plugin file:': '上傳插件檔:', 'variables': 'variables', 'versioning': '版本管理', 'view': '視圖', 'views': '視圖', 'web2py Recent Tweets': 'web2py 最近的 Tweets', 'web2py is up to date': 'web2py 已經是最新版', 'web2py upgraded; please restart it': '已升級 web2py ; 請重新啟動', } |
Added applications/admin/models/0.py version [2f774cf077].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | EXPIRATION = 60 * 60 # logout after 60 minutes of inactivity CHECK_VERSION = True WEB2PY_URL = 'http://web2py.com' WEB2PY_VERSION_URL = WEB2PY_URL+'/examples/default/version' ########################################################################### # Preferences for EditArea # the user-interface feature that allows you to edit files in your web # browser. ## Default editor TEXT_EDITOR = 'edit_area' or 'amy' ### edit_area # The default font size, measured in 'points'. The value must be an integer > 0 FONT_SIZE = 10 # Displays the editor in full screen mode. The value must be 'true' or 'false' FULL_SCREEN = 'false' # Display a check box under the editor to allow the user to switch # between the editor and a simple # HTML text area. The value must be 'true' or 'false' ALLOW_TOGGLE = 'true' # Replaces tab characters with space characters. # The value can be 'false' (meaning that tabs are not replaced), # or an integer > 0 that specifies the number of spaces to replace a tab with. REPLACE_TAB_BY_SPACES = 4 # Toggle on/off the code editor instead of textarea on startup DISPLAY = "onload" or "later" # if demo mode is True then admin works readonly and does not require login DEMO_MODE = False # if visible_apps is not empty only listed apps will be accessible FILTER_APPS = [] # To upload on google app engine this has to point to the proper appengine # config file import os # extract google_appengine_x.x.x.zip to web2py root directory #GAE_APPCFG = os.path.abspath(os.path.join('appcfg.py')) # extract google_appengine_x.x.x.zip to applications/admin/private/ GAE_APPCFG = os.path.abspath(os.path.join('/usr/local/bin/appcfg.py')) # To use web2py as a teaching tool, set MULTI_USER_MODE to True MULTI_USER_MODE = False # configurable twitterbox, set to None/False to suppress TWITTER_HASH = "web2py" # parameter for downloading LAYOUTS LAYOUTS_APP = 'http://web2py.com/layouts' #LAYOUTS_APP = 'http://127.0.0.1:8000/layouts' # parameter for downloading PLUGINS PLUGINS_APP = 'http://web2py.com/plugins' #PLUGINS_APP = 'http://127.0.0.1:8000/plugins' # set the language if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None): T.force(request.cookies['adminLanguage'].value) |
Added applications/admin/models/0_imports.py version [f31d8a5e98].
> > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import time import os import sys import re import urllib import cgi import difflib import shutil import stat import socket from textwrap import dedent try: from mercurial import ui, hg, cmdutil have_mercurial = True except ImportError: have_mercurial = False from gluon.utils import md5_hash from gluon.fileutils import listdir, cleanpath, up from gluon.fileutils import tar, tar_compiled, untar, fix_newlines from gluon.languages import findT, update_all_languages from gluon.myregex import * from gluon.restricted import * from gluon.compileapp import compile_application, remove_compiled_application |
Added applications/admin/models/access.py version [b01ffcca56].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | import os, time from gluon import portalocker from gluon.admin import apath from gluon.fileutils import read_file # ########################################################### # ## make sure administrator is on localhost or https # ########################################################### http_host = request.env.http_host.split(':')[0] if request.env.web2py_runtime_gae: session_db = DAL('gae') session.connect(request, response, db=session_db) hosts = (http_host, ) if request.env.http_x_forwarded_for or request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure channel')) try: _config = {} port = int(request.env.server_port or 0) restricted(read_file(apath('../parameters_%i.py' % port, request)), _config) if not 'password' in _config or not _config['password']: raise HTTP(200, T('admin disabled because no admin password')) except IOError: import gluon.fileutils if request.env.web2py_runtime_gae: if gluon.fileutils.check_credentials(request): session.authorized = True session.last_time = time.time() else: raise HTTP(200, T('admin disabled because not supported on google app engine')) else: raise HTTP(200, T('admin disabled because unable to access password file')) def verify_password(password): session.pam_user = None if DEMO_MODE: return True elif not 'password' in _config: return False elif _config['password'].startswith('pam_user:'): session.pam_user = _config['password'][9:].strip() import gluon.contrib.pam return gluon.contrib.pam.authenticate(session.pam_user,password) else: return _config['password'] == CRYPT()(password)[0] # ########################################################### # ## handle brute-force login attacks # ########################################################### deny_file = os.path.join(request.folder, 'private', 'hosts.deny') allowed_number_of_attempts = 5 expiration_failed_logins = 3600 def read_hosts_deny(): import datetime hosts = {} if os.path.exists(deny_file): hosts = {} f = open(deny_file, 'r') portalocker.lock(f, portalocker.LOCK_SH) for line in f.readlines(): if not line.strip() or line.startswith('#'): continue fields = line.strip().split() if len(fields) > 2: hosts[fields[0].strip()] = ( # ip int(fields[1].strip()), # n attemps int(fields[2].strip()) # last attempts ) portalocker.unlock(f) f.close() return hosts def write_hosts_deny(denied_hosts): f = open(deny_file, 'w') portalocker.lock(f, portalocker.LOCK_EX) for key, val in denied_hosts.items(): if time.time()-val[1] < expiration_failed_logins: line = '%s %s %s\n' % (key, val[0], val[1]) f.write(line) portalocker.unlock(f) f.close() def login_record(success=True): denied_hosts = read_hosts_deny() val = (0,0) if success and request.client in denied_hosts: del denied_hosts[request.client] elif not success and not request.is_local: val = denied_hosts.get(request.client,(0,0)) if time.time()-val[1]<expiration_failed_logins \ and val[0] >= allowed_number_of_attempts: return val[0] # locked out time.sleep(2**val[0]) val = (val[0]+1,int(time.time())) denied_hosts[request.client] = val write_hosts_deny(denied_hosts) return val[0] # ########################################################### # ## session expiration # ########################################################### t0 = time.time() if session.authorized: if session.last_time and session.last_time < t0 - EXPIRATION: session.flash = T('session expired') session.authorized = False else: session.last_time = t0 if not session.authorized and not \ (request.controller == 'default' and \ request.function in ('index','user')): if request.env.query_string: query_string = '?' + request.env.query_string else: query_string = '' if request.env.web2py_original_uri: url = request.env.web2py_original_uri else: url = request.env.path_info + query_string redirect(URL(request.application, 'default', 'index', vars=dict(send=url))) elif session.authorized and \ request.controller == 'default' and \ request.function == 'index': redirect(URL(request.application, 'default', 'site')) if request.controller=='appadmin' and DEMO_MODE: session.flash = 'Appadmin disabled in demo mode' redirect(URL('default','sites')) |
Added applications/admin/models/buttons.py version [697f589af3].
> > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Template helpers import os def button(href, label): return A(SPAN(label),_class='button',_href=href) def sp_button(href, label): return A(SPAN(label),_class='button special',_href=href) def helpicon(): return IMG(_src=URL('static', 'images/help.png'), _alt='help') def searchbox(elementid): return TAG[''](LABEL(IMG(_src=URL('static', 'images/search.png'), _alt=T('filter')), _class='icon', _for=elementid), ' ', INPUT(_id=elementid, _type='text', _size=12)) |
Added applications/admin/models/db.py version [864d15dc7c].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations if MULTI_USER_MODE: db = DAL('sqlite://storage.sqlite') # if not, use SQLite or other DB from gluon.tools import * mail = Mail() # mailer auth = Auth(globals(),db) # authentication/authorization crud = Crud(globals(),db) # for CRUD helpers using auth service = Service(globals()) # for json, xml, jsonrpc, xmlrpc, amfrpc plugins = PluginManager() mail.settings.server = 'logging' or 'smtp.gmail.com:587' # your SMTP server mail.settings.sender = 'you@gmail.com' # your email mail.settings.login = 'username:password' # your credentials or None auth.settings.hmac_key = '<your secret key>' # before define_tables() auth.define_tables() # creates all needed tables auth.settings.mailer = mail # for user email verification auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = True auth.messages.verify_email = 'Click on the link http://'+request.env.http_host+URL('default','user',args=['verify_email'])+'/%(key)s to verify your email' auth.settings.reset_password_requires_verification = True auth.messages.reset_password = 'Click on the link http://'+request.env.http_host+URL('default','user',args=['reset_password'])+'/%(key)s to reset your password' db.define_table('app',Field('name'),Field('owner',db.auth_user)) if not session.authorized and MULTI_USER_MODE: if auth.user and not request.function=='user': session.authorized = True elif not request.function=='user': redirect(URL('default','user/login')) def is_manager(): if not MULTI_USER_MODE: return True elif auth.user and auth.user.id==1: return True else: return False |
Added applications/admin/models/menu.py version [cbe8ab5af6].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # ########################################################### # ## generate menu # ########################################################### _a = request.application _c = request.controller _f = request.function response.title = '%s %s' % (_f, '/'.join(request.args)) response.subtitle = 'admin' response.menu = [(T('site'), _f == 'site', URL(_a,'default','site'))] if request.args: _t = request.args[0] response.menu.append((T('edit'), _c == 'default' and _f == 'design', URL(_a,'default','design',args=_t))) response.menu.append((T('about'), _c == 'default' and _f == 'about', URL(_a,'default','about',args=_t))) response.menu.append((T('errors'), _c == 'default' and _f == 'errors', URL(_a,'default','errors',args=_t))) response.menu.append((T('versioning'), _c == 'mercurial' and _f == 'commit', URL(_a,'mercurial','commit',args=_t))) if not session.authorized: response.menu = [(T('login'), True, '')] else: response.menu.append((T('logout'), False, URL(_a,'default',f='logout'))) response.menu.append((T('help'), False, URL('examples','default','index'))) |
Added applications/admin/models/plugin_multiselect.py version [ad61f332ac].
> > > > | 1 2 3 4 | response.files.append(URL('static','plugin_multiselect/jquery.dimensions.js')) response.files.append(URL('static','plugin_multiselect/jquery.multiselect.js')) response.files.append(URL('static','plugin_multiselect/jquery.multiselect.css')) response.files.append(URL('static','plugin_multiselect/start.js')) |
Added applications/admin/modules/__init__.py version [da39a3ee5e].
Added applications/admin/static/css/calendar.css version [be94f02d8c].
> > > > | 1 2 3 4 | .calendar{z-index:99;position:relative;display:none;border-top:2px solid #fff;border-right:2px solid #000;border-bottom:2px solid #000;border-left:2px solid #fff;font-size:11px;color:#000;cursor:default;background:#d4d0c8;font-family:tahoma,verdana,sans-serif;}.calendar table{border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;font-size:11px;color:#000;cursor:default;background:#d4d0c8;font-family:tahoma,verdana,sans-serif;}.calendar .button{text-align:center;padding:1px;border-top:1px solid #fff;border-right:1px solid #000;border-bottom:1px solid #000;border-left:1px solid #fff;}.calendar .nav{background:transparent}.calendar thead .title{font-weight:bold;padding:1px;border:1px solid #000;background:#848078;color:#fff;text-align:center;}.calendar thead .name{border-bottom:1px solid #000;padding:2px;text-align:center;background:#f4f0e8;}.calendar thead .weekend{color:#f00;}.calendar thead .hilite{border-top:2px solid #fff;border-right:2px solid #000;border-bottom:2px solid #000;border-left:2px solid #fff;padding:0;background-color:#e4e0d8;}.calendar thead .active{padding:2px 0 0 2px;border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;background-color:#c4c0b8;}.calendar tbody .day{width:2em;text-align:right;padding:2px 4px 2px 2px;}.calendar tbody .day.othermonth{font-size:80%;color:#aaa;}.calendar tbody .day.othermonth.oweekend{color:#faa;}.calendar table .wn{padding:2px 3px 2px 2px;border-right:1px solid #000;background:#f4f0e8;}.calendar tbody .rowhilite td{background:#e4e0d8;}.calendar tbody .rowhilite td.wn{background:#d4d0c8;}.calendar tbody td.hilite{padding:1px 3px 1px 1px;border-top:1px solid #fff;border-right:1px solid #000;border-bottom:1px solid #000;border-left:1px solid #fff;}.calendar tbody td.active{padding:2px 2px 0 2px;border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;}.calendar tbody td.selected{font-weight:bold;border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;padding:2px 2px 0 2px;background:#e4e0d8;}.calendar tbody td.weekend{color:#f00;}.calendar tbody td.today{font-weight:bold;color:#00f;}.calendar tbody .disabled{color:#999;}.calendar tbody .emptycell{visibility:hidden;}.calendar tbody .emptyrow{display:none;}.calendar tfoot .ttip{background:#f4f0e8;padding:1px;border:1px solid #000;background:#848078;color:#fff;text-align:center;}.calendar tfoot .hilite{border-top:1px solid #fff;border-right:1px solid #000;border-bottom:1px solid #000;border-left:1px solid #fff;padding:1px;background:#e4e0d8;}.calendar tfoot .active{padding:2px 0 0 2px;border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;}.calendar .combo{position:absolute;display:none;width:4em;top:0;left:0;cursor:default;border-top:1px solid #fff;border-right:1px solid #000;border-bottom:1px solid #000;border-left:1px solid #fff;background:#e4e0d8;font-size:90%;padding:1px;z-index:100;}.calendar .combo .label,.calendar .combo .label-IEfix{text-align:center;padding:1px;}.calendar .combo .label-IEfix{width:4em;}.calendar .combo .active{background:#c4c0b8;padding:0;border-top:1px solid #000;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #000;}.calendar .combo .hilite{background:#048;color:#fea;}.calendar td.time{border-top:1px solid #000;padding:1px 0;text-align:center;background-color:#f4f0e8;}.calendar td.time .hour,.calendar td.time .minute,.calendar td.time .ampm{padding:0 3px 0 4px;border:1px solid #889;font-weight:bold;background-color:#fff;}.calendar td.time .ampm{text-align:center;}.calendar td.time .colon{padding:0 2px 0 3px;font-weight:bold;}.calendar td.time span.hilite{border-color:#000;background-color:#766;color:#fff;}.calendar td.time span.active{border-color:#f00;background-color:#000;color:#0f0;} #CP_hourcont {z-index:99;padding: 0px;position:absolute;border:1px dashed #bbbbbb;background-color:#dddddd;display:none;} #CP_minutecont {z-index:99;background-color:#dddddd;padding: 0px;position:absolute;width:45px;border: 1px dashed #cccccc;display:none;} .floatleft {float:left;} .CP_hour {z-index:99;padding:1px;font-family: Arial, Helvetica, sans-serif;font-size:9px;white-space:nowrap;cursor:pointer;width:35px;margin:1px;background-color:#eeeeee;} .CP_minute {z-index:99;padding:1px;background-color:#eeeeee;font-family: Arial, Helvetica, sans-serif;font-size:9px;white-space:nowrap;cursor:pointer;width:auto;margin:1px;} .CP_over {z-index:99;background-color:#ffffff;} |
Added applications/admin/static/css/jqueryMultiSelect.css version [b85dc28a02].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | .multiSelect { width: 200px; border: solid 1px #BBB; background: #FFF right center no-repeat; padding: 2px 4px; padding-right: 20px; display: inline; } .multiSelect.hover { background: right center no-repeat; } .multiSelect.active, .multiSelect.focus { border: inset 1px #000; } .multiSelect.active { background: right center no-repeat; } .multiSelectOptions { width: 500px; max-height: 150px; margin-top: -1px; overflow: auto; border: solid 1px #B2B2B2; background: #FFF; } .multiSelectOptions LABEL { padding: 2px 5px; display: block; } .multiSelectOptions LABEL.checked { background: #E6E6E6; } .multiSelectOptions LABEL.selectAll { border-bottom: dotted 1px #CCC; } .multiSelectOptions LABEL.hover { background: #CFCFCF; } |
Added applications/admin/static/css/styles.css version [4a1e9c06c6].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 | /** * cSans v0.6.3 * 2009 Copyright A navalla suíza http://anavallasuiza.com * cSans is released under the GNU Affero GPL version 3 - more information at http://www.fsf.org/licensing/licenses/agpl-3.0.html */ /* 1. RESET */ html,body,div,span,object,iframe, h1,h2,h3,h4,h5,h6,p,blockquote,pre, a,abbr,acronym,address,code, del,dfn,em,img,q,dl,dt,dd,ol,ul,li, fieldset,form,label,legend,textarea, table,caption,tbody,tfoot,thead,tr,th,td { margin:0; padding:0; border:0; } textarea,select,input { font-size:1em; } html,body { height:100%; } body { font-family:Arial,Helvetica,"Liberation Sans",Sans,sans-serif; font-size: 12pt; line-height:1.25em; text-align:center; background:#fff; color:#000; } .page,.expanded-page { text-align:left; } /* 2. DEBUG: Show borders to stress an element */ .omg-red,.omg-yellow,.omg-blue,.omg-green,.omg-black,.omg-white { border-top:dotted 3px; border-bottom:dotted 3px; } .omg-red { border-color:red; } .omg-yellow { border-color:yellow; } .omg-blue { border-color:blue; } .omg-green { border-color:green; } .omg-black { border-color:black; } .omg-white { border-color:white; } /* 3. BASIC STYLES */ /* 3.1. Titles */ h1,h2,h3,h4,h5,h6 { font-weight:bold; line-height:1em; margin:1em 0 0.5em 0; } h1 { font-size:2em; } h2 { font-size:1.75em; } h3 { font-size:1.5em; } h4 { font-size:1.125em; } h5 { font-size:1em; } h6 { font-size:1em; font-weight:normal; } /* 3.2. Lists */ ul,dd { margin-left:1em; } ol { list-style-type:decimal; margin-left:1.5em; } dl dt { font-weight:bold; } /* 3.3. Tables */ table { border-collapse:collapse; border-spacing:0; } caption,th { font-weight:bold; } th,td { text-align:left; padding:0; border:1px solid #ccc; } tfoot { font-style:italic; } /* 3.4. Images */ a img { border:none; } img.right { margin-left:1em; } img.left { margin-right:1em; } /* 3.5. Forms */ fieldset { border:1px solid #ccc; } legend { font-weight:bold; font-size:1.2em; } input { margin:0; } input.text,input.password { overflow-y:visible; } textarea { width:400px; height:100px; border:1px solid #ccc; overflow-y: auto; } select { margin:0; font-size:1em; } input,textarea,select { font-family:Arial,sans-serif; font-size: 1em; } /* 3.6. Monospace elements */ pre,code,tt { font-family:"Courier New", Courier, monospace; line-height:1.5; } pre,code { white-space:pre; } tt { display:block; line-height:1.5; } /* 3.7. Block elements */ p,form,table,address,blockquote,pre,code,tt,ul,ol,dl { margin-bottom:1em; } /* 3.8. Inline elements */ em,dfn { font-style:italic; } /* 3.9. HR element */ hr { background:none; visibility:hidden; clear:both; float:none; width:100%; height:1px; border:none; margin:-1px 0; } /* 3.10. Flash objects */ object { outline:none; } /* 4. UTILS */ /* 4.1. Images with link and without link must overwrite background, width and height properties in your css */ .image a,.image li,.image { background-repeat:no-repeat; background-color:transparent; margin:0; padding:0; outline:none; font-size:0px !important; line-height:0em !important; letter-spacing:-20px; text-indent: -2px; display:block; overflow:hidden; text-align:left; border: none; } .image a { display:block; width:100%; height:100%; height:inherit; } ol.image,ul.image { background:none; width:100%; height:auto; float:left; } .image li { float:left; } span.image,strong.image,em.image,a.image { display:inline-block; vertical-align:bottom; } input.image { cursor:pointer; } /* 4.2. Simple tabs system. You can overwrite background and text styles */ .tabs { list-style:none; padding:0; margin:0; float:left; width:100%; } .tabs li { float:left; margin:0 1px 0 0; } .tabs li span, .tabs li a { float: left; padding:2px 5px; white-space:nowrap; text-align:center; cursor:pointer; outline:0; text-decoration:none; } .tabs li span { cursor:default; } .tabs .select a,.tabs a:hover { background:#ddd; } /* 4.3. Convert a block element (like a fieldset) into a inline element */ .inline { border:none; margin:0; padding:0; display:inline; } fieldset.inline { display:block; float:left; width: 100%; } /* 4.4. Inline-block element must content any element inside (div, p, etc) for the correct visualization in FF<3 */ .inline-block-top,.inline-block-middle,.inline-block-bottom { float:none !important; display:inline-block; } .inline-block-top { vertical-align:top !important; } .inline-block-middle { vertical-align:middle !important; } .inline-block-bottom { vertical-align:bottom !important; } /* 4.5. Float elements */ .left { float:left !important; } .right,.right-right { float:right !important; } .right-right { text-align:right !important; } .right-full { width:100%; text-align:right !important; } /* 4.6. Clear */ .clear,.content,.page,.expanded-page { display:block; } .clear:after,.tabs:after,.content:after,.page:after,.expanded-page:after { content:" "; display:block; height:0; clear:both; visibility:hidden; font-size:0; } /* 4.7. Destroy margin collapse */ .no-collapse { padding-top:1px; } /* 4.8. Hide an element */ .hide { display:none; } /* 5. LAYOUT */ /* 5.1. Row */ .row { float:left; width:100%; margin:0; padding:0; border:none; } /* 5.2. Last column in a row */ .last { margin-right:0 !important; } /* 5.3. Content */ .content { padding:0; margin:0; } /* 6. HACKS */ img { -ms-interpolation-mode:bicubic; } /* IE */ .clear,.tabs,.content,.page,.expanded-page { *overflow-y:auto; /* IE7 */ *overflow-x:hidden; /* IE7 */ _height:1%; /* IE6 */ _overflow-y:visible; /* IE6 */ _overflow-x:visible; /* IE6 */ } a.image,span.image,strong.image,em.image,.inline-block-top,.inline-block-middle,.inline-block-bottom { display:-moz-inline-box; /* FF<3 */ -moz-box-orient:vertical; /* FF<3 */ *display:inline; /* IE */ } /** * cSans Button plugin v0.3.1 * 2009 Copyright A navalla suíza http://anavallasuiza.com * cSans is released under the GNU Affero GPL version 3 - more information at http://www.fsf.org/licensing/licenses/agpl-3.0.html */ /* 1. BASIC STYLES */ ul.button { list-style: none; padding: 0; margin: 0; display:block; } ul.button { overflow-y: auto; overflow-x: hidden; } ul.button li { float: left; margin: 0; } ul.button li a { display: block; z-index: 2; } a.button { display: inline-block; vertical-align: middle; } /* 1.1. Normal status */ a.button, ul.button li a { background-position: 100% 0; background-repeat: no-repeat; white-space: nowrap; text-align: center; cursor: pointer; outline: 0; } a.button span, ul.button li a span { display: block; background-position: 0 0; background-repeat: no-repeat; } /* 1.2. Hover/selected status */ a.button:hover, a.button.select, ul.button li a:hover, ul.button li.select a { background-position: 100% -70px !important; } a.button:hover span, a.button.select span, ul.button li a:hover span, ul.button li.select a span { background-position: 0 -70px !important; } /* 2. EDITABLE STYLES */ /* 2.1. Image background used */ a.button, .button a, .button span { background-image: url(../images/button.png); } /* 2.2. Normal status (Example for padding 10px) */ a.button, .button a { padding: 0 10px 0 0; /* Padding-right: 10px */ margin: 0 1px 0 10px; /* Margin-left: 10px */ text-decoration: none; } .button span { padding: 4px 0 6px 10px; /*Padding-left: 10px */ margin: 0 0 0 -10px; /* Margin-left: -10px */ } /* 3. HACKS */ ul.button { _height: 1%; /* IE6 */ _overflow-y: visible; /* IE6 */ _overflow-x: visible; /* IE6 */ } a.button span { _float: left; /* Only IE6 */ _position: relative; /* Only IE6 */ } a.button { display: -moz-inline-box; /* FF<3 */ display: inline-block; /* FF<3 */ -moz-box-orient: vertical; /* FF<3 */ *display: inline; /* IE */ } /** * cSans Tooltip pluging v0.1 * 2009 Copyright A navalla suíza http://anavallasuiza.com * cSans is released under the GNU Affero GPL version 3 - more information at http://www.fsf.org/licensing/licenses/agpl-3.0.html */ /* BASIC STYLES */ .tooltip:hover { background:transparent; text-decoration:none; } .tooltip span { display:none; padding:5px; margin-left:10px; width:150px; } .tooltip:hover span { cursor: default; display:inline; position:absolute; } /** * cSans Flexible v0.1 * 2009 Copyright A navalla suíza http://anavallasuiza.com * cSans is released under the GNU Affero GPL version 3 - more information at http://www.fsf.org/licensing/licenses/agpl-3.0.html */ /* 1. BASIC STYLES */ /* 1.1 Widths */ .f10 { width:10%; } .f20 { width:20%; } .f25 { width:25%; } .f30 { width:30%; } .f33 { width:33.33%; } .f40 { width:40%; } .f50 { width:50%; } .f60 { width:60%; } .f66 { width:66.66%; } .f70 { width:70%; } .f75 { width:75%; } .f80 { width:80%; } .f90 { width:90%; } .f100 { width:100%; } .f10,.f20,.f25,.f30,.f33,.f40,.f50,.f60,.f66,.f70,.f75,.f80,.f90,.f100 { float:left; overflow:hidden; } /* 1.2 Margin-left */ .fl10 { margin-left:10%; } .fl20 { margin-left:20%; } .fl25 { margin-left:25%; } .fl30 { margin-left:30%; } .fl33 { margin-left:33.33%; } .fl40 { margin-left:40%; } .fl50 { margin-left:50%; } .fl60 { margin-left:60%; } .fl66 { margin-left:66.66%; } .fl70 { margin-left:70%; } .fl75 { margin-left:75%; } .fl80 { margin-left:80%; } .fl90 { margin-left:90%; } .fl100 { margin-left:100%; } /* 1.3 Margin-right */ .fr10 { margin-right:10%; } .fr20 { margin-right:20%; } .fr25 { margin-right:25%; } .fr30 { margin-right:30%; } .fr33 { margin-right:33.33%; } .fr40 { margin-right:40%; } .fr50 { margin-right:50%; } .fr60 { margin-right:60%; } .fr66 { margin-right:66.66%; } .fr70 { margin-right:70%; } .fr75 { margin-right:75%; } .fr80 { margin-right:80%; } .fr90 { margin-right:90%; } .fr100 { margin-right:100%; } /* 2. HACKS */ .f10,.f20,.f25,.f30,.f33,.f40,.f50,.f60,.f66,.f70,.f75,.f80,.f90,.f100 { _display:inline; /* IE5-6 */ *margin-left:-1px; /* IE5-7 */ } /** * web2py Nuovo Theme * ------------------ **/ /* Basics */ html, body { font-size: 13px; text-align: left; color: #333; padding: 0; margin: 0; background: #fff url(../images/header_shadow.png) repeat-x left 33px; } a { color: #e8953c; text-decoration: none; } label { color: #777; font-weight: bold; font-size: 100%; } img { vertical-align: baseline; } td, th { border: none; } .center { text-align: center; } .centerblock { margin: 0 auto; } .clear { clear: both; } .att { color: #d22; } /* General */ h3 { padding-left: 18px; background: url(../images/sidebar_bullet.gif) no-repeat; color: #555; font-weight: normal; font-size: 130%; } .formfield { padding: 0.7em 0.5em; -moz-border-radius: 0.3em; border-radius: 0.3em; margin: 1em 0; border: 1px solid #ddd; } .buttongroup { padding: 0.7em 0.5em; } .formfield { background: #eee; } .flash { position: fixed; top: 2em; right: 2em; background: #e8953c; color: #fff; border: 2px solid #fff; -moz-border-radius: 0.7em; border-radius: 0.7em; padding: 0.5em 1em; } .tooltip span { background: #9fb364; color: #eef1d9; border: 1px solid #eef1d9; font-style: italic; width: 20%; padding: 0.3em; -moz-border-radius: 0.5em; border-radius: 0.5em; font-size: 13px; text-transform: none; } .help { width: 60%; font-size: 1em; padding: 0.3em; -moz-border-radius: 0.5em; border-radius: 0.5em; background: #eef1d9; color: #9fb364; font-style: italic; text-transform: none; } .help h3 { color: #9fb364; font-size: 1.2em; background: transparent; font-weight: bold; } .icon img { vertical-align: middle; cursor: pointer; } .form td { padding: 0.2em 1em 0.2em 0; } /* Buttons */ .controls a.button, .controls a.button span { background-image: url(../images/small_button.png); } .controls a.button span { padding-top: 2px; } .controls a.button { color: #333; } .controls a.special, .controls a.special span { background-image: url(../images/small_special_button.png); } .controls a.special { color: #ddd; } /* Header */ #header { background: #292929 url(../images/header_bg.png) repeat-x; height: 33px; overflow: hidden; } /* Home button */ #start { position: absolute; top: 2px; left: 13px; margin: 0; } #start a.button { display: block; } #start a.button, #start a.button span { background-image: url(../images/start.png); } #start a { text-indent: -999px; overflow: hidden; padding: 0; margin: 0; } #start a.button span { width: 112px; height: 36px; padding: 0; margin: 0; } /* Menu */ #menu { float: right; margin: 3px 13px 0 0; } #menu li { float: left; list-style: none; margin-right: 0.4em; } #menu a.button, #menu a.button span { background-image: url(../images/menu.png); } #menu a.button { padding-right: 1em; } #menu a.button span { padding-left: 1em; } #menu a { color: #333; } /* Main area */ #main { padding: 2em 1em 5em; position: relative; } #main h2 { margin-top: 0; font-weight: normal; text-transform: uppercase; border-bottom: 1px dotted #aaa; padding-left: 18px; background: transparent url(../images/section_bullet.png) no-repeat left 3px; color: #aaa; } /* Applist */ .applist h3 { color: #aaa; font-weight: normal; } .applist ul { margin: 0; } .applist li { list-style: none; padding: 0; } h3.editableapp, h3.currentapp { padding: 5px 0 5px 54px; } h3.editableapp { background: #fff url(../images/folder.png) no-repeat; } h3.currentapp { background: #fff url(../images/folder_locked.png) no-repeat; } .applist .controls { margin-left: 1.5em; } /* Site sidebar */ .sidebar_inner { margin: 0 1em 0; -moz-border-radius: 0.5em; border-radius: 0.5em; border: 1px solid #ddd; min-width:400px; } .sidebar h4 { color: #888; } .pwdchange { padding: 1em; float: right !important; } .sidebar .box { clear: right; margin-top: 2em; border-top: 1px solid #eee; padding: 0 1em; } .sidebar .box { background: url(../images/sidebar_background.jpg) no-repeat; } .sidebar .upgrade_version { color: #71c837; } /* Tweets */ #tweets ol { margin: 1em 0; } #tweets ol li { background: #ebe8d0; list-style: none; -moz-border-radius: 0.5em; border-radius: 0.5em; padding: 0.5em; margin: 1em 0; border: 1px solid #aaa; } #tweets .entry-date { font-weight: bold; display: block; } /* Design/Plugin page */ .component { cursor: pointer; } .component_contents { padding-left: 20px; } .component_contents li { list-style: none; } .component_contents div.comptools { margin-bottom: 1em; padding-bottom: 0.5em; } .component_contents div.formfield form { margin-bottom: 0.2em; margin-top: 0.2em; } .file { font-weight: bold; } .folder { display: block; padding: 4px 0 4px 40px; background: url(../images/folder_sm.png) no-repeat; margin: 0.5em 0; } .folder .file { font-weight: bold; } .sublist { margin-left: 0; border-left: 1px dotted #aaa; padding-left: 0.5em; margin-top: 0.5em; margin-bottom: 0.0em; } /* About */ .legalese { background: #eee url(../images/embossed.png) repeat-y; padding: 1em 1em 1em 2em; } /* Wizard */ .step li { list-style: none; margin-left: 1em; margin-top: 0.5em; } .step #wizard_nav .box { border-bottom: 1px dotted #aaa; padding: 0.5em; } .step #wizard_form { padding: 0.5em 0 2em 2em; } /* Editor */ .edit #body { height: auto; width: 100%; } .edit .help li { list-style: none; padding: 0.5em 0; } .edit .help tt { font-weight: bold; font-style: normal; display: inline; /* Rest cSans base style */ border: 1px solid #999; background: #333; color: #ddd; padding: 0.3em; -moz-border-radius: 0.3em; border-radius: 0.3em; } /* Ticket */ ul#snapshot > li { list-style: none; } .inspect td, .versions td, .inspect th, .versions th { padding: 0.3em; // border: 1px solid #aaa; } .inspect th, .versions th { background: #ddd; color: #777; } .ticket h3 { margin-top: 0.5em; background: url(../images/ticket_section.png) no-repeat; padding: 30px; text-transform: uppercase; } .ticket .inspect li { list-style: none; } #frames ul { margin: 0; } #frames li { margin: 0.5em 0; padding: 0; list-style: none; } /* Errors */ .errors table.sortable th { background: url(../images/header_bg.png) repeat-x; color: #eee; // border-right: 1px solid #eee; padding-top: 0.5em; } .errors table.sortable td { border-bottom: 1px dotted #ddd; padding: 0.4em 0.2em; } /* Tests */ .test h3.failed { background-image: url(../images/red_bullet.gif); } .test h3.nodoctests { background-image: url(../images/dim_bullet.gif); } /* Footer */ #footer { padding: 1em 0 0; color: #eee; text-align: center; background: #292929 url(../images/header_bg.png) repeat-x; height: 45px; overflow: hidden; clear: both; } /* Shell */ .shell #wrapper { margin: 0 auto; } .shell #output { width: 75%; height:30em; } .shell #output, .shell #output pre { color: #e8953c; background: white; border: 1px solid #333; } .shell .prompt, .shell #output, .shell pre, .shell #caret { font-family: monospace; } .shell .prompt, .shell #output, .shell #caret { font-size: 10pt; padding: 6px; padding-right: 0em; } .shell #shellwrapper { background: white; border: 1px solid #333; color: #e8953c; width: 75%; // padding: 6px; // -moz-border-radius: 1em; // border-radius: 1em; margin: 1em 0 } .shell #caret { border: 0; float: left; } .shell .prompt { color: #e8953c; width: 85%; height: 4em; border: 0; } .shell .prompt, .shell #output { overflow: auto; } .shell table, tr, td { text-align: left; vertical-align: top; } .shell pre { border: 0; padding: 0; margin: 0; color: #333333; } .shell .message { width: 100%; color: #8AD; font-weight: bold; font-style: italic; } .shell .error { color: #F44; } .shell .username { font-weight: bold; } .shell dd{ color: #000033; } .shell dt{ color: #333333; } .shell #ajax-status { font-weight: bold; } .shell .processing { background-image: url('../images/spinner.gif'); } .shell #caret { width: 2.5em; margin-right: 0px; padding-right: 0px; border-right: 0px; } /* ie7 hacks */ .sublist { zoom: 1; } .untranslated { background-color: #FFCC00; } .translated { background-color: white; } .ui-multiselect { border: 1px solid #ccc; width:400px;} #editor_area textarea { height: 400px; width: 100% } |
Added applications/admin/static/eamy/bundle_markup.js version [b7691207fb].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | /* * eAmy.Offline - Amy Editor embedded for offline use. * http://www.april-child.com/amy * * Published under MIT License. * Copyright (c) 2007-2008 Petr Krontorád, April-Child.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * This file is auto-generated from original Fry Framework and Amy Editor sources.. */ // Generated from theme definition file. $class('ac.chap.theme.EAmy < ac.chap.Theme'); ac.chap.theme.EAmy.prototype.initDefinition = function() { // $call(this, 'ac.chap.Theme.initDefinition');this.cssId = 'black'; //this.background = '#072240'; //this.textColor = '#DFEFFF'; //this.caretColor = 'lime'; //this.caretRowStyleActive = '#041629'; //this.selectionStyle = '#86553b'; //this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#FF9D00'; //this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#FF5B8C'; //this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#FF9D00;'; //this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#FFF177'; //this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#54FFB8'; //this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#FFE000'; //this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#71E5B6'; //this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#FF78E5'; $call(this, 'ac.chap.Theme.initDefinition');this.cssId = 'twilight'; this.background = '#141414'; this.textColor = '#F8F8F8'; this.caretColor = '#A7A7A7'; this.caretRowStyleActive = '#1B1B1B'; this.selectionStyle = '#3C4043'; this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#8B9F67'; this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#D4F29E'; this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#D2A964'; this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#DE6848'; this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#EFC25A;'; this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#ABC4DC'; this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#A0849E'; this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#DAD280'; this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#7286A8'; this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#A55C29'; } // Generated from bundle keymap definition file. ac.chap.KeyMap.prototype.initDefinition = function() { var _ = '\n'; this.compile (""+_+ "KEY: 0" +_+ " insert(character:true)" +_+ "KEY: -37" +_+ " caret(move:'left')" +_+ "KEY: -37+shift" +_+ " caret(move:'left')" +_+ " selection(add:true)" +_+ "KEY: -37+ctrl" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ "KEY: -37+alt" +_+ " caret(move:'prev_word')" +_+ "KEY: -37+ctrl+shift" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ " selection(add:true)" +_+ "KEY: -37+alt+shift" +_+ " caret(move:'prev_word')" +_+ " selection(add:true)" +_+ "KEY: -37+meta" +_+ " caret(move:'row_start')" +_+ "KEY: -37+meta+shift" +_+ " caret(move:'row_start')" +_+ " selection(add:true)" +_+ "KEY: -39" +_+ " caret(move:'right')" +_+ "KEY: -39+shift" +_+ " caret(move:'right')" +_+ " selection(add:true)" +_+ "KEY: -39+ctrl" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ "KEY: -39+alt" +_+ " caret(move:'next_word')" +_+ "KEY: -39+ctrl+shift" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ " selection(add:true)" +_+ "KEY: -39+alt+shift" +_+ " caret(move:'next_word')" +_+ " selection(add:true)" +_+ "KEY: -39+meta" +_+ " caret(move:'row_end')" +_+ "KEY: -39+meta+shift" +_+ " caret(move:'row_end')" +_+ " selection(add:true)" +_+ "KEY: -38" +_+ " caret(move:'up')" +_+ "KEY: -38+shift" +_+ " caret(move:'up')" +_+ " selection(add:true)" +_+ "KEY: -40" +_+ " caret(move:'down')" +_+ "KEY: -40+shift" +_+ " caret(move:'down')" +_+ " selection(add:true)" +_+ "KEY: -13" +_+ " insert(row:true)" +_+ "KEY: -8" +_+ " delete(character:true)" +_+ "KEY: -46" +_+ " delete(character:false)" +_+ "KEY: 75+ctrl+shift" +_+ " delete(row:true)" +_+ "KEY: -27" +_+ " custom(action:'WordComplete', direction:true)" +_+ "KEY: -27+shift" +_+ " custom(action:'WordComplete', direction:false)" +_+ "KEY: -9" +_+ " custom(action:'SnippetComplete')" +_+ "KEY: 123" +_+ " custom(action:'AutoComplete', use_selection:true, text:'}')" +_+ "KEY: 34" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\"')" +_+ "KEY: 91" +_+ " custom(action:'AutoComplete', use_selection:true, text:']')" +_+ "KEY: 40" +_+ " custom(action:'AutoComplete', use_selection:true, text:')')" +_+ "KEY: -36" +_+ " caret(move:'doc_start')" +_+ "KEY: -36+shift" +_+ " caret(move:'doc_start')" +_+ " selection(add:true)" +_+ "KEY: -35" +_+ " caret(move:'doc_end')" +_+ "KEY: -35+shift" +_+ " caret(move:'doc_end')" +_+ " selection(add:true)" +_+ "KEY: -34+meta" +_+ " caret(move:'page_down')" +_+ "KEY: -34+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: -33+meta" +_+ " caret(move:'page_up')" +_+ "KEY: -33+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: 99+meta" +_+ " clipboard(copy:true)" +_+ "KEY: 120+meta" +_+ " clipboard(cut:true)" +_+ "KEY: 122+meta" +_+ " undo()" +_+ "KEY: 90+meta+shift" +_+ " redo()" +_+ "KEY: 97+meta" +_+ " selection(all:true)" +_+ "KEY: 97+ctrl" +_+ " selection(all:true)" +_+ "KEY: -113" +_+ " custom(action:'GoToBookmark', direction:1)" +_+ "KEY: -113+shift" +_+ " custom(action:'GoToBookmark', direction:-1)" +_+ "KEY: -113+meta" +_+ " custom(action:'ToggleBookmark')" +_+ "KEY: 91+meta" +_+ " custom(action:'Indent', direction:'left')" +_+ "KEY: 93+meta" +_+ " custom(action:'Indent', direction:'right')" +_+ "KEY: 47+meta" +_+ " custom(action:'Comment')" +_+ "KEY: 43+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'bigger')" +_+ "KEY: 45+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'smaller')" +_+ "KEY: 101+meta" +_+ " custom(action:'SetSearchKeyword')" +_+ "KEY: 103+meta" +_+ " custom(action:'SearchKeyword', direction:'down')" +_+ "KEY: 71+shift+meta" +_+ " custom(action:'SearchKeyword', direction:'up')" +_+ "KEY: 102+ctrl" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 83+ctrl+shift" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 102+meta" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: -13" +_+ " custom(action:'SmartIndent', split_line:true, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: -13+meta" +_+ " custom(action:'SmartIndent', split_line:false, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: 39" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\\'')" )}; $class('ac.chap.lang.EAmy < ac.chap.Language'); ac.chap.lang.EAmy.prototype.initDefinition = function() { $call(this, 'ac.chap.Language.initDefinition'); this.singleQuoteStringMarker = "'"; this.singleQuoteStringMarkerException = "\\"; this.doubleQuoteStringMarker = "\""; this.doubleQuoteStringMarkerException = "\\" this.wordDelimiter = /[\w\.\d]/; this.indentIgnoreMarker = /[\.]/; this.foldingStartMarkers = [/^\s*<(div)\b.*>/i, /^\s*<(ul)\b.*>/i]; this.foldingParityMarkers = [/^\s*<(div)\b.*>/i, /^\s*<(ul)\b.*>/i]; this.foldingStopMarkers = [/^\s*<\/(div)>/i, /^\s*<\/(ul)>/i]; this.singleRowCommentStartMarkers = []; this.multiRowCommentStartMarker = "<!--"; this.multiRowCommentEndMarker = "-->"; this.chunkRules.push([/(([^\w]|^)(\d{1,}[\d\.Ee]*)([^w]|$))/i, 3, ac.chap.CHUNK_NUMBER]) this.chunkRules.push([/(\+|\-|\*|\/|\=|\!|\^|\%|\||\&|\<|\>)/i, 0, ac.chap.CHUNK_OPERATOR]) this.chunkRules.push([/(\(|\)|\[|\]|\{|\})/i, 0, ac.chap.CHUNK_PARENTHESIS]) this.chunkRules.push([/((<|<\/)([\w-_\:]*)([ >]))/i, 3, ac.chap.CHUNK_KEYWORD]) this.chunkRules.push([/(([ \t])([\w-_\:]*)(=$))/i, 3, ac.chap.CHUNK_KEYWORD_CUSTOM]) this.chunkRules.push([/(([^\w]|^)(!DOCTYPE)([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY]) this.chunkRules.push([/(([^\w]|^)(\d{1,}[\d\.Ee]*)([^w]|$))/i, 3, ac.chap.CHUNK_NUMBER]) this.chunkRules.push([/(\+|\-|\*|\/|\=|\!|\^|\%|\||\&|\<|\>)/i, 0, ac.chap.CHUNK_OPERATOR]) this.chunkRules.push([/(\(|\)|\[|\]|\{|\})/i, 0, ac.chap.CHUNK_PARENTHESIS]) this.chunkRules.push([/((<|<\/)([\w-_\:]*)([ >]))/i, 3, ac.chap.CHUNK_KEYWORD]) this.chunkRules.push([/(([ \t])([\w-_\:]*)(=$))/i, 3, ac.chap.CHUNK_KEYWORD_CUSTOM]) this.chunkRules.push([/(([^\w]|^)(!DOCTYPE)([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY]) } var snippet = {}; snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie6', code: '<!--[if IE 6]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 6 only }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'iegte7', code: '<!--[if gte IE 7]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 7 and above }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie5', code: '<!--[if IE 5.5]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.5 only }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie', code: '<!--[if IE]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ienot', code: '<!--[if !IE]><!-->${1:${AMY_SELECTED_TEXT: IE Conditional Comment: NOT Internet Explorer }}<!-- <![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ielte6', code: '<!--[if lte IE 6]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 6 and below }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '<!--[if IE 5.0]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.0 only }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ielt6', code: '<!--[if lt IE 6]>${1:${AMY_SELECTED_TEXT: IE Conditional Comment: Internet Explorer 5.x }}<![endif]-->$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '${0:${AMY_SELECTED_TEXT/\A<em>(.*)<\/em>\z|.*/(?1:$1:<em>$0<\/em>)/m}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '${0:${AMY_SELECTED_TEXT/\A<strong>(.*)<\/strong>\z|.*/(?1:$1:<strong>$0<\/strong>)/m}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'left', code: '←'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'backtab', code: '⇤'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'enter', code: '⌅'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'arrow', code: '→'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'option', code: '⌥'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'shift', code: '⇧'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ' '}; eamy.snippets.push(snippet); snippet = {tab_activation: 'delete', code: '⌦'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'backspace', code: '⌫'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'escape', code: '⎋'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'tab', code: '⇥'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'up', code: '↑'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'control', code: '⌃'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'return', code: '↩'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'down', code: '↓'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'command', code: '⌘'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctype', code: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n "http://www.w3.org/TR/html4/strict.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctype', code: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n "http://www.w3.org/TR/html4/loose.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypexf', code: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypext', code: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypex', code: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypexs', code: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 't', code: '<{${1:tag_name}}>$0</{$1}>'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'body', code: '<body id="${1:${AMY_FILENAME/(.*)\..*/\L$1/}}"${2: onload="$3"}>\n $0\n</body>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'textarea', code: '<textarea name="${1:Name}" rows="${2:8}" cols="${3:40}">$0</textarea>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'div', code: '<div${1: id="${2:name}"}>\n ${0:$AMY_SELECTED_TEXT}\n</div>'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '<br>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'title', code: '<title>${1:${AMY_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}</title>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'movie', code: '<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n <param name="src" value="$1">\n <param name="controller" value="$4">\n <param name="autoplay" value="$5">\n <embed src="${1:movie.mov}"\n width="${2:320}" height="${3:240}"\n controller="${4:true}" autoplay="${5:true}"\n scale="tofit" cache="true"\n pluginspage="http://www.apple.com/quicktime/download/"\n >\n</object>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'input', code: '<input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="$3"${4: id="${5:$2}"}>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'head', code: '<head>\n <meta http-equiv="Content-type" content="text/html; charset=utf-8">\n <title>${1:${AMY_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}</title>\n $0\n</head>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'meta', code: '<meta name="${1:name}" content="${2:content}">'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'h1', code: '<h1 id="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}">${1:$AMY_SELECTED_TEXT}</h1>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'form', code: '<form action="${1:${AMY_FILENAME/(.*?)\..*/$1_submit/}}" method="${2:get}" accept-charset="utf-8">\n $0\n\n <p><input type="submit" value="Continue →"></p>\n</form>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'link', code: '<link rel="${1:stylesheet}" href="${2:/css/master.css}" type="text/css" media="${3:screen}" title="${4:no title}" charset="${5:utf-8}">'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'style', code: '<style type="text/css" media="screen">\n $0\n</style>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'table', code: '<table border="${1:0}"${2: cellspacing="${3:5}" cellpadding="${4:5}"}>\n <tr><th>${5:Header}</th></tr>\n <tr><td>${0:Data}</td></tr>\n</table>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'base', code: '<base href="$1"${2: target="$3"}>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'scriptsrc', code: '<script src="$1" type="text/javascript" charset="${3:utf-8}"></script>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'mailto', code: '<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'script', code: '<script type="text/javascript" charset="utf-8">\n $0\n</script>'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'c', code: 'class="$1"'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'i', code: 'id="$1"'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'p', code: '{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ex', code: '{{extend \'${1:layout.html}\'}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'for', code: '{{for ${1:bar} in ${2:foo}:}}\n $0\n{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'if', code: '{{if ${1:foo} ${2:==/!=/=>/=</>/<} ${3:bar}:}}\n $0\n{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '=', code: '{{=$0}}'}; eamy.snippets.push(snippet); |
Added applications/admin/static/eamy/bundle_python.js version [3ba44b1cf2].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | /* * eAmy.Offline - Amy Editor embedded for offline use. * http://www.april-child.com/amy * * Published under MIT License. * Copyright (c) 2007-2008 Petr Krontorád, April-Child.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * This file is auto-generated from original Fry Framework and Amy Editor sources.. */ // Generated from theme definition file. $class('ac.chap.theme.EAmy < ac.chap.Theme'); ac.chap.theme.EAmy.prototype.initDefinition = function() { // $call(this, 'ac.chap.Theme.initDefinition');this.cssId = 'black'; //this.background = '#072240'; //this.textColor = '#DFEFFF'; //this.caretColor = 'lime'; //this.caretRowStyleActive = '#041629'; //this.selectionStyle = '#86553b'; //this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#FF9D00'; //this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#FF5B8C'; //this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#FF9D00;'; //this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#FFF177'; //this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#54FFB8'; //this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#FFE000'; //this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#71E5B6'; //this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#FF78E5'; // $call(this, 'ac.chap.Theme.initDefinition'); this.cssId = 'twilight'; this.background = '#141414'; this.textColor = '#F8F8F8'; this.caretColor = '#A7A7A7'; this.caretRowStyleActive = '#1B1B1B'; this.selectionStyle = '#3C4043'; this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#8B9F67'; this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#D4F29E'; this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#D2A964'; this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#DE6848'; this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#EFC25A;'; this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#ABC4DC'; this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#A0849E'; this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#DAD280'; this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#7286A8'; this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#A55C29'; } // Generated from bundle keymap definition file. ac.chap.KeyMap.prototype.initDefinition = function() { var _ = '\n'; this.compile (""+_+ "KEY: 0" +_+ " insert(character:true)" +_+ "KEY: -37" +_+ " caret(move:'left')" +_+ "KEY: -37+shift" +_+ " caret(move:'left')" +_+ " selection(add:true)" +_+ "KEY: -37+ctrl" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ "KEY: -37+alt" +_+ " caret(move:'prev_word')" +_+ "KEY: -37+ctrl+shift" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ " selection(add:true)" +_+ "KEY: -37+alt+shift" +_+ " caret(move:'prev_word')" +_+ " selection(add:true)" +_+ "KEY: -37+meta" +_+ " caret(move:'row_start')" +_+ "KEY: -37+meta+shift" +_+ " caret(move:'row_start')" +_+ " selection(add:true)" +_+ "KEY: -39" +_+ " caret(move:'right')" +_+ "KEY: -39+shift" +_+ " caret(move:'right')" +_+ " selection(add:true)" +_+ "KEY: -39+ctrl" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ "KEY: -39+alt" +_+ " caret(move:'next_word')" +_+ "KEY: -39+ctrl+shift" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ " selection(add:true)" +_+ "KEY: -39+alt+shift" +_+ " caret(move:'next_word')" +_+ " selection(add:true)" +_+ "KEY: -39+meta" +_+ " caret(move:'row_end')" +_+ "KEY: -39+meta+shift" +_+ " caret(move:'row_end')" +_+ " selection(add:true)" +_+ "KEY: -38" +_+ " caret(move:'up')" +_+ "KEY: -38+shift" +_+ " caret(move:'up')" +_+ " selection(add:true)" +_+ "KEY: -40" +_+ " caret(move:'down')" +_+ "KEY: -40+shift" +_+ " caret(move:'down')" +_+ " selection(add:true)" +_+ "KEY: -13" +_+ " insert(row:true)" +_+ "KEY: -8" +_+ " delete(character:true)" +_+ "KEY: -46" +_+ " delete(character:false)" +_+ "KEY: 75+ctrl+shift" +_+ " delete(row:true)" +_+ "KEY: -27" +_+ " custom(action:'WordComplete', direction:true)" +_+ "KEY: -27+shift" +_+ " custom(action:'WordComplete', direction:false)" +_+ "KEY: -9" +_+ " custom(action:'SnippetComplete')" +_+ "KEY: 123" +_+ " custom(action:'AutoComplete', use_selection:true, text:'}')" +_+ "KEY: 34" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\"')" +_+ "KEY: 91" +_+ " custom(action:'AutoComplete', use_selection:true, text:']')" +_+ "KEY: 40" +_+ " custom(action:'AutoComplete', use_selection:true, text:')')" +_+ "KEY: -36" +_+ " caret(move:'doc_start')" +_+ "KEY: -36+shift" +_+ " caret(move:'doc_start')" +_+ " selection(add:true)" +_+ "KEY: -35" +_+ " caret(move:'doc_end')" +_+ "KEY: -35+shift" +_+ " caret(move:'doc_end')" +_+ " selection(add:true)" +_+ "KEY: -34+meta" +_+ " caret(move:'page_down')" +_+ "KEY: -34+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: -33+meta" +_+ " caret(move:'page_up')" +_+ "KEY: -33+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: 99+meta" +_+ " clipboard(copy:true)" +_+ "KEY: 120+meta" +_+ " clipboard(cut:true)" +_+ "KEY: 122+meta" +_+ " undo()" +_+ "KEY: 90+meta+shift" +_+ " redo()" +_+ "KEY: 97+meta" +_+ " selection(all:true)" +_+ "KEY: 97+ctrl" +_+ " selection(all:true)" +_+ "KEY: -113" +_+ " custom(action:'GoToBookmark', direction:1)" +_+ "KEY: -113+shift" +_+ " custom(action:'GoToBookmark', direction:-1)" +_+ "KEY: -113+meta" +_+ " custom(action:'ToggleBookmark')" +_+ "KEY: 91+meta" +_+ " custom(action:'Indent', direction:'left')" +_+ "KEY: 93+meta" +_+ " custom(action:'Indent', direction:'right')" +_+ "KEY: 47+meta" +_+ " custom(action:'Comment')" +_+ "KEY: 43+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'bigger')" +_+ "KEY: 45+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'smaller')" +_+ "KEY: 101+meta" +_+ " custom(action:'SetSearchKeyword')" +_+ "KEY: 103+meta" +_+ " custom(action:'SearchKeyword', direction:'down')" +_+ "KEY: 71+shift+meta" +_+ " custom(action:'SearchKeyword', direction:'up')" +_+ "KEY: 102+ctrl" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 83+ctrl+shift" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 102+meta" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: -13" +_+ " custom(action:'SmartIndent', split_line:true, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: -13+meta" +_+ " custom(action:'SmartIndent', split_line:false, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: 39" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\\'')" )}; $class('ac.chap.lang.EAmy < ac.chap.Language'); ac.chap.lang.EAmy.prototype.initDefinition = function() { $call(this, 'ac.chap.Language.initDefinition'); this.singleQuoteStringMarker = "'"; this.singleQuoteStringMarkerException = "\\"; this.doubleQuoteStringMarker = "\""; this.doubleQuoteStringMarkerException = "\\"; this.wordDelimiter = /[\w\d]/; this.indentIgnoreMarker = /[\t \s]/; this.foldingStartMarkers = [/^\s*def|class/i]; this.foldingParityMarkers = [/do|(^\s*if)|(^\s*def)|(^\s*class)/i]; this.foldingStopMarkers = [/^\s{0,1}$/i]; this.singleRowCommentStartMarkers = ['#']; this.multiRowCommentStartMarker = "\"\"\""; this.multiRowCommentEndMarker = "\"\"\""; this.stringInterpolation = ['(#\{[^\}]*\})', 1]; this.chunkRules.push([/(([^\w]|^)(\d{1,}[\d\.Ee]*)([^w]|$))/i, 3, ac.chap.CHUNK_NUMBER]) this.chunkRules.push([/(\+|\-|\*|\/|\=|\!|\^|\%|\||\&|\<|\>)/i, 0, ac.chap.CHUNK_OPERATOR]) this.chunkRules.push([/(\(|\)|\[|\]|\{|\})/i, 0, ac.chap.CHUNK_PARENTHESIS]) this.chunkRules.push([/(([^\w]|^)(elif|else|except|finally|for|if|try|while|with)([^\w]|$))/i, 3, ac.chap.CHUNK_KEYWORD]) this.chunkRules.push([/(([^\w]|^)(@[\w]*|break|continue|pass|raise|return|yield|and|in|is|not|or|as|assert|del|exec|print)([^\w]|$))/i, 3, ac.chap.CHUNK_KEYWORD_CUSTOM]) this.chunkRules.push([/((def[ ]{1,})([\w]{1,}))/i, 3, ac.chap.CHUNK_FUNCTION_NAME]) this.chunkRules.push([/(([^\w]|^)(__import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|sum|unichr|vars|zip|basestring|bool|buffer|classmethod|complex|dict|enumerate|file|float|frozenset|int|list|long|object|open|property|reversed|set|slice|staticmethod|str|super|tuple|type|unicode|xrange)([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY]) this.chunkRules.push([/(([^\w]|^)((__(all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__)|(import|from| abs|add|and|call|cmp|coerce|complex|contains|del|delattr|delete|delitem|delslice|div|divmod|enter|eq|exit|float|floordiv|ge|get|getattr|getattribute|getitem|getslice|gt|hash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|long|lshift|lt|mod|mul|ne|neg|new|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|setslice|str|sub|truediv|unicode|xor))([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY_CUSTOM]) } var snippet = {}; snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ifmain', code: 'if __name__ == '+"'"+'__main__'+"'"+':\n ${1:main()}$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'try', code: 'try:\n ${1:pass}\nexcept ${2:Exception}, ${3:e}:\n ${4:raise e}\nelse:\n ${5:pass}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'property', code: 'def ${1:foo}():\n doc = "${2:The $1 property.}"\n def fget(self):\n ${3:return self._$1}\n def fset(self, value):\n ${4:self._$1 = value}\n def fdel(self):\n ${5:del self._$1}\n return locals()\n$1 = property(**$1())$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '__', code: '__${1:init}__'}; eamy.snippets.push(snippet); snippet = {tab_activation: '.', code: 'self.'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); //snippet = {tab_activation: 'def', code: 'def ${1:fname}(${2:`if [ "$TM_CURRENT_LINE" != "" ]\n # poor man'+"'"+'s way ... check if there is an indent or not\n # (cuz we would have lost the class scope by this point)\n then\n echo "self"\n fi`}):\n ${3/.+/"""/}${3:docstring for $1}${3/.+/"""\n/}${3/.+/\t/}${0:pass}'}; //eamy.snippets.push(snippet); snippet = {tab_activation: 'def', code: 'def ${1:fname}(${2:`if [ "$TM_CURRENT_LINE" != "" ]\n # poor man'+"'"+'s way ... check if there is an indent or not\n # (cuz we would have lost the class scope by this point)\n then\n echo "self"\n fi`}):\n ${3:}\n ${0:return dict()}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'class', code: 'class ${1:ClassName}(${2:object}):\n ${3/.+/"""/}${3:docstring for $1}${3/.+/"""\n/}${3/.+/\t/}def __init__(self${4/([^,])?(.*)/(?1:, )/}${4:arg}):\n ${5:super($1, self).__init__()}\n${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][a-zA-Z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\tself.$2 = $2\n)/g} $0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'aurm', code: '@auth.requires_membership(\'$0\'):'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'dbt', code: '${1:db_name}.define_table("${2:table_name}",\n SQLField("${3:field_name}", "${4:string/text/password/blob/upload/boolean/integer/double/time/date/datetime/db.reference_table}", ${5:length=$6}, ${7:default="$8"}),$9\n)'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'dbf', code: 'SQLField("${1:field_name}", "${2:string/text/password/blob/upload/boolean/integer/double/time/date/datetime/db.reference_table}", ${3:length=$4}, ${5:default="$6"}),$7'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'dbi', code: '${1:db_name}.${2:table_name}.insert(\n ${3:field_name}="$4" $5\n)'}; eamy.snippets.push(snippet); snippet = {tab_activation: 't', code: 'T("$0")'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'rev', code: 'response.view=\'$0\''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ref', code: 'response.flash=\'$0\''}; eamy.snippets.push(snippet); snippet = {tab_activation: 're', code: 'redirect(\'$0\')'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'rej', code: 'response.json=\'$0\''}; eamy.snippets.push(snippet); |
Added applications/admin/static/eamy/chap-bg-sidebar.gif version [9e95c89e6d].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-bookmark-default.gif version [ddbe132559].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-folding-expand-inner.gif version [f0df085fd1].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-folding-expand.gif version [2dcb780ffa].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-folding-start.gif version [06f1038e75].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-folding-stop.gif version [0f952c6663].
cannot compute difference between binary files
Added applications/admin/static/eamy/chap-wrapped-row.gif version [3bae3b1bbf].
cannot compute difference between binary files
Added applications/admin/static/eamy/eamy.js version [62634f7a78].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 | /* * eAmy.Offline - Amy Editor embedded for offline use. * http://www.april-child.com/amy * * Published under MIT License. * Copyright (c) 2007-2008 Petr Krontorád, April-Child.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * This file is auto-generated from original Fry Framework and Amy Editor sources.. */ /* * AC Fry - JavaScript Framework v1.0 * (c)2006 Petr Krontorad, April-Child.com * Portions of code based on WHOA Bender Framework, (c)2002-2005 Petr Krontorad, WHOA Group. * http://www.april-child.com. All rights reserved. * See the license/license.txt for additional details regarding the license. * Special thanks to Matt Groening and David X. Cohen for all the robots. */ /* Reserving global `fry` object */ var fry = { version:1.0, __production_mode:false }; // String prototype enhancements String.prototype.camelize = function() { return this.replace( /([-_].)/g, function(){ return arguments[0].substr(1).toUpperCase();} ); } String.prototype.decamelize = function() { return this.replace( /([A-Z])/g, function(){ return '-'+arguments[0].toLowerCase();} ); } String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, '' ); } String.prototype.stripLines = function() { return this.replace( /\n/g, '' ); } String.prototype.stripMarkup = function() { return this.replace( /<(.|\n)+?>/g, '' ); } String.prototype.replaceMarkup = function( charRep ) { return this.replace( /(<(.|\n)+?>)/g, function() { var t = ''; for ( var i=0; i<arguments[0].length; i++ ) { t += charRep; } return t; } ); } String.prototype.encodeMarkup = function() { return this.replace( /&/g, '&' ).replace( />/g, '>' ).replace( /</g, '<' ); } String.prototype.decodeMarkup = function() { return this.replace( /</g, '<' ).replace( />/g, '>' ).replace( /&/g, '&' ); } String.prototype.surround = function(t, side) { side = side || 3; return (1==1&side?t:'')+this+(2==2&side?t:''); } String.prototype.surroundTag = function(t) { return '<'+t+'>'+this+'</'+t+'>'; } // example of use: var pattern = '? is ?; alert(pattern.embed('Decin', 'sunny')); pattern = '@city is @weather'; alert(pattern.embed({weather:'cloudy', city:'Decin'})) String.prototype.embed = function() { var t = this; if ( 1 == arguments.length && 'object' == typeof arguments[0] ) { // named placeholders for ( var i in arguments[0] ) { eval('var re=/@'+i+'/g;'); t = t.replace(re, arguments[0][i]); } } else { // anonymous placeholders `?` for ( var i=0; i<arguments.length; i++ ) { var ix = t.indexOf('?'); if ( -1 != ix ) { t = t.substr(0,ix)+arguments[i]+t.substr(ix+1); continue; } break; } } return t; } // Tuning helpers - dealing with user-agent differences var $__tune = { __prop:{}, isIE:('function' == typeof window.ActiveXObject), isSafari:-1!=navigator.appVersion.indexOf('AppleWebKit'), isOpera:-1!=navigator.appName.indexOf('pera'), isMac:-1!=navigator.appVersion.indexOf('intosh'), isGecko:false, node: { getOpacity:function(node) { if ( !node || !node.style ) { return 1.0; } if ( $__tune.isIE ) { var f = node.style.filter; if ( !f || -1 == f.indexOf('alpha') ) { return 1.0; } return 1.0; } return parseFloat(node.style[$__tune.isGecko?'MozOpacity':'opacity'] || 1.0); }, setOpacity:function(node, opacity) { if ( !node || !node.style ) { return; } if ( 0 > opacity ) { opacity = 0; } if ( 1 < opacity ) { opacity = 1; } if ( $__tune.isIE ) { node.style.filter = 'alpha(opacity='+(100*opacity)+')'; } else { node.style.opacity = opacity; node.style.MozOpacity = opacity; } }, getPageScrollPosition:function() { var d = document.documentElement; if ( d && d.scrollTop) { return [d.scrollLeft, d.scrollTop]; } else if (document.body) { return [document.body.scrollLeft, document.body.scrollTop]; } else { return [0, 0]; } } }, event: { get:function(evt, type) { if ( $notset(evt.target) ) { evt.target = evt.srcElement; evt.stopPropagation = function() { window.event.cancelBubble = true; }; } evt.stop = function() { evt.stopPropagation(); evt.stopped = true; } evt.$ = $(evt.target); if ( $notset(evt.pageX) ) { evt.pageX = evt.clientX + document.body.scrollLeft; evt.pageY = evt.clientY + document.body.scrollTop; } evt.getOffsetX = function() { if ( $notset(evt.offsetX) ) { var pos = evt.$.abspos(); evt.offsetX = evt.pageX - pos.x; evt.offsetY = evt.pageY - pos.y; } return evt.offsetX; } evt.getOffsetY = function() { if ( $notset(evt.offsetY) ) { var pos = evt.$.abspos(); evt.offsetX = evt.pageX - pos.x; evt.offsetY = evt.pageY - pos.y; } return evt.offsetY; } evt.isAnyControlKeyPressed = function() { return evt.metaKey||evt.ctrlKey||evt.altKey||evt.shiftKey; } evt.KEY_ESCAPE = 27; evt.KEY_ENTER = 13; evt.KEY_ARR_RIGHT = 39; evt.KEY_ARR_LEFT = 37; evt.KEY_ARR_UP = 38; evt.KEY_ARR_DOWN = 40; return evt; }, addListener:function(node, type, listener) { if ( $__tune.isIE && node.attachEvent ) { node.attachEvent('on'+type, listener); } else { node.addEventListener(type, listener, false); } }, removeListener:function(node, type, listener) { if ( node.detachEvent ) { node.detachEvent('on'+type, listener); node['on'+type] = null; } else if ( node.removeEventListener ) { node.removeEventListener(type, listener, false); } } }, behavior: { disablePageScroll:function() { if ( $notset($__tune.__prop.page_scroll) ) { $__tune.__prop.page_scroll = [$().s().overflow, $().ga('scroll')]; } $().s('overflow:hidden').sa('scroll', 'no'); }, enablePageScroll:function() { $().s('overflow:auto').sa('scroll', 'yes'); }, disableCombos:function() { $().g('select', function(node) { node.sa('__dis_combo', node.s().visibility); $(node).v(false); }); }, enableCombos:function() { $().g('select', function(node) { node.s({visibility:node.ga('__dis_combo') || 'visible'}); }); }, clearSelection:function() { try { if ( window.getSelection ) { if ( $__tune.isSafari ) { window.getSelection().collapse(); } else { window.getSelection().removeAllRanges(); } } else { if ( document.selection ) { if ( document.selection.empty ) { document.selection.empty(); } else { if ( document.selection.clear ) { document.selection.clear(); } } } } } catch (e) {} }, makeBodyUnscrollable:function() { $().s('position:fixed').w(fry.ui.info.page.width); } }, ui: { scrollbarWidth:-1!=navigator.appVersion.indexOf('intosh')?15:17 }, selection: { setRange:function(el, selectionStart, selectionEnd) { if (el.setSelectionRange) { el.focus(); el.setSelectionRange(selectionStart, selectionEnd); } else if (el.createTextRange) { var range = el.createTextRange(); range.collapse(true); range.moveEnd('character', selectionEnd); range.moveStart('character', selectionStart); range.select(); } } } } // some browsers masks its presence having Gecko string somewhere inside its userAgent field... $__tune.isGecko = !$__tune.isSafari&&!$__tune.isIE&&-1!=navigator.userAgent.indexOf('ecko'); $__tune.isSafari2 = $__tune.isSafari && -1 != navigator.appVersion.indexOf('Kit/4'); $__tune.isSafari3 = $__tune.isSafari && -1 != navigator.appVersion.indexOf('Kit/5'); // Node manipulations function ACNode(node) { this.$ = node; if ( node ) { node.setAttribute('fryis', '1'); } } // `$$` creates new node ACNode.prototype.$$ = function(tagName) { return $$(tagName); } // *is* - tells whether node is a part of the active DOM tree (that is displayed on page). Node may exist only in memory before appending or after removing when references, in which case node.is() will return false. ACNode.prototype.is = function() { return this.$ && null != this.$.parentNode; } // *i*d ACNode.prototype.i = function(id) { if ( 'undefined' == typeof id ) { return this.$.id||''; } this.$.id = id; return this; } // class *n*ame ACNode.prototype.n = function(n) { if ( 'undefined' == typeof n) { return this.$.className||''; } this.$.className = n; return this; } // *e*vent listener, if called with one argument only, previously registered listeners are removed ACNode.prototype.e = function(t, c, oneUseOnly) { var ser_type_id = 'fryse-'+t; if ( !c ) { if ( null != this.$.getAttribute(ser_type_id) ) { var ser_listeners = this.$.getAttribute(ser_type_id).split(','); // console.log('*E* removing listeners for %s, listeners: %s', t, ser_listeners); for ( var i=0; i<ser_listeners.length; i++ ) { $__tune.event.removeListener(this.$, t, self[ser_listeners[i]]); self[ser_listeners[i]] = null; } this.$['on'+t] = null; this.$.removeAttribute(ser_type_id); } return this; } var hash = t+(''+Math.random()).substr(2); var ser_listeners = null != this.$.getAttribute(ser_type_id) ? this.$.getAttribute(ser_type_id).split(',') : []; ser_listeners.push(hash); this.$.setAttribute(ser_type_id, ser_listeners.join(',')); // console.log('*E* add listener self.%s for %s', hash, t); self[hash] = function(evt) { evt.removeListener = function() { $__tune.event.removeListener(evt.$.$, t, self[hash]); // console.log('*E* remove listener self.%s for %s', hash, t); c = null; evt = null; self[hash] = null; } evt = evt || self.event; if ( null != c ) { c($__tune.event.get(evt)); } if ( null != evt ) { if ( oneUseOnly ) { evt.removeListener(); return; } else if ( evt.stopped ) { // console.log('*E* stop self.%s for %s', hash, t); evt = null; } } }; this.$.setAttribute('fryhe', 1); $__tune.event.addListener(this.$, t, self[hash]); return this; } function __fry_esupressed(evt) { evt = evt || self.event; if ( !evt.stopPropagation ) { evt.cancelBubble = true; } else { evt.stopPropagation(); } evt = null; return false; } // *e*vent *s*upressed - special case when you want to receive an event, do nothing about it and stop it from propagating ACNode.prototype.es = function(t) { if ( $__tune.isIE && this.$.attachEvent ) { this.$.attachEvent('on'+t, __fry_esupressed); } else if ( this.$.addEventListener ) { this.$.addEventListener(t, __fry_esupressed, false); } } // *x* coordinate ACNode.prototype.x = function(x) { if ( 'undefined' == typeof x ) { return parseInt(this.$.style.left||0); } this.$.style.left = x+'px'; return this; } // *y* coordinate ACNode.prototype.y = function(y) { if ( 'undefined' == typeof y ) { return parseInt(this.$.style.top||0); } this.$.style.top = y+'px'; return this; } // *abs*olute page *pos*ition coordinates (you can optionally specify node to which the position is calculated), returns {x:, y:} coordinates ACNode.prototype.abspos = function(n) { if ( document.getBoxObjectFor ) { var p = document.getBoxObjectFor(this.$); return {x:p.x, y:p.y}; } if ( this.$.getBoundingClientRect ) { var p = this.$.getBoundingClientRect(); return {x:p.left+(document.documentElement.scrollLeft || document.body.scrollLeft), y:p.top+(document.documentElement.scrollTop || document.body.scrollTop)}; } var p = {x:0, y:0}; var n2 = this.$; while ( document.body != n2 && document != n2 && n != n2 ) { p.x += n2.offsetLeft - n2.scrollLeft; p.y += n2.offsetTop - n2.scrollTop; if ( n2.offsetParent ) { n2 = n2.offsetParent; } else { n2 = n2.parentNode; } } return p; } // *pos*ition, if true - absolute, false - relative ACNode.prototype.pos = function(p) { if ( 'undefined' == typeof p ) { return 'absolute' == this.$.style.position; } this.$.style.position = p ? 'absolute' : 'relative'; return this; } // *z*-index coordinate ACNode.prototype.z = function(z) { if ( 'undefined' == typeof z ) { return parseInt(this.$.style.zIndex||0); } this.$.style.zIndex = z; return this; } // *w*idth ACNode.prototype.w = function(w) { if ( 'undefined' == typeof w ) { return parseInt(this.$.style.width||this.$.offsetWidth); } this.$.style.width = w+'px'; return this; } // *h*eight ACNode.prototype.h = function(h) { if ( 'undefined' == typeof h ) { return parseInt(this.$.style.height||this.$.offsetHeight); } this.$.style.height = h+'px'; if ( $__tune.isIE && 8 > h ) { this.$.style.fontSize = '1px'; } return this; } // *s*tyle information - argument can be either "{color:'red', backgroundColor:'blue'}" or "'color:red;background-color:blue'" ACNode.prototype.s = function(s) { if ( 'undefined' == typeof s ) { return this.$.style; } if ( 'object' == typeof s ) { for ( var n in s ) { this.$.style[n] = s[n]; } } else if ( 'string' == typeof s ) { if ( '' != s ) { var styles = s.split(';'); for ( var i=0; i<styles.length; i++ ) { var style = styles[i].split(':'); if ( 2 == style.length ) { this.$.style[style[0].trim().camelize()] = style[1].trim(); } } } } return this; } // *o*pacity ACNode.prototype.o = function(o) { if ( 'undefined' == typeof o ) { return $__tune.node.getOpacity(this.$); } $__tune.node.setOpacity(this.$, o); return this; } // *d*isplay ACNode.prototype.d = function(d) { if ( 'undefined' == typeof d ) { return 'none' != this.$.style.display; } this.$.style.display = d ? 'block' : 'none'; return this; } // *v*isibility ACNode.prototype.v = function(v) { if ( 'undefined' == typeof v ) { return 'hidden' != this.$.style.visibility; } this.$.style.visibility = v ? 'visible' : 'hidden'; return this; } // H*T*ML source (equivalent to infamous innerHTML, remember innerHTML is not considered *evil* here - see the KISS principle, plus it's actually faster than DOM) ACNode.prototype.t = function(t) { if ( 'undefined' == typeof t ) { return this.$.innerHTML; } this.rc(); this.$.innerHTML = t; return this; } // *p*arent node ACNode.prototype.p = function(p) { if ( 'undefined' == typeof p ) { return $(this.$.parentNode); } return $(p).a(this); } // *g*et child node(s), the format of a query might be either `[['table',0],['tr',2],['td',4]]`, `['table',['tr',2],['td',4]]`, 'table:0/tr:2/td:4' or 'table/tr:2/td:4'. you can use `*` in path for any node ACNode.prototype.g = function(q) { var lst = []; if ( 'string' == typeof q ) { var qt = q.split('/'); q = []; for ( var i=0; i<qt.length; i++ ) { var qtt = qt[i].split(':'); q[q.length] = qtt; } } var lookup = function(node, qIndex) { if ( !node ) { return; } var qq = q[qIndex]; var is_final_index = q.length-1 == qIndex; var ls = node.getElementsByTagName(qq[0]); var num = ls.length; if ( 2 == qq.length ) { // specific node required if ( is_final_index ) { // store results lst.push($(ls.item(parseInt(qq[1])))); } else { lookup(ls.item(parseInt(qq[1])), qIndex+1); } } else { // all nodes required for ( var i=0; i<num; i++ ) { if ( is_final_index ) { lst.push($(ls.item(i))); } else { lookup(ls.item(i), qIndex+1); } } } ls = null; } lookup(this.$, 0); lookup = null; var num = lst.length; if ( 1 == num ) { return lst[0]; } else if ( 0 == num ) { lst = null; } return lst; } // *g*et *p*arent node at some path - allows for returning grand-grand-grand...parent node. imagine node tree: `div>div>table>tbody>tr>td>` and node at `td` // to return second div you would call `gp('tr/tbody/table/div')` or `tr/table/div:1`, first div could be acquired using `table/div:2` etc. you can use `*` for any node. ACNode.prototype.gp = function(q) { if ( 'string' == typeof q ) { q = q.split('/'); } var fq = []; for ( var i=0; i<q.length; i++ ) { if ( -1 != q[i].indexOf(':') ) { q[i] = q[i].split(':'); for ( var ii=0; ii<q[i][1]; ii++ ) { fq.push(q[i][0]); } } else { fq.push(q[i]); } } var c = 0; var p = this.$; while ( p && c < fq.length) { p = p.parentNode; if ( '*' == fq[c] || fq[c] == p.tagName.toLowerCase() ) { c++; } } return $(p); } // *a*ppends child node ACNode.prototype.a = function(n) { if ( 'undefined' != typeof n['$'] ) { n = n.$; } return $(this.$.appendChild(n)); } // *a*ppend H*T*ML code - adds innerHTML to existing node code ACNode.prototype.at = function(t) { var ht = this.$.innerHTML; this.$.innerHTML = ht + t; return this; } // *r*emoves child node ACNode.prototype.r = function(n) { n = $(n); if ( null != n && n.is() ) { n.rs(); } return this; } // *r*emove *c*hildren ACNode.prototype.rc = function() { if ( !this.$ ) { return this; } __fry_gcnode(this.$, true); return this; } // *r*emoves *s*elf - ! does not return self - therefor the call to .rs() must always be the last in a pipe ACNode.prototype.rs = function() { if ( !this.$ ) { return; } __fry_gcnode(this.$); this.$ = null; } // *i*nserts *c*hild node before specific referenced node (rn) ACNode.prototype.ib = function(n, rn) { if ( 'undefined' != typeof n['$'] ) { n = n.$; } if ( 'undefined' != typeof rn['$'] ) { rn = rn.$; } return $(this.$.insertBefore(n,rn)); } // *i*nserts *c*hild node after specific referenced node (rn) ACNode.prototype.ia = function(n, rn) { if ( 'undefined' != typeof n['$'] ) { n = n.$; } if ( null == $(rn).ns() ) { return $(this.$.appendChild(n)); } else { return $(this.$.insertBefore(n,($(rn).ns()).$)); } } // *f*irst *c*hild of the node - always returns first $-ed node (ignoring text, comment etc. nodes) ACNode.prototype.fc = function() { if ( !this.$ ) { return null; } var n = this.$.firstChild; while ( null != n && 1 != n.nodeType ) { n = n.nextSibling; } return null != n ? $(n) : null; } // *l*ast *c*hild of the node - always returns last $-ed node (ignoring text, comment etc. nodes) ACNode.prototype.lc = function() { if ( !this.$ ) { return null; } var n = this.$.lastChild; while ( null != n && 1 != n.nodeType ) { n = n.previousSibling; } return null != n ? $(n) : null; } // *n*ext *s*ibling of the node - always returns first $-ed node (ignoring text, comment etc. nodes) ACNode.prototype.ns = function() { var n = this.$.nextSibling; while ( null != n && 1 != n.nodeType ) { n = n.nextSibling; } return null != n ? $(n) : null; } // *p*revious *s*ibling of the node - always returns last $-ed node (ignoring text, comment etc. nodes) ACNode.prototype.ps = function() { var n = this.$.previousSibling; while ( null != n && 1 != n.nodeType ) { n = n.previousSibling; } return null != n ? $(n) : null; } // *g*et *a*ttribute ACNode.prototype.ga = function(n) { if ( !this.$ ) { return null; } return this.$.getAttribute(n); } // *s*et *a*ttribute ACNode.prototype.sa = function(n, v) { this.$.setAttribute(n, v); return this; } // *r*emove *a*ttribute ACNode.prototype.ra = function(n) { this.$.removeAttribute(n); return this; } // *dup*licate node ACNode.prototype.dup = function() { return $(this.$.cloneNode(true)); } // `$_` converts any value into string - useful for numeric values before calling for String enhanced methods. var $_ = function(t) { return ''+t; } // `$$` creates new node with specified tag name, returns $-ed node var $$ = function(n) { return $(document.createElement(n||'div')); } // returns $-ed node for existing node, argument can be either ID string or node itself (standard or $-ed). If argument is omitted, returns the body node var $ = function(id) { if ( 'undefined' == typeof id ) { return $(document.body || document.getElementsByTagName('body').item(0)); } if ( 'undefined' == id || null == id ) { return null; } if ( 'object' != typeof id ) { return new ACNode(document.getElementById(id)); } else { if ( id instanceof ACNode ) { return id; } if ( 1 != id.nodeType ) { return null; } return new ACNode(id); } } // Language constructs /* $class ====== Creates new class, multiple class inheritance is allowed. Usage: $class('AClass', { construct:function(a) { this.a = a || ''; }, destruct:function() { $delete(this.a); } }); AClass.prototype.hello = function(msg) { alert(msg + this.a); } $class('BClass < AClass', { construct:function(a, b) { this.b = b || ''; } }); $class('CClass'); $class('DClass < BClass, CClass'); DClass.prototype.hello = function(msg, msg2) { $call(this, 'AClass.hello', msg); alert(msg2 + this.b); } */ var $class = function(className, methods) { if ( 'string' != typeof className ) { throw new FryException(29, 'Class inheritance error. Undefined class name.'); } var n = className.split('<'); className = n[0].replace(/ /g, ''); var bases = []; if ( 1 == n.length ) { // no inheritance, will inherit from `Object` bases[0] = 'Object'; } else { // defined inheritance, might be multiple eg. `ClassA < ClassB, ClassC` bases = n[1].split(','); } var getSource = function(s) { s = ''+s; return s.substring(s.indexOf('{')+1, s.lastIndexOf('}')); } var getParams = function(s, p) { p = p || {}; s = ''+s; s = s.substring(s.indexOf('(')+1, s.indexOf(')')).split(','); for ( var i in s ) { var n = s[i].replace(/ /g, ''); if ( !p[n] && '' != n ) { p[n] = true; } } return p; } var preprocessSource = function(s, cn) { // parsing source code and replacing calls to base constructor or methods eval('var re = /'+cn+'\.([^\\(]*)\\(([\\)]*)/g;'); s = s.replace(re, function() { return 'this.__'+cn+'_'+arguments[1]+'.call(this'+(''==arguments[2].replace(/ /g, '')?',':'')+arguments[2]; }); eval('re = /'+cn+'[^\\(]*\\(([\\)]*)/g;'); s = s.replace(re, function() { return 'this.__'+cn+'_construct.call(this'+(''==arguments[1].replace(/ /g, '')?',':'')+arguments[1]; }); return s; } methods = methods || {}; var c_code = ''; var d_code = ''; var params = {}; for ( var i in bases ) { bases[i] = bases[i].replace(/ /g, ''); if ( 'Object' == bases[i] ) { continue; } eval('var b_code='+bases[i]+';'); params = getParams(b_code, params); b_code = getSource(b_code); c_code += b_code+';'; eval('var d_code='+bases[i]+'.prototype.destruct||"{}";'); d_code = getSource(d_code); d_code += d_code+';'; } params = getParams(methods.construct||'', params); var p = []; for ( var i in params) { p.push(i); } if ( methods.construct ) { // own constructor defined oc_code = getSource(methods.construct); for ( var i in bases ) { if ( 'Object' != bases[i] ) { oc_code = preprocessSource(oc_code, bases[i]); } } c_code += oc_code; } d_code += methods.destruct ? getSource(methods.destruct) : ''; try { eval('var newClass=function('+p.join(',')+'){'+c_code+'};'); } catch (e) { throw new FryException(30, 'Class inheritance error. Class `?`, constructor: `?`, error message: `?`.'.embed(className, c_code, e)); } newClass.prototype = new Object(); for ( var i in bases ) { if ( 'Object' == bases[i] ) { continue; } // creating links to base class methods var p_base = bases[i].replace(/\./g, '_'); eval('for(var m in '+bases[i]+'.prototype){newClass.prototype[m]='+bases[i]+'.prototype[m]; if ("__" !=m.substr(0,2)) {newClass.prototype["__'+p_base+'_"+m]='+bases[i]+'.prototype[m];}}'); } // creating class metadata for reflection newClass.prototype.__class_name = className; newClass.prototype.__base_class_names = bases; eval('newClass.prototype.construct=function('+p.join(',')+'){'+c_code+'};') eval('newClass.prototype.destruct=function(){'+d_code+'};') eval(className+'=newClass'); } // $new // ==== // Creates new object. // Usage: $new(ClassName, [arguments]) var $new = function() { if ( !arguments[0] ) { throw new FryException(31, 'Object instantiation error. Invalid class provided `?`.'.embed(arguments[0])); } var arg_list = []; for ( var i=1; i<arguments.length; i++ ) { arg_list.push('arguments['+i+']'); } try { eval('var obj = new arguments[0]('+arg_list.join(',')+');'); } catch(e) { throw new FryException(32, 'Object instantiation error. Class: `?`, num arguments: `?`, error message: `?`.'.embed(arguments[0].prototype.__class_name, arg_list.length, e)); } return obj; } // $delete // ======= // Safely deletes object (destructors of each base class are called automatically). // Usage: $delete(object) var $delete = function(object) { if ( 'object' != typeof object ) { return; } try { if ( 'string' == typeof object.__base_class_names ) { var bases = object.__base_class_names.split(','); for ( var i in bases ) { if ( 'Object' != bases[i] ) { $call(object, bases[i]+'.destruct()'); } } } if ( object.destruct ) { object.destruct(); } delete object; } catch(e) { } } // $call // ===== // Calls a method/function of specific object, typically used from within method to call some base class method. // Usage: $call(this, 'AClass.aMethod', [arguments]) var $call = function() { caller = arguments[0]; var arg_list = []; for ( var i=2; i<arguments.length; i++ ) { arg_list.push('arguments['+i+']'); } try { eval('var r = caller.__'+arguments[1].replace(/\./g, '_')+'.call(caller'+(0!=arg_list.length?',':'')+arg_list.join(',')+');'); } catch (e) { throw new FryException(32, 'Function call error. Function `?`, num arguments: ?, error: `?`.'.embed(arguments[1], arguments.length-2, e)); } return r; } // $runafter // ========= // Runs embedded code after specified interval (in miliseconds, value 1000 means 1 second). /* Usage: $runafter(100, function() { // your code }) */ var $runafter = function(t, c) { setTimeout(c, t); } // $runinterval // ============ // Runs embedded code from step `from` to the `to` step, each step is delayed for specified interval. /* Usage: $runinterval(1, 10, 100, function(step) { // your code that will repeat ten times }) */ var $runinterval = function(from, to, interval, c) { var i = from; var control = { from:from, to:to, stopped:false, stop:function() { this.stopped = true; } } var t = self.setInterval(function() { if ( i > to && to>=from ) { self.clearInterval(t); } else { c(i, control); if ( control.stopped ) { self.clearInterval(t); } } i++; }, interval); } // $dotimes // ======== // Repeats embedded code n times. /* Usage: $dotimes(20, function(i) { // your code, i is the counter parameter }) */ var $dotimes = function(n, c) { for ( var i=0; i<n; i++ ) { c(i); } } // $foreach // ======== // Iterates through any kind of collection - it can be practically anything you might need, from arrays, serialized XML, DOM nodes, remote results etc. /* Usage: $foreach ( node.g('table/tr'), function(tr, i, control) { if ( 5 > i ) { control.skip(); return; } tr.n(0==i%2 ? 'even' : 'odd'); if ( 20 < i ) { control.stop(); } }) */ var $foreach = function(o, c) { if ( !o ) { c = null; return; } if ( 'undefined' == typeof o.length && 'function' != typeof o.__length ) { c = null; return; } var n = 'function' == typeof o.__length ? o.__length() : o.length; var control = { stopped:false, stop:function() { this.stopped = true; }, skipped:false, skip:function() { this.skipped = true; }, removed:false, remove:function(stopAfterwards) { this.removed = true; this.stopped = true == stopAfterwards; } } // cannot just extend Array.prototype for `item()` method due bug in IE6 iteration mechanism. Some day (>2010 :) this might get fixed and will become obsolete for ( var i=0; i<n; i++ ) { var item = null; if ( 'function' == typeof o.item ) { item = o.item(i); } else if ( 'function' == typeof o.__item ) { item = o.__item(i); } else { if ( 'undefined' == typeof o[i] ) { continue; } item = o[i]; } c(item, 'function' == typeof o.__key ? o.__key(i) : i, control); if ( control.removed ) { control.removed = false; if ( 'undefined' != typeof o[i] ) { delete o[i]; } else { if ( 'function' == typeof o.removeItem ) { o.removeItem(i); } else if ( 'function' == typeof o.__remove ) { o.remove(i); } } } if ( control.stopped ) { break; } if ( control.skipped ) { control.skipped = false; continue; } } control = null; c = null; } var $notset = function(value) { return ( 'undefined' == typeof value || 'undefined' == value || null == value ); } var $isset = function(value) { return ( 'undefined' != typeof value && 'undefined' != value && null != value ); } var $getdef = function(value, defaultValue) { if ( 'undefined' == typeof value || 'undefined' == value || null == value ) { return defaultValue; } return value; } var $combofill = function(n, c) { var i = -1; n = $(n); while (-1<++i) { var v = c(i); if ( 'object' != typeof v ) { break; } var option = n.a($$('option')).t(v[1]); option.$.value = v[0]; if ( v[2] ) { option.sa('selected', 'selected'); } } return n; } var $comboget = function(n) { var v = []; var options = $(n).$.options; for ( var i=0; i<options.length; i++ ) { if ( '' != options[i].selected ) { v[v.length] = options[i].value; } } if ( 1 == v.length ) { return v[0]; } if ( 0 == v.length && 0 < options.length ) { return options[0].value; } return v; } var $comboset = function(n, v) { var options = $(n).$.options; try { for ( var i=0; i<options.length; i++ ) { if ( options[i].value == v ) { options[i].selected = 'selected'; } } } catch(e) { } return $(n); } /* Generic exception object */ function FryException(code, message) { this.code = code; this.message = message; } FryException.prototype.toString = function() { return 'Fry Exception: code[?] message[?]'.embed(this.code, this.message); } /* Remote call support (AJAX) */ fry.remote = { support: { getRequestObject: function() { var obj = null; try { if ( $__tune.isIE ) { $foreach ( ['MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'], function(progid, index, control) { try { obj = new ActiveXObject(progid); control.stop(); } catch(e){} }); } else { obj = new XMLHttpRequest(); } } catch(e){} return obj; } }, /* Loosely based (especially status handling code) on YUI Library */ post:function(callback, pars, httpMethod, url) { url = url || client.conf.fry.backendURL; if ( !url ) { throw new FryException(1, 'Undefined backend URL specified in client.conf. Use client.conf.fry.backendURL=\'{YOUR_BACKEND_SCRIPT_URL}\'; to set it.'); } var obj = fry.remote.support.getRequestObject(); if ( !obj ) { throw new FryException(2, 'Unable to acquire HTTP request object. Check to see if your browser is among supported browsers.'); } if ( -1 != url.indexOf('?') ) { url = url.embed(pars['a']); delete pars['a']; } obj.open(httpMethod||'POST', url, true); obj.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); var postData = ''; for ( var name in pars ) { var value = pars[name]; if ( 'object' == typeof value ) { if ( value.join ) { // array var n = value.length; for ( var i=0; i<n; i++ ) { value[i] = (''+value[i]).replace(/\],\[/g, '`§~§[]§~§`'); } value = '['+value.join('],[')+']'; name += '(a)'; } else { // object var values = '['; for ( var i in value ) { values += i+'='+(''+value[i]).replace(/\],\[/g, '`§~§[]§~§`')+'],['; } value = '[' == values ? '' : values.substring(0, values.length-2); name += '(o)'; } } postData += encodeURIComponent(name)+'='+encodeURIComponent(value)+'&'; } obj.send(postData); var poll = window.setInterval ( function() { if ( 4 == obj.readyState ) { window.clearInterval(poll); callback(obj); } }, 150 ); }, result:function(s, callbackOk, callbackError) { var httpStatus; var responseObject; try { httpStatus = s.status; } catch(e) { httpStatus = 13030; } if ( 200 == httpStatus ) { // parsing response var r = null; var headers = s.getAllResponseHeaders(); var contentType = (-1 != headers.indexOf('/xml') && s.responseXML) ? 'text/xml' : 'text/html'; if ( 'text/xml' == contentType ) { // text/xml try { r = $xmlserialize(s.responseText); } catch(e) { callbackError('Error while serializing remote-side response. Probably corrupted data. Error: `?`. Sent data `?`.'.embed(e.message, s.responseText)); } try { callbackOk(r); } catch(e) { throw new FryException(45, 'fry/remote: Error while executing callback after successful remote call. Error: `?`.'.embed(e.message)); } } else { // text/html var code = s.responseText.substring(0,3); if ( '#S#' == code ) { r = s.responseText.substr(3); callbackOk( r ); } else { if ( '' == s.responseText ) { callbackError('No data returned from remote side.'); } else { callbackError('Invalid data returned from remote side: `?`.'.embed(s.responseText.substr('#E#'==code?3:0))); } } } } else { switch (httpStatus) { // The following case labels are wininet.dll error codes that may be encountered. // Server timeout case 12002: // 12029 to 12031 correspond to dropped connections. case 12029: case 12030: case 12031: // Connection closed by server. case 12152: // See above comments for variable status. case 13030: default: { if ( callbackError ) { callbackError('Connection ended up with status: '+httpStatus); } };break; } } delete s; }, upload: { lastAdapter:null, // using SWFUpload component perform:function(adapter) { var url = client.conf.fry.backendURL; if ( !url ) { throw new FryException(19, 'Undefined backend URL specified in client.conf. Use client.conf.fry.backendURL=\'{YOUR_BACKEND_SCRIPT_URL}\'; to set it.'); } fry.remote.upload.lastAdapter = adapter; if ( null != $('SWFUpload') ) { $('SWFUpload').rs(); } $().a($$()).i('SWFUpload'); mmSWFUpload.init ({ thirdPartyPath : client.conf.fry.path+'3rdparty', upload_backend : url+'?a='+adapter.onGetRemoteActionName(), target : 'SWFUpload', allowed_filesize : adapter.allowedFileSizeInKBytes, allowed_filetypes : adapter.allowedFileTypes, upload_start_callback : 'fry_remote_upload_onStart', upload_progress_callback : 'fry_remote_upload_onProgress', upload_complete_callback : 'fry_remote_upload_onComplete', upload_error_callback : 'fry_remote_upload_onError', upload_cancel_callback : 'fry_remote_upload_onCancel', upload_queue_complete_callback : 'fry_remote_upload_onQueueComplete' }); $('SWFUpload').pos(true).x(1).y(1).w(1).h(1); mmSWFUpload.callSWF(); } } }; function fry_remote_upload_onStart(f) { fry.remote.upload.lastAdapter.onStart(f); } function fry_remote_upload_onProgress(f, b) { fry.remote.upload.lastAdapter.onProgress(f, b); } function fry_remote_upload_onComplete(f) { fry.remote.upload.lastAdapter.onEnd(false, false, f); } function fry_remote_upload_onError(e) { fry.remote.upload.lastAdapter.onEnd(false, true, e); } function fry_remote_upload_onCancel() { fry.remote.upload.lastAdapter.onEnd(true); } function fry_remote_upload_onQueueComplete() { fry.remote.upload.lastAdapter.onQueueEnd(); } $class('fry.remote.upload.Adapter', { construct:function(allowedFileSizeInKBytes, allowedFileTypes, additionalRemoteActionParams) { this.allowedFileSizeInKBytes = allowedFileSizeInKBytes || 2000; this.allowedFileTypes = allowedFileTypes || '*'; this.additionalRemoteActionParams = additionalRemoteActionParams || ''; } }); fry.remote.upload.Adapter.prototype.onStart = function(fileObj) { } fry.remote.upload.Adapter.prototype.onProgress = function(fileObj, bytesLoaded) { } fry.remote.upload.Adapter.prototype.onEnd = function(wasCanceled, wasError, result) { } fry.remote.upload.Adapter.prototype.onQueueEnd = function() { } fry.remote.upload.Adapter.prototype.onGetRemoteActionName = function() { return 'upload?'.embed(this.additionalRemoteActionParams ? ',?'.embed(this.additionalRemoteActionParams) : ''); } /* ---------------------------------------------------------------- fry.cookie namespace */ fry.cookie = { get:function(name) { //http://www.webreference.com/js/column8/functions.html var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape( dc.substring(begin + prefix.length, end) ); }, remove:function(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } }, set:function(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } } var $post = fry.remote.post; var $result = fry.remote.result; var $rpost = function(params, callbackOk, callbackError, method, url) { method = method || 'POST'; url = url || client.conf.fry.backendURL; $post( function(s) { $result( s, function(r) { callbackOk(r); }, function(e) { // result Error callbackError(e); } ) }, params, method, url ); } var $upload = function(adapter) { fry.remote.upload.perform(adapter); } // Fry Garbage Collector mechanism var __gc_trash_node = null; var __gc_running = false; var __gc_scheduled_timers = []; var __gc_started_at = 0; function __fry_gcnode_inner(inode) { if ( null != inode.getAttribute('frydrag') ) { $(inode).removeDrag(); } if ( null != inode.getAttribute('frydnd') ) { $(inode).removeDnD(); } if ( null == inode.getAttribute('fryis') || null == inode.getAttribute('fryhe') ) { inode = null; return; } inode.removeAttribute('fryhe'); var lst = inode.attributes; var num = lst.length; for ( var i=0; i<num; i++ ) { var attr_name = lst.item(i).name; if ( attr_name && 'fryse' == attr_name.substr(0,5) ) { var type = attr_name.substr(6); var listeners = lst.item(i).value.split(','); for ( var ii=0; ii<listeners.length; ii++ ) { $__tune.event.removeListener(inode, type, self[listeners[ii]]); inode['on'+type] = null; self[listeners[ii]] = null; } } attr = null; } lst = null; for ( var i in inode ) { if ( 'on' == i.substr(0,2) && 'function' == typeof inode[i] ) { inode[i] = null; } } inode = null; } function __fry_precaunode(node) { var lst = node.getElementsByTagName('*'); for ( var i=0; i<lst.length; i++ ) { if ( '' != lst.item(i).id ) { lst.item(i).id = ''; } } lst = null; node.id = ''; return node; } function __fry_gcnode(node, skipSelf) { if ( null == __gc_trash_node ) { // GC not available at the moment if ( skipSelf ) { node.innerHTML = ''; } else { if ( node.parentNode ) { node.parentNode.removeChild(node); } } return; } if ( skipSelf ) { try { while ( null != node.firstChild ) { __gc_trash_node.appendChild(__fry_precaunode(node.firstChild)); } } catch(e){} } else { try { __gc_trash_node.appendChild(__fry_precaunode(node)); } catch(e){} } // console.log('GC scheduled.'); __gc_scheduled_timers[__gc_scheduled_timers.length] = setTimeout('__fry_gc_recycle()', 10000+Math.floor(10000*Math.random())); } function __fry_gc_time() { var d = new Date(); return 60000*d.getMinutes()+1000*d.getSeconds()+d.getMilliseconds(); } function __fry_gc_recycle() { var n = __gc_scheduled_timers.length; for ( var i=0; i<n; i++ ) { clearTimeout(__gc_scheduled_timers[i]); } __gc_scheduled_timers = []; if ( __gc_running ) { // console.log('GC already running.'); return; } __gc_running = true; __gc_started_at = __fry_gc_time(); // console.log('GC running for %s nodes. Started at %s', __gc_trash_node.childNodes.length, __gc_started_at); while ( null != __gc_trash_node.firstChild ) { var node = __gc_trash_node.firstChild; if ( 1 == node.nodeType ) { var lst = node.getElementsByTagName('*'); var num = lst.length; if ( __gc_started_at < __fry_gc_time() - 2000 ) { // console.log('GC did not finish on time. Stopped at %s after %s msecs of running. Number of remaining nodes: %s.', __fry_gc_time(), __fry_gc_time()-__gc_started_at, __gc_trash_node.childNodes.length); __gc_running = false; __gc_scheduled_timers[__gc_scheduled_timers.length] = setTimeout('__fry_gc_recycle()', 7000+Math.floor(7000*Math.random())); return; } for ( var ii=0; ii<num; ii++ ) { __fry_gcnode_inner(lst.item(ii)); } lst = null; } __gc_trash_node.removeChild(node); node = null; } // console.log('GC finished'); __gc_running = false; } $__tune.event.addListener(self, 'load', function(evt) { __gc_trash_node = document.getElementsByTagName('body').item(0).appendChild(document.createElement('div')); __gc_trash_node.style.display = 'none'; }); $__tune.event.addListener(self, 'unload', function(evt) { __gc_trash_node = $().$; __fry_gc_recycle(); }); /* * Advanced keyboard handling */ /*--------*/ fry.keyboard = { initialized:false, last_down_evt: null, ignore_further_events: false, stopped:true, paste: {was:false, none:function(){}}, down: {none:function(){}}, press: {none:function(){}}, shared:{}, buffer: [], listener: null, clipboard:{node:null, ie:{node:null}, pastedContent:'', copiedContent:'', content:''}, CONTROL_CODE:1, ALT_KEY:2, CTRL_KEY: 4, SHIFT_KEY:8, META_KEY:16, COPY: 128, CUT: 256, PASTE: 512, SIG_CLIPBOARD_GET:1024 } fry.keyboard.initialize = function() { if (fry.keyboard.initialized) { fry.keyboard.start(); return; } var react_as = 'none'; if ($__tune.isGecko) { react_as = 'ff_' + ($__tune.isMac ? 'mac' : 'win'); } else if ($__tune.isSafari) { react_as = 'webkit'; } else if ($__tune.isIE) { react_as = 'ie'; } else if ($__tune.isOpera) { react_as = 'opera'; } // following scroll listeners will accomplish movement of helper textareas if page scrolls. Due focusing, page would scroll up when pressing paste combination. document.onscroll = function(evt) { if (fry.keyboard.clipboard.node) { fry.keyboard.clipboard.node.style.top = ($__tune.isSafari? document.body.scrollTop : document.documentElement.scrollTop) + 'px'; } } if ($__tune.isIE) { document.body.onscroll = function(evt) { if (fry.keyboard.clipboard.node) { fry.keyboard.clipboard.node.style.top = document.documentElement.scrollTop + 'px'; } if (fry.keyboard.clipboard.ie.node) { fry.keyboard.clipboard.ie.node.style.top = document.documentElement.scrollTop + 'px'; } } } var code = "document.onkeydown = function(evt) {\n"; code += "if (fry.keyboard.stopped) { return; }\n"; code += "fry.keyboard.ignore_further_events = false;\n"; code += "var result = null;\n"; code += $__tune.isIE ? 'evt = event;\n' : ''; code += (''+fry.keyboard.paste[react_as]).replace(/function[ ]+\(evt\)/, '').replace(/return /g, 'result=').replace(/^[^{]*{/, '').replace(/\}\s*$/, '').replace('fry.keyboard.shared.copy(evt);', (''+fry.keyboard.shared.copy).replace(/function[ ]+\(evt\)/, '').replace(/return /g, 'result=').replace(/^[^{]*{/, '').replace(/\}\s*$/, '')); code += "if (fry.keyboard.ignore_further_events) { return; }\n"; code += "if (result) { fry.keyboard.prepareClipboard(); fry.keyboard.paste.was = true; fry.keyboard.clipboard.node.value = ''; fry.keyboard.clipboard.node.focus(); return true; }\n"; code += "else { "; code += $__tune.isIE ? "if (86 == event.keyCode && event.ctrlKey){ fry.keyboard.clipboard.ie.node.value = ''; fry.keyboard.clipboard.ie.node.focus(); }\n" : ""; code += "}\n"; code += (''+fry.keyboard.down[react_as]).replace(/function[ ]+\(evt\)/, '').replace(/^[^{]*{/, '').replace(/\}\s*$/, '') + "\n}" code = code.replace(/fry\.keyboard\.([A-Z_]+)/g, function() {return fry.keyboard[arguments[1]];}); // alert(code); eval(code); code = "document.onkeypress = function(evt) {\n"; code += "if (fry.keyboard.stopped || fry.keyboard.ignore_further_events) { return; }\n"; code += "if (fry.keyboard.paste.was) {\n"; if (!$__tune.isIE) { code += "setTimeout(function() {\n"; if ($__tune.isSafari) { // bug in WebKit - append \n if inserted value ends with \n causing double \n as resulting read value code += "var v = fry.keyboard.clipboard.node.value; if ('\\n\\n' == v.substr(v.length-2,2)) {v = v.substr(0, v.length-1);}fry.keyboard.clipboard.node.value = v;\n"; } code += "fry.keyboard.pushKey(fry.keyboard.clipboard.node.value, fry.keyboard.CONTROL_CODE | fry.keyboard.PASTE); fry.keyboard.clipboard.node.blur(); fry.keyboard.paste.was = false; }, 20);\n"; } code += "return; }\n"; if ($__tune.isIE) { code += "evt = event;\n" } code += (''+fry.keyboard.press[react_as]).replace(/function[ ]+\(evt\)/, '').replace(/^[^{]*{/, '').replace(/\}\s*$/, '') + "\n}" code = code.replace(/fry\.keyboard\.([A-Z_]+)/g, function() {return fry.keyboard[arguments[1]];}); // alert(code); eval(code); document.onkeydown2 = function(evt) { if (fry.keyboard.stopped) { return; } fry.keyboard.ignore_further_events = false; var result = fry.keyboard.paste[react_as](evt || event); if (fry.keyboard.ignore_further_events) { return; } if (result) { fry.keyboard.prepareClipboard(); fry.keyboard.paste.was = true; fry.keyboard.clipboard.node.value = ''; fry.keyboard.clipboard.node.focus(); return true; } else { if ($__tune.isIE) { if (86 == event.keyCode && event.ctrlKey) { fry.keyboard.clipboard.ie.node.value = ''; fry.keyboard.clipboard.ie.node.focus(); } } } return fry.keyboard.down[react_as](evt || event); } document.onkeypress2 = function(evt) { if (fry.keyboard.stopped || fry.keyboard.ignore_further_events) { return; } if (fry.keyboard.paste.was) { if (!$__tune.isIE) { setTimeout(function() { if ($__tune.isSafari) { // bug in WebKit - append \n if inserted value ends with \n causing double \n as resulting read value var v = fry.keyboard.clipboard.node.value; if ('\n\n' == v.substr(v.length-2,2)) { v = v.substr(0, v.length-1); } fry.keyboard.clipboard.node.value = v; } fry.keyboard.pushKey(fry.keyboard.clipboard.node.value, fry.keyboard.CONTROL_CODE | fry.keyboard.PASTE); fry.keyboard.clipboard.node.blur(); fry.keyboard.paste.was = false; }, 20); } return; } return fry.keyboard.press[react_as](evt || event); } if ($__tune.isIE) { fry.keyboard.prepareClipboard(); fry.keyboard.clipboard.ie = {node:$().a($$('textarea')).pos(true).x(-2000).y(document.documentElement.scrollTop).w(20).h(20).e('paste', function(evt) { if (fry.keyboard.stopped) { return; } setTimeout(function(){ fry.keyboard.paste.was = false; fry.keyboard.pushKey(fry.keyboard.clipboard.ie.node.value, fry.keyboard.CONTROL_CODE | fry.keyboard.PASTE); }, 10); }).$}; } if ($__tune.isGecko && $__tune.isMac) { document.onkeyup = function(evt) { if (evt.metaKey && !evt.ctrlKey && !evt.altKey && !evt.shiftKey && 65 <= evt.keyCode && 128 >= evt.keyCode) { fry.keyboard.pushKey(evt.keyCode + 32, fry.keyboard.META_KEY); evt.preventDefault(); return true; } } } fry.keyboard.initialized = true; fry.keyboard.start(); } fry.keyboard.start = function() { fry.keyboard.stopped = false; } fry.keyboard.stop = function() { fry.keyboard.stopped = true; } fry.keyboard.disableTextfieldsEditation = function() { fry.keyboard.allowTextfieldsEditation(true); } fry.keyboard.allowTextfieldsEditation = function(disable) { var lst = document.getElementsByTagName('input'); var n = lst.length; for (var i=0; i<n; i++) { var item = lst.item(i); if ('text' == item.type || 'password' == item.type) { if (disable) { item.onfocus = null; item.onblur = null; item.onkeydown = null; item.onkeypress = null; item.onkeyup = null; continue; } $(item).e('keydown', function(evt){evt.stopPropagation();}).e('keypress', function(evt){evt.stopPropagation();}).e('keyup', function(evt){evt.stopPropagation();}); item.onfocus = function(evt) { fry.keyboard.stop(); } item.onblur = function(evt) { fry.keyboard.start(); } } } lst = document.getElementsByTagName('textarea'); var n = lst.length; for (var i=0; i<n; i++) { var item = lst.item(i); if (disable) { item.onfocus = null; item.onblur = null; item.onkeydown = null; item.onkeypress = null; item.onkeyup = null; continue; } $(item).e('keydown', function(evt){evt.stopPropagation();}).e('keypress', function(evt){evt.stopPropagation();}); item.onfocus = function(evt) { fry.keyboard.stop(); } item.onblur = function(evt) { fry.keyboard.start(); } } } fry.keyboard.prepareClipboard = function() { if (fry.keyboard.clipboard.node) { return; } fry.keyboard.clipboard.node = $().a($$('textarea')).w(20).h(20).pos(true).x(-2000).y($__tune.isSafari? document.body.scrollTop : document.documentElement.scrollTop).$; } fry.keyboard.shared.copy = function(evt) { fry.keyboard.prepareClipboard(); // acquiring clipboard content to be copied into system clipboard fry.keyboard.clipboard.copiedContent = ''; if (fry.keyboard.listener) { var content = fry.keyboard.listener(0, fry.keyboard.CONTROL_CODE | fry.keyboard.SIG_CLIPBOARD_GET); if ('string' == typeof content) { fry.keyboard.clipboard.copiedContent = content; } } fry.keyboard.clipboard.node.value = fry.keyboard.clipboard.copiedContent; fry.keyboard.clipboard.node.select(); fry.keyboard.clipboard.node.focus(); setTimeout('fry.keyboard.clipboard.node.blur()', 200); fry.keyboard.clipboard.content = fry.keyboard.clipboard.copiedContent; fry.keyboard.ignore_further_events = true; // sending control code fry.keyboard.pushKey(0, fry.keyboard.CONTROL_CODE | (88 == evt.keyCode ? fry.keyboard.CUT : fry.keyboard.COPY)); return false; } fry.keyboard.paste.ff_win = function(evt) { return 86 == evt.keyCode && 0 == evt.charCode && 86 == evt.which && evt.ctrlKey; } fry.keyboard.down.ff_win = function(evt) { fry.keyboard.last_down_evt = evt; return true; } fry.keyboard.press.ff_win = function(evt) { if (null != fry.keyboard.last_down_evt) { var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); var code = !evt.keyCode ? evt.charCode : evt.keyCode; if (evt.keyCode == evt.charCode && evt.keyCode == fry.keyboard.last_down_evt.charCode) { code = fry.keyboard.last_down_evt.keyCode; } if (evt.keyCode == fry.keyboard.last_down_evt.keyCode && (0 == evt.which || 32 > evt.keyCode)) { // control code mask++; } if (!fry.keyboard.pushKey(code, mask)) { return true; } } evt.preventDefault(); evt.stopPropagation(); return false; } fry.keyboard.paste.ff_mac = function(evt) { fry.keyboard.last_down_evt = null; // catching Command+C, Command+X, it's a FF.mac hack if (evt.metaKey && ((67 == evt.keyCode && 0 == evt.charCode && 67 == evt.which) || (88 == evt.keyCode && 0 == evt.charCode && 88 == evt.which))) { return fry.keyboard.shared.copy(evt); } else { return 86 == evt.keyCode && 0 == evt.charCode && 86 == evt.which && evt.metaKey; } } fry.keyboard.down.ff_mac = function(evt) { return false; } fry.keyboard.press.ff_mac = function(evt) { if (null != fry.keyboard.last_down_evt) { return; } var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); if (!evt.charCode || (evt.charCode == evt.keyCode)) { // control code fry.keyboard.pushKey(evt.keyCode, 1 + mask); } else { if (!fry.keyboard.pushKey(evt.charCode, mask)) { return true; } } evt.preventDefault(); evt.stopPropagation(); return false; } fry.keyboard.paste.webkit = function(evt) { if ($__tune.isMac) { return (86 == evt.keyCode && (0 == evt.charCode || 118 == evt.charCode) && evt.metaKey); } else { return (86 == evt.keyCode && (0 == evt.charCode || 118 == evt.charCode) && evt.ctrlKey); } } fry.keyboard.down.webkit = function(evt) { if (0 != evt.keyCode && (48 > evt.keyCode || (111 < evt.keyCode && 128 > evt.keyCode) || 60000 < evt.charCode)) { var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); if (!evt.charCode || 111 < evt.keyCode || 32 > evt.charCode || 60000 < evt.charCode) { // control code fry.keyboard.pushKey(evt.keyCode, 1 + mask); } else { if (!fry.keyboard.pushKey(evt.charCode, mask)) { return true; } } evt.preventDefault(); evt.stopPropagation(); fry.keyboard.last_down_evt = null; return false; } fry.keyboard.last_down_evt = evt; return true; } fry.keyboard.press.webkit = function(evt) { if (null != fry.keyboard.last_down_evt) { var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); var code = !evt.keyCode ? evt.charCode : evt.keyCode; if (evt.keyCode == evt.charCode && evt.keyCode == fry.keyboard.last_down_evt.charCode && evt.keyCode > 60000) { code = fry.keyboard.last_down_evt.keyCode; } if (evt.keyCode == fry.keyboard.last_down_evt.keyCode && 48 > evt.keyCode) { // control code mask++; } else { var r_mask = fry.keyboard.SHIFT_KEY + fry.keyboard.META_KEY; if (r_mask == (mask & r_mask) && 97 <= code && 122 >= code) { code -= 32; } } if (!fry.keyboard.pushKey(code, mask)) { return true; } } evt.preventDefault(); evt.stopPropagation(); return false; } fry.keyboard.paste.ie = function(evt) { if (evt.ctrlKey && (67 == evt.keyCode || 88 == evt.keyCode)) { // ctrl+c, ctrl+x return fry.keyboard.shared.copy(evt); } else { return false; } } fry.keyboard.down.ie = function(evt) { fry.keyboard.last_down_evt = evt; if (48 > evt.keyCode || (111 < evt.keyCode && 128 > evt.keyCode)) { // control code for IE var mask = 1 + (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); return !fry.keyboard.pushKey(evt.keyCode, mask) } else { var code = evt.keyCode; // disabling some other keys (A, F, N, R, S, T) if (82 == evt.keyCode || 65 == evt.keyCode || 83 == evt.keyCode || 70 == evt.keyCode || 78 == evt.keyCode || 84 == evt.keyCode) { if (!evt.shiftKey) { code += 32; } var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); return !fry.keyboard.pushKey(code, mask); } } return true; } fry.keyboard.press.ie = function(evt) { if (null != fry.keyboard.last_down_evt) { var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); return !fry.keyboard.pushKey(evt.keyCode, mask); } return false; } fry.keyboard.paste.opera = function(evt) { return 86 == evt.keyCode && 86 == evt.which && evt.ctrlKey; } fry.keyboard.down.opera = function(evt) { fry.keyboard.last_down_evt = evt; return false; } fry.keyboard.press.opera = function(evt) { var e = fry.keyboard.last_down_evt; var mask = (evt.altKey ? 2 : 0) + (evt.ctrlKey ? 4 : 0) + (evt.shiftKey ? 8 : 0) + (evt.metaKey ? 16 : 0); var prev_mask = (e.altKey ? 2 : 0) + (e.ctrlKey ? 4 : 0) + (e.shiftKey ? 8 : 0) + (e.metaKey ? 16 : 0); if ((evt.keyCode == fry.keyboard.last_down_evt.keyCode || 0 == e.keyCode) && (0 == evt.which || 48 > e.keyCode || 111 < e.keyCode)) { mask++; } if (!fry.keyboard.pushKey(evt.keyCode, mask)) { return true; } evt.preventDefault(); evt.stopPropagation(); return false; } fry.keyboard.addListener = function(listener) { fry.keyboard.listener = listener; } fry.keyboard.removeListener = function(listener) { fry.keyboard.listener = null; } fry.keyboard.pushKey = function(code, mask) { if (32 == code) { mask = mask & 65534; } var was_clipboard_copy = false; var was_clipboard_cut = false; if ($__tune.isMac) { was_clipboard_copy = (99 == code) && (fry.keyboard.META_KEY == (mask & fry.keyboard.META_KEY)); was_clipboard_cut = (120 == code) && (fry.keyboard.META_KEY == (mask & fry.keyboard.META_KEY)); } else { was_clipboard_copy = (1 == code || 99 == code) && (fry.keyboard.CTRL_KEY == (mask & fry.keyboard.CTRL_KEY)); was_clipboard_cut = (24 == code || 120 == code) && (fry.keyboard.CTRL_KEY == (mask & fry.keyboard.CTRL_KEY)); } if (was_clipboard_copy || was_clipboard_cut) { fry.keyboard.prepareClipboard(); fry.keyboard.clipboard.copiedContent = ''; var was_custom_content = false; if (fry.keyboard.listener) { var content = fry.keyboard.listener(0, fry.keyboard.CONTROL_CODE | fry.keyboard.SIG_CLIPBOARD_GET); if ('string' == typeof content) { was_custom_content = true; fry.keyboard.clipboard.copiedContent = content; } } if (was_custom_content) { fry.keyboard.clipboard.node.value = fry.keyboard.clipboard.copiedContent; fry.keyboard.clipboard.node.select(); fry.keyboard.clipboard.node.focus(); } fry.keyboard.pushKey(0, fry.keyboard.CONTROL_CODE | (was_clipboard_cut ? fry.keyboard.CUT : fry.keyboard.COPY)); fry.keyboard.clipboard.content = fry.keyboard.clipboard.copiedContent; // returning false will enforce propagation return !was_custom_content; } if (fry.keyboard.PASTE == (mask & fry.keyboard.PASTE)) { fry.keyboard.clipboard.pastedContent = code; fry.keyboard.clipboard.content = fry.keyboard.clipboard.pastedContent; code = 0; } // filtering out solo-keys Ctrl, Shift, Alt that are triggered by some browsers. if ((17 == code && 5 == (mask & 5)) || (16 == code && 9 == (mask & 9)) || (18 == code && 3 == (mask & 3))) { return true; } // filtering out Command+V on FF.mac if (118 == code && 16 == mask) { return true; } if (fry.keyboard.listener) { // console.info(code); if (13 != code && 0 != (mask & (fry.keyboard.CONTROL_CODE + fry.keyboard.META_KEY + fry.keyboard.CTRL_KEY))) { // some keystroke occured that we really want to know about the listener result, we have to call it immediatelly return fry.keyboard.listener(code, mask); } else { // let's ease the pain of the browser setTimeout('fry.keyboard.listener('+code+','+mask+')', 10); } } else { fry.keyboard.buffer.unshift([code, mask]); } return true; } fry.keyboard.popKey = function() { return fry.keyboard.buffer.pop(); } fry.keyboard.getClipboardContent = function() { return fry.keyboard.clipboard.content; } /*--------*/ var client = {conf:{fry:{backendURL:''}}}; var eamy = { snippets:[], instances:[] }; /* * ac.Chap - Text Editing Component - Core */ if ( 'undefined' == typeof ac ) { var ac = {chap:{}}; } ac.chap = { state: { active:null }, TOKEN_MULTIROW_COMMENT:0, TOKEN_SINGLEROW_COMMENT:1, TOKEN_SINGLE_QUOTED:2, TOKEN_DOUBLE_QUOTED:3, TOKEN_NEWROW:4, TOKEN_WHITESPACE:5, ROWSTATE_NONE:0, ROWSTATE_FOLD_START:1, ROWSTATE_FOLD_STOP:2, ROWSTATE_FOLD_EXPAND:4, ROWSTATE_FOLD_COLLAPSED:8, ROWSTATE_SELECTION:16, ROWSTATE_BOOKMARK:32, CHUNK_KEYWORD:4, CHUNK_NUMBER:5, CHUNK_OPERATOR:6, CHUNK_PARENTHESIS:7, CHUNK_KEYWORD_CUSTOM:8, CHUNK_FUNCTION_NAME:9, CHUNK_LIBRARY:10, CHUNK_LIBRARY_CUSTOM:11, ACTION_CARET:1, ACTION_SELECTION:2, ACTION_INSERT:3, ACTION_UPDATE:4, ACTION_DELETE:5, ACTION_CLIPBOARD:6, ACTION_UNDO:7, ACTION_REDO:8, ACTION_CUSTOM:9, ACTION_RES_REDRAWCARET:1, ACTION_RES_REDRAWTEXT:2, ACTION_RES_SELECTIONCHANGED:4, ACTION_RES_SCROLLTOCARET:8, CKEY_NONE:0, CKEY_ALT:2, CKEY_CTRL:4, CKEY_SHIFT:8, CKEY_META:16, TRANSLOG_TYPE_INSERT:1, TRANSLOG_TYPE_REMOVE:2, ACTION_LISTENER_BEFORE:1, ACTION_LISTENER_AFTER:2, ACTION_LISTENER_BOTH:3 } ac.chap.activeComponent = null; ac.chap.instanceId = 1; ac.chap.getActiveComponent = function() { return ac.chap.activeComponent; } ac.chap.setActiveComponent = function(component) { fry.keyboard.initialize(); if (null != ac.chap.activeComponent) { ac.chap.activeComponent.blur(); } ac.chap.activeComponent = component; if (null != component) { if (ac.widget) { ac.widget.focus(component); } ac.chap.activeComponent.focus(); } else { if (!ac.widget) { fry.keyboard.stop(); } } } ac.chap.route = function(type, windowId, viewIndex, pars) { if ( null == ac.chap.activeComponent ) { return; } if ( 'undefined' == typeof ac.chap.activeComponent.views[viewIndex] ) { return; } switch ( type ) { case 'expand-folding': { ac.chap.activeComponent.expandFolding(pars); } } } ac.chap.caretThread = setInterval(function() { if (null != ac.chap.activeComponent) { ac.chap.activeComponent.showCaret(true, true); } }, 600); $(document.documentElement).e($__tune.isSafari2?'mousedown':'click', function(evt) { var elem = evt.$.$; while ( null != elem && document.documentElement != elem ) { if ( 'true' == elem.getAttribute('chap-view') ) { evt.stop(); return; } elem = elem.parentNode; } ac.chap.setActiveComponent(null); }); ac.chap.keyboardListener = function(code, mask) { if (null == ac.chap.activeComponent) { return; } return ac.chap.activeComponent.standaloneKeyboardListener(code, mask); } if ('undefined' == typeof ac['widget']) { // chap is not a part of Fry MVC, must handle keyboardListener itself fry.keyboard.addListener(ac.chap.keyboardListener); } $class('ac.chap.Window', { construct:function(options, userId) { this.instanceId = ac.chap.instanceId++; this.ident = 'ac-chap-' + this.instanceId; this.userId = userId | 0; this.caret = null; this.options = null; this.state = null; this.views = []; this.activeView = null; this.viewLayoutNodes = []; this.char_map = []; this.row_id_map = []; this.syntax_map = []; this.style_map = []; this.row_id_sequence = 1; this.language = null; this.keymap = null; this.snippets = []; this.commands = []; this.selection = null; this.transaction_log = []; this.redo_log = []; this.setOptions(options||{}); this.setState(); }, destruct:function() { $delete(this.state); $delete(this.options); $delete(this.char_map); $delete(this.row_id_map); $delete(this.syntax_map); $delete(this.style_map); this.hide(); $delete(this.activeView); } }); ac.chap.Window.prototype.focus = function() { this.showCaret(); } ac.chap.Window.prototype.blur = function() { this.hideCaret(); } // compatibility layer with AC Fry Widget library ac.chap.Window.prototype.onFocus = function() { ac.chap.setActiveComponent(this); this.focus(); } ac.chap.Window.prototype.onBlur = function() { ac.chap.setActiveComponent(null); this.blur(); } ac.chap.Window.prototype.onResize = function(width, height) { } ac.chap.Window.prototype.onSystemClipboardCopy = function() { return this.getSelection(); } ac.chap.Window.prototype.onSystemClipboardCut = function() { this.runAction(ac.chap.ACTION_CLIPBOARD, {cut:true}); return this.processActionResult(true, true); } ac.chap.Window.prototype.onSystemClipboardPaste = function(content) { this.runAction(ac.chap.ACTION_CLIPBOARD, {paste:true, content:content}); return this.processActionResult(true, true); } ac.chap.Window.prototype.hasKeyboardListenerActive = function() { return true; } ac.chap.Window.prototype.onCut = function(selection, callbackOk) { } ac.chap.Window.prototype.onPaste = function(selection, wasCut) { } ac.chap.Window.prototype.setOptions = function(options) { this.options = { initialCaretPosition:[0,0], tokenizerLazyLaunch:900, syntaxHighlightingEnabled:true, remoteBackendURL:'', font:{ size:11, family: $__tune.isMac ? "Consolas, 'Bitstream Vera Sans mono', 'Courier', 'Monaco', monospaced" : "Consolas, 'Courier New', 'Courier', monospaced", allowedSizes: [8, 9, 10, 11, 12, 13, 14, 17, 21, 24, 27, 30, 34, 38, 42] } }; if ( $isset(options.initial_caret_position) ) { this.options.initialCaretPosition = [options.initial_caret_position[0], options.initial_caret_position[1]]; } if ( $isset(options.language) ) { this.language = $new(options.language); } else { this.language = $new(ac.chap.Language); } if ( $isset(options.keymap) ) { this.keymap = $new(options.keymap); } else { this.keymap = $new(ac.chap.KeyMap); } if ( $isset(options.syntaxHighlightingEnabled) ) { this.options.syntaxHighlightingEnabled = options.syntaxHighlightingEnabled; } if ( $isset(options.remoteBackendURL) ) { this.options.remoteBackendURL = options.remoteBackendURL; } else { if ( client && client.conf && client.conf.fry ) { this.options.remoteBackendURL = client.conf.fry.backendURL; } } if ($isset(options.font)) { if ($isset(options.font['size'])) { this.options.font.size = options.font.size; } if ($isset(options.font['family'])) { this.options.font.family = options.font.family; } } } ac.chap.Window.prototype.setState = function() { this.state = { lastKeyTimePressed:0, caretPhase:1, lastKeyCode:0, lastControlKey:0, lastCaretPosition:[], tokenizerTimer:null, scheduledTokenizerTime:0, transactionLogStopped:false, actionListeners:[], actionListenersStopped:false, caretListener:null, commandListener:null, transactionListener:[null,800], passThroughKeysListener:null } this.caret = { position:[this.options.initialCaretPosition[0], this.options.initialCaretPosition[1]], mode:1 // 1 normal, 2 overwrite } } ac.chap.Window.prototype.addView = function(layoutNode, options, renderAfter) { var view_index = this.views.length; this.viewLayoutNodes.push(layoutNode); this.views.push($new(ac.chap.View, this, view_index, options||{})); this.row_id_map[view_index] = []; if ( 0 < view_index ) { // console.log(view_index); // creating duplicate var n = this.row_id_map[0].length; for ( var i=0; i<n; i++ ) { var row = this.row_id_map[0][i]; this.row_id_map[view_index][i] = [row[0], false, row[2], [], [], []]; } //this.row_id_map[view_index] = [].concat(this.row_id_map[0].slice(0)); } if ( renderAfter ) { this.views[view_index].recalculateVisibleRows(); this.views[view_index].render(this.viewLayoutNodes[view_index]); this.tokenize(0); this.renderText(); } // console.log('%o', this.row_id_map[view_index]); return view_index; } ac.chap.Window.prototype.resizeView = function(viewIndex) { if ( this.views[viewIndex] ) { this.views[viewIndex].resize(); } } ac.chap.Window.prototype.edit = function(text, setAsActive) { this.char_map = []; for ( var i=0; i<this.views.length; i++ ) { // this.row_id_map.push([]); } this.syntax_map = []; this.style_map = []; this.row_id_sequence = 1; this.transaction_log = []; this.redo_log = []; this.insertIntoCharacterMap(text, 0, 0); this.tokenize(0); this.renderText(); setAsActive = setAsActive || true; if ( setAsActive ) { ac.chap.setActiveComponent(this); if (0 < this.views.length) { this.activeView = this.views[0]; } } } ac.chap.Window.prototype.hide = function() { this.hideCaret(); var n = this.views.length for ( var i=0; i<n; i++ ) { this.views[i].hide(); $delete(this.views[i]); } $delete(this.views); ac.chap.setActiveComponent(null); } ac.chap.Window.prototype.show = function() { this.render(); ac.chap.setActiveComponent(this); } ac.chap.Window.prototype.showInteractiveSearch = function() { if (this.activeView) { this.activeView.showInteractiveSearch(); } } ac.chap.Window.prototype.hideInteractiveSearch = function() { for (var i=0; i<this.views.length; i++) { this.views[i].hideInteractiveSearch(); } } ac.chap.Window.prototype.toggleBookmark = function(rowIndex) { var rowIndex = rowIndex || this.caret.position[0]; for ( var i=0; i<this.views.length; i++ ) { if ( 'undefined' == typeof this.row_id_map[i][rowIndex] ) { return; } // marking as changed this.row_id_map[i][rowIndex][1] = false; var row_state = this.row_id_map[i][rowIndex][2]; if ( ac.chap.ROWSTATE_BOOKMARK == (row_state & ac.chap.ROWSTATE_BOOKMARK) ) { // already bookmarked this.row_id_map[i][rowIndex][2] &= (65535-ac.chap.ROWSTATE_BOOKMARK); } else { this.row_id_map[i][rowIndex][2] |= ac.chap.ROWSTATE_BOOKMARK; } } } ac.chap.Window.prototype.setRuntimeOption = function(key, value) { var font_sizes = this.options.font.allowedSizes; var font_size = this.options.font.size; var redraw = false; if ('font' == key) { if ($isset(value['size'])) { if (font_sizes[0] <= value.size && value.size <= font_sizes[font_sizes.length-1]) { font_size = value.size; redraw = true; } } if ($isset(value['family'])) { this.options.font.family = value.family; } } else if ('font.size' == key) { if ('bigger' == value) { for (var i=0; i<font_sizes.length; i++) { if (font_size < font_sizes[i]) { font_size = font_sizes[i]; break; } } } else if ('smaller' == value) { for (var i=font_sizes.length-1; i>= 0; i--) { if (font_size > font_sizes[i]) { font_size = font_sizes[i]; break; } } } else { if (font_sizes[0] <= value && value <= font_sizes[font_sizes.length-1]) { font_size = value; } } this.options.font.size = font_size; redraw = true; } else if ('font.family' == key) { this.options.font.family = value; redraw = true; } else if ('word.wrap' == key) { if (this.activeView) { this.hideCaret(); this.activeView.options.wordWrap = value; this.activeView.reloadOptions(); this.showCaret(); } } if (redraw) { this.hideCaret(); var num_views = this.views.length; for (var i=0; i<num_views; i++) { this.views[i].reloadOptions(); } this.showCaret(); } } ac.chap.Window.prototype.scrollToBookmark = function(rowIndex, directionOffset) { rowIndex = rowIndex || this.caret.position[0]; var view = this.activeView; if (null == view) { return; } var num_rows = this.row_id_map[view.index].length; if (0 == num_rows) { return; } var start_index = rowIndex + directionOffset; if (1 == directionOffset) { num_rows = num_rows - start_index; } else { num_rows = rowIndex; } if (!this.findAndScrollToBookmark(view, start_index, num_rows, directionOffset)) { // not found, try the other half reversed search if (1 == directionOffset) { start_index = 0; num_rows = rowIndex; } else { num_rows = this.row_id_map[view.index].length; start_index = num_rows - 1; num_rows -= rowIndex; } this.findAndScrollToBookmark(view, start_index, num_rows, directionOffset); } } ac.chap.Window.prototype.findAndScrollToBookmark = function(view, startIndex, numRowsToSearch, directionOffset) { var i = 0; var active_index = startIndex; // console.log(startIndex, numRowsToSearch, directionOffset); while (i<numRowsToSearch) { // console.warn(i, active_index); var row_state = this.row_id_map[view.index][active_index][2]; if (ac.chap.ROWSTATE_BOOKMARK == (row_state & ac.chap.ROWSTATE_BOOKMARK)) { // found a bookmark view.scrollToRow(active_index, true); return true; } active_index += directionOffset; i++; } return false; } ac.chap.Window.prototype.setEditMode = function(mode) { this.caret.mode = mode; ac.chap.setActiveComponent(this); this.tokenize(); this.renderText(); } ac.chap.Window.prototype.setTheme = function(theme) { for ( var i=0; i<this.views.length; i++ ) { this.views[i].setTheme(theme); } } ac.chap.Window.prototype.setLanguage = function(language) { this.language = $new(language); this.tokenize(); this.foldingize(); this.renderText(); this.showCaret(); } ac.chap.Window.prototype.setSnippets = function(snippets) { this.snippets = snippets; this.keymap.importSnippets(snippets); } ac.chap.Window.prototype.setCommands = function(commands) { this.commands = commands; this.keymap.importCommands(commands); } ac.chap.Window.prototype.getTabelator = function(tabelator) { if (0 < this.views.length) { return this.views[0].options.tabelator; } return '\t'; } ac.chap.Window.prototype.setTabelator = function(tabelator) { for ( var i=0; i<this.views.length; i++ ) { this.views[i].options.tabelator = tabelator; } } ac.chap.Window.prototype.render = function() { for ( var i=0; i<this.views.length; i++ ) { this.views[i].render(this.viewLayoutNodes[i]); } } ac.chap.Window.prototype.getTimestamp = function() { var d = new Date(); return 60000*d.getMinutes()+1000*d.getSeconds()+d.getMilliseconds(); } ac.chap.Window.prototype.keyboardListener = function(code, mask) { var redraw_text = false; var redraw_caret = false; var scroll_to_caret = false; var selection_changed = false; this.state.lastKeyTimePressed = new Date().getTime(); var key_code = code; var control_key = mask & 30; if (this.state.passThroughKeysListener && this.state.passThroughKeysListener(key_code, control_key)) { return true; } var definition = $getdef(this.keymap.definition[key_code], this.keymap.definition[0]); definition = $getdef(definition[control_key], definition[ac.chap.CKEY_NONE]); if ( 'undefined' == typeof definition ) { definition = this.keymap.definition[0][ac.chap.CKEY_NONE]; } if (fry.keyboard.COPY == (mask & fry.keyboard.COPY)) { return true; } // console.log(code, mask); var me = this; var num_actions = definition.length; for (var i=0; i<num_actions; i+=2) { var action_type = definition[i]; var params = definition[i+1]; params.keyCode = key_code; params.controlKey = control_key; if (!this.state.actionListenersStopped) { var caret_row = this.caret.position[0]; var caret_col = this.caret.position[1]; for (var ii in this.state.actionListeners) { var listener = this.state.actionListeners[ii]; if (ac.chap.ACTION_LISTENER_BEFORE == (listener[0] & ac.chap.ACTION_LISTENER_BEFORE)) { if (!listener[3]) { // synchronous listener[2](me, listener[1], ac.chap.ACTION_LISTENER_BEFORE, 0, action_type, params, caret_row, caret_col); } else { setTimeout(function(){listener[2](me, listener[1], ac.chap.ACTION_LISTENER_BEFORE, 0, action_type, params, caret_row, caret_col);}, 300); } } } } var result = this.runAction(action_type, params); if (!this.state.actionListenersStopped) { var caret_row = this.caret.position[0]; var caret_col = this.caret.position[1]; for (var ii in this.state.actionListeners) { var listener = this.state.actionListeners[ii]; if (ac.chap.ACTION_LISTENER_AFTER == (listener[0] & ac.chap.ACTION_LISTENER_AFTER)) { if (!listener[3]) { // synchronous listener[2](me, listener[1], ac.chap.ACTION_LISTENER_AFTER, result, action_type, params, caret_row, caret_col); } else { setTimeout(function(){listener[2](me, listener[1], ac.chap.ACTION_LISTENER_AFTER, result, action_type, params, caret_row, caret_col);}, 300); } } } } if (!redraw_caret) { redraw_caret = ac.chap.ACTION_RES_REDRAWCARET == (result & ac.chap.ACTION_RES_REDRAWCARET); } if (!redraw_text) { redraw_text = ac.chap.ACTION_RES_REDRAWTEXT == (result & ac.chap.ACTION_RES_REDRAWTEXT); } if (!selection_changed) { selection_changed = ac.chap.ACTION_RES_SELECTIONCHANGED == (result & ac.chap.ACTION_RES_SELECTIONCHANGED); } if (!scroll_to_caret) { scroll_to_caret = ac.chap.ACTION_RES_SCROLLTOCARET == (result & ac.chap.ACTION_RES_SCROLLTOCARET); } } if (selection_changed) { redraw_caret = false; this.hideCaret(); } else { this.state.lastCaretPosition = [this.caret.position[0], this.caret.position[1]]; if (this.removeSelection()) { redraw_text = true; redraw_caret = true; } } this.state.lastKeyCode = key_code; this.state.lastControlKey = control_key; if (scroll_to_caret) { // console.log('scroll to caret: '+this.caret.position[0]); this.activeView.scrollToRow(this.caret.position[0], false, true); } this.processActionResult(redraw_text, redraw_caret); // disabling further key actions return true; } // called if chap is not a part of Fry MVC ac.chap.Window.prototype.standaloneKeyboardListener = function(code, mask) { if (fry.keyboard.CONTROL_CODE == (mask & fry.keyboard.CONTROL_CODE)) { if (fry.keyboard.PASTE == (mask & fry.keyboard.PASTE)) { // pasted text from clipboard received return this.onSystemClipboardPaste(fry.keyboard.getClipboardContent()); } else if (fry.keyboard.CUT == (mask & fry.keyboard.CUT)) { // cut, let's clear selection if it exists return this.onSystemClipboardCut(); } else if (fry.keyboard.SIG_CLIPBOARD_GET == (mask & fry.keyboard.SIG_CLIPBOARD_GET)) { // need to return selected content return this.onSystemClipboardCopy(); } else { code = -code; } } return this.keyboardListener(code, mask); } ac.chap.Window.prototype.processActionResult = function(redrawText, redrawCaret) { if ( redrawText ) { var t = this.getTimestamp(); if ( this.state.tokenizerTimer ) { clearTimeout(this.state.tokenizerTimer); } if ( this.state.scheduledTokenizerTime < t - this.options.tokenizerLazyLaunch ) { // console.log('Tokenizer launched DIRECTLY at: '+this.getTimestamp()); this.tokenize(0); this.state.scheduledTokenizerTime = this.getTimestamp() + this.options.tokenizerLazyLaunch; } else { var me = this; this.state.tokenizerTimer = setTimeout(function() { // console.log('Tokenizer launched at: '+me.getTimestamp()); me.tokenize(0); me.state.scheduledTokenizerTime = me.getTimestamp(); me.renderText(); delete me; }, this.options.tokenizerLazyLaunch); } this.renderText(); } if ( redrawCaret ) { this.showCaret(); } } ac.chap.Window.prototype.setUserId = function(userId) { this.userId = userId; // console.info('User ID set to: %s', userId); } ac.chap.Window.prototype.addCaretListener = function(callback) { this.state.caretListener = callback; } ac.chap.Window.prototype.removeCaretListener = function(callback) { this.state.caretListener = null; } ac.chap.Window.prototype.addCommandListener = function(callback) { this.state.commandListener = callback; } ac.chap.Window.prototype.removeCommandListener = function(callback) { this.state.commandListener = null; } ac.chap.Window.prototype.addPassThroughKeysListener = function(callback) { this.state.passThroughKeysListener = callback; } ac.chap.Window.prototype.removePassThroughKeysListener = function() { this.state.passThroughKeysListener = null; } ac.chap.Window.prototype.addTransactionListener = function(callback, lazyRunMsecs) { this.state.transactionListener = [callback, $getdef(lazyRunMsecs, 800)]; } ac.chap.Window.prototype.hasTransactionListener = function() { return null != this.state.transactionListener && null != this.state.transactionListener[0]; } ac.chap.Window.prototype.removeTransactionListener = function(callback) { this.state.transactionListener = null; } ac.chap.Window.prototype.addActionListener = function(type, action, callback, asynchronous) { callbackIndex = this.state.actionListeners.length; this.state.actionListeners[callbackIndex] = [type, action, callback, asynchronous]; return callbackIndex; } ac.chap.Window.prototype.removeActionListener = function(callbackIndex) { delete this.state.actionListeners[callbackIndex]; } ac.chap.Window.prototype.stopActionListeners = function() { this.state.actionListenersStopped = true; } ac.chap.Window.prototype.startActionListeners = function() { this.state.actionListenersStopped = false; } ac.chap.Window.prototype.getVariableValue = function(varName, defaultValue) { var value = ''; if ( 'CHAP_SELECTED_TEXT' == varName ) { value = this.getSelection(); } else if ( 'CHAP_CLIPBOARD_TEXT' == varName ) { value = fry.keyboard.getClipboardContent(); } else if ( 'CHAP_PREV_WORD' == varName ) { value = this.getWordAt(this.caret.position[0], this.caret.position[1], -1); } else if ( 'CHAP_NEXT_WORD' == varName ) { value = this.getWordAt(this.caret.position[0], this.caret.position[1], 1); } else if ( 0 == varName.indexOf('CHAP_WORD') ) { words = ['']; if ( !isNaN(varName.substr(9)) ) { words = this.getWordAt(this.caret.position[0], this.caret.position[1], parseInt(varName.substr(9))); if ( 'string' == typeof words ) { words = [words]; } } value = words[words.length-1]; } if ( '' == value || null == value ) { value = defaultValue || ''; } return value; } ac.chap.Window.prototype.runCommand = function(keyCode, controlKeysMask, caretRow, caretCol, command, params) { if ( null == this.state.commandListener ) { console.warn('There is no command listener defined.'); return 0; } return this.state.commandListener(this, keyCode, controlKeysMask, caretRow, caretCol, command, params); } ac.chap.Window.prototype.runAction = function(actionType, params) { var caret_row = this.caret.position[0]; var caret_col = this.caret.position[1]; var key_code = params.keyCode; var control_key = params.controlKey; // console.log('action_type:%s, params:%o', actionType, params); switch ( actionType ) { case ac.chap.ACTION_CARET: { if ( $isset(params.store) ) { this.state.lastCaretPosition = [caret_row, caret_col]; } else if ( $isset(params.move) ) { var direction = params.move; if ( 'left' == direction ) { if ( 0 < caret_col ) { caret_col--; } else { if ( 0 < caret_row ) { caret_row--; caret_col = this.char_map[caret_row].length; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'right' == direction ) { if ( this.char_map[caret_row].length > caret_col ) { caret_col++; } else { if ( 'undefined' != typeof this.char_map[caret_row+1] ) { caret_row++; caret_col = 0; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'up' == direction ) { if ( 0 < caret_row ) { var move_end = this.char_map[caret_row].length == caret_col; if ( move_end ) { caret_col = this.char_map[caret_row-1].length; } else { caret_col = Math.min(this.char_map[caret_row-1].length, caret_col); } this.setCaretPosition(caret_row-1, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } } else if ( 'down' == direction ) { if ( 'undefined' != typeof this.char_map[caret_row+1] ) { var move_end = this.char_map[caret_row].length == caret_col; if ( move_end ) { caret_col = this.char_map[caret_row+1].length; } else { caret_col = Math.min(this.char_map[caret_row+1].length, caret_col); } this.setCaretPosition(caret_row+1, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } } else if ( 'prev_word' == direction ) { if ( 0 < caret_col ) { var ch = this.char_map[caret_row].charAt(caret_col-1); var re = this.language.wordDelimiter; var look_for_wch = re.test(ch); while ( 0 != caret_col ) { ch = this.char_map[caret_row].charAt(caret_col-1); if ( look_for_wch != re.test(ch) ) { break; } caret_col--; } } else { if ( 0 < caret_row ) { caret_row--; caret_col = this.char_map[caret_row].length; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'next_word' == direction ) { if ( this.char_map[caret_row].length > caret_col ) { var ch = this.char_map[caret_row].charAt(caret_col); var re = this.language.wordDelimiter; var look_for_wch = re.test(ch); while ( this.char_map[caret_row].length > caret_col ) { ch = this.char_map[caret_row].charAt(caret_col); if ( look_for_wch != re.test(ch) ) { break; } caret_col++; } } else { if ( 'undefined' != typeof this.char_map[caret_row+1] ) { caret_row++; caret_col = 0; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'prev_regexp' == direction ) { if ( 0 < caret_col ) { var row = this.char_map[caret_row].substring(0, caret_col); var re = new RegExp(params['re'].replace('|', '\\')); var matches = re.exec(row); if (0 == matches.length) { console.warning('Invalid RE definition for `prev_regexp\' direction in ACTION_CARET.move action in keymap.'); caret_col--; } else { caret_col -= matches[0].length + 1; } } else { if ( 0 < caret_row ) { caret_row--; caret_col = this.char_map[caret_row].length; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'next_regexp' == direction ) { if ( this.char_map[caret_row].length > caret_col ) { var row = this.char_map[caret_row].substr(caret_col + 1); var re = new RegExp(params['re'].replace('|', '\\')); var matches = re.exec(row); if (0 == matches.length) { console.warning('Invalid RE definition for `next_regexp\' direction in ACTION_CARET.move action in keymap.'); caret_col++; } else { caret_col += matches[0].length + 1; } } else { if ( 'undefined' != typeof this.char_map[caret_row+1] ) { caret_row++; caret_col = 0; } } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'row_start' == direction ) { if ( 0 < caret_col ) { caret_col = 0; this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } } else if ( 'row_end' == direction ) { if ( this.char_map[caret_row].length > caret_col ) { caret_col = this.char_map[caret_row].length; this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } } else if ( 'page_up' == direction ) { if (this.activeView) { var row = caret_row - this.activeView.numRows; if (0 > row) { row = 0; } this.setCaretPosition(row, 0 != caret_col ? this.char_map[row].length : 0); return ac.chap.ACTION_RES_REDRAWCARET; } return 0; } else if ( 'page_down' == direction ) { if (this.activeView) { var row = caret_row + this.activeView.numRows; if (this.char_map.length <= row) { row = this.char_map.length-1; } this.setCaretPosition(row, 0 != caret_col ? this.char_map[row].length : 0); return ac.chap.ACTION_RES_REDRAWCARET; } return 0; } else if ( 'doc_start' == direction ) { this.setCaretPosition(0,0); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'doc_end' == direction ) { var last_index = this.char_map.length-1 this.setCaretPosition(last_index, this.char_map[last_index].length-1); return ac.chap.ACTION_RES_REDRAWCARET; } } else if ( $isset(params.moveBy) ) { var offset = params.moveBy; if ( 'column' == offset ) { //move by params.value columns, newlines are counted as column, params.value may be negative indication caret moving to the left if ( 0 < params.value ) { var range_source = (this.char_map[caret_row].substr(caret_col)+'\n'+this.char_map.slice(caret_row+1).join('\n')).substr(0, params.value); range_source = range_source.split('\n'); caret_row += range_source.length-1; caret_col = range_source[range_source.length-1].length + (1==range_source.length ? caret_col : 0); } else { var range_source = (this.char_map.slice(0, caret_row).join('\n')+'\n'+this.char_map[caret_row].substr(0, caret_col)); range_source = range_source.substr(range_source.length+params.value); range_source = range_source.split('\n'); caret_row -= (range_source.length-1); caret_col = (1==range_source.length ? caret_col : this.char_map[caret_row].length) - range_source[0].length; } this.setCaretPosition(caret_row, caret_col); return ac.chap.ACTION_RES_REDRAWCARET; } else if ( 'row' == offset ) { // move by params.value rows } else if ( 'page' == offset ) { // move by params.value pages } } else if ( $isset(params.moveTo) ) { // move to params.moveTo[0], params.moveTo[1] this.setCaretPosition(params.moveTo[0], params.moveTo[1]); return ac.chap.ACTION_RES_REDRAWCARET; } };break; case ac.chap.ACTION_SELECTION: { if ( $isset(params.remove) ) { var changed = this.removeSelection(); return ac.chap.ACTION_RES_REDRAWCARET | (changed ? ac.chap.ACTION_RES_REDRAWTEXT : 0); } else if ( $isset(params.add) ) { this.addSelection([caret_row, caret_col], this.state.lastCaretPosition); this.renderSelection(); return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_SELECTIONCHANGED; } else if ( $isset(params.all) ) { $__tune.behavior.clearSelection(); this.addAllSelection(); this.renderSelection(); return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_SELECTIONCHANGED; } };break; case ac.chap.ACTION_INSERT: { var str = null; if ( $isset(params.row) ) { var ins_content = '\n'; caret_col = 0; // if ( 0 < caret_row ) // { // // indenting by previous row // var t = this.char_map[caret_row]; // var n = t.length; // var re = this.language.indentIgnoreMarker; // while ( caret_col<n ) // { // var ch = t.charAt(caret_col); // if ( !re.test(ch) ) // { // break; // } // caret_col++; // } // ins_content += t.substr(0, caret_col); // } this.insertIntoCharacterMap(ins_content); this.setCaretPosition(caret_row+1, caret_col); return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } else if ( $isset(params.character) ) { if ( 31 < key_code || -9 == key_code ) { // getting string character str = -9 == key_code ? '\t' : String.fromCharCode(key_code); } } else if ( $isset(params.string) ) { str = params.string; } // inserting string if specified if ( null != str ) { if ( null != this.selection ) { // inserting into selection, first, let's remove selected chunk var range_from = [this.selection.startPosition[0], this.selection.startPosition[1]]; var range_to = [this.selection.endPosition[0], this.selection.endPosition[1]]; var switched = false; if ( (range_to[0] < range_from[0]) || (range_to[0] == range_from[0] && range_to[1] < range_from[1]) ) { var r = range_from; range_from = range_to; range_to = r; switched = true; } this.removeFromCharacterMap(range_from[0], range_from[1]+(switched?0:0), range_to[0], range_to[1]+(switched?0:1)); this.setCaretPosition(range_from[0], range_from[1]); caret_row = range_from[0]; // caret_col = range_from[1] - str.length + 1; caret_col = range_from[1]; this.removeSelection(); } else if ( 2 == this.caret.mode ) { this.removeFromCharacterMap(caret_row, caret_col); } // console.log('inserting: `%s`', str.replace(/\n/g, '$')); this.insertIntoCharacterMap(str); if ( !params.skipCaretChange ) { if ( -1 == str.indexOf('\n') ) { caret_col += str.length; } else { caret_row += str.length - str.replace(/\n/g, '').length; caret_col = str.length - str.lastIndexOf('\n') - 1; } this.setCaretPosition(caret_row, caret_col); } return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } };break; case ac.chap.ACTION_UPDATE: { };break; case ac.chap.ACTION_DELETE: { if ( $isset(params.row) ) { if (this.getNumRows() == caret_row+1) { if (0 == caret_row) { this.removeFromCharacterMap(caret_row, 0, caret_row, this.char_map[caret_row].length); this.setCaretPosition(0, 0); } else { this.removeFromCharacterMap(caret_row-1, this.char_map[caret_row-1].length, caret_row, this.char_map[caret_row].length); this.setCaretPosition(caret_row-1, this.char_map[caret_row-1].length); } } else { this.removeFromCharacterMap(caret_row, 0, caret_row+1, 0); } return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } else if ( $isset(params.character) ) { var after_caret = !params.character; var proceed_delete = true; if ( null != this.selection ) { // removing selection var range_from = [this.selection.startPosition[0], this.selection.startPosition[1]]; var range_to = [this.selection.endPosition[0], this.selection.endPosition[1]]; // var range_to = [caret_row, caret_col]; var switched = false; if ( (range_to[0] < range_from[0]) || (range_to[0] == range_from[0] && range_to[1] < range_from[1]) ) { var r = range_from; range_from = range_to; range_to = r; switched = true; } this.removeFromCharacterMap(range_from[0], range_from[1], range_to[0], range_to[1]+(switched?0:1)); caret_row = range_from[0]; caret_col = range_from[1]+(after_caret?0:1); this.removeSelection(); } else { var range_from = [caret_row, caret_col]; var range_to = [caret_row, caret_col]; if ( after_caret ) { if ( caret_col == this.char_map[range_from[0]].length ) { if ( this.char_map.length-1 == caret_row ) { proceed_delete = false; } else { range_to[0]++; range_to[1] = 0; } } else { range_to[1]++; } } else { if ( 0 == caret_col ) { if ( 0 == caret_row ) { proceed_delete = false; } else { range_from[0]--; range_from[1] = this.char_map[range_from[0]].length; } } else { range_from[1]--; } caret_row = range_from[0]; caret_col = range_from[1]+1; } if ( proceed_delete ) { // console.log('%o - %o', range_from, range_to); this.removeFromCharacterMap(range_from[0], range_from[1], range_to[0], range_to[1]); this.removeSelection(); } } if ( proceed_delete ) { this.setCaretPosition(caret_row, caret_col-(after_caret?0:1)); return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } } };break; case ac.chap.ACTION_CLIPBOARD: { if ( $isset(params.cut) ) { if (null != this.selection) { return this.runAction(ac.chap.ACTION_DELETE, {character:true}); } } else if ( $isset(params.paste) ) { this.runAction(ac.chap.ACTION_INSERT, {string:params.content}) return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } };break; case ac.chap.ACTION_UNDO: { //console.log('UNDO'); var num_trecords = this.transaction_log.length; if ( 3 < num_trecords ) // ignoring first operation since it's the original source inserted using edit() method { var operation_type = this.transaction_log[num_trecords-3]; var params = this.transaction_log[num_trecords-2]; var source = this.transaction_log[num_trecords-1]; if ( ac.chap.TRANSLOG_TYPE_INSERT == operation_type ) { var range_from = [params[0], params[1]]; var range_to = [params[0], params[1]]; range_to[0] += (source.length - source.replace(/\n/g, '').length); var ix = source.lastIndexOf('\n'); range_to[1] = -1 == ix ? (range_from[1]+source.length) : (source.length - ix); // this.removeFromCharacterMap(range_from[0], range_from[1], range_to[0], range_to[1], this.redo_log); this.removeFromCharacterMap(range_from[0], range_from[1], range_to[0], range_to[1]);//, this.redo_log); caret_row = range_from[0]; caret_col = range_from[1]; } else if ( ac.chap.TRANSLOG_TYPE_REMOVE == operation_type ) { this.insertIntoCharacterMap(source, params[0], params[1]); caret_row = params[2]; caret_col = params[3]; } this.setCaretPosition(caret_row, caret_col); this.removeSelection(); this.redo_log = [].concat(this.redo_log, this.transaction_log.slice(num_trecords-3, num_trecords)); this.transaction_log = [].concat(this.transaction_log.slice(0, num_trecords-3)); return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } };break; case ac.chap.ACTION_REDO: { var num_trecords = this.redo_log.length; if ( 0 < num_trecords ) { var operation_type = this.redo_log[num_trecords-3]; var params = this.redo_log[num_trecords-2]; var source = this.redo_log[num_trecords-1]; this.redo_log = [].concat(this.redo_log.slice(0, num_trecords-3)); if ( ac.chap.TRANSLOG_TYPE_REMOVE == operation_type ) { this.removeFromCharacterMap(params[0], params[1], params[2], params[3]); caret_row = params[0]; caret_col = params[1]; this.setCaretPosition(caret_row, caret_col); this.removeSelection(); } else if ( ac.chap.TRANSLOG_TYPE_INSERT == operation_type ) { this.runAction(ac.chap.ACTION_INSERT, {string:source}); } return ac.chap.ACTION_RES_REDRAWCARET | ac.chap.ACTION_RES_REDRAWTEXT; } };break; case ac.chap.ACTION_CUSTOM: { var action_name = 'action_?'.embed($getdef(params.action, 'NotDefined')); if ( !this.keymap[action_name] ) { console.warn('Action `%s` not defined in the keymap.', params.action); action_name = 'action_NotDefined'; } return this.keymap[action_name](key_code, control_key, caret_row, caret_col, this, params); };break; } return 0; } ac.chap.Window.prototype.getActiveViewIndex = function() { if ( null == this.activeView ) { return -1; } return this.activeView.index; } ac.chap.Window.prototype.getCharAt = function(row, column) { row = $getdef(row, this.caret.position[0]); column = $getdef(column, this.caret.position[1]); return this.char_map[row].charAt(column); } ac.chap.Window.prototype.getStringAt = function(row, column, width) { row = $getdef(row, this.caret.position[0]); column = $getdef(column, this.caret.position[1]); width = $getdef(width, -1); // defaults to string before caret // console.log('getStringAt: %s, %s, %s', row, column, width); var source = ''; if ( 0 > width ) { // will go before [row,column] source = this.char_map.slice(0, row).join('\n')+'\n'+this.char_map[row].substr(0, column); return source.substr(source.length+width); } else { // will go after [row,column] source = this.char_map.slice(row).join('\n').substr(column); return source.substr(0, width); } } ac.chap.Window.prototype.getWordAt = function(row, column, numWords) { // if numWords <0 returns words before otherwise after position. if omitted, default value is -1 that is word before caret // also, if more than one word is required, returns array of words as result row = $getdef(row, this.caret.position[0]); column = $getdef(column, this.caret.position[1]); numWords = $getdef(numWords, -1); var words = []; var re = this.language.wordDelimiter; var required_words = numWords; var direction_after = 0 < numWords; var next_word = true; required_words = Math.abs(-numWords); if ( !direction_after ) { column--; if ( -1 == column ) { row--; if ( -1 == row ) { return words; } column = this.char_map[row].length-1; } } while (true) { var ch = this.char_map[row].charAt(column) if ( re.test(ch) ) { if ( next_word ) { words.push(''); next_word = false; } // word character found if ( direction_after ) { words[words.length-1] += ch; } else { words[words.length-1] = ch + words[words.length-1]; } } else { if ( required_words == words.length ) { break; } next_word = true; } column += (direction_after ? 1 : -1); if ( 0 > column ) { row--; if ( -1 == row ) { break; } next_word = true; column = this.char_map[row].length-1; } else if ( this.char_map[row].length <= column ) { row++; if ( this.char_map.length == row ) { break; } next_word = true; column = 0; } } if ( 1 == required_words ) { return words[0] ? words[0] : false; } return words; } ac.chap.Window.prototype.getLineAt = function(row) { return this.char_map[row]; } ac.chap.Window.prototype.getText = function() { return this.char_map.join('\n'); } ac.chap.Window.prototype.getNumRows = function() { return this.char_map.length; } ac.chap.Window.prototype.getSyntaxHighlightingSource = function() { if (null != this.activeView) { return this.activeView.getSyntaxHighlightingSource(); } return 'ni'; } ac.chap.Window.prototype.getCaretAbsolutePosition = function() { if ( null != this.activeView ) { var pos = this.activeView.getRenderedCharPosition(this.caret.position[0], this.caret.position[1]); if ( null != pos ) { var root_pos = this.activeView.nodeScrollArea.abspos(); return [pos[0]+root_pos.x+this.activeView.options.colWidth, pos[1]+root_pos.y+this.activeView.options.rowHeight]; } } return null; } ac.chap.Window.prototype.stopTransactionLog = function() { this.state.transactionLogStopped = true; } ac.chap.Window.prototype.startTransactionLog = function() { this.state.transactionLogStopped = false; } ac.chap.Window.prototype.addAllSelection = function() { var num_rows = this.char_map.length; var num_views = this.views.length; for ( var i=0; i<num_rows; i++ ) { for ( var ii=0; ii<num_views; ii++ ) { this.row_id_map[ii][i][2] = this.row_id_map[ii][i][2] | ac.chap.ROWSTATE_SELECTION; this.row_id_map[ii][i][5][0] = 0; this.row_id_map[ii][i][5][1] = this.char_map[i].length; } } this.selection = { startPosition: [0, 0], endPosition: [num_rows-1, this.char_map[num_rows-1].length] } // var me = this; // $runafter(300, function() // { // ac.chap.nodeClipboard.$.value = me.getSelection(); // delete me; // }); } ac.chap.Window.prototype.addSelection = function(range_to, range_from) { // console.log('Adding selection: [%i, %i]', range_to, range_from); var num_views = this.views.length; if ( null == this.selection ) { // no previous selection range_from = range_from || range_to; this.selection = {}; this.selection.startPosition = [range_from[0], range_from[1]]; } else { var start_offset = Math.min(this.selection.startPosition[0], this.selection.endPosition[0]); var end_offset = Math.max(this.selection.startPosition[0], this.selection.endPosition[0]); for ( var i=start_offset; i<=end_offset; i++ ) { for ( var ii=0; ii<num_views; ii++ ) { this.row_id_map[ii][i][2] = (this.row_id_map[ii][i][2] & (65535-ac.chap.ROWSTATE_SELECTION)); } } range_from = [this.selection.startPosition[0], this.selection.startPosition[1]]; } if ( (range_to[0] < range_from[0]) || (range_to[0] == range_from[0] && range_to[1] < range_from[1]) ) { range_from[1]--; } else { range_to[1]--; } this.selection.endPosition = [range_to[0], range_to[1]]; if ( (range_to[0] < range_from[0]) || (range_to[0] == range_from[0] && range_to[1] < range_from[1]) ) { var r = range_from; range_from = range_to; range_to = r; } // console.log('%o - %o', range_from, range_to); for ( var i=0; i<num_views; i++ ) { for ( var ii=range_from[0]; ii<=range_to[0]; ii++ ) { // this.row_id_map[i][ii][1] = false; this.row_id_map[i][ii][2] = ac.chap.ROWSTATE_SELECTION; var range = [0, this.char_map[ii].length]; if ( range_from[0] == ii ) { range[0] = range_from[1]; } if ( range_to[0] == ii ) { range[1] = range_to[1]; } this.row_id_map[i][ii][5][0] = range[0]; this.row_id_map[i][ii][5][1] = range[1]; } } // console.log('SELECTION ranges: %o - %o', this.selection.startPosition, this.selection.endPosition); // console.log('CARET: %o', this.caret.position); } ac.chap.Window.prototype.removeSelection = function(rowIndex, colIndex) { var num_views = this.views.length; var num_rows = this.char_map.length; var changed = false; for ( var i=0; i<num_views; i++ ) { for ( var ii=0; ii<num_rows; ii++ ) { var row_state = this.row_id_map[i][ii][2]; if ( ac.chap.ROWSTATE_SELECTION == (row_state & ac.chap.ROWSTATE_SELECTION) ) { this.row_id_map[i][ii][1] = false; this.row_id_map[i][ii][2] = row_state & (65535-ac.chap.ROWSTATE_SELECTION); this.row_id_map[i][ii][5][0] = null; this.row_id_map[i][ii][5][1] = null; changed = true; } } } this.selection = null; return changed; } ac.chap.Window.prototype.getSelection = function() { var selection_text = ''; if ( null != this.selection ) { var range_from = [this.selection.startPosition[0], this.selection.startPosition[1]]; var range_to = [this.selection.endPosition[0], this.selection.endPosition[1]]; if ( (range_to[0] < range_from[0]) || (range_to[0] == range_from[0] && range_to[1] < range_from[1]) ) { var r = range_from; range_from = range_to; range_to = r; } if ( range_from[0] == range_to[0] ) { selection_text = this.char_map[range_from[0]].substring(range_from[1], range_to[1]+1); } else { selection_text = this.char_map[range_from[0]].substr(range_from[1]); selection_text = [].concat(selection_text, this.char_map.slice(range_from[0]+1, range_to[0]), this.char_map[range_to[0]].substr(0, range_to[1]+1)).join('\n'); } // console.log('SELECTION: `%s`', selection_text.replace(/\n/g, '$')); } return selection_text; } ac.chap.Window.prototype.getCaretPosition = function() { return [this.caret.position[0], this.caret.position[1]]; } ac.chap.Window.prototype.setCaretPosition = function(row, column) { this.caret.position[0] = parseInt(row); this.caret.position[1] = parseInt(column); } ac.chap.Window.prototype.renderText = function(forceCompleteRedraw) { var num_views = this.views.length; for ( var i=0; i<num_views; i++ ) { this.views[i].renderText(forceCompleteRedraw); } } ac.chap.Window.prototype.renderSelection = function() { var num_views = this.views.length; for ( var i=0; i<num_views; i++ ) { this.views[i].renderSelection(); } } ac.chap.Window.prototype.showCaret = function(skipScroll, whenAnimating) { if (new Date().getTime() - 500 < this.state.lastKeyTimePressed) { this.state.caretPhase = 1; } var num_views = this.views.length; for ( var i=0; i<num_views; i++ ) { if ( this.activeView == this.views[i] && null == this.selection ) { this.views[i].showCaret(skipScroll?true:false); if (null != this.state.caretListener && !whenAnimating) { // this.state.caretListener(this.caret.position[0], this.caret.position[1]); var listener = this.state.caretListener; var r = this.caret.position[0]; var c = this.caret.position[1]; $runafter(30, function() { listener(r, c); delete listener; }); } } else { this.views[i].hideCaret(); } } this.state.caretPhase = ++this.state.caretPhase & 1; } ac.chap.Window.prototype.hideCaret = function() { var num_views = this.views.length; for ( var i=0; i<num_views; i++ ) { this.views[i].hideCaret(); } } ac.chap.Window.prototype.captureEditAreaClick = function(evt, view) { evt.stop(); this.hideInteractiveSearch(); this.activeView = view; var pos = evt.$.abspos(); var offset_x = evt.pageX - pos.x; var offset_y = evt.pageY - pos.y + ($__tune.isGecko ? view.nodeScrollArea.$.scrollTop : 0); var target = evt.$.$; var used = false; while ( null != target && target.tagName && 'pre' != target.tagName.toLowerCase() ) { if ( !$__tune.isOpera ) { offset_x += target.offsetLeft; offset_y += target.offsetTop; used = true; } target = target.parentNode; } var row_index = this.char_map.length-1; if ( target.tagName && used ) { offset_y -= target.offsetTop; } if ( null == target ) { return; } var row_index = target.getAttribute ? parseInt(target.getAttribute('row-index')) : row_index; var num_subrows = 1; var col_index = 0; if ( view.options.wordWrap ) { num_subrows = 1 + Math.floor(offset_y/view.options.rowHeight); // console.log(num_subrows); } var i = 0; var num_chars = this.char_map[row_index].length; var mid_char_w = view.getRenderedCharDimension()[0] / 2; var subrow = 0; var subrow_offset = 0; // offset_y -= // console.log('offsets [%s x %s]', offset_x, offset_y); var w = view.options.colWidth * view.numCols; while ( i<num_chars ) { var dim = view.getRenderedStringDimension(row_index, 0, i); if ( (Math.floor(dim[0]/w) + 1) == num_subrows ) { if ( dim[0] % w > offset_x - mid_char_w ) { col_index = i; break; } else if ( w - mid_char_w < offset_x && (dim[0] % w + 2*mid_char_w >= offset_x)) { // last char col_index = i+1; break; } } i++; } // console.log('%s, %s', row_index, col_index); if ( i == num_chars ) { col_index = i; } // console.log('CHANGE CARET to: %s', col_index); this.hideCaret(); if ( evt.shiftKey ) { this.addSelection([row_index, col_index], this.state.lastCaretPosition); this.renderText(); } else { this.setCaretPosition(row_index, col_index); this.state.caretPhase = 1; view.showCaret(); this.state.lastCaretPosition = [this.caret.position[0], this.caret.position[1]]; if ( this.removeSelection() ) { this.renderText(); } } ac.chap.setActiveComponent(this); } ac.chap.Window.prototype.foldingize = function() { var startRowIndex = 0; var source_rows = this.char_map.slice(startRowIndex); // creating folding info var n = source_rows.length; var foldings = []; var foldings_index = -1; for ( var i=0; i<this.language.foldingStartMarkers.length; i++ ) { var re_start = this.language.foldingStartMarkers[i]; var re_parity = this.language.foldingParityMarkers[i]; var re_stop = this.language.foldingStopMarkers[i]; for ( var ii=startRowIndex; ii<n; ii++ ) { if ( re_start.test(this.char_map[ii]) ) { // console.log('START: #%s', ii); foldings.push([ii, -1, 0]); foldings_index = foldings.length-1; } if ( null != re_parity && re_parity.exec(this.char_map[ii]) ) { // console.log('PARITY: #%s', ii); var ix = foldings_index; while ( 0 <= ix ) { if ( -1 == foldings[ix][1] ) { foldings[ix][2]++; break; } ix--; } // foldings[foldings_index][2]++; } if ( re_stop.exec(this.char_map[ii]) ) { // console.log('STOP: #%s', ii); var ix = foldings_index; while ( 0 <= ix ) { if ( -1 == foldings[ix][1] ) { foldings[ix][2]--; if ( 0 == foldings[ix][2] ) { foldings[ix][1] = ii; } break; } ix--; } } } } // console.log('%o', foldings); n = foldings.length; for ( i=0; i<n; i++ ) { var fold = foldings[i]; if ( fold[0] == fold[1] || -1 == fold[1] ) { continue; } for ( var ii=0; ii<this.views.length; ii++ ) { this.row_id_map[ii][fold[0]][2] |= ac.chap.ROWSTATE_FOLD_START; this.row_id_map[ii][fold[0]][3][0] = 0; this.row_id_map[ii][fold[0]][3][1] = fold[1]; this.row_id_map[ii][fold[1]][2] |= ac.chap.ROWSTATE_FOLD_STOP; this.row_id_map[ii][fold[1]][3][0] = 0 this.row_id_map[ii][fold[1]][3][1] = fold[0]; } } } ac.chap.Window.prototype.tokenize = function() { if ( !this.options.syntaxHighlightingEnabled ) { return; } var startRowIndex = 0; this.foldingize(); var source = this.char_map.slice(startRowIndex).join('\n'); var total_rows = this.char_map.length; var syntax_map = []; var ml_start = this.language.multiRowCommentStartMarker; var ml_end = this.language.multiRowCommentEndMarker; // console.log(ml_end); var sq = this.language.singleQuoteStringMarker; var sq_exception = this.language.singleQuoteStringMarkerException; var dq = this.language.doubleQuoteStringMarker; var dq_exception = this.language.doubleQuoteStringMarkerException; var sl_markers = this.language.singleRowCommentStartMarkers; var cursor = {row:startRowIndex, col:0}; var col_offset = 0; var fillRowTokens = function(tokenType, fromRowIndex, toRowIndex, pars) { pars = pars || ''; if ( -1 == toRowIndex ) { toRowIndex = total_rows; } for ( var i=fromRowIndex; i<toRowIndex; i++ ) { if ( 'undefined' == typeof syntax_map[i] ) { syntax_map[i] = []; } syntax_map[i] = [[tokenType, -1, -1, pars]]; } } var ixs = [ [ac.chap.TOKEN_MULTIROW_COMMENT, -1, ml_start, ml_end, ''], [ac.chap.TOKEN_SINGLE_QUOTED, -1, sq, sq, sq_exception], [ac.chap.TOKEN_DOUBLE_QUOTED, -1, dq, dq, dq_exception] ]; for ( i=0; i<sl_markers.length; i++ ) { ixs.push([ac.chap.TOKEN_SINGLEROW_COMMENT, -1, sl_markers[i], '\n', '']); } while ( true ) { if ( '' != ml_start ) { ixs[0][1] = source.indexOf(ml_start); } if ( '' != sq ) { ixs[1][1] = source.indexOf(sq); } if ( '' != dq ) { ixs[2][1] = source.indexOf(dq); } for ( i=0; i<sl_markers.length; i++ ) { if ( '' != sl_markers[i] ) { ixs[3+i][1] = source.indexOf(sl_markers[i]); } } var found_marker_index = -1; var lowest = source.length; for ( i=0; i<ixs.length; i++ ) { if ( -1 != ixs[i][1] ) { if ( lowest > ixs[i][1] ) { found_marker_index = i; lowest = ixs[i][1]; } } } if ( -1 == found_marker_index ) { break; } var start_index = ixs[found_marker_index][1]; var skipped_source = source.substr(0, start_index); var num_skipped_rows = skipped_source.split('\n').length; cursor.row += num_skipped_rows - 1; cursor.col = (1 == num_skipped_rows ? col_offset : 0) + skipped_source.length - ('\n'+skipped_source).lastIndexOf('\n'); if ( 'undefined' == typeof syntax_map[cursor.row] ) { syntax_map[cursor.row] = []; } var start_marker_len = ixs[found_marker_index][2].length; var end_marker_len = ixs[found_marker_index][3].length; source = source.substr(start_index+start_marker_len); var token_type = ixs[found_marker_index][0]; var end_index = source.indexOf(ixs[found_marker_index][3]); var sub_source = source; var end_index_offset = 0; var except = false; while ( 0 < end_index && '' != ixs[found_marker_index][4] && ixs[found_marker_index][4] == sub_source.charAt(end_index-end_marker_len) ) { except = true; end_index_offset += end_index + end_marker_len; sub_source = sub_source.substr(end_index+end_marker_len); end_index = sub_source.indexOf(ixs[found_marker_index][3]); } if ( except && -1 != end_index ) { end_index += end_index_offset; } if ( -1 == end_index ) { syntax_map[cursor.row].push([token_type, cursor.col, -1, '']); fillRowTokens(token_type, cursor.row+1, -1); break; } else { var block_source = source.substr(0, end_index); var num_block_rows = '\n' == ixs[found_marker_index][3] ? 1 : block_source.split('\n').length; var cursor_col_end = block_source.length - ('\n'+block_source).lastIndexOf('\n'); syntax_map[cursor.row].push([token_type, cursor.col, 1 == num_block_rows ? (cursor.col+end_index+start_marker_len+end_marker_len) : -1, ixs[found_marker_index][2]]); fillRowTokens(token_type, cursor.row+1, cursor.row+num_block_rows-1); if ( 1 == num_block_rows ) { col_offset = cursor.col + end_index + start_marker_len + end_marker_len; if ( '\n' == ixs[found_marker_index][3] ) { cursor.row++; col_offset = 0; } } else { if ( 'undefined' == typeof syntax_map[cursor.row+num_block_rows] ) { syntax_map[cursor.row+num_block_rows-1] = []; } syntax_map[cursor.row+num_block_rows-1].push([token_type, -1, cursor_col_end + end_marker_len, '']); // var a = block_source.split('\n'); col_offset = cursor_col_end + end_marker_len; cursor.row += num_block_rows -1; } // console.log(num_block_rows); source = source.substr(end_index+end_marker_len); } } delete ixs; delete source; var n = Math.max(syntax_map.length, this.syntax_map.length); for ( i=0; i<n; i++ ) { if ( 'undefined' != typeof syntax_map[i] ) { if ( 'undefined' != typeof this.syntax_map[i] ) { // looking for change if ( syntax_map[i].length == this.syntax_map[i].length ) { var changed = false; for ( var ii=0; ii<syntax_map[i].length; ii++ ) { if ( syntax_map[i][ii].length != this.syntax_map[i][ii].length ) { changed = true; break; } if ( syntax_map[i][ii][0] != this.syntax_map[i][ii][0] || syntax_map[i][ii][1] != this.syntax_map[i][ii][1] || syntax_map[i][ii][2] != this.syntax_map[i][ii][2] || syntax_map[i][ii][3] != this.syntax_map[i][ii][3] ) { changed = true; break; } } if ( !changed ) { continue; } } } this.syntax_map[i] = syntax_map[i]; } else { if ( 'undefined' != typeof this.syntax_map[i] ) { delete this.syntax_map[i]; } else { // no change continue; } } for ( var ii=0; ii<this.views.length; ii++ ) { // marking row as changed if (this.row_id_map[ii] && this.row_id_map[ii][i]) { this.row_id_map[ii][i][1] = false; } } // console.log('%s marked as changed.', i); } delete syntax_map; delete fillRowTokens; } ac.chap.Window.prototype.expandFolding = function(rowIndex) { var n = this.views.length; for ( var i=0; i<n; i++ ) { this.views[i].expandFolding(rowIndex); } } ac.chap.Window.prototype.insertIntoCharacterMap = function(source, atRow, atColumn, skipLog, userId) { if ( $notset(atRow) ) { atRow = this.caret.position[0]; } if ( $notset(atColumn) ) { atColumn = this.caret.position[1]; } userId = userId|this.userId; if ( !skipLog && !this.state.transactionLogStopped ) { this.transaction_log.push(ac.chap.TRANSLOG_TYPE_INSERT); this.transaction_log.push([atRow, atColumn, userId]); this.transaction_log.push(source); } var num_existing_rows = this.char_map.length; var new_rows = source.split('\n'); var num_new_rows = new_rows.length; var num_views = this.views.length; // console.log('NUMVIEWS: %s', num_views); if ( this.hasTransactionListener() ) { var me = this; setTimeout(function() { me.state.transactionListener[0](me, ac.chap.TRANSLOG_TYPE_INSERT, userId, atRow, atColumn, num_existing_rows, num_new_rows, source); me = null; }, this.state.transactionListener[1]); } var i = ii = 0; if ( 'undefined' == typeof this.char_map[atRow] ) { this.char_map = this.char_map.concat(new_rows); for ( i=0; i<num_new_rows; i++ ) { for ( ii=0; ii<num_views; ii++ ) { this.row_id_map[ii][atRow+i] = [this.row_id_sequence, false, ac.chap.ROWSTATE_NONE, [], [], []]; } this.row_id_sequence++; } } else { if ( this.char_map[atRow].length < atColumn ) { atColumn = this.char_map[atRow].length; } for ( i=0; i<num_views; i++ ) { this.row_id_map[i][atRow][1] = false; } if ( 1 == num_new_rows ) { this.char_map[atRow] = this.char_map[atRow].substr(0, atColumn) + new_rows[0] + this.char_map[atRow].substr(atColumn); } else { var end_snippet = this.char_map[atRow].substr(atColumn); // console.log('end snippet: `%s`', end_snippet); this.char_map[atRow] = this.char_map[atRow].substr(0, atColumn) + new_rows[0]; var last_row_index = atRow + (num_new_rows-1); this.char_map = [].concat(this.char_map.slice(0, atRow+1), new_rows.slice(1), this.char_map.slice(atRow+1)); var ins_map = []; var start_sequence = this.row_id_sequence; for ( i=0; i<num_views; i++ ) { ins_map[i] = []; start_sequence = this.row_id_sequence; for ( ii=1; ii<num_new_rows; ii++ ) { ins_map[i][ii-1] = [start_sequence++, false, ac.chap.ROWSTATE_NONE, [], [], []]; } } this.row_id_sequence = start_sequence; for ( i=0; i<num_views; i++ ) { this.row_id_map[i] = [].concat(this.row_id_map[i].slice(0, atRow+1), ins_map[i], this.row_id_map[i].slice(atRow+1)); } this.char_map[last_row_index] += end_snippet; for ( i=0; i<num_views; i++ ) { this.row_id_map[i][last_row_index][1] = false; } } } // console.log('%o', this.char_map); if ( 1 < num_new_rows ) { for ( i=0; i<num_views; i++ ) { this.views[i].numVisibleRows += (num_new_rows-1); } } } ac.chap.Window.prototype.removeFromCharacterMap = function(startRow, startCol, endRow, endCol, skipLog, userId) { if ( 'undefined' == typeof endRow ) { endRow = startRow; endCol = startCol+1; } userId = userId|this.userId; var source = ''; var i = 0; var num_views = this.views.length; if ( startRow == endRow ) { source = this.char_map[startRow].substring(startCol, endCol); this.char_map[startRow] = this.char_map[startRow].substr(0, startCol)+this.char_map[startRow].substr(endCol); for ( i=0; i<num_views; i++ ) { this.row_id_map[i][startRow][1] = false; } } else { source = this.char_map[startRow].substr(startCol) + '\n'+this.char_map.slice(startRow+1, endRow).join('\n') + '\n' + this.char_map[endRow].substr(0, endCol); this.char_map[startRow] = this.char_map[startRow].substr(0, startCol)+this.char_map[endRow].substr(endCol); this.char_map = [].concat(this.char_map.slice(0, startRow+1), this.char_map.slice(endRow+1)); for ( i=0; i<num_views; i++ ) { this.row_id_map[i][startRow][1] = false; this.row_id_map[i] = [].concat(this.row_id_map[i].slice(0, startRow), this.row_id_map[i].slice(endRow)); if ( startRow < this.row_id_map[i].length-1 ) { this.row_id_map[i][startRow+1][1] = false; } this.views[i].numVisibleRows -= (endRow-startRow); } } if ( !skipLog && !this.state.transactionLogStopped ) { this.transaction_log.push(ac.chap.TRANSLOG_TYPE_REMOVE); this.transaction_log.push([startRow, startCol, endRow, endCol, userId|this.userId]); this.transaction_log.push(source); } if ( this.hasTransactionListener() ) { var me = this; setTimeout(function() { me.state.transactionListener[0](me, ac.chap.TRANSLOG_TYPE_REMOVE, userId, startRow, startCol, endRow, endCol, source); me = null; }, this.state.transactionListener[1]); } return source; } /* * ac.Chap - Text Editing Component - Views */ if ( 'undefined' == typeof ac ) { var ac = {chap:{}}; } $class('ac.chap.View', { construct:function(window, index, options) { this.window = window; this.index = index; this.nodeScrollArea = null; this.nodeFillArea = null; this.nodeEditArea = null; this.nodeEditAreaCache = null; this.nodeCaret = null; this.nodeCaretRow = null; this.renderingRunning = false; this.numRows = 0; this.numCols = 0; this.wrapWidth = 0; this.wrapHeight = 0; this.startRow = 0; this.startCol = 0; this.startRowOffset = 0; this.numVisibleRows = 0; this.state = {lastCaretPosition:[-1,-1], lastCaretRenderedPosition:null}; this.theme = null; this.setOptions(options); }, destruct:function() { clearInterval(this.caretAnimInterval); $delete(this.options); $delete(this.theme); } }); ac.chap.View.prototype.setOptions = function(options) { this.options = { tabelator:' ', wordWrap:false, colWidth:0, rowHeight:0, caretThreadTimeout:450 } if ( $isset(options.wordWrap) ) { this.options.wordWrap = options.wordWrap; } if ( $isset(options.tabelator) ) { this.options.tabelator = options.tabelator; } // getting column width and height this.calculateColRowDim(); if ($isset(options.theme)) { this.theme = $new(options.theme); } else { this.theme = $new |