MobileBlur

Changes On Branch cbc064938826076f
Login

Changes In Branch develop Through [cbc0649388] Excluding Merge-Ins

This is equivalent to a diff from 9995851f7e to cbc0649388

2011-11-20
18:36
Release 0.1- support for a single user, basic functionality works check-in: 56de658fd0 user: spiffy tags: trunk, v0.1
03:12
Added a button to mark a feed as read check-in: b74e6c434b user: spiffy tags: develop
03:03
Moved newsblur library from urllib to Requests. Moved username storage to the DB. Store cookie in the DB. Centralize a login function that checks the DB for a user's cookie on each page load and logs the user in if there's no cookie. check-in: cbc0649388 user: spiffy tags: develop
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:52
Create new branch named "develop" check-in: 2ef92257d5 user: spiffy tags: develop
04:51
initial empty check-in check-in: 9995851f7e user: spiffy tags: trunk

Added ABOUT version [ea96ed160b].

            1  +web2py is an open source full-stack framework for agile development 
            2  +of secure database-driven web-based applications, written and programmable in 
            3  +Python. 
            4  +
            5  +Created by Massimo Di Pierro <mdipierro@cs.depaul.edu>
            6  +

Added LICENSE version [4719a3b620].

            1  +## Web2py License
            2  +
            3  +Web2py is Licensed under the LGPL license version 3 
            4  +(http://www.gnu.org/licenses/lgpl.html)
            5  +
            6  +Copyrighted (c) by Massimo Di Pierro (2007-2011)
            7  +
            8  +### On Commercial Redistribution
            9  +
           10  +In accordance with LGPL you may:
           11  +- redistribute web2py with your apps (including official web2py binary versions)
           12  +- release your applications which use official web2py libraries under any license you wish
           13  +But you must:
           14  +- make clear in the documentation that your application uses web2py
           15  +- release any modification of the web2py libraries under the LGPLv3 license
           16  +
           17  +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
           18  +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 
           19  +PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
           20  +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
           21  +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 
           22  +PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL 
           23  +NECESSARY SERVICING, REPAIR OR CORRECTION.
           24  +
           25  +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT 
           26  +HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, 
           27  +BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL 
           28  +DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 
           29  +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES 
           30  +OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER 
           31  +PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
           32  +
           33  +(Earlier versions of web2py, 1.0.*-1.90.*, were released under the GPL2 license plus a
           34  +commercial exception which, for practical purposes, was very similar to the current LPGLv3)
           35  +
           36  +### Licenses for third party contributed software
           37  +
           38  +web2py contains third party software under the gluon/contrib/ folder.
           39  +Each file/module in contrib is distributed with web2py under its original license.
           40  +Here we list some of them.
           41  +
           42  +#### gluon.contrib.simplejson LICENSE
           43  +
           44  +Copyright (c) 2006 Bob Ippolito - Permission is hereby granted, free of charge, 
           45  +to any person obtaining a copy of this software and associated documentation 
           46  +files (the "Software"), to deal in the Software without restriction, including
           47  +without limitation the rights to use, copy, modify, merge, publish, distribute,
           48  +sublicense, and/or sell copies of the Software, and to permit persons to whom 
           49  +the Software is furnished to do so, subject to the following conditions:
           50  +
           51  +The above copyright notice and this permission notice shall be included in all
           52  +copies or substantial portions of the Software.
           53  +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
           54  +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
           55  +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
           56  +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
           57  +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
           58  +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
           59  +SOFTWARE.
           60  +
           61  +#### gluon.contrib.rss2.py (originally PyRSS2Gen) LICENSE
           62  +
           63  +This is copyright (c) by Dalke Scientific Software, LLC and released under the
           64  +BSD license.  See the file LICENSE in the distribution or 
           65  +<http://www.opensource.org/licenses/bsd-license.php> for details.
           66  +
           67  +#### gluon.contrib.markdown (markdown2) LICENSE
           68  +
           69  +MIT License from from <http://code.google.com/p/python-markdown2/>
           70  +
           71  +#### gluon.contrib.feedparser LICENSE
           72  +
           73  +Copyright (c) 2002-2005, Mark Pilgrim
           74  +
           75  +All rights reserved.
           76  +
           77  +Redistribution and use in source and binary forms, with or without 
           78  +modification, are permitted provided that the following conditions 
           79  +are met:
           80  +
           81  +* Redistributions of source code must retain the above copyright notice,
           82  +  this list of conditions and the following disclaimer.
           83  +
           84  +* Redistributions in binary form must reproduce the above copyright notice,
           85  +  this list of conditions and the following disclaimer in the documentation
           86  +  and/or other materials provided with the distribution.
           87  +
           88  +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
           89  +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
           90  +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
           91  +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
           92  +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
           93  +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
           94  +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
           95  +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
           96  +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
           97  +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
           98  +POSSIBILITY OF SUCH DAMAGE.
           99  +
          100  +#### gluon.wsgiserver.py LICENSE (borrowed from cherrypy)
          101  +
          102  +Copyright (c) 2004, CherryPy Team (team@cherrypy.org)
          103  +All rights reserved.
          104  +
          105  +Redistribution and use in source and binary forms, with or without modification,
          106  +are permitted provided that the following conditions are met:
          107  +
          108  +    * Redistributions of source code must retain the above copyright notice, 
          109  +      this list of conditions and the following disclaimer.
          110  +    * Redistributions in binary form must reproduce the above copyright notice, 
          111  +      this list of conditions and the following disclaimer in the documentation 
          112  +      and/or other materials provided with the distribution.
          113  +    * Neither the name of the CherryPy Team nor the names of its contributors 
          114  +      may be used to endorse or promote products derived from this software 
          115  +      without specific prior written permission.
          116  +
          117  +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
          118  +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
          119  +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
          120  +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 
          121  +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
          122  +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
          123  +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
          124  +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
          125  +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
          126  +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
          127  +
          128  +#### gluon.contrib.pam LICENSE
          129  +
          130  +Copyright (C) 2007-2009 Chris AtLee <chris@atlee.ca> Licensed under the MIT license
          131  +
          132  +#### gluon.contrib.shell LICENSE
          133  +
          134  +Copyright (C) by Google inc. Apache 2.0 Lincense
          135  +
          136  +#### The javascript licenses are in the code itself
          137  +

Added Makefile version [72d1f69846].

            1  +clean:
            2  +	rm -f httpserver.log 
            3  +	rm -f parameters*.py 
            4  +	rm -f -r applications/*/compiled     	
            5  +	find ./ -name '*~' -exec rm -f {} \; 
            6  +	find ./ -name '#*' -exec rm -f {} \;
            7  +	find ./ -name 'Thumbs.db' -exec rm -f {} \; 
            8  +	find ./gluon/ -name '.*' -exec rm -f {} \;
            9  +	find ./gluon/ -name '*class' -exec rm -f {} \; 
           10  +	find ./applications/admin/ -name '.*' -exec rm -f {} \; 
           11  +	find ./applications/examples/ -name '.*' -exec rm -f {} \; 
           12  +	find ./applications/welcome/ -name '.*' -exec rm -f {} \; 
           13  +	find ./ -name '*.pyc' -exec rm -f {} \;
           14  +all:
           15  +	echo "The Makefile is used to build the distribution."
           16  +	echo "In order to run web2py you do not need to make anything."
           17  +	echo "just run web2py.py"
           18  +epydoc:
           19  +	### build epydoc
           20  +	rm -f -r applications/examples/static/epydoc/ 
           21  +	epydoc --config epydoc.conf
           22  +	cp applications/examples/static/title.png applications/examples/static/epydoc
           23  +tests:
           24  +	cd gluon/tests; ./test.sh 1>tests.log 2>&1 
           25  +src:
           26  +	echo 'Version 1.98.2 ('`date +%Y-%m-%d\ %H:%M:%S`')' > VERSION
           27  +	### rm -f all junk files
           28  +	make clean
           29  +	### clean up baisc apps
           30  +	rm -f routes.py 
           31  +	rm -f applications/*/sessions/*       
           32  +	rm -f applications/*/errors/* | echo 'too many files'
           33  +	rm -f applications/*/cache/*                  
           34  +	rm -f applications/admin/databases/*                 
           35  +	rm -f applications/welcome/databases/*               
           36  +	rm -f applications/examples/databases/*             
           37  +	rm -f applications/admin/uploads/*                 
           38  +	rm -f applications/welcome/uploads/*               
           39  +	rm -f applications/examples/uploads/*             
           40  +	### make admin layout and appadmin the default
           41  +	cp applications/admin/views/appadmin.html applications/welcome/views
           42  +	cp applications/admin/views/appadmin.html applications/examples/views
           43  +	cp applications/admin/controllers/appadmin.py applications/welcome/controllers
           44  +	cp applications/admin/controllers/appadmin.py applications/examples/controllers	
           45  +	### update the license
           46  +	cp ABOUT applications/admin/
           47  +	cp ABOUT applications/examples/
           48  +	cp LICENSE applications/admin/
           49  +	cp LICENSE applications/examples/
           50  +	### build web2py_src.zip
           51  +	echo '' > NEWINSTALL
           52  +	mv web2py_src.zip web2py_src_old.zip | echo 'no old'
           53  +	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
           54  +
           55  +mdp:
           56  +	make epydoc
           57  +	make src
           58  +	make app
           59  +	make win
           60  +app:
           61  +	echo 'did you uncomment import_all in gluon/main.py?'
           62  +	python2.5 -c 'import compileall; compileall.compile_dir("gluon/")'
           63  +	#python web2py.py -S welcome -R __exit__.py
           64  +	find gluon -path '*.pyc' -exec cp {} ../web2py_osx/site-packages/{} \;
           65  +	cd ../web2py_osx/site-packages/; zip -r ../site-packages.zip *
           66  +	mv ../web2py_osx/site-packages.zip ../web2py_osx/web2py/web2py.app/Contents/Resources/lib/python2.5
           67  +	cp ABOUT ../web2py_osx/web2py/web2py.app/Contents/Resources
           68  +	cp NEWINSTALL ../web2py_osx/web2py/web2py.app/Contents/Resources
           69  +	cp LICENSE ../web2py_osx/web2py/web2py.app/Contents/Resources
           70  +	cp VERSION ../web2py_osx/web2py/web2py.app/Contents/Resources
           71  +	cp README ../web2py_osx/web2py/web2py.app/Contents/Resources
           72  +	cp splashlogo.gif ../web2py_osx/web2py/web2py.app/Contents/Resources
           73  +	cp options_std.py ../web2py_osx/web2py/web2py.app/Contents/Resources
           74  +	cp routes.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources
           75  +	cp router.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources
           76  +	cp app.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources
           77  +	cp queue.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources
           78  +	cp -r applications/admin ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
           79  +	cp -r applications/welcome ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
           80  +	cp -r applications/examples ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
           81  +	cp applications/__init__.py ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
           82  +	cd ../web2py_osx; zip -r web2py_osx.zip web2py
           83  +	mv ../web2py_osx/web2py_osx.zip .
           84  +win:
           85  +	echo 'did you uncomment import_all in gluon/main.py?'
           86  +	python2.5 -c 'import compileall; compileall.compile_dir("gluon/")'
           87  +	find gluon -path '*.pyc' -exec cp {} ../web2py_win/library/{} \;
           88  +	cd ../web2py_win/library/; zip -r ../library.zip *
           89  +	mv ../web2py_win/library.zip ../web2py_win/web2py
           90  +	cp ABOUT ../web2py_win/web2py/
           91  +	cp NEWINSTALL ../web2py_win/web2py/
           92  +	cp LICENSE ../web2py_win/web2py/
           93  +	cp VERSION ../web2py_win/web2py/
           94  +	cp README ../web2py_win/web2py/
           95  +	cp splashlogo.gif ../web2py_win/web2py/
           96  +	cp options_std.py ../web2py_win/web2py/
           97  +	cp routes.example.py ../web2py_win/web2py/
           98  +	cp router.example.py ../web2py_win/web2py/
           99  +	cp app.example.yaml ../web2py_win/web2py/
          100  +	cp queue.example.yaml ../web2py_win/web2py/
          101  +	cp -r applications/admin ../web2py_win/web2py/applications
          102  +	cp -r applications/welcome ../web2py_win/web2py/applications
          103  +	cp -r applications/examples ../web2py_win/web2py/applications
          104  +	cp applications/__init__.py ../web2py_win/web2py/applications
          105  +	cd ../web2py_win; zip -r web2py_win.zip web2py
          106  +	mv ../web2py_win/web2py_win.zip .
          107  +run:
          108  +	python2.5 web2py.py -a hello
          109  +push:
          110  +	make src
          111  +	echo '' > NEWINSTALL
          112  +	hg push
          113  +	bzr push bzr+ssh://mdipierro@bazaar.launchpad.net/~mdipierro/web2py/devel --use-existing-dir
          114  +

Added README version [b3e52ddfca].

            1  +## INSTALLATION INSTRUCTION - IMPORTANT
            2  +
            3  +To start web2py there is NO NEED to install it. Just unzip and do:
            4  +
            5  +> python web2py.py
            6  +
            7  +Thats is it!!!
            8  +
            9  +## web2py file structure
           10  +
           11  +start web2py with:
           12  + 
           13  +   python web2py.py
           14  +
           15  +``
           16  +    \project
           17  +	README
           18  +	LICENSE
           19  +        TODO                               
           20  +        Makefile                   ## make all and make app
           21  +	web2py.py                  ## the startup script (*)
           22  +        parameters.py              ## created at startup 
           23  +        admin.tar                  ## the admin app (*)
           24  +        examples.tar               ## examples and documentation app (*)
           25  +        welcome.tar                ## the welcome app (entry point) (*)
           26  +	\gluon                     ## the core libraries (*)
           27  +        \deposit                   ## used for zip and install apps
           28  +        setup_app.py               ## used by py2app to make OSX executable
           29  +        setup_exe.py               ## used by py2app to make Winows executble
           30  +        wsgihandler.py             ## to use Gluon with mod_wsgi
           31  +        \dist                      ## used by py2app, py2exe
           32  +        \build                     ## used by py2app, py2exe
           33  +        \tests                     ## under development stuff
           34  +        \docs                      ## in progress documentation
           35  +	\applications              ## are the apps
           36  +		\welcome           ## application welcome, for example
           37  +			\models
           38  +			\views
           39  +			\controllers
           40  +			\sessions
           41  +			\errors
           42  +			\cache
           43  +			\static
           44  +                        \uploads
           45  +                        \modules
           46  +``
           47  +
           48  +## EWF v1.5 -> v1.6 
           49  +- load and save .py in ascii, avoids problem with LF+CR on windows
           50  +- added path.join in compileapp, fixed problem with Windows compileapp
           51  +
           52  +## EWF v1.6 -> v1.7
           53  +- in paths replace '\' with '/' to fix problem with windows paths
           54  +- using limitby in database administration
           55  +- replaced mime/miltupart with multipart/form-data to fix a windows problem
           56  +
           57  +## EWF v1.7 -> Gluon v1.0
           58  +- Name change 
           59  +- Improved layout.html
           60  +
           61  +## Gluon v1.0 -> v1.1
           62  +- bug in sqlhtml with JOINS queries
           63  +
           64  +## Gluon v1.1 -> v1.2
           65  +- fixed some typos in examples
           66  +- IS_IN_SET now supports labels
           67  +- cleanup in sql.py does not cleanup, just checks valid field and table names
           68  +
           69  +## Gluon v1.3
           70  +- added IS_IN_DB, IS_NOT_IN_DB and updated examples accordingly
           71  +
           72  +## Gluon v1.4
           73  +- 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.
           74  +- IS_IN_DB displays "label (id)"
           75  +- it can upload files without extension
           76  +- migration is now optional (define_table has migrate=False option)
           77  +
           78  +## Gluon v1.5
           79  +- <form> -> <form method="post"> in errors.html
           80  +- replace('//','////') in sub in template.py
           81  +
           82  +## Gluon v1.8
           83  +- no more chdir (thread unsafe)
           84  +- no more sys.stdout (thread unsafe)
           85  +- response.body is StringIO()
           86  +- admin/default/site informs about upgrade
           87  +- response.locker (optional)
           88  +
           89  +## Gluon v1.9
           90  +- allow "count(*)" in select
           91  +- db.execute()
           92  +- fixed problem with continue and return in template
           93  +- removed try: ... except in sql.py
           94  +- fixed '\t'
           95  +
           96  +## Gluon v1.10
           97  +- fixed concurrency problems with SQLDB._instances and SQLDB._folders, now use lock
           98  +- now, by default, edit SQLFORMs retain uploaded files
           99  +
          100  +## Gluon v1.11
          101  +- appadmin allows to keep or delete uploaded files
          102  +
          103  +## Gluon v1.12
          104  +- in sql.py 
          105  +- handles NULL values properly
          106  +- unicode support (data always stored in utf-8)
          107  +- 'date' -> datetime.date ,'time' -> datetime.time, 'datetime' -> datetime.datetime, 'boolean' -> True/False
          108  +- most types have default validators
          109  +- SQLField(...,required=True) option.
          110  +- SQLRows has __str__ that serializes in CSV and xml() that serializes in HTML
          111  +- SQLTable has import_from_csv_file(...)
          112  +- gluon.simplejson for AJAX
          113  +- in validators.py
          114  +- IS_IN_DB(db,..) -  db can be an SQLSet or an SQLDB
          115  +- better error messages
          116  +- in admin
          117  +- new import/export in csv, update and delete interface.
          118  +- in appadmin
          119  +- edit form allows to keep stored encrypted password
          120  +- in main.py
          121  +- http://host not defaults to http://host/init/default/index
          122  +- New third party modules
          123  +- gluon.simplejson(.dumps, .loads)
          124  +- gluon.pyrtf(.dumps)
          125  +- gluon.rss2(.dumps)
          126  +
          127  +## Gluon v1.13
          128  +- (this is one of the biggest revisions ever)
          129  +- Improved sql.py has support MySQL, cxOracle (experimental), extract, like and better testing
          130  +- SQLDB.tables and SQLTable.fields are now SQLCalableList objects
          131  +- Fixed bug with editing integer fields storing zero
          132  +- Admin interface now says "insert new [tablename]" and display insert, select or update properly in the title.
          133  +- Added a cache mechamism. Works for data, controllers, views and SQLRows.
          134  +- 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.
          135  +- Now you can put modules in applications/[anyapp]/modules and import them with
          136  +- import applications.[anyapp].modules.[module] as [module]
          137  +- Fixed problem with init
          138  +- New applications/examples/controller/global.py controller for docs.
          139  +
          140  +## Gluon v1.14
          141  +- Fixed a bug fix in URLs
          142  +
          143  +## Gluon v1.15
          144  +- New try:... except. in gluon/main.py for when sessions cannot be saved
          145  +- Now validator/formatter method allows IS_DATE('%d/%m/%Y')
          146  +
          147  +## web2py v1.16
          148  +- yes we changed the name! Turns out Gluon was trademarked by somebody else.
          149  +- Although we are not infringing the trademark since this is a non-commercial
          150  +- product we could have run into some issues. So we have been professional
          151  +- and changed the name to web2py.
          152  +- Now SQLFORMs and FORM can have a formname and multiple forms are allowed 
          153  +- per page.
          154  +- A new examples/default/index page.
          155  +- web2py.py instead of runme.py
          156  +- mysql sets utf8 encoding.
          157  +- input integer field values are automatically converted int().
          158  +
          159  +## web2py v1.17
          160  +- I posted v1.16 too soon. v1.17 was released after 1h to fix some bugs.
          161  +
          162  +## web2py v1.18
          163  +- removed vulnerability in accept_languages and session_id
          164  +- Minor bug fixes. Typos and cleanup cache. Textarea now clears.
          165  +- Support for PyAMF.
          166  +- T returns a class, not a string
          167  +- new template parser (faster?)
          168  +- got rid of sintaxhighlighter in favor of server side CODE
          169  +- fix problem with cacheondisk locking
          170  +- fix 'None' instead of NULL in IS_NOT_IN_DB (I think)
          171  +- gluon.contrib.markdown
          172  +- notnull and unique in SQLField now supported (tested on sqlite mysql and postgresql)
          173  +- Storage now has __getstate__ and __setstate__ needed for pickling.
          174  +- session files are now locked to make it work better with asynchronous requests
          175  +- cxoracle should work, apart for limitby
          176  +- .../examples is now mapped to .../examples/default/index etc.
          177  +- .../init is now mapped to .../welcome if init is not present
          178  +
          179  +## web2py 1.19
          180  +- minor typos
          181  +
          182  +## web2py 1.20
          183  +- new IFRAME, LABEL, FIELDSET validators 
          184  +- P(..cr2br=True) option
          185  +- FORM and SQLFORM have hidden=dict(...) option for REST
          186  +- testing framework.
          187  +- improved examples pages
          188  +
          189  +## web2py 1.21
          190  +- replaced paste.httpserver with cherrypy.wsgi server
          191  +- temporary sessions are no longer saved
          192  +- widget has [stop] button and graph
          193  +- logging is done by main by appfactory
          194  +- fixed a bug in sql belongs
          195  +
          196  +## web2py 1.22-1.25
          197  +- fixed minor bugs, added IS_NULL_OR
          198  +
          199  +## web2py 1.26
          200  +- added shell.py (thanks Limodou!)
          201  +- added memcache support
          202  +
          203  +## web2py 1.27
          204  +- IS_NULL_OR now works will all fields
          205  +- admin creates paths to static files
          206  +- wsgiserver options are passed to HttpServer
          207  +- faking limitby for oracle to make appadmin work
          208  +- all objects inherit from object
          209  +- fixed bug in app names with .
          210  +- fixed bug in created RestrictedError object on windows
          211  +- shell is now in gluon and accessible via web2py.py
          212  +
          213  +## web2py 1.28
          214  +- fixed bug with belongs, faster sql.py
          215  +- included jquery.js
          216  +- minor aestetical fixes
          217  +- sortable.js is gone
          218  +
          219  +## web2py 1.29
          220  +- Now selet mutliple works with get, so does is IS_LENGTH
          221  +- Added IS_LIST_OF
          222  +- fixed problem with admin from windows and localhost
          223  +
          224  +## web2py 1.30
          225  +- added flv to contenttype
          226  +- added support for appengine
          227  +
          228  +## web2py 1.31-1.41
          229  +- some bug fixes, mostly better appengine support
          230  +- mssql support
          231  +- firebird support
          232  +- widgets support
          233  +- connection pools
          234  +
          235  +## 1.42
          236  +- fixed security issue by removing slash escape in mysql
          237  +- removed random everywhere
          238  +- use uuid for session and tickets
          239  +- use http_x_forward_for to figure out the client causing a ticket
          240  +- use longtext and longblob for mysql
          241  +- main now really catches all exceptions
          242  +- no more warnings on GAE
          243  +
          244  +## 1.43-1.48
          245  +- html.py rewrite (better support for custom forms) (Bill Ferrett)
          246  +- new stickers in examples (thanks Mateusz)
          247  +- on windows can run in taskbar (Mark Larsen)
          248  +- in admin|edit page link to edit|controller (Nathan Freeze)
          249  +- better error codes and routes_onerror (Timothy Farrell)
          250  +- DAL support for groupy and having
          251  +- DAL support for expressions instead of values
          252  +- DAL has experimental Informix support
          253  +- fixed bug with non-printable chars in DAL
          254  +- 'text' fields limited to 2**16 (to avoid mysql problems)
          255  +- widget has -quiet and -debug (Attila Csipa)
          256  +- web2py_session uses BLOB instead of TEXT
          257  +- improved IS_URL
          258  +- Runs with python 2.6 (Tim)
          259  +- On GAE uses GAE for static files (Robin)
          260  +
          261  +
          262  +## 1.49
          263  +- fixed a bug with taskbar widget, thanks Mark
          264  +- fixed a bug with form.latest
          265  +- made many DIV methods private (_)
          266  +
          267  +
          268  +## 1.50
          269  +- Fixed some bugs introduced in 1.49
          270  +
          271  +## 1.51
          272  +- Fixed more bugs introduced in 1.49 (sql _extra and html select)
          273  +- support for sqlite:memory:
          274  +
          275  +## 1.52
          276  +- Fixed a minor bug with _extra[key] and key not str.
          277  +- check for upgrade via ajax
          278  +
          279  +## 1.53
          280  +- On GAE upload data goes automatically in datastore (blob created automatically)
          281  +- New appadmin runs on GAE (most of it, not all)
          282  +- Martin Hufsky patch allow slicing of fields in DAL expressions
          283  +
          284  +## 1.54
          285  +- fixed minor bugs
          286  +
          287  +## 1.55?
          288  +- rowcount
          289  +- fixed bug when IS_IN_DB involved multiple fields on GAE
          290  +- T.set_current_languages
          291  +- better unittests
          292  +- response.custom_commit and response.custom_rollback
          293  +- you can next cache calls (like cache a controller that caches a select). Thanks Iceberg
          294  +- db(....id==None).select() no longer returns an error but an empty SQLRows on GAE
          295  +- db(...).delete(delete_uploads=True) and SQLFORM.accepts(....delete_uploads=True) will delete all referenced uploaded files
          296  +- DIV.element and DIV.update
          297  +- sqlrows.json()
          298  +- SQLFORM.widgets
          299  +- URL(r=request,args=0)
          300  +- IS_IN_DB(...,multiple=True) for Many2Many (sort of)
          301  +- In URL(...,f) f is url encoded
          302  +- In routes_in=[['a/b/c/','a/b/c/?var=value']]
          303  +- simplejson 2.0.7
          304  +
          305  +
          306  +## 1.56
          307  +- Consider the following table:
          308  +
          309  +- db.define_table('cirlce',
          310  +-    db.Field('radius','double'),
          311  +-    db.Field('area','double'),
          312  +-    db.Field('modified_on','datetime'))
          313  +
          314  +- now you can do:
          315  +
          316  +##  add a comment in the forms
          317  +- db.circle.area.comment="(this is a comment)"
          318  +
          319  +##  do not show area in create/edit forms
          320  +- db.circle.area.writable=False
          321  +
          322  +-  ##  do not show now in display forms
          323  +- db.circle.modified_on.readable=False
          324  +
          325  +##  automatically timestamp when record cretaed
          326  +- db.circle.modified_on.default=request.now
          327  +
          328  +##  automatically timestamp when record is modified
          329  +- db.circle.modified_on.update=request.now
          330  +
          331  +##  make the radius appear in bold in display and table
          332  +- db.circle.radius.represent=lambda value: B(value)
          333  +
          334  +##  make a form that automatically computes area
          335  +- pi=3.1415
          336  +- form=SQLFOM(db.circle)
          337  +- if form.accepts(request.vars,
          338  +- onvalidation=lambda form: form.vars.area=pi*form.vars.radius**2): ...
          339  +
          340  +##  make a create form in two possible ways:
          341  +- form=SQLFORM(db.circle)
          342  +- form=SQLFORM(db.circle,0)
          343  +
          344  +##  make an update form in two possible ways:
          345  +- form=SQLFORM(db.circle,record)
          346  +- form=SQLFORM(db.circle,record_id)
          347  +
          348  +##  make a display form in two possible ways:
          349  +- form=SQLFORM(db.circle,record,readonly=True)
          350  +- form=SQLFORM(db.circle,record_id,readonly=True)
          351  +
          352  +##  so now you can do...
          353  +
          354  +- form=SQLFORM(db.circle,request.args[-1])
          355  +
          356  +- and you get a create form if the URL ends in /0, you get an update
          357  +- form if the URL ends in /[valid_record_id]
          358  +
          359  +## you can also define once for all
          360  +
          361  +- timestamp=SQLTable(None,'timestamp',
          362  +-             SQLField('created_on','datetime',
          363  +-                           writable=False,
          364  +-                           default=request.now),
          365  +-             SQLField('modified_on','datetime',
          366  +-                           writable=False,
          367  +-                           default=request.now,update=request.now))
          368  +
          369  +## and use it in all your tables
          370  +
          371  +- db.define_table('mytable',db.Field('somefield'),timestamp) 
          372  +
          373  +## ## ## 
          374  +
          375  +- One more feature in trunk....
          376  +
          377  +-     db.define_table('image',SQLField('file','upload'))
          378  +
          379  +-     db.image.file.authorize=lambda row: True or False
          380  +
          381  +- then controller
          382  +-     def download(): return response.download(request,db)
          383  +- id' is now a hidden field sqlform
          384  +- gql references converted to long
          385  +- admin login has autofocus
          386  +- new notation proposed by Robin, db.table[id]
          387  +- new UploadWidget shows images
          388  +- new generic.html shows request, response, session
          389  +- new LEGEND helper (thanks Marcus)
          390  +- fixed doctests in sql (thanks Robin)
          391  +- new notation for DB
          392  +
          393  +- record=db.table[id]
          394  +- db.table[id]=dict(...)
          395  +- del db.table[id]
          396  +
          397  +- request.env.web2py_version
          398  +- new class gluon.storage.Settings has lock_keys, lock_values
          399  +- jquery 1.3.1
          400  +- PEP8 compliance
          401  +- new examples application
          402  +- runs on jython (no database drivers yet, thanks Phyo)
          403  +- fixed bugs in tests
          404  +- passes all unittest but test_rewite (not sure it should pass that one)
          405  +
          406  +- 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)
          407  +
          408  +## 1.56.1-1.56.4
          409  +- fixing lots of small bugs with tool and languages
          410  +- jquery.1.3.2
          411  +
          412  +## 1.57
          413  +- New ajax edit with keepalive (no longer logged out when editing code)
          414  +- Fixed conflict resolution page.
          415  +- Removed /user/bin/python from models/controllers
          416  +
          417  +## 1.58
          418  +- Fixed some CRON bugs
          419  +- Fixed a bug with new ajax edit
          420  +- Experimental DB2 support in DAL
          421  +- Customizable font size in admin edit page
          422  +- New welcome/models/db.py shows how to memcache sessions on GAE with MEMDB
          423  +- More expressive titles in admin
          424  +- DB2 support. Thanks Denes!
          425  +
          426  +## 1.59-1.60
          427  +- fixed lots of small bugs
          428  +- routes_in can filter by http_host
          429  +
          430  +## 1.61
          431  +- fixed some typos
          432  +- auth.add_permissions(0,....) 0 indicates group of current user
          433  +- crud.update has deletable=True or False
          434  +- fixed issue with GAE detection -> gluon.settings.web2py_runtime -> request
          435  +
          436  +## 1.62
          437  +- SQLFORMS and crud now show readble fields
          438  +- Better WingIDE support
          439  +- Languages are automatically translated
          440  +- T.force and lazyT works better, optional T.lazy=False
          441  +- gluon.storage.Messages are now translated without T
          442  +- if routes.py then request.env.web2py_original_uri
          443  +- db.table.field.isattachment = True
          444  +- internationalizaiton of admin by Yair
          445  +- admin.py by Alvaro
          446  +- new MENU helper
          447  +- new w2p file format
          448  +- new welcome app with auth, service and crud turned on
          449  +
          450  +## 1.63-1.63.4
          451  +- no more import gluon.
          452  +- support for generic.xxx
          453  +- simplejson can handle datetime date and time
          454  +
          455  +## 1.63.5
          456  +- You can do jQuery.noConflict() without breaking web2py_ajax
          457  +- Wigets can have attributes (thanks Hans)
          458  +- Lots of internal cleanup and better code reusage (thanks Hans)
          459  +
          460  +## 1.64
          461  +- Models 2-3 times faster (thanks Alexey)
          462  +- Better LDAP support
          463  +- Works with Jython (including sqlite and postgresql with zxJDBC):
          464  +
          465  +-   download jython-2.5rc3.jar
          466  +-   download qlite-jdbc-3.6.14.2.jar
          467  +-   java -jar jython-xxx.jar
          468  +-   export CLASSPATH=$CLASSPATH:/Users/mdipierro/jython2.5rc3/sqlite-jdbc-3.6.14.2.jar
          469  +-   cd web2py
          470  +-   ../jython2.5rc3/jython web2py.py
          471  +
          472  +## 1.64.2
          473  +- New IS_COMPLEX validator, thank Mr. Freeze
          474  +- Experimental Informix support
          475  +- Autologin on registration
          476  +
          477  +## 1.64.3
          478  +- Some bug fixes
          479  +
          480  +## 1.64.4
          481  +- Som bug fixes
          482  +- Informix Support
          483  +- response.render(stream)
          484  +- SQLFORM.factory
          485  +- SQLFORM.widgets.radio and SQLFORM.widgets.checkboxes
          486  +
          487  +## 1.65
          488  +- reST docstrings for Sphinx, thanks Hans
          489  +- gluon/conrtib/login_methods/gae_google_account.py for google CAS login on GAE, thanks Hans
          490  +- fixed problem with Auth and Firebird 'password' issue
          491  +- new auth.settings.create_user_groups
          492  +- tickets stored on datastore on GAE and also logged, thanks Hans
          493  +- imporved IS_LENGTH with max and min, thanks Mateusz
          494  +- improved IS_EMAIL with filters, thanks Mateusz
          495  +- new IS_IMAGE checks for format and size, thanks Mateusz
          496  +- new IS_IPV4, thanks Mateusz
          497  +
          498  +## 1.65.1
          499  +- spreadsheet
          500  +- shell history, thanks sherdim
          501  +- crontab editor, thanks Angelo
          502  +- gluon/contrib/login_methods/cas_auth.py (thanks Hans)
          503  +- DAL(...) instead of SQLDB(...)
          504  +- DAL('gae') instead of GQLDB()
          505  +- Field instead of SQLField
          506  +- (the old syntax still works)
          507  +
          508  +## 1.65.2
          509  +- Fixed some small auth bugs
          510  +- Field.store(...)
          511  +
          512  +## 1.65.3-10
          513  +- Fixed some small bugs and typos in the docstrings
          514  +- Fixed AMF3 support
          515  +
          516  +## 1.65.11
          517  +- Fixed a sqlhtml bug with image upload
          518  +
          519  +## 1.65.12
          520  +- lables in auth auto-translate (thanks Alvaro)
          521  +- better ldap_auth (thanks Fran)
          522  +- auth chacks locally for blocked accounts even for alternate login methods (thanks Fran)
          523  +
          524  +## 1.65.13
          525  +- request.url (thanks Jonathan)
          526  +- restored uploadfield_newfilename
          527  +- new examples layout nad logo (thanks Mateusz)
          528  +
          529  +## 1.66
          530  +- new doctypes
          531  +- form.vars.newfilename
          532  +- new HTML and XHTML helpers
          533  +- better IS_LENGTH
          534  +
          535  +## 1.67.0
          536  +- Python 2.4 support (again)
          537  +- New layout for welcome
          538  +- changed defauld field sizes to 512
          539  +- Field(uploadfolder="...")
          540  +- appadmin works on GAE (again, somehting got broken at some point)
          541  +- new wsgiserver 3.2.0 should fix recurrent broken download problems
          542  +
          543  +## 1.67.1
          544  +- Bux fixed
          545  +
          546  +## 1.67.2
          547  +- Security fix in markdown
          548  +
          549  +## 1.68.1
          550  +- New official markdown with security fix
          551  +- rows.first()
          552  +- rows.last()
          553  +- New cron
          554  +- New hindi and spanish translation
          555  +- cached uploads allow for progress bars (thanks AndCycle)
          556  +- ingres support (thanks Chris)
          557  +- legacy database support for db2, mssql with non-int primary keys (thanks Denes)
          558  +- default setting of content-type (this may cause strange behavior in old apps when downloading images)
          559  +- IS_UPPER and IS_LOWER works with unicode
          560  +- CLENUP not takes regex of allowed/now allowed chartares
          561  +- New rewrite.py allows dynamic routes
          562  +- Better error messages for IS_INT_* and IS_FLOAT_*
          563  +
          564  +## 1.68.2
          565  +- Fixing bug with admin and missing crontab
          566  +- Fixing bug with rewrite.load on GAE (thanks Willian Wang)
          567  +
          568  +## 1.69.1
          569  +- Fixed a bug introduced in 1.68 about inserting unicode in DAL
          570  +- Fixed other small bugs
          571  +- Better support for legacy databases (thank Denes)
          572  +- response.meta replaces response.author, response.keywords, response.description
          573  +- response.files stets dependes in plugins
          574  +- better admin for packing/unpacking plugins
          575  +- reference fiels nor evaluate to DALRef with lazy evaluation (cool, thanks Mr Freeze)
          576  +- can insert a record in place of a reference
          577  +- record[e] instead of record._extra[e] (tentatively!)
          578  +- record.update_record() with no args
          579  +- rows.find()  (thanks Mr Freeze)
          580  +- rows.exclude()
          581  +- rows.sort()
          582  +- rows[:]
          583  +
          584  +## 1.70.1
          585  +- Fixed bug with Rows.as_list and DALRef
          586  +- Added Rows.as_dict (thanks Mr Freeze and Thedeus)
          587  +- Added request.wsgi (thanks hcvst) allows running wsgi apps under web2py and applying wegi middleware to regular web2py actions that return strings.
          588  +- Experimental distributed transactions between postgresql, mysql and firebird
          589  +- Finally local_import is here!
          590  +
          591  +## 1.71.1
          592  +- Complete rewrite of Rows
          593  +- renamed DALStorage->Rows, DALRef->Reference
          594  +- Experimental serializarion of Row and Rows (get serialized to dict and list of dict)
          595  +- DAL(...,folder) and template.render(content=, context=) make it more modular
          596  +
          597  +## 1.72.1 - 1.72.3
          598  +- Better support for legacy databases
          599  +
          600  +## 1.73.1
          601  +- Fixed problem with storage and comparison of Row objects
          602  +- Fixed problem with mail on GAE
          603  +- Fixed problem with T in IS_DATE(TIME) error_message and format
          604  +- Rows[i].delete_record()
          605  +- Even better support for legacy databases
          606  +- Experimantal support for non UTF8 encoding in DB
          607  +- Better IPV4 (thanks Thandeus)
          608  +- T.current_languages default to 'en' and new T.set_current_languages(...) (thanks Yarko)
          609  +- INPUT(...,hideerror=False) used to fix rare chechbox widget problem
          610  +- Admin allows change of admin password
          611  +- New gluon/contrib/populate.py
          612  +- Size of input/textarea set by CSS no more by jQuery  (thanks Iceberg)
          613  +- Customizable CSV  (thanks Thandeus)
          614  +- More bug fixed (thanks Thandeus)
          615  +- Better regex for template fixed Jython problem (thank Jonathan)
          616  +
          617  +## 1.74.1
          618  +- Moved to mercurial
          619  +- Default validators use the new define_table(....,format='...')
          620  +- New get_vars and post_vars compatible in 2.5 and 2.6 (thanks Tim)
          621  +- Major rewrite of gql.py extends DAL syntax on GAE
          622  +- No more *.w2p, welcome.w2p is create automatically, base apps are always upgraded
          623  +- export_to_csv(delimiter = ',', quotechar = '"', quoting = csv.QUOTE_MINIMAL), thanks Thadeus 
          624  +
          625  +## 1.74.2-4
          626  +- Fix bugs including including unicode in emails and blobs on GAE
          627  +
          628  +## 1.74.5
          629  +- bug fixes
          630  +- restored python 2.4 support,thanks ont.rif
          631  +- support for native types on Google App Engine
          632  +- cache.ram usage statictics, thanks Thadus
          633  +- no more auth manu in scaffolding
          634  +- no more spash screen with -Q
          635  +- fixed doctest in html.py, thanks Anand Vaidya
          636  +- export_to_csv_file has represent, thanks Thadeus
          637  +
          638  +## 1.74.6
          639  +- bug fixes
          640  +- IS_IN_DB(...,_and=IS_NOT_IN_DB)
          641  +- Smaller populate, thanks Piotr
          642  +- better slicing of fields, thanks Michael Fig
          643  +- Cache stats, thanks Thadeus
          644  +- Better gql.py
          645  +- IS_IN_DB and IS_IN_SET default to zero='', no longer zero=None
          646  +
          647  +## 1.74.7
          648  +- request_password_reset and password reset verification
          649  +- python web2py.py -S app -M -R script.py -A arg1 arg2 arg3
          650  +- T("%(a)s") % dict(a="hello")
          651  +
          652  +## 1.74.8
          653  +- IS_SLUG, thanks Gustavo and Jonathan
          654  +- web2py.py -nogui, thanks Jeff Bauer
          655  +- solved a problem with jython, thanks Tim Farrel
          656  +- login has "remember be option", thanks Piotr Banasziewicz
          657  +- fixed problem with keepvalue in update forms, thanks Miguel Lopez
          658  +
          659  +## 1.74.9
          660  +- IS_IN_SET(((0,'label0'),(1,'label1'))), thanks Falko Krause
          661  +- SQLFORM(...).accpets stores True or False in boolean types no None, thanks Frederik Wagner
          662  +- SQLFORM.factory(...,table_name='no_table'), thanks Thedeus
          663  +- jQuery 1.4.1
          664  +- Fixed major problem with internationalization of multiple languages.
          665  +- Fixed a serius security issue with login
          666  +- Possibly fixed some issues with cron
          667  +
          668  +## 1.75.1
          669  +- better cron
          670  +- better fetch
          671  +- logging of email failures
          672  +- new web2py.fedora.sh
          673  +- new setup-web2py-ubuntu.sh
          674  +- experimental autocomplete
          675  +- menus work on IE6
          676  +
          677  +## 1.75.2
          678  +- fetch supports cache
          679  +- curd.update(....,onaccept=crud.archive) magic
          680  +- new UUID mechnism fixes session conflicts with cloned machine in cloud
          681  +- allow to upload app and overwrite existing old ones, thanks Jonathan
          682  +- print gluon.tools.prettydate(request.now,T), thanks Richard
          683  +
          684  +## 1.75.3
          685  +- added support for PAM authentican for apps and for admin
          686  +- INTRODUCED MAJOR BUG IN BEAUTIFY (upgrade to 1.75.4) IMMEDIATELY
          687  +
          688  +## 1.75.4
          689  +- customizable BEAUTIFY, thanks John
          690  +
          691  +## 1.75.5
          692  +- fixed behaviour with languages.py, thanks Iceberg
          693  +- added chinese (thanks Iceberg) and Hungarian (thanks Gyuris)
          694  +- fixed problem with GAE deleted by id (thanks what_ho)
          695  +- fixed bug in LOAD with custom views, thanks vhang
          696  +- improved IS_IN_SET takes iterator, dict, list and list of tuples, thanks Iceberg
          697  +- Auth(...,controller='default')
          698  +- Fixed major bug in parsing repeated request.vars, thanks Ben
          699  +- IS_DATE and IS_DATETIME can now handle any 0<year
          700  +- allow to disable editarea onload, thanks Alex
          701  +
          702  +## 1.76.1
          703  +- editarea 0.8.2 + zencoding
          704  +- new (better) cron locking meachnism
          705  +- no storing session cookies on session.forget(), thank you Alvaro
          706  +- routes_apps_raw allows disabling of request.args validation, thanks Jonathan and Denes
          707  +- fixed problem with edit_languages ad multiple tabs, thanks Iceberg
          708  +- crud captcha, thanks you Nathan
          709  +- softcron disabled by default in wsgihandler and fcgihandler
          710  +
          711  +## 1.76.2-1.76.3
          712  +- major fix in cron (will I ever get this 100% right?)
          713  +- fix in delete for GAE
          714  +- auth.settings.login_captcha and auth.settings.register_captcha
          715  +- crud.settings.create_captcha and  crud.settings.update_captcha
          716  +- automatic update button in admin 
          717  +
          718  +## 1.76.4
          719  +- SQLTABLE(db(db.auth_user.id>0).select(),headers='fieldname:capitalize')
          720  +- Oracle limitby improved (thanks Sergey)
          721  +- fixed migrations in Firebird, thanks Jose Jachuf
          722  +- gluon/contrib/login_methods/linkedin_account.py (to be tested)
          723  +
          724  +## 1.76.5
          725  +- Fixed a typo in auth that created some registration problems
          726  +
          727  +## 1.77.1
          728  +- Replaced CherryPy with Rocket web server, thanks Tim
          729  +- CacheOnDisk allows to specify a folder
          730  +- IS_DATE/DATETIME can handle any year since 0
          731  +- SQLTABLE(...,headers='fieldname:capitalize')
          732  +- Field().with_alias, thanks Nathan and Mengu
          733  +- has_membership(group=...,role=...), thank Jonathan
          734  +- db.define_table(username=True), thanks Jonathan
          735  +- gluon.tools.prettydate
          736  +- can specify hostname in routes_out (same syntax as routes in), thanks Martin
          737  +- db.table.bulk_insert([...records...]) now works on GAE, thanks Jon
          738  +- IS_EMAIL validates on 'localhost', thanks Jonathan
          739  +- welcome/views/layout.html uses ez.css, thanks Yarko
          740  +- mail attachments support utf8, thanks szimszon
          741  +- works with PyPy, thanks Joe
          742  +- better Firebird support, thanks Jose
          743  +- better Oracle support, thanks Gabriele
          744  +- cron supports days of week
          745  +- SQLFORM(...,formstyle="table3cols") or "table2cols" or "divs" or "ul"
          746  +- crud.settings.formstyle
          747  +- web2py.py -f folder allows to specify locations of applications, thanks Iceberg
          748  +- better/faster regex in template works in Jython
          749  +- fixed lots of small bugs
          750  +
          751  +## 1.77.2
          752  +- fixed x-index in calendar
          753  +## 1.77.3
          754  +- some cleanup of code in compileapp
          755  +
          756  +## 1.78.1
          757  +- new template system allows {{block name}}{{end}}, thanks Thadeus
          758  +- fixed mime headers in emails, included PGP in emails, thanks Gyuris
          759  +- automatic database retry connect when pooling and lost connections
          760  +- OPTGROUP helper, thanks Iceberg
          761  +- web2py_ajax_trap captures all form submissions, thank you Skiros
          762  +- multicolumn checkwidget and arbitrary chars in multiple is_in_set, thanks hy 
          763  +- Québécois for welcome, thanks Chris
          764  +- crud.search(), thanks Mr Freeze
          765  +- DAL(...migrate,fake_migrate), thanks Thadeus
          766  +
          767  +## 1.78.3
          768  +- reverted temporarily to old template system because of backward compatibility issues
          769  +
          770  +## 1.79.1
          771  +- x509 emails, thanks Gyuris
          772  +- attachment and html in Mail on GAE, thanks PanosJee
          773  +- fixed docstring in SQLTABLE, thanks aabelyakov
          774  +- TAG(html) parese html into helpers (experimental, still some problems with unicode, , thanks RobertVa for unicode help)
          775  +- DIV.elements(find=re.compile(....))
          776  +- DIV.flatten()
          777  +- DIV.elements('....') supports jQuery syntax in '....'
          778  +- better it-it.py and it.py, thanks Marcello Della Longa
          779  +- Many Bug fixes:
          780  +- improved support for DAL and joins in postgresql/oracle, thanks Nico de Groot
          781  +- bux fixex in html.py, thanks Ian
          782  +- fixed an issue with registration_key==None, thanks Jay Kelkar
          783  +- fixed bug in gql.py, thanks NoNoNo
          784  +- fixed problem with multiple and checkboxes, thanks MIchael Howden
          785  +- fixed bug in gae, thanks NoNoNo
          786  +- restored 2.4 compatibility, thanks Paolo Gasparello
          787  +- auth.update() when pictures in profile
          788  +- formstyle can be a function, thanks Howden
          789  +- escape in sanitizer, thanks Howes
          790  +- add missing settings, thanks Hamdy
          791  +- find and exclude return empty Rows instead of [], thanks iceberg
          792  +- simplejson 2.1.1 should fix compatibility problems
          793  +- added sms_utils and Authorize.net in contrib
          794  +
          795  +## 1.79.2
          796  +- solved simplejson imcompatibility problem
          797  +
          798  +## 1.80.1
          799  +- MARKMIN helper (no backward compatibility promise yet)
          800  +- self._last_reference, thanks Dave (no backward compatibility promise yet)
          801  +- IS_EQUAL_TO
          802  +- zh-tw and better internationalization page, thanks Daniel Lin and Iceberg
          803  +- better crud.search, thanks MrFreeze
          804  +- Rocket interfaces, thanks Nik Klever
          805  +- db.table.field.uploadseparate=True, thanks Gyuris
          806  +- SCOPE_IDENITY for MSSQL, thanks Jose
          807  +- fixed email attachment issue, thanks Bob_in_Comox
          808  +- fixed problem with groupby and IS_IN_DB
          809  +- other bug fixes
          810  +- new implementation for local_import
          811  +- ajax(..,...,null)
          812  +- fixed Chrome bug in calendar.js, thanks Iceberg
          813  +- experimental scrips/web2py-setup-fedora.sh
          814  +- generic.load, thanks Iceberg
          815  +
          816  +## 1.81.1
          817  +- rpx (janrain) support out of the box, allows login with Facebook, MySpace, etc. Thanks Mr Freeze
          818  +- Increased security (escape  single and double quotes, thanks Craig"
          819  +- Fixed a bug with db.table.field.uploadseparate=True and autodelete
          820  +- New welcome app with superfish and jQuery 1.4.2
          821  +- Deleted openwysiwyg from admin
          822  +- In XML and xmlescape quote defaults to True. Both ' and " are escaped. Thanks Craig Younkins
          823  +
          824  +## 1.81.2
          825  +- fixed bug in Auth
          826  +
          827  +## 1.81.3
          828  +- fixed bug in label names in formstyle
          829  +- fixed id names in admin test.html page
          830  +
          831  +## 1.81.4
          832  +- Fixed gluon.tools to work work with load and base.css to nowrap labels
          833  +
          834  +## 1.81.5
          835  +- 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).
          836  +
          837  +## 1.82.1
          838  +- request.ajax to detect if action is called via ajax, tahnks Jonathan and David Mako
          839  +- more captcha options, thanks Vidul
          840  +- openid and oauth2 thanks Michele and Keith
          841  +- better PluginManager and load components
          842  +- new template system, thanks Thadeus
          843  +- new db.table(id,[field=value]) and db.table(query) syntax
          844  +- URL('index') (no more r=request), thanks Thadeus
          845  +- mail.send(message='<html>...</html>', ....)
          846  +- DAL([....]) for load balancing
          847  +- @service.soap(...) with mysimplesoap, thanks Mariano
          848  +- hideerror
          849  +
          850  +## 1.83.1
          851  +- New error reporting mechanism (thanks Mariano)
          852  +- New routing system with app level routing (thanks Jonathan)
          853  +- Integrated GAE appstat and GAE precompilation (thanks Scott)
          854  +- New Field types "list:string", "list:integer", "list:reference"
          855  +- request.cid, request.ajax, A(cid=request.cid), response.js
          856  +
          857  +## 1.83.2
          858  +- mostly cleanup
          859  +
          860  +## 1.84.1-4
          861  +- flash now stays put in the top right corner
          862  +- improved behavior for URL and T objects
          863  +- new app level logging with logging.conf (thanks Jonathan)
          864  +- improved OpenID (thanks Michele)
          865  +- web2py_ajax handles prepend, append, hide (thanks Juris)
          866  +- web2py_ajax also handels pre-validation of decimal fields
          867  +- ru-ru translation (thanks Michele)
          868  +- sk-sk translation (thanks Julius)
          869  +- migrations save .table only if changed and after each ALTER TABLE (no more mysql inconsistencies)
          870  +- fixed bugs in SQLCustomField, Field(default=...), IS_IMAGE, IS_DECIMAL_IN_RANGE and a few more.
          871  +- Better validators (IS_DECIMAL_IN_RANGE, IS_INT_IN_RANGE, etc) thanks Jonatham
          872  +- Polymmodel support on GAE
          873  +- Experimental ListWidget
          874  +- moved DAL and routes to thread.local (thanks Jonathan, again)
          875  +- scripts/extract_mysql_models.py, thanks Falko Krause and Ron McOuat 
          876  +- scripts/dbsessions2trash.py, thanks Scott
          877  +
          878  +## 1.85.1-3
          879  +- fixed some bugs
          880  +- added pyfpdf, thank Mariano
          881  +
          882  +## 1.86.1-1.86.3
          883  +- markmin2latex 
          884  +- markmin2pdf
          885  +- fixed some bugs
          886  +- Storage getfirst, getlast, getall by Kevin and Nathan
          887  +- db(db.table), db(db.table.id) both suported and equivalent to db(db.table.id>0)
          888  +- postresql ssl support
          889  +- less un-necessary logging and warnings on GAE
          890  +- IS_DECIMAL_IN_RANGE and IS_FLOAT_IN_RANGE support dot="," (dot="." is default)
          891  +- on_failed_authorization can be a function, thanks Niphold
          892  +- gluon/contrib/login_methods/cas_auth.py for integration between CAS and Auth.
          893  +
          894  +## 1.86.3
          895  +- Error reporting on save, thanks Mariano
          896  +recalled
          897  +
          898  +## 1.87.1-2
          899  +- new layout for examples, thanks Bruno and Martin
          900  +- admin allow ``DEMO_MODE=True`` and ``FILTER_APPS=['welcome']``
          901  +- fixed a possible problem with CRON and paths
          902  +
          903  +
          904  +## 1.87.3
          905  +- fixed a major bug introduced in 1.87.1 that prevents appadmin from working for new apps created with 1.87.1-2.
          906  +- upgraded to clockpick 1.28, thanks villas
          907  +
          908  +## 1.88.1-2
          909  +- better list: string support, thanks Bob
          910  +- jquery 1.4.3
          911  +- scripts/autoroutes.py
          912  +- new admin wizard
          913  +- added retrieve_username to navbar (if username)
          914  +- internal rewrite for arbitrary paths (abspath), thanks Jonathan
          915  +- populate support for list: and decimal, thanks Chirstian
          916  +- markmin2latex has extra attribute
          917  +- better mercual admin allows list of files, versions and retrieve
          918  +- new error report system, thanks Thadeus and Selecta
          919  +- SQLFORM.accepts(detect_record_change).record_changed
          920  +- fixed cron for bytecode compiled apps, thanks Álvaro J. Iradier Muro
          921  +- other bugs fixes and pep8 compliant fixes
          922  +
          923  +## 1.89.1-.5
          924  +- new admin layout (thanks Branko Vukelic)
          925  +- new admin search
          926  +- new admin language selector (thanks Yair)
          927  +- new Welcome app (thanks Martin Mulone)
          928  +- better wizard
          929  +- admin support for DEMO_MODE=True
          930  +- admin exposes GAE deployment button (always)
          931  +- MENU support None links (thanks Michael Wolfe)
          932  +- web2py.py -J for running cron (thanks Jonathan Lundell)
          933  +- fixed ~db.table.id on GAE (thanks MicLee)
          934  +- service.jsonrpc supports service.JsonRpcException (thanks Matt)
          935  +- bug fixes
          936  +
          937  +## 1.90.1
          938  +- new DAL (complete rewrite of the web2py DAL is more modular)
          939  +- rewrite has fail safe reload, thanks Jonathan
          940  +- better CAS with v2 support, thanks Olivier ROCH VILATO
          941  +- better markmin2latex
          942  +- session.connect(separate=True) to handle many session files, thanks huaiyu wang
          943  +- changed bahvior of impersonate (more secure, can generate form or used as API)
          944  +- new rocket, thanks Tim
          945  +- new pyfpdf
          946  +- no more old style classes
          947  +- experimental couchdb support in new dal (only insert, select, update by id)
          948  +- mysql support out of the box via pymysql
          949  +- SQLITABLE(...,headers='labels') thanks Bruno
          950  +- optional: digitally signed URLs, thanks Brian Meredyk
          951  +- minor bug fixes
          952  +
          953  +## 1.90.2-4
          954  +- pymysql no longer requires ssl (if not used)
          955  +- fixed bug with virtualfields
          956  +- fixed bug in truncate (new dal)
          957  +- fixed bug in select with alternate primary key (new dal)
          958  +- fixed bug with IS_IN_DB and self refences (also new dal)
          959  +
          960  +## 1.90.5
          961  +- set poll = False in rocket because of poll python thread bug often unfixed, thanks Jonathan
          962  +- fixes issue with crud and reCaptcha
          963  +
          964  +## 1.90.6
          965  +- fix issue with pickling new dal Row and Rows.
          966  +
          967  +## 1.91.1
          968  +- LICENSE CHANGE FROM GPLv2 to LGPLv3
          969  +- URL(...,hash_vars=...) allows to specify which vars need to be signed
          970  +- fixed bug with aliasing in new DAL
          971  +
          972  +## 1.91.2-1.91.5
          973  +- fixed a problem with deplyment on GAE
          974  +- other new dal bug fixes
          975  +
          976  +## 1.91.6
          977  +- web2py comet via gluon/contrib/comet_messaging.py (html5 websockets) experimental
          978  +- fixed problem with services (broken in 1.91.5), thanks Vollrath
          979  +- customizable uploadwidget, thanks Fran
          980  +- fixed problem with mail unicode support, thanks Richard
          981  +- fixed problem with linkto=None and references fields in SQLTABLE, thanks villas
          982  +- no more upgrade button on windows since does not work
          983  +- better remember-me login, thanks Martin Weissenboeck
          984  +- support for recatcha options
          985  +- support for GAE namespaces via DAL('gae://namespace')
          986  +- new rocket (1.2.2), thanks Tim
          987  +- many other bug fixes and improvements (thanks Jonathan)
          988  +
          989  +## 1.92.1
          990  +- much improved routing (thanks Jonathan)
          991  +- Expression.__mod__ (thanks Denes)
          992  +- admin has MULTI_USER_MODE (admin/models/0.py)
          993  +- support for count(distinct=...)
          994  +- has_permissions(...,group_id)
          995  +- IS_MATCH(...,strict=True)
          996  +- URL(...,scheme=,host=,port=), thanks Jonathan
          997  +- admin in Afrikaans, thanks Caleb
          998  +- auth.signature (experimental)
          999  +- many other bug fixes
         1000  +
         1001  +## 1.93.1-2
         1002  +- support for multiple interfaces, thanks Jonathan
         1003  +- jquery 1.5.1
         1004  +- simplejson 2.1.3
         1005  +- customizable simplejson
         1006  +- leaner app.yaml
         1007  +- css3 buttons in welcome
         1008  +- android support (experimental)
         1009  +- Field(':hidden'), Field('.readonly'), Field('name=value')
         1010  +- combined expressions print db.data.body.len().sum()
         1011  +- wizard can download plugins
         1012  +- better json serilization (object.custom_json)
         1013  +- better xml serialization (object.custom_xml)
         1014  +- better formstyle support
         1015  +- better comet_messaging.py (needs more testing)
         1016  +- many bug fixes
         1017  +
         1018  +## 1.94.1
         1019  +- moderniz 1.17
         1020  +- web2py no longer saves session if no change, this makes it up up to 10x faster for simple actions
         1021  +- experimental REST API
         1022  +- better support for MSSQL NOT NULL
         1023  +- small bug fixes
         1024  +
         1025  +## 1.94.2
         1026  +- reverted wrong behavior of auth.requires(condition) in 1.94.1
         1027  +
         1028  +## 1.94.3
         1029  +- fixed major bug in auth redirection
         1030  +
         1031  +## 1.94.4
         1032  +- removed debug print statement that caused problems on GAE and mod_wsgi
         1033  +
         1034  +## 1.94.5
         1035  +- fixed a major bug with session introdued in 1.94.1
         1036  +
         1037  +## 1.94.6
         1038  +- fixed a number of minor bugs including adding some missing files
         1039  +- better session handling on session._unlock(..), thanks Jonathan
         1040  +- added experimental pip support, thanks Lifeeth
         1041  +- added experimental SAP DB support
         1042  +
         1043  +## 1.95.1
         1044  +- Google MySQL support (experimental)
         1045  +- pip support, thanks lifeeth
         1046  +- better setup_exe.py, thanks meredyk
         1047  +- importved pyfpdf
         1048  +- domain check in email_auth.py, thanks Gyuris
         1049  +- added change_password_onvalidation and change_password_onaccept
         1050  +- DAL(...,migrate_enabled=True)
         1051  +- login_methods/loginza.py, thanks Vladimir
         1052  +- bpython shell support, thanks Arun
         1053  +- request.uuid and response.uuid (for a future toolbar)
         1054  +- db._timings contains database query timing info
         1055  +- efficient db(...).isempty()
         1056  +- setup-web2py-nginx-uwsgi-ubuntu.sh
         1057  +- Many bug fixes, thanks Jonathan
         1058  +
         1059  +## 1.96.1
         1060  +
         1061  +- "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.
         1062  +- conditional models in 
         1063  +  models/<controller>/a.py and models/<controller>/<function>/a.py
         1064  +- from mymodule import *, looks for mymodule in applications/thisapp/modules first and then in sys.path. No more need for local_import. Thanks Pierre.
         1065  +- 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.
         1066  +
         1067  +- all applications have cas 2.0 provider at http://.../user/cas/login
         1068  +- all applications can delegate to login to external provider Auth(...,cas_provider='http://.../other_app/default/user/cas')
         1069  +- A(...,callback=URL(...),larget='id') does Ajax
         1070  +- URL(...,user_signature=True), LOAD(...,user_signature=True) can sign urls and @auth.requires_signature() will check the signature for any decorated action.
         1071  +
         1072  +- DAL(...,migrate_enabled=False) to disable all migrations
         1073  +- DAL(...,fake_migrate_all=True) to rebuild all corrupted metadata
         1074  +- new DAL metadata format (databases/*.table)
         1075  +- DAL(...,adapter_arg={}) allows support for alternate drivers
         1076  +- DAL now allows circular table defintions
         1077  +- DAL(..,auto_import=True) automatically imports tables from metadata without need to db.define_table(...)s.
         1078  +- new alterante syntax for inner joins: db(...).select(join=...)
         1079  +- experimental cubrid database support
         1080  +- DAL 'request_tenant' fields are special, the altomatically filer all records based on their default value.
         1081  +- db._common_fields.append(Field('owner')) allows to add fields to ALL tables
         1082  +- DAL ignores repeated fields with same names
         1083  +
         1084  +- web2py_ajax.html is more modular, thanks Anthony
         1085  +- request.is_local
         1086  +- request.is_http
         1087  +- new sessions2trash.py thanks Jim Karsten
         1088  +- corrupted cache files are automatically deleted
         1089  +- new simpler API gluon.contrib.AuthorizeNet.procss(...)
         1090  +- fixed recaptcha (as they released new API)
         1091  +- messages in validators have default internationalization
         1092  +- No more Auth(globals(),db), just Auth(db). Same for Crud and Service.
         1093  +- scripts/access.wsgi allows apache+mod_wsgi to delegate authentication of any URL to any web2py app
         1094  +- json now supports T(...) 
         1095  +- scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
         1096  +- web2py HTTP responses now set: "X-Powered-By: web2py", thanks Bruno
         1097  +- mostly fixed generic.pdf. You can view any page in PDF if you have pdflatex installed or if your html follows the pyfpdf convention.
         1098  +- 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()
         1099  +- {{=response.toolbar()}} to help you debug applications
         1100  +- web based shell now supports object modifications (but no redefinitions of non-serializable types)
         1101  +- jQuery 1.6.1
         1102  +- Lots of bug fixes
         1103  +
         1104  +# 1.96.2-1.96.4
         1105  +- bug fixes
         1106  +
         1107  +# 1.97.1
         1108  +- validate_and_update, thanks Bruno
         1109  +- fixed problem with new custom import, thanks Mart
         1110  +- fixed pyamf 0.6, thanks Alexei and Nickd
         1111  +- fixed "+ =" bug in wizard
         1112  +- fixed problem with allowed_patterns
         1113  +- fixed problems with LOAD and vars and ajax
         1114  +- closed lots of google code tickets
         1115  +- checkboxes should now work with list:string
         1116  +- web2py works on Android, thanks Corne Dickens
         1117  +- new cpdb.py, thanks Mart
         1118  +- improved translation (frech in particuler), thanks Pierre
         1119  +- improved cas_auth.py, thanks Sergio
         1120  +- IS_DATE and IS_DATETIME validators now work with native types
         1121  +- better description of --shell, thanks Anthony
         1122  +- extra SQLTABLE columns, thanks Martin
         1123  +- fixed toolbar conflics, thanks Simon
         1124  +- GAE password shows with ****
         1125  +
         1126  +# 1.98.1
         1127  +- fixed some problems with LOAD(ajax=False), thanks Anthony
         1128  +- jquery 1.6.2
         1129  +- gevent.pywsgi adds ssl support, thanks Vasile
         1130  +- import/export of blobs are base64 encoded
         1131  +- max number of login attemts in admin, thanks Ross
         1132  +- fixed joins with alias tables
         1133  +- new field.custom_delete attribute
         1134  +- removed resctions on large 'text fields, thanks Martin
         1135  +- field.represent = lambda value,record: .... (record is optional)
         1136  +- FORM.validate() and FORM.process(), thanks Bruno
         1137  +- faster visrtualfields, thanks Howsec
         1138  +- mail has ssl support separate from tls, thanks Eric
         1139  +- TAG objects are now pickable
         1140  +- new CAT tag for no tags
         1141  +- request.user_agent(), thanks Ross
         1142  +- fixed fawps support
         1143  +- SQLFORM(...,separator=': ') now customizable
         1144  +- 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  +#!/usr/bin/env python
            2  +# -*- coding: utf-8 -*-
            3  +
            4  +"""
            5  +This file is part of the web2py Web Framework
            6  +Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
            7  +License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
            8  +
            9  +This file is based, althought a rewrite, on MIT code from the Bottle web framework.
           10  +"""
           11  +
           12  +import os, sys, optparse
           13  +path = os.path.dirname(os.path.abspath(__file__))
           14  +os.chdir(path)
           15  +sys.path = [path]+[p for p in sys.path if not p==path]
           16  +import gluon.main
           17  +from gluon.fileutils import read_file, write_file
           18  +
           19  +class Servers:
           20  +    @staticmethod
           21  +    def cgi(app, address=None, **options):
           22  +        from wsgiref.handlers import CGIHandler
           23  +        CGIHandler().run(app) # Just ignore host and port here
           24  +
           25  +    @staticmethod
           26  +    def flup(app,address, **options):
           27  +        import flup.server.fcgi
           28  +        flup.server.fcgi.WSGIServer(app, bindAddress=address).run()
           29  +
           30  +    @staticmethod
           31  +    def wsgiref(app,address,**options): # pragma: no cover
           32  +        from wsgiref.simple_server import make_server, WSGIRequestHandler
           33  +        class QuietHandler(WSGIRequestHandler):
           34  +            def log_request(*args, **kw): pass
           35  +        options['handler_class'] = QuietHandler
           36  +        srv = make_server(address[0],address[1],app,**options)
           37  +        srv.serve_forever()
           38  +
           39  +    @staticmethod
           40  +    def cherrypy(app,address, **options):
           41  +        from cherrypy import wsgiserver
           42  +        server = wsgiserver.CherryPyWSGIServer(address, app)
           43  +        server.start()
           44  +
           45  +    @staticmethod
           46  +    def rocket(app,address, **options):
           47  +        from gluon.rocket import CherryPyWSGIServer
           48  +        server = CherryPyWSGIServer(address, app)
           49  +        server.start()
           50  +
           51  +    @staticmethod
           52  +    def rocket_with_repoze_profiler(app,address, **options):
           53  +        from gluon.rocket import CherryPyWSGIServer
           54  +        from repoze.profile.profiler import AccumulatingProfileMiddleware
           55  +        from gluon.settings import global_settings
           56  +        global_settings.web2py_crontype = 'none'
           57  +        wrapped = AccumulatingProfileMiddleware(
           58  +            app,
           59  +            log_filename='wsgi.prof',
           60  +            discard_first_request=True,
           61  +            flush_at_shutdown=True,
           62  +            path = '/__profile__'
           63  +            )
           64  +        server = CherryPyWSGIServer(address, wrapped)
           65  +        server.start()
           66  +
           67  +    @staticmethod
           68  +    def paste(app,address,**options):
           69  +        from paste import httpserver
           70  +        from paste.translogger import TransLogger
           71  +        httpserver.serve(app, host=address[0], port=address[1], **options)
           72  +
           73  +    @staticmethod
           74  +    def fapws(app,address, **options):
           75  +        import fapws._evwsgi as evwsgi
           76  +        from fapws import base
           77  +        evwsgi.start(address[0],str(address[1]))
           78  +        evwsgi.set_base_module(base)
           79  +        def app(environ, start_response):
           80  +            environ['wsgi.multiprocess'] = False
           81  +            return app(environ, start_response)
           82  +        evwsgi.wsgi_cb(('',app))
           83  +        evwsgi.run()
           84  +
           85  +
           86  +    @staticmethod
           87  +    def gevent(app,address, **options):
           88  +        from gevent import monkey; monkey.patch_all()
           89  +        from gevent import pywsgi
           90  +        from gevent.pool import Pool
           91  +        pywsgi.WSGIServer(address, app, spawn = 'workers' in options and Pool(int(option.workers)) or 'default').serve_forever()
           92  +
           93  +    @staticmethod
           94  +    def bjoern(app,address, **options):
           95  +        import bjoern
           96  +        bjoern.run(app, *address)
           97  +
           98  +    @staticmethod
           99  +    def tornado(app,address, **options):
          100  +        import tornado.wsgi
          101  +        import tornado.httpserver
          102  +        import tornado.ioloop
          103  +        container = tornado.wsgi.WSGIContainer(app)
          104  +        server = tornado.httpserver.HTTPServer(container)
          105  +        server.listen(address=address[0], port=address[1])
          106  +        tornado.ioloop.IOLoop.instance().start()
          107  +
          108  +    @staticmethod
          109  +    def twisted(app,address, **options):
          110  +        from twisted.web import server, wsgi
          111  +        from twisted.python.threadpool import ThreadPool
          112  +        from twisted.internet import reactor
          113  +        thread_pool = ThreadPool()
          114  +        thread_pool.start()
          115  +        reactor.addSystemEventTrigger('after', 'shutdown', thread_pool.stop)
          116  +        factory = server.Site(wsgi.WSGIResource(reactor, thread_pool, app))
          117  +        reactor.listenTCP(address[1], factory, interface=address[0])
          118  +        reactor.run()
          119  +
          120  +    @staticmethod
          121  +    def diesel(app,address, **options):
          122  +        from diesel.protocols.wsgi import WSGIApplication
          123  +        app = WSGIApplication(app, port=address[1])
          124  +        app.run()
          125  +
          126  +    @staticmethod
          127  +    def gnuicorn(app,address, **options):
          128  +        import gunicorn.arbiter
          129  +        gunicorn.arbiter.Arbiter(address, 4, app).run()
          130  +
          131  +    @staticmethod
          132  +    def eventlet(app,address, **options):
          133  +        from eventlet import wsgi, listen
          134  +        wsgi.server(listen(address), app)
          135  +
          136  +
          137  +def run(servername,ip,port,softcron=True,logging=False,profiler=None):
          138  +    if logging:
          139  +        application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase,
          140  +                                            logfilename='httpserver.log',
          141  +                                            profilerfilename=profiler)
          142  +    else:
          143  +        application = gluon.main.wsgibase
          144  +    if softcron:
          145  +        from gluon.settings import global_settings
          146  +        global_settings.web2py_crontype = 'soft'
          147  +    getattr(Servers,servername)(application,(ip,int(port)))
          148  +
          149  +def main():
          150  +    usage = "python anyserver.py -s tornado -i 127.0.0.1 -p 8000 -l -P"
          151  +    try:
          152  +        version = read_file('VERSION')
          153  +    except IOError:
          154  +        version = ''
          155  +    parser = optparse.OptionParser(usage, None, optparse.Option, version)
          156  +    parser.add_option('-l',
          157  +                      '--logging',
          158  +                      action='store_true',
          159  +                      default=False,
          160  +                      dest='logging',
          161  +                      help='log into httpserver.log')
          162  +    parser.add_option('-P',
          163  +                      '--profiler',                      
          164  +                      default=False,
          165  +                      dest='profiler',
          166  +                      help='profiler filename')
          167  +    servers = ', '.join(x for x in dir(Servers) if not x[0]=='_')
          168  +    parser.add_option('-s',
          169  +                      '--server',
          170  +                      default='rocket',
          171  +                      dest='server',
          172  +                      help='server name (%s)' % servers)
          173  +    parser.add_option('-i',
          174  +                      '--ip',
          175  +                      default='127.0.0.1',
          176  +                      dest='ip',
          177  +                      help='ip address')
          178  +    parser.add_option('-p',
          179  +                      '--port',
          180  +                      default='8000',
          181  +                      dest='port',
          182  +                      help='port number')
          183  +    parser.add_option('-w',
          184  +                      '--workers',
          185  +                      default='',
          186  +                      dest='workers',
          187  +                      help='number of workers number')
          188  +    (options, args) = parser.parse_args()
          189  +    print 'starting %s on %s:%s...' % (options.server,options.ip,options.port)
          190  +    run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler)
          191  +
          192  +if __name__=='__main__':
          193  +    main()

Added app.example.yaml version [090b9f077a].

            1  +#  For Google App Engine deployment, copy this file to app.yaml
            2  +#  and edit as required
            3  +#  See http://code.google.com/appengine/docs/python/config/appconfig.html
            4  +#  and http://web2py.com/book/default/chapter/11?search=app.yaml
            5  +
            6  +application: web2py
            7  +version: 1
            8  +api_version: 1
            9  +runtime: python
           10  +
           11  +default_expiration: "24h"
           12  +
           13  +derived_file_type:
           14  +- python_precompiled
           15  +
           16  +handlers:
           17  +
           18  +- url: /_ah/stats.*
           19  +  script: $PYTHON_LIB/google/appengine/ext/appstats/ui.py
           20  +  login: admin
           21  +
           22  +- url: /(?P<a>.+?)/static/(?P<b>.+)
           23  +  static_files: applications/\1/static/\2
           24  +  upload: applications/(.+?)/static/(.+)
           25  +  secure: optional
           26  +
           27  +- url: /favicon.ico
           28  +  static_files: applications/welcome/static/favicon.ico
           29  +  upload: applications/welcome/static/favicon.ico
           30  +
           31  +- url: /robots.txt
           32  +  static_files: applications/welcome/static/robots.txt
           33  +  upload: applications/welcome/static/robots.txt
           34  +
           35  +- url: /_ah/admin/.*
           36  +  script: $PYTHON_LIB/google/appengine/ext/admin
           37  +  login: admin
           38  +
           39  +- url: /_ah/queue/default
           40  +  script: gaehandler.py
           41  +  login: admin
           42  +
           43  +- url: .*
           44  +  script: gaehandler.py
           45  +  secure: optional
           46  +
           47  +admin_console:
           48  +  pages:
           49  +  - name: Appstats
           50  +    url: /_ah/stats
           51  +
           52  +skip_files: |
           53  + ^(.*/)?(
           54  + (app\.yaml)|
           55  + (app\.yml)|
           56  + (index\.yaml)|
           57  + (index\.yml)|
           58  + (#.*#)|
           59  + (.*~)|
           60  + (.*\.py[co])|
           61  + (.*/RCS/.*)|
           62  + (\..*)|
           63  + (applications/(admin|examples)/.*)|
           64  + ((admin|examples|welcome)\.(w2p|tar))|
           65  + (applications/.*?/(cron|databases|errors|cache|sessions)/.*)|
           66  + ((logs|scripts)/.*)|
           67  + (anyserver\.py)|
           68  + (web2py\.py)|
           69  + ((cgi|fcgi|modpython|wsgi)handler\.py)|
           70  + (epydoc\.(conf|css))|
           71  + (httpserver\.log)|
           72  + (logging\.example\.conf)|
           73  + (route[rs]\.example\.py)|
           74  + (setup_(app|exe)\.py)|
           75  + (splashlogo\.gif)|
           76  + (parameters_\d+\.py)|
           77  + (options_std.py)|
           78  + (gluon/tests/.*)|
           79  + (gluon/(rocket|winservice)\.py)|
           80  + (contrib/(gateways|markdown|memcache|pymysql)/.*)|
           81  + (contrib/(populate|taskbar_widget)\.py)|
           82  + (google_appengine/.*)|
           83  + (.*\.(bak|orig))|
           84  + )$
           85  +
           86  +builtins:
           87  +- remote_api: on
           88  +- datastore_admin: on

Added appengine_config.py version [72d08f192b].

            1  +def webapp_add_wsgi_middleware(app):
            2  +    from google.appengine.ext.appstats import recording
            3  +    app = recording.appstats_wsgi_middleware(app)
            4  +    return app

Added applications/__init__.py version [da39a3ee5e].


Added applications/admin/ABOUT version [ea96ed160b].

            1  +web2py is an open source full-stack framework for agile development 
            2  +of secure database-driven web-based applications, written and programmable in 
            3  +Python. 
            4  +
            5  +Created by Massimo Di Pierro <mdipierro@cs.depaul.edu>
            6  +

Added applications/admin/LICENSE version [4719a3b620].

            1  +## Web2py License
            2  +
            3  +Web2py is Licensed under the LGPL license version 3 
            4  +(http://www.gnu.org/licenses/lgpl.html)
            5  +
            6  +Copyrighted (c) by Massimo Di Pierro (2007-2011)
            7  +
            8  +### On Commercial Redistribution
            9  +
           10  +In accordance with LGPL you may:
           11  +- redistribute web2py with your apps (including official web2py binary versions)
           12  +- release your applications which use official web2py libraries under any license you wish
           13  +But you must:
           14  +- make clear in the documentation that your application uses web2py
           15  +- release any modification of the web2py libraries under the LGPLv3 license
           16  +
           17  +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
           18  +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 
           19  +PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
           20  +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
           21  +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 
           22  +PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL 
           23  +NECESSARY SERVICING, REPAIR OR CORRECTION.
           24  +
           25  +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT 
           26  +HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, 
           27  +BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL 
           28  +DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 
           29  +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES 
           30  +OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER 
           31  +PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
           32  +
           33  +(Earlier versions of web2py, 1.0.*-1.90.*, were released under the GPL2 license plus a
           34  +commercial exception which, for practical purposes, was very similar to the current LPGLv3)
           35  +
           36  +### Licenses for third party contributed software
           37  +
           38  +web2py contains third party software under the gluon/contrib/ folder.
           39  +Each file/module in contrib is distributed with web2py under its original license.
           40  +Here we list some of them.
           41  +
           42  +#### gluon.contrib.simplejson LICENSE
           43  +
           44  +Copyright (c) 2006 Bob Ippolito - Permission is hereby granted, free of charge, 
           45  +to any person obtaining a copy of this software and associated documentation 
           46  +files (the "Software"), to deal in the Software without restriction, including
           47  +without limitation the rights to use, copy, modify, merge, publish, distribute,
           48  +sublicense, and/or sell copies of the Software, and to permit persons to whom 
           49  +the Software is furnished to do so, subject to the following conditions:
           50  +
           51  +The above copyright notice and this permission notice shall be included in all
           52  +copies or substantial portions of the Software.
           53  +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
           54  +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
           55  +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
           56  +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
           57  +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
           58  +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
           59  +SOFTWARE.
           60  +
           61  +#### gluon.contrib.rss2.py (originally PyRSS2Gen) LICENSE
           62  +
           63  +This is copyright (c) by Dalke Scientific Software, LLC and released under the
           64  +BSD license.  See the file LICENSE in the distribution or 
           65  +<http://www.opensource.org/licenses/bsd-license.php> for details.
           66  +
           67  +#### gluon.contrib.markdown (markdown2) LICENSE
           68  +
           69  +MIT License from from <http://code.google.com/p/python-markdown2/>
           70  +
           71  +#### gluon.contrib.feedparser LICENSE
           72  +
           73  +Copyright (c) 2002-2005, Mark Pilgrim
           74  +
           75  +All rights reserved.
           76  +
           77  +Redistribution and use in source and binary forms, with or without 
           78  +modification, are permitted provided that the following conditions 
           79  +are met:
           80  +
           81  +* Redistributions of source code must retain the above copyright notice,
           82  +  this list of conditions and the following disclaimer.
           83  +
           84  +* Redistributions in binary form must reproduce the above copyright notice,
           85  +  this list of conditions and the following disclaimer in the documentation
           86  +  and/or other materials provided with the distribution.
           87  +
           88  +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
           89  +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
           90  +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
           91  +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
           92  +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
           93  +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
           94  +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
           95  +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
           96  +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
           97  +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
           98  +POSSIBILITY OF SUCH DAMAGE.
           99  +
          100  +#### gluon.wsgiserver.py LICENSE (borrowed from cherrypy)
          101  +
          102  +Copyright (c) 2004, CherryPy Team (team@cherrypy.org)
          103  +All rights reserved.
          104  +
          105  +Redistribution and use in source and binary forms, with or without modification,
          106  +are permitted provided that the following conditions are met:
          107  +
          108  +    * Redistributions of source code must retain the above copyright notice, 
          109  +      this list of conditions and the following disclaimer.
          110  +    * Redistributions in binary form must reproduce the above copyright notice, 
          111  +      this list of conditions and the following disclaimer in the documentation 
          112  +      and/or other materials provided with the distribution.
          113  +    * Neither the name of the CherryPy Team nor the names of its contributors 
          114  +      may be used to endorse or promote products derived from this software 
          115  +      without specific prior written permission.
          116  +
          117  +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
          118  +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
          119  +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
          120  +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 
          121  +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
          122  +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
          123  +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
          124  +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
          125  +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
          126  +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
          127  +
          128  +#### gluon.contrib.pam LICENSE
          129  +
          130  +Copyright (C) 2007-2009 Chris AtLee <chris@atlee.ca> Licensed under the MIT license
          131  +
          132  +#### gluon.contrib.shell LICENSE
          133  +
          134  +Copyright (C) by Google inc. Apache 2.0 Lincense
          135  +
          136  +#### The javascript licenses are in the code itself
          137  +

Added applications/admin/__init__.py version [da39a3ee5e].


Added applications/admin/controllers/appadmin.py version [1eb6fe022d].

            1  +# -*- coding: utf-8 -*-
            2  +
            3  +# ##########################################################
            4  +# ## make sure administrator is on localhost
            5  +# ###########################################################
            6  +
            7  +import os
            8  +import socket
            9  +import datetime
           10  +import copy
           11  +import gluon.contenttype
           12  +import gluon.fileutils
           13  +
           14  +# ## critical --- make a copy of the environment
           15  +
           16  +global_env = copy.copy(globals())
           17  +global_env['datetime'] = datetime
           18  +
           19  +http_host = request.env.http_host.split(':')[0]
           20  +remote_addr = request.env.remote_addr
           21  +try:
           22  +    hosts = (http_host, socket.gethostname(),
           23  +             socket.gethostbyname(http_host),
           24  +             '::1','127.0.0.1','::ffff:127.0.0.1')
           25  +except:
           26  +    hosts = (http_host, )
           27  +
           28  +if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\
           29  +     in ['https', 'HTTPS']:
           30  +    session.secure()
           31  +elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
           32  +    raise HTTP(200, T('appadmin is disabled because insecure channel'))
           33  +
           34  +if (request.application=='admin' and not session.authorized) or \
           35  +        (request.application!='admin' and not gluon.fileutils.check_credentials(request)):
           36  +    redirect(URL('admin', 'default', 'index'))
           37  +
           38  +ignore_rw = True
           39  +response.view = 'appadmin.html'
           40  +response.menu = [[T('design'), False, URL('admin', 'default', 'design',
           41  +                 args=[request.application])], [T('db'), False,
           42  +                 URL('index')], [T('state'), False,
           43  +                 URL('state')], [T('cache'), False,
           44  +                 URL('ccache')]]
           45  +
           46  +# ##########################################################
           47  +# ## auxiliary functions
           48  +# ###########################################################
           49  +
           50  +
           51  +def get_databases(request):
           52  +    dbs = {}
           53  +    for (key, value) in global_env.items():
           54  +        cond = False
           55  +        try:
           56  +            cond = isinstance(value, GQLDB)
           57  +        except:
           58  +            cond = isinstance(value, SQLDB)
           59  +        if cond:
           60  +            dbs[key] = value
           61  +    return dbs
           62  +
           63  +
           64  +databases = get_databases(None)
           65  +
           66  +
           67  +def eval_in_global_env(text):
           68  +    exec ('_ret=%s' % text, {}, global_env)
           69  +    return global_env['_ret']
           70  +
           71  +
           72  +def get_database(request):
           73  +    if request.args and request.args[0] in databases:
           74  +        return eval_in_global_env(request.args[0])
           75  +    else:
           76  +        session.flash = T('invalid request')
           77  +        redirect(URL('index'))
           78  +
           79  +
           80  +def get_table(request):
           81  +    db = get_database(request)
           82  +    if len(request.args) > 1 and request.args[1] in db.tables:
           83  +        return (db, request.args[1])
           84  +    else:
           85  +        session.flash = T('invalid request')
           86  +        redirect(URL('index'))
           87  +
           88  +
           89  +def get_query(request):
           90  +    try:
           91  +        return eval_in_global_env(request.vars.query)
           92  +    except Exception:
           93  +        return None
           94  +
           95  +
           96  +def query_by_table_type(tablename,db,request=request):
           97  +    keyed = hasattr(db[tablename],'_primarykey')
           98  +    if keyed:
           99  +        firstkey = db[tablename][db[tablename]._primarykey[0]]
          100  +        cond = '>0'
          101  +        if firstkey.type in ['string', 'text']:
          102  +            cond = '!=""'
          103  +        qry = '%s.%s.%s%s' % (request.args[0], request.args[1], firstkey.name, cond)
          104  +    else:
          105  +        qry = '%s.%s.id>0' % tuple(request.args[:2])
          106  +    return qry
          107  +
          108  +
          109  +
          110  +# ##########################################################
          111  +# ## list all databases and tables
          112  +# ###########################################################
          113  +
          114  +
          115  +def index():
          116  +    return dict(databases=databases)
          117  +
          118  +
          119  +# ##########################################################
          120  +# ## insert a new record
          121  +# ###########################################################
          122  +
          123  +
          124  +def insert():
          125  +    (db, table) = get_table(request)
          126  +    form = SQLFORM(db[table], ignore_rw=ignore_rw)
          127  +    if form.accepts(request.vars, session):
          128  +        response.flash = T('new record inserted')
          129  +    return dict(form=form,table=db[table])
          130  +
          131  +
          132  +# ##########################################################
          133  +# ## list all records in table and insert new record
          134  +# ###########################################################
          135  +
          136  +
          137  +def download():
          138  +    import os
          139  +    db = get_database(request)
          140  +    return response.download(request,db)
          141  +
          142  +def csv():
          143  +    import gluon.contenttype
          144  +    response.headers['Content-Type'] = \
          145  +        gluon.contenttype.contenttype('.csv')
          146  +    db = get_database(request)
          147  +    query = get_query(request)
          148  +    if not query:
          149  +        return None
          150  +    response.headers['Content-disposition'] = 'attachment; filename=%s_%s.csv'\
          151  +         % tuple(request.vars.query.split('.')[:2])
          152  +    return str(db(query).select())
          153  +
          154  +
          155  +def import_csv(table, file):
          156  +    table.import_from_csv_file(file)
          157  +
          158  +def select():
          159  +    import re
          160  +    db = get_database(request)
          161  +    dbname = request.args[0]
          162  +    regex = re.compile('(?P<table>\w+)\.(?P<field>\w+)=(?P<value>\d+)')
          163  +    if len(request.args)>1 and hasattr(db[request.args[1]],'_primarykey'):
          164  +        regex = re.compile('(?P<table>\w+)\.(?P<field>\w+)=(?P<value>.+)')
          165  +    if request.vars.query:
          166  +        match = regex.match(request.vars.query)
          167  +        if match:
          168  +            request.vars.query = '%s.%s.%s==%s' % (request.args[0],
          169  +                    match.group('table'), match.group('field'),
          170  +                    match.group('value'))
          171  +    else:
          172  +        request.vars.query = session.last_query
          173  +    query = get_query(request)
          174  +    if request.vars.start:
          175  +        start = int(request.vars.start)
          176  +    else:
          177  +        start = 0
          178  +    nrows = 0
          179  +    stop = start + 100
          180  +    table = None
          181  +    rows = []
          182  +    orderby = request.vars.orderby
          183  +    if orderby:
          184  +        orderby = dbname + '.' + orderby
          185  +        if orderby == session.last_orderby:
          186  +            if orderby[0] == '~':
          187  +                orderby = orderby[1:]
          188  +            else:
          189  +                orderby = '~' + orderby
          190  +    session.last_orderby = orderby
          191  +    session.last_query = request.vars.query
          192  +    form = FORM(TABLE(TR(T('Query:'), '', INPUT(_style='width:400px',
          193  +                _name='query', _value=request.vars.query or '',
          194  +                requires=IS_NOT_EMPTY(error_message=T("Cannot be empty")))), TR(T('Update:'),
          195  +                INPUT(_name='update_check', _type='checkbox',
          196  +                value=False), INPUT(_style='width:400px',
          197  +                _name='update_fields', _value=request.vars.update_fields
          198  +                 or '')), TR(T('Delete:'), INPUT(_name='delete_check',
          199  +                _class='delete', _type='checkbox', value=False), ''),
          200  +                TR('', '', INPUT(_type='submit', _value='submit'))),
          201  +                _action=URL(r=request,args=request.args))
          202  +    if request.vars.csvfile != None:
          203  +        try:
          204  +            import_csv(db[request.vars.table],
          205  +                       request.vars.csvfile.file)
          206  +            response.flash = T('data uploaded')
          207  +        except Exception, e:
          208  +            response.flash = DIV(T('unable to parse csv file'),PRE(str(e)))
          209  +    if form.accepts(request.vars, formname=None):
          210  +#         regex = re.compile(request.args[0] + '\.(?P<table>\w+)\.id\>0')
          211  +        regex = re.compile(request.args[0] + '\.(?P<table>\w+)\..+')
          212  +
          213  +        match = regex.match(form.vars.query.strip())
          214  +        if match:
          215  +            table = match.group('table')
          216  +        try:
          217  +            nrows = db(query).count()
          218  +            if form.vars.update_check and form.vars.update_fields:
          219  +                db(query).update(**eval_in_global_env('dict(%s)'
          220  +                                  % form.vars.update_fields))
          221  +                response.flash = T('%s rows updated', nrows)
          222  +            elif form.vars.delete_check:
          223  +                db(query).delete()
          224  +                response.flash = T('%s rows deleted', nrows)
          225  +            nrows = db(query).count()
          226  +            if orderby:
          227  +                rows = db(query).select(limitby=(start, stop),
          228  +                        orderby=eval_in_global_env(orderby))
          229  +            else:
          230  +                rows = db(query).select(limitby=(start, stop))
          231  +        except Exception, e:
          232  +            (rows, nrows) = ([], 0)
          233  +            response.flash = DIV(T('Invalid Query'),PRE(str(e)))
          234  +    return dict(
          235  +        form=form,
          236  +        table=table,
          237  +        start=start,
          238  +        stop=stop,
          239  +        nrows=nrows,
          240  +        rows=rows,
          241  +        query=request.vars.query,
          242  +        )
          243  +
          244  +
          245  +# ##########################################################
          246  +# ## edit delete one record
          247  +# ###########################################################
          248  +
          249  +
          250  +def update():
          251  +    (db, table) = get_table(request)
          252  +    keyed = hasattr(db[table],'_primarykey')
          253  +    record = None
          254  +    if keyed:
          255  +        key = [f for f in request.vars if f in db[table]._primarykey]
          256  +        if key:
          257  +            record = db(db[table][key[0]] == request.vars[key[0]]).select().first()
          258  +    else:
          259  +        record = db(db[table].id == request.args(2)).select().first()
          260  +
          261  +    if not record:
          262  +        qry = query_by_table_type(table, db)
          263  +        session.flash = T('record does not exist')
          264  +        redirect(URL('select', args=request.args[:1],
          265  +                     vars=dict(query=qry)))
          266  +
          267  +    if keyed:
          268  +        for k in db[table]._primarykey:
          269  +            db[table][k].writable=False
          270  +
          271  +    form = SQLFORM(db[table], record, deletable=True, delete_label=T('Check to delete'),
          272  +                   ignore_rw=ignore_rw and not keyed,
          273  +                   linkto=URL('select',
          274  +                   args=request.args[:1]), upload=URL(r=request,
          275  +                   f='download', args=request.args[:1]))
          276  +
          277  +    if form.accepts(request.vars, session):
          278  +        session.flash = T('done!')
          279  +        qry = query_by_table_type(table, db)
          280  +        redirect(URL('select', args=request.args[:1],
          281  +                 vars=dict(query=qry)))
          282  +    return dict(form=form,table=db[table])
          283  +
          284  +
          285  +# ##########################################################
          286  +# ## get global variables
          287  +# ###########################################################
          288  +
          289  +
          290  +def state():
          291  +    return dict()
          292  +
          293  +def ccache():
          294  +    form = FORM(
          295  +        P(TAG.BUTTON("Clear CACHE?", _type="submit", _name="yes", _value="yes")),
          296  +        P(TAG.BUTTON("Clear RAM", _type="submit", _name="ram", _value="ram")),
          297  +        P(TAG.BUTTON("Clear DISK", _type="submit", _name="disk", _value="disk")),
          298  +    )
          299  +
          300  +    if form.accepts(request.vars, session):
          301  +        clear_ram = False
          302  +        clear_disk = False
          303  +        session.flash = ""
          304  +        if request.vars.yes:
          305  +            clear_ram = clear_disk = True
          306  +        if request.vars.ram:
          307  +            clear_ram = True
          308  +        if request.vars.disk:
          309  +            clear_disk = True
          310  +
          311  +        if clear_ram:
          312  +            cache.ram.clear()
          313  +            session.flash += "Ram Cleared "
          314  +        if clear_disk:
          315  +            cache.disk.clear()
          316  +            session.flash += "Disk Cleared"
          317  +
          318  +        redirect(URL(r=request))
          319  +
          320  +    try:
          321  +        from guppy import hpy; hp=hpy()
          322  +    except ImportError:
          323  +        hp = False
          324  +
          325  +    import shelve, os, copy, time, math
          326  +    from gluon import portalocker
          327  +
          328  +    ram = {
          329  +        'bytes': 0,
          330  +        'objects': 0,
          331  +        'hits': 0,
          332  +        'misses': 0,
          333  +        'ratio': 0,
          334  +        'oldest': time.time()
          335  +    }
          336  +    disk = copy.copy(ram)
          337  +    total = copy.copy(ram)
          338  +
          339  +    for key, value in cache.ram.storage.items():
          340  +        if isinstance(value, dict):
          341  +            ram['hits'] = value['hit_total'] - value['misses']
          342  +            ram['misses'] = value['misses']
          343  +            try:
          344  +                ram['ratio'] = ram['hits'] * 100 / value['hit_total']
          345  +            except (KeyError, ZeroDivisionError):
          346  +                ram['ratio'] = 0
          347  +        else:
          348  +            if hp:
          349  +                ram['bytes'] += hp.iso(value[1]).size
          350  +                ram['objects'] += hp.iso(value[1]).count
          351  +
          352  +                if value[0] < ram['oldest']:
          353  +                    ram['oldest'] = value[0]
          354  +
          355  +    locker = open(os.path.join(request.folder,
          356  +                                        'cache/cache.lock'), 'a')
          357  +    portalocker.lock(locker, portalocker.LOCK_EX)
          358  +    disk_storage = shelve.open(os.path.join(request.folder, 'cache/cache.shelve'))
          359  +    try:
          360  +        for key, value in disk_storage.items():
          361  +            if isinstance(value, dict):
          362  +                disk['hits'] = value['hit_total'] - value['misses']
          363  +                disk['misses'] = value['misses']
          364  +                try:
          365  +                    disk['ratio'] = disk['hits'] * 100 / value['hit_total']
          366  +                except (KeyError, ZeroDivisionError):
          367  +                    disk['ratio'] = 0
          368  +            else:
          369  +                if hp:
          370  +                    disk['bytes'] += hp.iso(value[1]).size
          371  +                    disk['objects'] += hp.iso(value[1]).count
          372  +                    if value[0] < disk['oldest']:
          373  +                        disk['oldest'] = value[0]
          374  +    finally:
          375  +        portalocker.unlock(locker)
          376  +        locker.close()
          377  +        disk_storage.close()
          378  +
          379  +    total['bytes'] = ram['bytes'] + disk['bytes']
          380  +    total['objects'] = ram['objects'] + disk['objects']
          381  +    total['hits'] = ram['hits'] + disk['hits']
          382  +    total['misses'] = ram['misses'] + disk['misses']
          383  +    try:
          384  +        total['ratio'] = total['hits'] * 100 / (total['hits'] + total['misses'])
          385  +    except (KeyError, ZeroDivisionError):
          386  +        total['ratio'] = 0
          387  +
          388  +    if disk['oldest'] < ram['oldest']:
          389  +        total['oldest'] = disk['oldest']
          390  +    else:
          391  +        total['oldest'] = ram['oldest']
          392  +
          393  +    def GetInHMS(seconds):
          394  +        hours = math.floor(seconds / 3600)
          395  +        seconds -= hours * 3600
          396  +        minutes = math.floor(seconds / 60)
          397  +        seconds -= minutes * 60
          398  +        seconds = math.floor(seconds)
          399  +
          400  +        return (hours, minutes, seconds)
          401  +
          402  +    ram['oldest'] = GetInHMS(time.time() - ram['oldest'])
          403  +    disk['oldest'] = GetInHMS(time.time() - disk['oldest'])
          404  +    total['oldest'] = GetInHMS(time.time() - total['oldest'])
          405  +
          406  +    return dict(form=form, total=total,
          407  +                ram=ram, disk=disk)
          408  +

Added applications/admin/controllers/default.py version [a84fa2354b].

            1  +# coding: utf8
            2  +
            3  +from gluon.admin import *
            4  +from gluon.fileutils import abspath, read_file, write_file
            5  +from glob import glob
            6  +import shutil
            7  +import platform
            8  +
            9  +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']:
           10  +    session.flash = T('disabled in demo mode')
           11  +    redirect(URL('site'))
           12  +
           13  +if not is_manager() and request.function in ['change_password','upgrade_web2py']:
           14  +    session.flash = T('disabled in multi user mode')
           15  +    redirect(URL('site'))
           16  +
           17  +if FILTER_APPS and request.args(0) and not request.args(0) in FILTER_APPS:
           18  +    session.flash = T('disabled in demo mode')
           19  +    redirect(URL('site'))
           20  +
           21  +def safe_open(a,b):
           22  +    if DEMO_MODE and 'w' in b:
           23  +        class tmp:
           24  +            def write(self,data): pass
           25  +        return tmp()
           26  +    return open(a,b)
           27  +
           28  +def safe_read(a, b='r'):
           29  +    safe_file = safe_open(a, b)
           30  +    try:
           31  +        return safe_file.read()
           32  +    finally:
           33  +        safe_file.close()
           34  +
           35  +def safe_write(a, value, b='w'):
           36  +    safe_file = safe_open(a, b)
           37  +    try:
           38  +        safe_file.write(value)
           39  +    finally:
           40  +        safe_file.close()
           41  +
           42  +def get_app(name=None):
           43  +    app = name or request.args(0)
           44  +    if app and (not MULTI_USER_MODE or db(db.app.name==app)(db.app.owner==auth.user.id).count()):
           45  +        return app
           46  +    session.flash = 'App does not exist or your are not authorized'
           47  +    redirect(URL('site'))
           48  +
           49  +def index():
           50  +    """ Index handler """
           51  +
           52  +    send = request.vars.send
           53  +    if DEMO_MODE:
           54  +        session.authorized = True
           55  +        session.last_time = t0
           56  +    if not send:
           57  +        send = URL('site')
           58  +    if session.authorized:
           59  +        redirect(send)
           60  +    elif request.vars.password:
           61  +        if verify_password(request.vars.password):
           62  +            session.authorized = True
           63  +            login_record(True)
           64  +
           65  +            if CHECK_VERSION:
           66  +                session.check_version = True
           67  +            else:
           68  +                session.check_version = False
           69  +
           70  +            session.last_time = t0
           71  +            if isinstance(send, list):  # ## why does this happen?
           72  +                send = str(send[0])
           73  +
           74  +            redirect(send)
           75  +        else:
           76  +            times_denied = login_record(False)
           77  +            if times_denied >= allowed_number_of_attempts:
           78  +                response.flash = \
           79  +                    T('admin disabled because too many invalid login attempts')
           80  +            elif times_denied == allowed_number_of_attempts - 1:
           81  +                response.flash = \
           82  +                    T('You have one more login attempt before you are locked out')
           83  +            else:
           84  +                response.flash = T('invalid password.')
           85  +    return dict(send=send)
           86  +
           87  +
           88  +def check_version():
           89  +    """ Checks if web2py is up to date """
           90  +
           91  +    session.forget()
           92  +    session._unlock(response)
           93  +
           94  +    new_version, version_number = check_new_version(request.env.web2py_version,
           95  +                                    WEB2PY_VERSION_URL)
           96  +
           97  +    if new_version == -1:
           98  +        return A(T('Unable to check for upgrades'), _href=WEB2PY_URL)
           99  +    elif new_version != True:
          100  +        return A(T('web2py is up to date'), _href=WEB2PY_URL)
          101  +    elif platform.system().lower() in ('windows','win32','win64') and os.path.exists("web2py.exe"):
          102  +        return SPAN('You should upgrade to version %s' % version_number)
          103  +    else:
          104  +        return sp_button(URL('upgrade_web2py'), T('upgrade now')) \
          105  +          + XML(' <strong class="upgrade_version">%s</strong>' % version_number)
          106  +
          107  +
          108  +def logout():
          109  +    """ Logout handler """
          110  +    session.authorized = None
          111  +    if MULTI_USER_MODE:
          112  +        redirect(URL('user/logout'))
          113  +    redirect(URL('index'))
          114  +
          115  +
          116  +def change_password():
          117  +
          118  +    if session.pam_user:
          119  +        session.flash = T('PAM authenticated user, cannot change password here')
          120  +        redirect(URL('site'))
          121  +    form=SQLFORM.factory(Field('current_admin_password','password'),
          122  +                         Field('new_admin_password','password',requires=IS_STRONG()),
          123  +                         Field('new_admin_password_again','password'))
          124  +    if form.accepts(request.vars):
          125  +        if not verify_password(request.vars.current_admin_password):
          126  +            form.errors.current_admin_password = T('invalid password')
          127  +        elif form.vars.new_admin_password != form.vars.new_admin_password_again:
          128  +            form.errors.new_admin_password_again = T('no match')
          129  +        else:
          130  +            path = abspath('parameters_%s.py' % request.env.server_port)
          131  +            safe_write(path, 'password="%s"' % CRYPT()(request.vars.new_admin_password)[0])
          132  +            session.flash = T('password changed')
          133  +            redirect(URL('site'))
          134  +    return dict(form=form)
          135  +
          136  +def site():
          137  +    """ Site handler """
          138  +
          139  +    myversion = request.env.web2py_version
          140  +
          141  +    # Shortcut to make the elif statements more legible
          142  +    file_or_appurl = 'file' in request.vars or 'appurl' in request.vars
          143  +
          144  +    if DEMO_MODE:
          145  +        pass
          146  +
          147  +    elif request.vars.filename and not 'file' in request.vars:
          148  +        # create a new application
          149  +        appname = cleanpath(request.vars.filename).replace('.', '_')
          150  +        if app_create(appname, request):
          151  +            if MULTI_USER_MODE:
          152  +                db.app.insert(name=appname,owner=auth.user.id)
          153  +            session.flash = T('new application "%s" created', appname)
          154  +            redirect(URL('design',args=appname))
          155  +        else:
          156  +            session.flash = \
          157  +                T('unable to create application "%s" (it may exist already)', request.vars.filename)
          158  +        redirect(URL(r=request))
          159  +
          160  +    elif file_or_appurl and not request.vars.filename:
          161  +        # can't do anything without an app name
          162  +        msg = 'you must specify a name for the uploaded application'
          163  +        response.flash = T(msg)
          164  +
          165  +    elif file_or_appurl and request.vars.filename:
          166  +        # fetch an application via URL or file upload
          167  +        f = None
          168  +        if request.vars.appurl is not '':
          169  +            try:
          170  +                f = urllib.urlopen(request.vars.appurl)
          171  +            except Exception, e:
          172  +                session.flash = DIV(T('Unable to download app because:'),PRE(str(e)))
          173  +                redirect(URL(r=request))
          174  +            fname = request.vars.appurl
          175  +        elif request.vars.file is not '':
          176  +            f = request.vars.file.file
          177  +            fname = request.vars.file.filename
          178  +
          179  +        if f:
          180  +            appname = cleanpath(request.vars.filename).replace('.', '_')
          181  +            installed = app_install(appname, f, request, fname,
          182  +                                    overwrite=request.vars.overwrite_check)
          183  +        if f and installed:
          184  +            msg = 'application %(appname)s installed with md5sum: %(digest)s'
          185  +            session.flash = T(msg, dict(appname=appname,
          186  +                                        digest=md5_hash(installed)))
          187  +        elif f and request.vars.overwrite_check:
          188  +            msg = 'unable to install application "%(appname)s"'
          189  +            session.flash = T(msg, dict(appname=request.vars.filename))
          190  +
          191  +        else:
          192  +            msg = 'unable to install application "%(appname)s"'
          193  +            session.flash = T(msg, dict(appname=request.vars.filename))
          194  +
          195  +        redirect(URL(r=request))
          196  +
          197  +    regex = re.compile('^\w+$')
          198  +
          199  +    if is_manager():
          200  +        apps = [f for f in os.listdir(apath(r=request)) if regex.match(f)]
          201  +    else:
          202  +        apps = [f.name for f in db(db.app.owner==auth.user_id).select()]
          203  +
          204  +    if FILTER_APPS:
          205  +        apps = [f for f in apps if f in FILTER_APPS]
          206  +
          207  +    apps = sorted(apps,lambda a,b:cmp(a.upper(),b.upper()))
          208  +
          209  +    return dict(app=None, apps=apps, myversion=myversion)
          210  +
          211  +
          212  +def pack():
          213  +    app = get_app()
          214  +
          215  +    if len(request.args) == 1:
          216  +        fname = 'web2py.app.%s.w2p' % app
          217  +        filename = app_pack(app, request)
          218  +    else:
          219  +        fname = 'web2py.app.%s.compiled.w2p' % app
          220  +        filename = app_pack_compiled(app, request)
          221  +
          222  +    if filename:
          223  +        response.headers['Content-Type'] = 'application/w2p'
          224  +        disposition = 'attachment; filename=%s' % fname
          225  +        response.headers['Content-Disposition'] = disposition
          226  +        return safe_read(filename, 'rb')
          227  +    else:
          228  +        session.flash = T('internal error')
          229  +        redirect(URL('site'))
          230  +
          231  +def pack_plugin():
          232  +    app = get_app()
          233  +    if len(request.args) == 2:
          234  +        fname = 'web2py.plugin.%s.w2p' % request.args[1]
          235  +        filename = plugin_pack(app, request.args[1], request)
          236  +    if filename:
          237  +        response.headers['Content-Type'] = 'application/w2p'
          238  +        disposition = 'attachment; filename=%s' % fname
          239  +        response.headers['Content-Disposition'] = disposition
          240  +        return safe_read(filename, 'rb')
          241  +    else:
          242  +        session.flash = T('internal error')
          243  +        redirect(URL('plugin',args=request.args))
          244  +
          245  +def upgrade_web2py():
          246  +    if 'upgrade' in request.vars:
          247  +        (success, error) = upgrade(request)
          248  +        if success:
          249  +            session.flash = T('web2py upgraded; please restart it')
          250  +        else:
          251  +            session.flash = T('unable to upgrade because "%s"', error)
          252  +        redirect(URL('site'))
          253  +    elif 'noupgrade' in request.vars:
          254  +        redirect(URL('site'))
          255  +    return dict()
          256  +
          257  +def uninstall():
          258  +    app = get_app()
          259  +    if 'delete' in request.vars:
          260  +        if MULTI_USER_MODE:
          261  +            if is_manager() and db(db.app.name==app).delete():
          262  +                pass
          263  +            elif db(db.app.name==app)(db.app.owner==auth.user.id).delete():
          264  +                pass
          265  +            else:
          266  +                session.flash = T('no permission to uninstall "%s"', app)
          267  +                redirect(URL('site'))
          268  +        if app_uninstall(app, request):            
          269  +            session.flash = T('application "%s" uninstalled', app)
          270  +        else:
          271  +            session.flash = T('unable to uninstall "%s"', app)
          272  +        redirect(URL('site'))
          273  +    elif 'nodelete' in request.vars:
          274  +        redirect(URL('site'))
          275  +    return dict(app=app)
          276  +
          277  +
          278  +def cleanup():
          279  +    app = get_app()
          280  +    clean = app_cleanup(app, request)
          281  +    if not clean:
          282  +        session.flash = T("some files could not be removed")
          283  +    else:
          284  +        session.flash = T('cache, errors and sessions cleaned')
          285  +
          286  +    redirect(URL('site'))
          287  +
          288  +
          289  +def compile_app():
          290  +    app = get_app()
          291  +    c = app_compile(app, request)
          292  +    if not c:
          293  +        session.flash = T('application compiled')
          294  +    else:
          295  +        session.flash = DIV(T('Cannot compile: there are errors in your app:'),
          296  +                              CODE(c))
          297  +    redirect(URL('site'))
          298  +
          299  +
          300  +def remove_compiled_app():
          301  +    """ Remove the compiled application """
          302  +    app = get_app()
          303  +    remove_compiled_application(apath(app, r=request))
          304  +    session.flash = T('compiled application removed')
          305  +    redirect(URL('site'))
          306  +
          307  +def delete():
          308  +    """ Object delete handler """
          309  +    app = get_app()
          310  +    filename = '/'.join(request.args)
          311  +    sender = request.vars.sender
          312  +
          313  +    if isinstance(sender, list):  # ## fix a problem with Vista
          314  +        sender = sender[0]
          315  +
          316  +    if 'nodelete' in request.vars:
          317  +        redirect(URL(sender))
          318  +    elif 'delete' in request.vars:
          319  +        try:
          320  +            os.unlink(apath(filename, r=request))
          321  +            session.flash = T('file "%(filename)s" deleted',
          322  +                              dict(filename=filename))
          323  +        except Exception:
          324  +            session.flash = T('unable to delete file "%(filename)s"',
          325  +                              dict(filename=filename))
          326  +        redirect(URL(sender))
          327  +    return dict(filename=filename, sender=sender)
          328  +
          329  +def peek():
          330  +    """ Visualize object code """
          331  +    app = get_app()
          332  +    filename = '/'.join(request.args)
          333  +    try:
          334  +        data = safe_read(apath(filename, r=request)).replace('\r','')
          335  +    except IOError:
          336  +        session.flash = T('file does not exist')
          337  +        redirect(URL('site'))
          338  +
          339  +    extension = filename[filename.rfind('.') + 1:].lower()
          340  +
          341  +    return dict(app=request.args[0],
          342  +                filename=filename,
          343  +                data=data,
          344  +                extension=extension)
          345  +
          346  +
          347  +def test():
          348  +    """ Execute controller tests """
          349  +    app = get_app()
          350  +    if len(request.args) > 1:
          351  +        file = request.args[1]
          352  +    else:
          353  +        file = '.*\.py'
          354  +
          355  +    controllers = listdir(apath('%s/controllers/' % app, r=request), file + '$')
          356  +
          357  +    return dict(app=app, controllers=controllers)
          358  +
          359  +def keepalive():
          360  +    return ''
          361  +
          362  +def search():
          363  +    keywords=request.vars.keywords or ''
          364  +    app = get_app()
          365  +    def match(filename,keywords):
          366  +        filename=os.path.join(apath(app, r=request),filename)
          367  +        if keywords in read_file(filename,'rb'):
          368  +            return True
          369  +        return False
          370  +    path = apath(request.args[0], r=request)
          371  +    files1 = glob(os.path.join(path,'*/*.py'))
          372  +    files2 = glob(os.path.join(path,'*/*.html'))
          373  +    files3 = glob(os.path.join(path,'*/*/*.html'))
          374  +    files=[x[len(path)+1:].replace('\\','/') for x in files1+files2+files3 if match(x,keywords)]
          375  +    return response.json({'files':files})
          376  +
          377  +def edit():
          378  +    """ File edit handler """
          379  +    # Load json only if it is ajax edited...
          380  +    app = get_app()
          381  +    filename = '/'.join(request.args)
          382  +    # Try to discover the file type
          383  +    if filename[-3:] == '.py':
          384  +        filetype = 'python'
          385  +    elif filename[-5:] == '.html':
          386  +        filetype = 'html'
          387  +    elif filename[-5:] == '.load':
          388  +        filetype = 'html'
          389  +    elif filename[-4:] == '.css':
          390  +        filetype = 'css'
          391  +    elif filename[-3:] == '.js':
          392  +        filetype = 'js'
          393  +    else:
          394  +        filetype = 'html'
          395  +
          396  +    # ## check if file is not there
          397  +
          398  +    path = apath(filename, r=request)
          399  +
          400  +    if request.vars.revert and os.path.exists(path + '.bak'):
          401  +        try:
          402  +            data = safe_read(path + '.bak')
          403  +            data1 = safe_read(path)
          404  +        except IOError:
          405  +            session.flash = T('Invalid action')
          406  +            if 'from_ajax' in request.vars:
          407  +                 return response.json({'error': str(T('Invalid action'))})
          408  +            else:
          409  +                redirect(URL('site'))
          410  +
          411  +        safe_write(path, data)
          412  +        file_hash = md5_hash(data)
          413  +        saved_on = time.ctime(os.stat(path)[stat.ST_MTIME])
          414  +        safe_write(path + '.bak', data1)
          415  +        response.flash = T('file "%s" of %s restored', (filename, saved_on))
          416  +    else:
          417  +        try:
          418  +            data = safe_read(path)
          419  +        except IOError:
          420  +            session.flash = T('Invalid action')
          421  +            if 'from_ajax' in request.vars:
          422  +                return response.json({'error': str(T('Invalid action'))})
          423  +            else:
          424  +                redirect(URL('site'))
          425  +
          426  +        file_hash = md5_hash(data)
          427  +        saved_on = time.ctime(os.stat(path)[stat.ST_MTIME])
          428  +
          429  +        if request.vars.file_hash and request.vars.file_hash != file_hash:
          430  +            session.flash = T('file changed on disk')
          431  +            data = request.vars.data.replace('\r\n', '\n').strip() + '\n'
          432  +            safe_write(path + '.1', data)
          433  +            if 'from_ajax' in request.vars:
          434  +                return response.json({'error': str(T('file changed on disk')),
          435  +                                      'redirect': URL('resolve',
          436  +                                                      args=request.args)})
          437  +            else:
          438  +                redirect(URL('resolve', args=request.args))
          439  +        elif request.vars.data:
          440  +            safe_write(path + '.bak', data)
          441  +            data = request.vars.data.replace('\r\n', '\n').strip() + '\n'
          442  +            safe_write(path, data)
          443  +            file_hash = md5_hash(data)
          444  +            saved_on = time.ctime(os.stat(path)[stat.ST_MTIME])
          445  +            response.flash = T('file saved on %s', saved_on)
          446  +
          447  +    data_or_revert = (request.vars.data or request.vars.revert)
          448  +
          449  +    # Check compile errors
          450  +    highlight = None
          451  +    if filetype == 'python' and request.vars.data:
          452  +        import _ast
          453  +        try:
          454  +            code = request.vars.data.rstrip().replace('\r\n','\n')+'\n'
          455  +            compile(code, path, "exec", _ast.PyCF_ONLY_AST)
          456  +        except Exception, e:
          457  +            start = sum([len(line)+1 for l, line
          458  +                            in enumerate(request.vars.data.split("\n"))
          459  +                            if l < e.lineno-1])
          460  +            if e.text and e.offset:
          461  +                offset = e.offset - (len(e.text) - len(e.text.splitlines()[-1]))
          462  +            else:
          463  +                offset = 0
          464  +            highlight = {'start': start, 'end': start + offset + 1}
          465  +            try:
          466  +                ex_name = e.__class__.__name__
          467  +            except:
          468  +                ex_name = 'unknown exception!'
          469  +            response.flash = DIV(T('failed to compile file because:'), BR(),
          470  +                                 B(ex_name), T(' at line %s') % e.lineno,
          471  +                                 offset and T(' at char %s') % offset or '',
          472  +                                 PRE(str(e)))
          473  +
          474  +    if data_or_revert and request.args[1] == 'modules':
          475  +        # Lets try to reload the modules
          476  +        try:
          477  +            mopath = '.'.join(request.args[2:])[:-3]
          478  +            exec 'import applications.%s.modules.%s' % (request.args[0], mopath)
          479  +            reload(sys.modules['applications.%s.modules.%s'
          480  +                    % (request.args[0], mopath)])
          481  +        except Exception, e:
          482  +            response.flash = DIV(T('failed to reload module because:'),PRE(str(e)))
          483  +
          484  +    edit_controller = None
          485  +    editviewlinks = None
          486  +    view_link = None
          487  +    if filetype == 'html' and len(request.args) >= 3:
          488  +        cfilename = os.path.join(request.args[0], 'controllers',
          489  +                                 request.args[2] + '.py')
          490  +        if os.path.exists(apath(cfilename, r=request)):
          491  +            edit_controller = URL('edit', args=[cfilename])
          492  +            view = request.args[3].replace('.html','')
          493  +            view_link = URL(request.args[0],request.args[2],view)
          494  +    elif filetype == 'python' and request.args[1] == 'controllers':
          495  +        ## it's a controller file.
          496  +        ## Create links to all of the associated view files.
          497  +        app = get_app()
          498  +        viewname = os.path.splitext(request.args[2])[0]
          499  +        viewpath = os.path.join(app,'views',viewname)
          500  +        aviewpath = apath(viewpath, r=request)
          501  +        viewlist = []
          502  +        if os.path.exists(aviewpath):
          503  +            if os.path.isdir(aviewpath):
          504  +                viewlist = glob(os.path.join(aviewpath,'*.html'))
          505  +        elif os.path.exists(aviewpath+'.html'):
          506  +            viewlist.append(aviewpath+'.html')
          507  +        if len(viewlist):
          508  +            editviewlinks = []
          509  +            for v in viewlist:
          510  +                vf = os.path.split(v)[-1]
          511  +                vargs = "/".join([viewpath.replace(os.sep,"/"),vf])
          512  +                editviewlinks.append(A(T(vf.split(".")[0]),\
          513  +                    _href=URL('edit',args=[vargs])))
          514  +
          515  +    if len(request.args) > 2 and request.args[1] == 'controllers':
          516  +        controller = (request.args[2])[:-3]
          517  +        functions = regex_expose.findall(data)
          518  +    else:
          519  +        (controller, functions) = (None, None)
          520  +
          521  +    if 'from_ajax' in request.vars:
          522  +        return response.json({'file_hash': file_hash, 'saved_on': saved_on, 'functions':functions, 'controller': controller, 'application': request.args[0], 'highlight': highlight })
          523  +    else:
          524  +
          525  +        editarea_preferences = {}
          526  +        editarea_preferences['FONT_SIZE'] = '10'
          527  +        editarea_preferences['FULL_SCREEN'] = 'false'
          528  +        editarea_preferences['ALLOW_TOGGLE'] = 'true'
          529  +        editarea_preferences['REPLACE_TAB_BY_SPACES'] = '4'
          530  +        editarea_preferences['DISPLAY'] = 'onload'
          531  +        for key in editarea_preferences:
          532  +            if globals().has_key(key):
          533  +                editarea_preferences[key]=globals()[key]
          534  +        return dict(app=request.args[0],
          535  +                    filename=filename,
          536  +                    filetype=filetype,
          537  +                    data=data,
          538  +                    edit_controller=edit_controller,
          539  +                    file_hash=file_hash,
          540  +                    saved_on=saved_on,
          541  +                    controller=controller,
          542  +                    functions=functions,
          543  +                    view_link=view_link,
          544  +                    editarea_preferences=editarea_preferences,
          545  +                    editviewlinks=editviewlinks)
          546  +
          547  +def resolve():
          548  +    """
          549  +    """
          550  +
          551  +    filename = '/'.join(request.args)
          552  +    # ## check if file is not there
          553  +    path = apath(filename, r=request)
          554  +    a = safe_read(path).split('\n')
          555  +    try:
          556  +        b = safe_read(path + '.1').split('\n')
          557  +    except IOError:
          558  +        session.flash = 'Other file, no longer there'
          559  +        redirect(URL('edit', args=request.args))
          560  +
          561  +    d = difflib.ndiff(a, b)
          562  +
          563  +    def leading(line):
          564  +        """  """
          565  +
          566  +        # TODO: we really need to comment this
          567  +        z = ''
          568  +        for (k, c) in enumerate(line):
          569  +            if c == ' ':
          570  +                z += '&nbsp;'
          571  +            elif c == ' \t':
          572  +                z += '&nbsp;'
          573  +            elif k == 0 and c == '?':
          574  +                pass
          575  +            else:
          576  +                break
          577  +
          578  +        return XML(z)
          579  +
          580  +    def getclass(item):
          581  +        """ Determine item class """
          582  +
          583  +        if item[0] == ' ':
          584  +            return 'normal'
          585  +        if item[0] == '+':
          586  +            return 'plus'
          587  +        if item[0] == '-':
          588  +            return 'minus'
          589  +
          590  +    if request.vars:
          591  +        c = ''.join([item[2:] for (i, item) in enumerate(d) if item[0] \
          592  +                     == ' ' or 'line%i' % i in request.vars])
          593  +        safe_write(path, c)
          594  +        session.flash = 'files merged'
          595  +        redirect(URL('edit', args=request.args))
          596  +    else:
          597  +        # Making the short circuit compatible with <= python2.4
          598  +        gen_data = lambda index,item: not item[:1] in ['+','-'] and "" \
          599  +                   or INPUT(_type='checkbox',
          600  +                            _name='line%i' % index,
          601  +                            value=item[0] == '+')
          602  +
          603  +        diff = TABLE(*[TR(TD(gen_data(i,item)),
          604  +                          TD(item[0]),
          605  +                          TD(leading(item[2:]),
          606  +                          TT(item[2:].rstrip())), _class=getclass(item))
          607  +                       for (i, item) in enumerate(d) if item[0] != '?'])
          608  +
          609  +    return dict(diff=diff, filename=filename)
          610  +
          611  +
          612  +def edit_language():
          613  +    """ Edit language file """
          614  +    app = get_app()
          615  +    filename = '/'.join(request.args)
          616  +    from gluon.languages import read_dict, write_dict
          617  +    strings = read_dict(apath(filename, r=request))
          618  +    keys = sorted(strings.keys(),lambda x,y: cmp(x.lower(), y.lower()))
          619  +    rows = []
          620  +    rows.append(H2(T('Original/Translation')))
          621  +
          622  +    for key in keys:
          623  +        name = md5_hash(key)
          624  +        if key==strings[key]:
          625  +            _class='untranslated'
          626  +        else:
          627  +            _class='translated'
          628  +        if len(key) <= 40:
          629  +            elem = INPUT(_type='text', _name=name,value=strings[key],
          630  +                         _size=70,_class=_class)
          631  +        else:
          632  +            elem = TEXTAREA(_name=name, value=strings[key], _cols=70,
          633  +                            _rows=5, _class=_class)
          634  +
          635  +        # Making the short circuit compatible with <= python2.4
          636  +        k = (strings[key] != key) and key or B(key)
          637  +
          638  +        rows.append(P(k, BR(), elem, TAG.BUTTON(T('delete'),
          639  +                            _onclick='return delkey("%s")' % name), _id=name))
          640  +
          641  +    rows.append(INPUT(_type='submit', _value=T('update')))
          642  +    form = FORM(*rows)
          643  +    if form.accepts(request.vars, keepvalues=True):
          644  +        strs = dict()
          645  +        for key in keys:
          646  +            name = md5_hash(key)
          647  +            if form.vars[name]==chr(127): continue
          648  +            strs[key] = form.vars[name]
          649  +        write_dict(apath(filename, r=request), strs)
          650  +        session.flash = T('file saved on %(time)s', dict(time=time.ctime()))
          651  +        redirect(URL(r=request,args=request.args))
          652  +    return dict(app=request.args[0], filename=filename, form=form)
          653  +
          654  +
          655  +def about():
          656  +    """ Read about info """
          657  +    app = get_app()
          658  +    # ## check if file is not there
          659  +    about = safe_read(apath('%s/ABOUT' % app, r=request))
          660  +    license = safe_read(apath('%s/LICENSE' % app, r=request))
          661  +    return dict(app=app, about=MARKMIN(about), license=MARKMIN(license))
          662  +
          663  +
          664  +def design():
          665  +    """ Application design handler """
          666  +    app = get_app()
          667  +
          668  +    if not response.flash and app == request.application:
          669  +        msg = T('ATTENTION: you cannot edit the running application!')
          670  +        response.flash = msg
          671  +
          672  +    if request.vars.pluginfile!=None and not isinstance(request.vars.pluginfile,str):
          673  +        filename=os.path.basename(request.vars.pluginfile.filename)
          674  +        if plugin_install(app, request.vars.pluginfile.file,
          675  +                          request, filename):
          676  +            session.flash = T('new plugin installed')
          677  +            redirect(URL('design',args=app))
          678  +        else:
          679  +            session.flash = \
          680  +                T('unable to create application "%s"', request.vars.filename)
          681  +        redirect(URL(r=request))
          682  +    elif isinstance(request.vars.pluginfile,str):
          683  +        session.flash = T('plugin not specified')
          684  +        redirect(URL(r=request))
          685  +
          686  +
          687  +    # If we have only pyc files it means that
          688  +    # we cannot design
          689  +    if os.path.exists(apath('%s/compiled' % app, r=request)):
          690  +        session.flash = \
          691  +            T('application is compiled and cannot be designed')
          692  +        redirect(URL('site'))
          693  +
          694  +    # Get all models
          695  +    models = listdir(apath('%s/models/' % app, r=request), '.*\.py$')
          696  +    models=[x.replace('\\','/') for x in models]
          697  +    defines = {}
          698  +    for m in models:
          699  +        data = safe_read(apath('%s/models/%s' % (app, m), r=request))
          700  +        defines[m] = regex_tables.findall(data)
          701  +        defines[m].sort()
          702  +
          703  +    # Get all controllers
          704  +    controllers = sorted(listdir(apath('%s/controllers/' % app, r=request), '.*\.py$'))
          705  +    controllers = [x.replace('\\','/') for x in controllers]
          706  +    functions = {}
          707  +    for c in controllers:
          708  +        data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
          709  +        items = regex_expose.findall(data)
          710  +        functions[c] = items
          711  +
          712  +    # Get all views
          713  +    views = sorted(listdir(apath('%s/views/' % app, r=request), '[\w/\-]+\.\w+$'))
          714  +    views = [x.replace('\\','/') for x in views]
          715  +    extend = {}
          716  +    include = {}
          717  +    for c in views:
          718  +        data = safe_read(apath('%s/views/%s' % (app, c), r=request))
          719  +        items = regex_extend.findall(data)
          720  +
          721  +        if items:
          722  +            extend[c] = items[0][1]
          723  +
          724  +        items = regex_include.findall(data)
          725  +        include[c] = [i[1] for i in items]
          726  +
          727  +    # Get all modules
          728  +    modules = listdir(apath('%s/modules/' % app, r=request), '.*\.py$')
          729  +    modules = modules=[x.replace('\\','/') for x in modules]
          730  +    modules.sort()
          731  +
          732  +    # Get all static files
          733  +    statics = listdir(apath('%s/static/' % app, r=request), '[^\.#].*')
          734  +    statics = [x.replace('\\','/') for x in statics]
          735  +    statics.sort()
          736  +
          737  +    # Get all languages
          738  +    languages = listdir(apath('%s/languages/' % app, r=request), '[\w-]*\.py')
          739  +
          740  +    #Get crontab
          741  +    cronfolder = apath('%s/cron' % app, r=request)
          742  +    if not os.path.exists(cronfolder): os.mkdir(cronfolder)
          743  +    crontab = apath('%s/cron/crontab' % app, r=request)
          744  +    if not os.path.exists(crontab):
          745  +        safe_write(crontab, '#crontab')
          746  +
          747  +    plugins=[]
          748  +    def filter_plugins(items,plugins):
          749  +        plugins+=[item[7:].split('/')[0].split('.')[0] for item in items if item.startswith('plugin_')]
          750  +        plugins[:]=list(set(plugins))
          751  +        plugins.sort()
          752  +        return [item for item in items if not item.startswith('plugin_')]
          753  +
          754  +    return dict(app=app,
          755  +                models=filter_plugins(models,plugins),
          756  +                defines=defines,
          757  +                controllers=filter_plugins(controllers,plugins),
          758  +                functions=functions,
          759  +                views=filter_plugins(views,plugins),
          760  +                modules=filter_plugins(modules,plugins),
          761  +                extend=extend,
          762  +                include=include,
          763  +                statics=filter_plugins(statics,plugins),
          764  +                languages=languages,
          765  +                crontab=crontab,
          766  +                plugins=plugins)
          767  +
          768  +def delete_plugin():
          769  +    """ Object delete handler """
          770  +    app=request.args(0)
          771  +    plugin = request.args(1)
          772  +    plugin_name='plugin_'+plugin
          773  +    if 'nodelete' in request.vars:
          774  +        redirect(URL('design',args=app))
          775  +    elif 'delete' in request.vars:
          776  +        try:
          777  +            for folder in ['models','views','controllers','static','modules']:
          778  +                path=os.path.join(apath(app,r=request),folder)
          779  +                for item in os.listdir(path):
          780  +                    if item.startswith(plugin_name):
          781  +                        filename=os.path.join(path,item)
          782  +                        if os.path.isdir(filename):
          783  +                            shutil.rmtree(filename)
          784  +                        else:
          785  +                            os.unlink(filename)
          786  +            session.flash = T('plugin "%(plugin)s" deleted',
          787  +                              dict(plugin=plugin))
          788  +        except Exception:
          789  +            session.flash = T('unable to delete file plugin "%(plugin)s"',
          790  +                              dict(plugin=plugin))
          791  +        redirect(URL('design',args=request.args(0)))
          792  +    return dict(plugin=plugin)
          793  +
          794  +def plugin():
          795  +    """ Application design handler """
          796  +    app = get_app()
          797  +    plugin = request.args(1)
          798  +
          799  +    if not response.flash and app == request.application:
          800  +        msg = T('ATTENTION: you cannot edit the running application!')
          801  +        response.flash = msg
          802  +
          803  +    # If we have only pyc files it means that
          804  +    # we cannot design
          805  +    if os.path.exists(apath('%s/compiled' % app, r=request)):
          806  +        session.flash = \
          807  +            T('application is compiled and cannot be designed')
          808  +        redirect(URL('site'))
          809  +
          810  +    # Get all models
          811  +    models = listdir(apath('%s/models/' % app, r=request), '.*\.py$')
          812  +    models=[x.replace('\\','/') for x in models]
          813  +    defines = {}
          814  +    for m in models:
          815  +        data = safe_read(apath('%s/models/%s' % (app, m), r=request))
          816  +        defines[m] = regex_tables.findall(data)
          817  +        defines[m].sort()
          818  +
          819  +    # Get all controllers
          820  +    controllers = sorted(listdir(apath('%s/controllers/' % app, r=request), '.*\.py$'))
          821  +    controllers = [x.replace('\\','/') for x in controllers]
          822  +    functions = {}
          823  +    for c in controllers:
          824  +        data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
          825  +        items = regex_expose.findall(data)
          826  +        functions[c] = items
          827  +
          828  +    # Get all views
          829  +    views = sorted(listdir(apath('%s/views/' % app, r=request), '[\w/\-]+\.\w+$'))
          830  +    views = [x.replace('\\','/') for x in views]
          831  +    extend = {}
          832  +    include = {}
          833  +    for c in views:
          834  +        data = safe_read(apath('%s/views/%s' % (app, c), r=request))
          835  +        items = regex_extend.findall(data)
          836  +        if items:
          837  +            extend[c] = items[0][1]
          838  +
          839  +        items = regex_include.findall(data)
          840  +        include[c] = [i[1] for i in items]
          841  +
          842  +    # Get all modules
          843  +    modules = listdir(apath('%s/modules/' % app, r=request), '.*\.py$')
          844  +    modules = modules=[x.replace('\\','/') for x in modules]
          845  +    modules.sort()
          846  +
          847  +    # Get all static files
          848  +    statics = listdir(apath('%s/static/' % app, r=request), '[^\.#].*')
          849  +    statics = [x.replace('\\','/') for x in statics]
          850  +    statics.sort()
          851  +
          852  +    # Get all languages
          853  +    languages = listdir(apath('%s/languages/' % app, r=request), '[\w-]*\.py')
          854  +
          855  +    #Get crontab
          856  +    crontab = apath('%s/cron/crontab' % app, r=request)
          857  +    if not os.path.exists(crontab):
          858  +        safe_write(crontab, '#crontab')
          859  +
          860  +    def filter_plugins(items):
          861  +        regex=re.compile('^plugin_'+plugin+'(/.*|\..*)?$')
          862  +        return [item for item in items if regex.match(item)]
          863  +
          864  +    return dict(app=app,
          865  +                models=filter_plugins(models),
          866  +                defines=defines,
          867  +                controllers=filter_plugins(controllers),
          868  +                functions=functions,
          869  +                views=filter_plugins(views),
          870  +                modules=filter_plugins(modules),
          871  +                extend=extend,
          872  +                include=include,
          873  +                statics=filter_plugins(statics),
          874  +                languages=languages,
          875  +                crontab=crontab)
          876  +
          877  +
          878  +def create_file():
          879  +    """ Create files handler """
          880  +    try:
          881  +        app = get_app(name=request.vars.location.split('/')[0])
          882  +        path = apath(request.vars.location, r=request)
          883  +        filename = re.sub('[^\w./-]+', '_', request.vars.filename)
          884  +
          885  +        if path[-11:] == '/languages/':
          886  +            # Handle language files
          887  +            if len(filename) == 0:
          888  +                raise SyntaxError
          889  +            if not filename[-3:] == '.py':
          890  +                filename += '.py'
          891  +            app = path.split('/')[-3]
          892  +            path=os.path.join(apath(app, r=request),'languages',filename)
          893  +            if not os.path.exists(path):
          894  +                safe_write(path, '')
          895  +            findT(apath(app, r=request), filename[:-3])
          896  +            session.flash = T('language file "%(filename)s" created/updated',
          897  +                              dict(filename=filename))
          898  +            redirect(request.vars.sender)
          899  +
          900  +        elif path[-8:] == '/models/':
          901  +            # Handle python models
          902  +            if not filename[-3:] == '.py':
          903  +                filename += '.py'
          904  +
          905  +            if len(filename) == 3:
          906  +                raise SyntaxError
          907  +
          908  +            text = '# coding: utf8\n'
          909  +
          910  +        elif path[-13:] == '/controllers/':
          911  +            # Handle python controllers
          912  +            if not filename[-3:] == '.py':
          913  +                filename += '.py'
          914  +
          915  +            if len(filename) == 3:
          916  +                raise SyntaxError
          917  +
          918  +            text = '# coding: utf8\n# %s\ndef index(): return dict(message="hello from %s")'
          919  +            text = text % (T('try something like'), filename)
          920  +
          921  +        elif path[-7:] == '/views/':
          922  +            if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin):
          923  +                filename = 'plugin_%s/%s' % (request.vars.plugin, filename)
          924  +            # Handle template (html) views
          925  +            if filename.find('.')<0:
          926  +                filename += '.html'
          927  +            extension = filename.split('.')[-1].lower()
          928  +
          929  +            if len(filename) == 5:
          930  +                raise SyntaxError
          931  +
          932  +            msg = T('This is the %(filename)s template',
          933  +                    dict(filename=filename))            
          934  +            if extension == 'html':
          935  +                text = dedent("""
          936  +                   {{extend 'layout.html'}}
          937  +                   <h1>%s</h1>
          938  +                   {{=BEAUTIFY(response._vars)}}""" % msg)
          939  +            else:
          940  +                generic = os.path.join(path,'generic.'+extension)
          941  +                if os.path.exists(generic):
          942  +                    text = read_file(generic)
          943  +                else:
          944  +                    text = ''
          945  +                
          946  +        elif path[-9:] == '/modules/':
          947  +            if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin):
          948  +                filename = 'plugin_%s/%s' % (request.vars.plugin, filename)
          949  +            # Handle python module files
          950  +            if not filename[-3:] == '.py':
          951  +                filename += '.py'
          952  +
          953  +            if len(filename) == 3:
          954  +                raise SyntaxError
          955  +
          956  +            text = dedent("""
          957  +                   #!/usr/bin/env python
          958  +                   # coding: utf8
          959  +                   from gluon import *\n""")
          960  +
          961  +        elif path[-8:] == '/static/':
          962  +            if request.vars.plugin and not filename.startswith('plugin_%s/' % request.vars.plugin):
          963  +                filename = 'plugin_%s/%s' % (request.vars.plugin, filename)
          964  +            text = ''
          965  +        else:
          966  +            redirect(request.vars.sender)
          967  +
          968  +        full_filename = os.path.join(path, filename)
          969  +        dirpath = os.path.dirname(full_filename)
          970  +
          971  +        if not os.path.exists(dirpath):
          972  +            os.makedirs(dirpath)
          973  +
          974  +        if os.path.exists(full_filename):
          975  +            raise SyntaxError
          976  +
          977  +        safe_write(full_filename, text)
          978  +        session.flash = T('file "%(filename)s" created',
          979  +                          dict(filename=full_filename[len(path):]))
          980  +        redirect(URL('edit',
          981  +                 args=[os.path.join(request.vars.location, filename)]))
          982  +    except Exception, e:
          983  +        if not isinstance(e,HTTP):
          984  +            session.flash = T('cannot create file')
          985  +
          986  +    redirect(request.vars.sender)
          987  +
          988  +
          989  +def upload_file():
          990  +    """ File uploading handler """
          991  +
          992  +    try:
          993  +        filename = None
          994  +        app = get_app(name=request.vars.location.split('/')[0])
          995  +        path = apath(request.vars.location, r=request)
          996  +
          997  +        if request.vars.filename:
          998  +            filename = re.sub('[^\w\./]+', '_', request.vars.filename)
          999  +        else:
         1000  +            filename = os.path.split(request.vars.file.filename)[-1]
         1001  +
         1002  +        if path[-8:] == '/models/' and not filename[-3:] == '.py':
         1003  +            filename += '.py'
         1004  +
         1005  +        if path[-9:] == '/modules/' and not filename[-3:] == '.py':
         1006  +            filename += '.py'
         1007  +
         1008  +        if path[-13:] == '/controllers/' and not filename[-3:] == '.py':
         1009  +            filename += '.py'
         1010  +
         1011  +        if path[-7:] == '/views/' and not filename[-5:] == '.html':
         1012  +            filename += '.html'
         1013  +
         1014  +        if path[-11:] == '/languages/' and not filename[-3:] == '.py':
         1015  +            filename += '.py'
         1016  +
         1017  +        filename = os.path.join(path, filename)
         1018  +        dirpath = os.path.dirname(filename)
         1019  +
         1020  +        if not os.path.exists(dirpath):
         1021  +            os.makedirs(dirpath)
         1022  +
         1023  +        safe_write(filename, request.vars.file.file.read(), 'wb')
         1024  +        session.flash = T('file "%(filename)s" uploaded',
         1025  +                          dict(filename=filename[len(path):]))
         1026  +    except Exception:
         1027  +        if filename:
         1028  +            d = dict(filename = filename[len(path):])
         1029  +        else:
         1030  +            d = dict(filename = 'unkown')
         1031  +        session.flash = T('cannot upload file "%(filename)s"', d)
         1032  +
         1033  +    redirect(request.vars.sender)
         1034  +
         1035  +
         1036  +def errors():
         1037  +    """ Error handler """
         1038  +    import operator
         1039  +    import os
         1040  +    import pickle
         1041  +    import hashlib
         1042  +
         1043  +    app = get_app()
         1044  +
         1045  +    method = request.args(1) or 'new'
         1046  +
         1047  +
         1048  +    if method == 'new':
         1049  +        errors_path = apath('%s/errors' % app, r=request)
         1050  +
         1051  +        delete_hashes = []
         1052  +        for item in request.vars:
         1053  +            if item[:7] == 'delete_':
         1054  +                delete_hashes.append(item[7:])
         1055  +
         1056  +        hash2error = dict()
         1057  +
         1058  +        for fn in listdir(errors_path, '^\w.*'):
         1059  +            fullpath = os.path.join(errors_path, fn)
         1060  +            if not os.path.isfile(fullpath): continue
         1061  +            try:
         1062  +                fullpath_file = open(fullpath, 'r')
         1063  +                try:
         1064  +                    error = pickle.load(fullpath_file)
         1065  +                finally:
         1066  +                    fullpath_file.close()
         1067  +            except IOError:
         1068  +                continue
         1069  +
         1070  +            hash = hashlib.md5(error['traceback']).hexdigest()
         1071  +
         1072  +            if hash in delete_hashes:
         1073  +                os.unlink(fullpath)
         1074  +            else:
         1075  +                try:
         1076  +                    hash2error[hash]['count'] += 1
         1077  +                except KeyError:
         1078  +                    error_lines = error['traceback'].split("\n")
         1079  +                    last_line = error_lines[-2]
         1080  +                    error_causer = os.path.split(error['layer'])[1]
         1081  +                    hash2error[hash] = dict(count=1, pickel=error,
         1082  +                                            causer=error_causer,
         1083  +                                            last_line=last_line,
         1084  +                                            hash=hash,ticket=fn)
         1085  +
         1086  +        decorated = [(x['count'], x) for x in hash2error.values()]
         1087  +        decorated.sort(key=operator.itemgetter(0), reverse=True)
         1088  +
         1089  +        return dict(errors = [x[1] for x in decorated], app=app, method=method)
         1090  +    else:
         1091  +        for item in request.vars:
         1092  +            if item[:7] == 'delete_':
         1093  +                os.unlink(apath('%s/errors/%s' % (app, item[7:]), r=request))
         1094  +        func = lambda p: os.stat(apath('%s/errors/%s' % \
         1095  +                                           (app, p), r=request)).st_mtime
         1096  +        tickets = sorted(listdir(apath('%s/errors/' % app, r=request), '^\w.*'),
         1097  +                         key=func,
         1098  +                         reverse=True)
         1099  +
         1100  +        return dict(app=app, tickets=tickets, method=method)
         1101  +
         1102  +
         1103  +def make_link(path):
         1104  +    """ Create a link from a path """
         1105  +    tryFile = path.replace('\\', '/')
         1106  +
         1107  +    if os.path.isabs(tryFile) and os.path.isfile(tryFile):
         1108  +        (folder, filename) = os.path.split(tryFile)
         1109  +        (base, ext) = os.path.splitext(filename)
         1110  +        app = get_app()
         1111  +
         1112  +        editable = {'controllers': '.py', 'models': '.py', 'views': '.html'}
         1113  +        for key in editable.keys():
         1114  +            check_extension = folder.endswith("%s/%s" % (app,key))
         1115  +            if ext.lower() == editable[key] and check_extension:
         1116  +                return A('"' + tryFile + '"',
         1117  +                         _href=URL(r=request,
         1118  +                         f='edit/%s/%s/%s' % (app, key, filename))).xml()
         1119  +    return ''
         1120  +
         1121  +
         1122  +def make_links(traceback):
         1123  +    """ Make links using the given traceback """
         1124  +
         1125  +    lwords = traceback.split('"')
         1126  +
         1127  +    # Making the short circuit compatible with <= python2.4
         1128  +    result = (len(lwords) != 0) and lwords[0] or ''
         1129  +
         1130  +    i = 1
         1131  +
         1132  +    while i < len(lwords):
         1133  +        link = make_link(lwords[i])
         1134  +
         1135  +        if link == '':
         1136  +            result += '"' + lwords[i]
         1137  +        else:
         1138  +            result += link
         1139  +
         1140  +            if i + 1 < len(lwords):
         1141  +                result += lwords[i + 1]
         1142  +                i = i + 1
         1143  +
         1144  +        i = i + 1
         1145  +
         1146  +    return result
         1147  +
         1148  +
         1149  +class TRACEBACK(object):
         1150  +    """ Generate the traceback """
         1151  +
         1152  +    def __init__(self, text):
         1153  +        """ TRACEBACK constructor """
         1154  +
         1155  +        self.s = make_links(CODE(text).xml())
         1156  +
         1157  +    def xml(self):
         1158  +        """ Returns the xml """
         1159  +
         1160  +        return self.s
         1161  +
         1162  +
         1163  +def ticket():
         1164  +    """ Ticket handler """
         1165  +
         1166  +    if len(request.args) != 2:
         1167  +        session.flash = T('invalid ticket')
         1168  +        redirect(URL('site'))
         1169  +
         1170  +    app = get_app()
         1171  +    myversion = request.env.web2py_version
         1172  +    ticket = request.args[1]
         1173  +    e = RestrictedError()
         1174  +    e.load(request, app, ticket)
         1175  +
         1176  +    return dict(app=app,
         1177  +                ticket=ticket,
         1178  +                output=e.output,
         1179  +                traceback=(e.traceback and TRACEBACK(e.traceback)),
         1180  +                snapshot=e.snapshot,
         1181  +                code=e.code,
         1182  +                layer=e.layer,
         1183  +                myversion=myversion)
         1184  +
         1185  +def error():
         1186  +    """ Generate a ticket (for testing) """
         1187  +    raise RuntimeError('admin ticket generator at your service')
         1188  +
         1189  +def update_languages():
         1190  +    """ Update available languages """
         1191  +
         1192  +    app = get_app()
         1193  +    update_all_languages(apath(app, r=request))
         1194  +    session.flash = T('Language files (static strings) updated')
         1195  +    redirect(URL('design',args=app))
         1196  +
         1197  +def twitter():
         1198  +    session.forget()
         1199  +    session._unlock(response)
         1200  +    import gluon.tools
         1201  +    import gluon.contrib.simplejson as sj
         1202  +    try:
         1203  +        if TWITTER_HASH:
         1204  +            page = gluon.tools.fetch('http://twitter.com/%s?format=json'%TWITTER_HASH)
         1205  +            return sj.loads(page)['#timeline']
         1206  +        else:
         1207  +            return 'disabled'
         1208  +    except Exception, e:
         1209  +        return DIV(T('Unable to download because:'),BR(),str(e))
         1210  +
         1211  +def user():
         1212  +    if MULTI_USER_MODE:
         1213  +        if not db(db.auth_user).count():
         1214  +            auth.settings.registration_requires_approval = False            
         1215  +        return dict(form=auth())
         1216  +    else:
         1217  +        return dict(form=T("Disabled"))
         1218  +
         1219  +def reload_routes():
         1220  +   """ Reload routes.py """
         1221  +   gluon.rewrite.load()
         1222  +   redirect(URL('site'))

Added applications/admin/controllers/gae.py version [482652b0a7].

            1  +### this works on linux only
            2  +
            3  +import re
            4  +try:
            5  +    import fcntl
            6  +    import subprocess
            7  +    import signal
            8  +    import os
            9  +    import shutil
           10  +    from gluon.fileutils import read_file, write_file    
           11  +except:
           12  +    session.flash='sorry, only on Unix systems'
           13  +    redirect(URL(request.application,'default','site'))
           14  +
           15  +forever=10**8
           16  +
           17  +def kill():
           18  +    p = cache.ram('gae_upload',lambda:None,forever)
           19  +    if not p or p.poll()!=None:
           20  +        return 'oops'
           21  +    os.kill(p.pid, signal.SIGKILL)
           22  +    cache.ram('gae_upload',lambda:None,-1)
           23  +
           24  +class EXISTS(object):
           25  +    def __init__(self, error_message='file not found'):
           26  +        self.error_message = error_message
           27  +    def __call__(self, value):
           28  +        if os.path.exists(value):
           29  +            return (value,None)
           30  +        return (value,self.error_message)
           31  +
           32  +def deploy():
           33  +    regex = re.compile('^\w+$')
           34  +    apps = sorted(file for file in os.listdir(apath(r=request)) if regex.match(file))
           35  +    form = SQLFORM.factory(
           36  +        Field('appcfg',default=GAE_APPCFG,label='Path to appcfg.py',
           37  +              requires=EXISTS(error_message=T('file not found'))),
           38  +        Field('google_application_id',requires=IS_ALPHANUMERIC()),
           39  +        Field('applications','list:string',
           40  +              requires=IS_IN_SET(apps,multiple=True),
           41  +              label=T('web2py apps to deploy')),
           42  +        Field('email',requires=IS_EMAIL(),label=T('GAE Email')),
           43  +        Field('password','password',requires=IS_NOT_EMPTY(),label=T('GAE Password')))
           44  +    cmd = output = errors= ""
           45  +    if form.accepts(request,session):
           46  +        try:
           47  +            kill()
           48  +        except:
           49  +            pass
           50  +        ignore_apps = [item for item in apps \
           51  +                           if not item in form.vars.applications]
           52  +        regex = re.compile('\(applications/\(.*')
           53  +        yaml = apath('../app.yaml', r=request)
           54  +        if not os.path.exists(yaml):
           55  +            example = apath('../app.example.yaml', r=request)
           56  +            shutil.copyfile(example,yaml)            
           57  +        data = read_file(yaml)
           58  +        data = re.sub('application:.*','application: %s' % form.vars.google_application_id,data)
           59  +        data = regex.sub('(applications/(%s)/.*)|' % '|'.join(ignore_apps),data)
           60  +        write_file(yaml, data)
           61  +
           62  +        path = request.env.applications_parent
           63  +        cmd = '%s --email=%s --passin update %s' % \
           64  +            (form.vars.appcfg, form.vars.email, path)
           65  +        p = cache.ram('gae_upload',
           66  +                      lambda s=subprocess,c=cmd:s.Popen(c, shell=True,
           67  +                                                        stdin=s.PIPE,
           68  +                                                        stdout=s.PIPE,
           69  +                                                        stderr=s.PIPE, close_fds=True),-1)
           70  +        p.stdin.write(form.vars.password+'\n')
           71  +        fcntl.fcntl(p.stdout.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
           72  +        fcntl.fcntl(p.stderr.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
           73  +    return dict(form=form,command=cmd)
           74  +
           75  +def callback():
           76  +    p = cache.ram('gae_upload',lambda:None,forever)
           77  +    if not p or p.poll()!=None:
           78  +        return '<done/>'
           79  +    try:
           80  +        output = p.stdout.read()
           81  +    except:
           82  +        output=''
           83  +    try:
           84  +        errors = p.stderr.read()
           85  +    except:
           86  +        errors=''
           87  +    return (output+errors).replace('\n','<br/>')

Added applications/admin/controllers/mercurial.py version [1de693f43a].

            1  +from gluon.fileutils import read_file, write_file
            2  +
            3  +if DEMO_MODE or MULTI_USER_MODE:
            4  +    session.flash = T('disabled in demo mode')
            5  +    redirect(URL('default','site'))
            6  +if not have_mercurial:
            7  +    session.flash=T("Sorry, could not find mercurial installed")
            8  +    redirect(URL('default','design',args=request.args(0)))
            9  +
           10  +_hgignore_content = """\
           11  +syntax: glob
           12  +*~
           13  +*.pyc
           14  +*.pyo
           15  +*.bak
           16  +*.bak2
           17  +cache/*
           18  +private/*
           19  +uploads/*
           20  +databases/*
           21  +sessions/*
           22  +errors/*
           23  +"""
           24  +
           25  +def hg_repo(path):
           26  +    import os
           27  +    uio = ui.ui()
           28  +    uio.quiet = True
           29  +    if not os.environ.get('HGUSER') and not uio.config("ui", "username"):
           30  +        os.environ['HGUSER'] = 'web2py@localhost'
           31  +    try:
           32  +        repo = hg.repository(ui=uio, path=path)
           33  +    except:
           34  +        repo = hg.repository(ui=uio, path=path, create=True)
           35  +    hgignore = os.path.join(path, '.hgignore')
           36  +    if not os.path.exists(hgignore):
           37  +        write_file(hgignore, _hgignore_content)
           38  +    return repo
           39  +
           40  +def commit():
           41  +    app = request.args(0)
           42  +    path = apath(app, r=request)
           43  +    repo = hg_repo(path)
           44  +    form = FORM('Comment:',INPUT(_name='comment',requires=IS_NOT_EMPTY()),
           45  +                INPUT(_type='submit',_value='Commit'))
           46  +    if form.accepts(request.vars,session):
           47  +        oldid = repo[repo.lookup('.')]
           48  +        cmdutil.addremove(repo)
           49  +        repo.commit(text=form.vars.comment)
           50  +        if repo[repo.lookup('.')] == oldid:
           51  +            response.flash = 'no changes'
           52  +    try:
           53  +        files = TABLE(*[TR(file) for file in repo[repo.lookup('.')].files()])
           54  +        changes = TABLE(TR(TH('revision'),TH('description')))
           55  +        for change in repo.changelog:
           56  +            ctx=repo.changectx(change)
           57  +            revision, description = ctx.rev(), ctx.description()
           58  +            changes.append(TR(A(revision,_href=URL('revision',
           59  +                                                   args=(app,revision))),
           60  +                              description))
           61  +    except:
           62  +        files = []
           63  +        changes = []
           64  +    return dict(form=form,files=files,changes=changes,repo=repo)
           65  +
           66  +def revision():
           67  +    app = request.args(0)
           68  +    path = apath(app, r=request)
           69  +    repo = hg_repo(path)
           70  +    revision = request.args(1)
           71  +    ctx=repo.changectx(revision)
           72  +    form=FORM(INPUT(_type='submit',_value='revert'))
           73  +    if form.accepts(request.vars):
           74  +        hg.update(repo, revision)
           75  +        session.flash = "reverted to revision %s" % ctx.rev()
           76  +        redirect(URL('default','design',args=app))
           77  +    return dict(
           78  +        files=ctx.files(),
           79  +        rev=str(ctx.rev()),
           80  +        desc=ctx.description(),
           81  +        form=form
           82  +        )

Added applications/admin/controllers/shell.py version [45f3dbfd56].

            1  +import sys
            2  +import cStringIO
            3  +import gluon.contrib.shell
            4  +import code, thread
            5  +from gluon.shell import env
            6  +
            7  +if DEMO_MODE or MULTI_USER_MODE:
            8  +    session.flash = T('disabled in demo mode')
            9  +    redirect(URL('default','site'))
           10  +
           11  +FE=10**9
           12  +
           13  +def index():
           14  +    app = request.args(0) or 'admin'
           15  +    reset()
           16  +    return dict(app=app)
           17  +
           18  +def callback():
           19  +    app = request.args[0]
           20  +    command = request.vars.statement
           21  +    escape = command[:1]!='!'
           22  +    history = session['history:'+app] = session.get('history:'+app,gluon.contrib.shell.History())
           23  +    if not escape:
           24  +        command = command[1:]
           25  +    if command == '%reset':
           26  +        reset()
           27  +        return '*** reset ***'
           28  +    elif command[0] == '%':
           29  +        try:
           30  +            command=session['commands:'+app][int(command[1:])]
           31  +        except ValueError:
           32  +            return ''
           33  +    session['commands:'+app].append(command)
           34  +    environ=env(app,True)
           35  +    output = gluon.contrib.shell.run(history,command,environ)
           36  +    k = len(session['commands:'+app]) - 1
           37  +    #output = PRE(output)
           38  +    #return TABLE(TR('In[%i]:'%k,PRE(command)),TR('Out[%i]:'%k,output))
           39  +    return 'In [%i] : %s%s\n' % (k + 1, command, output)
           40  +
           41  +def reset():
           42  +    app = request.args(0) or 'admin'
           43  +    session['commands:'+app] = []
           44  +    session['history:'+app] = gluon.contrib.shell.History()
           45  +    return 'done'

Added applications/admin/controllers/toolbar.py version [f7ea6cbe56].

            1  +import os
            2  +from gluon.settings import global_settings, read_file
            3  +#
            4  +
            5  +def index():
            6  +    app = request.args(0)
            7  +    return dict(app=app)
            8  +
            9  +def profiler():
           10  +    """
           11  +    to use the profiler start web2py with -F profiler.log
           12  +    """
           13  +    KEY = 'web2py_profiler_size'
           14  +    filename = global_settings.cmd_options.profiler_filename
           15  +    data = 'profiler disabled'
           16  +    if filename:
           17  +        if  KEY in request.cookies:
           18  +            size = int(request.cookies[KEY].value)
           19  +        else:
           20  +            size = 0
           21  +        if os.path.exists(filename):
           22  +            data = read_file('profiler.log','rb')
           23  +            if size<len(data): 
           24  +                data = data[size:]
           25  +            else: 
           26  +                size=0
           27  +            size += len(data)
           28  +            response.cookies[KEY] = size
           29  +    return data

Added applications/admin/controllers/wizard.py version [60791b7dca].

            1  +# -*- coding: utf-8 -*-
            2  +
            3  +import os, uuid, re, pickle, urllib, glob
            4  +from gluon.admin import app_create, plugin_install
            5  +from gluon.fileutils import abspath, read_file, write_file
            6  +
            7  +def reset(session):
            8  +    session.app={
            9  +        'name':'',
           10  +        'params':[('title','My New App'),
           11  +                  ('subtitle','powered by web2py'),
           12  +                  ('author','you'),
           13  +                  ('author_email','you@example.com'),
           14  +                  ('keywords',''),
           15  +                  ('description',''),
           16  +                  ('layout_theme','Default'),
           17  +                  ('database_uri','sqlite://storage.sqlite'),
           18  +                  ('security_key',str(uuid.uuid4())),
           19  +                  ('email_server','localhost'),
           20  +                  ('email_sender','you@example.com'),
           21  +                  ('email_login',''),
           22  +                  ('login_method','local'),
           23  +                  ('login_config',''),
           24  +                  ('plugins',[])],
           25  +        'tables':['auth_user'],
           26  +        'table_auth_user':['username','first_name','last_name','email','password'],
           27  +        'pages':['index','error'],
           28  +        'page_index':'# Welcome to my new app',
           29  +        'page_error':'# Error: the document does not exist',
           30  +        }
           31  +
           32  +if not session.app: reset(session)
           33  +
           34  +def listify(x):
           35  +    if not isinstance(x,(list,tuple)):
           36  +        return x and [x] or []
           37  +    return x
           38  +
           39  +def clean(name):
           40  +    return re.sub('\W+','_',name.strip().lower())
           41  +
           42  +def index():
           43  +    response.view='wizard/step.html'
           44  +    reset(session)
           45  +    apps=os.listdir(os.path.join(request.folder,'..'))
           46  +    form=SQLFORM.factory(Field('name',requires=[IS_NOT_EMPTY(),IS_ALPHANUMERIC()]))
           47  +    if form.accepts(request.vars):
           48  +        app = form.vars.name
           49  +        session.app['name'] = app
           50  +        if MULTI_USER_MODE and db(db.app.name==app)(db.app.owner!=auth.user.id).count():
           51  +            session.flash = 'App belongs already to other user'
           52  +        elif app in apps:
           53  +            meta = os.path.normpath(\
           54  +                os.path.join(os.path.normpath(request.folder),
           55  +                             '..',app,'wizard.metadata'))
           56  +            if os.path.exists(meta):
           57  +                try:
           58  +                    metafile = open(meta,'rb')
           59  +                    try:
           60  +                        session.app = pickle.load(metafile)
           61  +                    finally:
           62  +                        metafile.close()
           63  +                    session.flash = "The app exists, was created by wizard, continue to overwrite!"
           64  +                except:
           65  +                    session.flash = "The app exists, was NOT created by wizard, continue to overwrite!"
           66  +        redirect(URL('step1'))
           67  +    return dict(step='Start',form=form)
           68  +
           69  +
           70  +def step1():
           71  +    from gluon.contrib.simplejson import loads
           72  +    import urllib
           73  +    if not session.themes:
           74  +        url=LAYOUTS_APP+'/default/layouts.json'
           75  +        try:
           76  +            data = urllib.urlopen(url).read()
           77  +            session.themes = ['Default'] + loads(data)['layouts']
           78  +        except:
           79  +            session.themes = ['Default']
           80  +    themes = session.themes
           81  +    if not session.plugins:
           82  +        url = PLUGINS_APP+'/default/plugins.json'
           83  +        try:
           84  +            data = urllib.urlopen(url).read()
           85  +            session.plugins = loads(data)['plugins']
           86  +        except:
           87  +            session.plugins = []
           88  +    plugins = [x.split('.')[2] for x in session.plugins]
           89  +    response.view='wizard/step.html'
           90  +    params = dict(session.app['params'])
           91  +    form=SQLFORM.factory(
           92  +                Field('title',default=params.get('title',None),
           93  +                                      requires=IS_NOT_EMPTY()),
           94  +                Field('subtitle',default=params.get('subtitle',None)),
           95  +                Field('author',default=params.get('author',None)),
           96  +                Field('author_email',default=params.get('author_email',None)),
           97  +                Field('keywords',default=params.get('keywords',None)),
           98  +                Field('description','text',
           99  +                      default=params.get('description',None)),
          100  +                Field('layout_theme',requires=IS_IN_SET(themes),
          101  +                      default=params.get('layout_theme',themes[0])),
          102  +                Field('database_uri',default=params.get('database_uri',None)),
          103  +                Field('security_key',default=params.get('security_key',None)),
          104  +                Field('email_server',default=params.get('email_server',None)),
          105  +                Field('email_sender',default=params.get('email_sender',None)),
          106  +                Field('email_login',default=params.get('email_login',None)),
          107  +                Field('login_method',requires=IS_IN_SET(('local','janrain')),
          108  +                      default=params.get('login_method','local')),
          109  +                Field('login_config',default=params.get('login_config',None)),
          110  +                Field('plugins','list:string',requires=IS_IN_SET(plugins,multiple=True)))
          111  +
          112  +    if form.accepts(request.vars):
          113  +        session.app['params']=[(key,form.vars.get(key,None))
          114  +                               for key,value in session.app['params']]
          115  +        redirect(URL('step2'))
          116  +    return dict(step='1: Setting Parameters',form=form)
          117  +
          118  +def step2():
          119  +    response.view='wizard/step.html'
          120  +    form=SQLFORM.factory(Field('table_names','list:string',
          121  +                               default=session.app['tables']))
          122  +    if form.accepts(request.vars):
          123  +        table_names = [clean(t) for t in listify(form.vars.table_names) if t.strip()]
          124  +        if [t for t in table_names if t.startswith('auth_') and not t=='auth_user']:
          125  +            form.error.table_names = T('invalid table names (auth_* tables already defined)')
          126  +        else:
          127  +            session.app['tables']=table_names
          128  +            for table in session.app['tables']:
          129  +                if not 'table_'+table in session.app:
          130  +                    session.app['table_'+table]=['name']
          131  +                if not table=='auth_user':
          132  +                    for key in ['create','read','update','select','search']:
          133  +                        name = table+'_'+key
          134  +                        if not name in session.app['pages']:
          135  +                            session.app['pages'].append(name)
          136  +                            session.app['page_'+name]='## %s %s' % (key.capitalize(),table)
          137  +            if session.app['tables']:
          138  +                redirect(URL('step3',args=0))
          139  +            else:
          140  +                redirect(URL('step4'))
          141  +    return dict(step='2: Tables',form=form)
          142  +
          143  +def step3():
          144  +    response.view='wizard/step.html'
          145  +    n=int(request.args(0) or 0)
          146  +    m=len(session.app['tables'])
          147  +    if n>=m: redirect(URL('step2'))
          148  +    table=session.app['tables'][n]
          149  +    form=SQLFORM.factory(Field('field_names','list:string',
          150  +                               default=session.app.get('table_'+table,[])))
          151  +    if form.accepts(request.vars) and form.vars.field_names:
          152  +        fields=listify(form.vars.field_names)
          153  +        if table=='auth_user':
          154  +            for field in ['first_name','last_name','username','email','password']:
          155  +                if not field in fields:
          156  +                    fields.append(field)
          157  +        session.app['table_'+table]=[t.strip().lower()
          158  +                                       for t in listify(form.vars.field_names)
          159  +                                       if t.strip()]
          160  +        try:
          161  +            tables=sort_tables(session.app['tables'])
          162  +        except RuntimeError:
          163  +            response.flash=T('invalid circual reference')
          164  +        else:
          165  +            if n<m-1:
          166  +                redirect(URL('step3',args=n+1))
          167  +            else:
          168  +                redirect(URL('step4'))
          169  +    return dict(step='3: Fields for table "%s" (%s of %s)' % (table,n+1,m),table=table,form=form)
          170  +
          171  +def step4():
          172  +    response.view='wizard/step.html'
          173  +    form=SQLFORM.factory(Field('pages','list:string',
          174  +                               default=session.app['pages']))
          175  +    if form.accepts(request.vars):
          176  +        session.app['pages']=[clean(t)
          177  +                              for t in listify(form.vars.pages)
          178  +                              if t.strip()]
          179  +        if session.app['pages']:
          180  +            redirect(URL('step5',args=0))
          181  +        else:
          182  +            redirect(URL('step6'))
          183  +    return dict(step='4: Pages',form=form)
          184  +
          185  +def step5():
          186  +    response.view='wizard/step.html'
          187  +    n=int(request.args(0) or 0)
          188  +    m=len(session.app['pages'])
          189  +    if n>=m: redirect(URL('step4'))
          190  +    page=session.app['pages'][n]
          191  +    markmin_url='http://web2py.com/examples/static/markmin.html'
          192  +    form=SQLFORM.factory(Field('content','text',
          193  +                               default=session.app.get('page_'+page,[]),
          194  +                               comment=A('use markmin',_href=markmin_url,_target='_blank')),
          195  +                         formstyle='table2cols')
          196  +    if form.accepts(request.vars):
          197  +        session.app['page_'+page]=form.vars.content
          198  +        if n<m-1:
          199  +            redirect(URL('step5',args=n+1))
          200  +        else:
          201  +            redirect(URL('step6'))
          202  +    return dict(step='5: View for page "%s" (%s of %s)' % (page,n+1,m),form=form)
          203  +
          204  +def step6():
          205  +    response.view='wizard/step.html'
          206  +    params = dict(session.app['params'])
          207  +    app = session.app['name']
          208  +    form=SQLFORM.factory(
          209  +        Field('generate_model','boolean',default=True),
          210  +        Field('generate_controller','boolean',default=True),
          211  +        Field('generate_views','boolean',default=True),
          212  +        Field('generate_menu','boolean',default=True),
          213  +        Field('apply_layout','boolean',default=True),
          214  +        Field('erase_database','boolean',default=True),
          215  +        Field('populate_database','boolean',default=True))
          216  +    if form.accepts(request.vars):
          217  +        if DEMO_MODE:
          218  +            session.flash = T('Application cannot be generated in demo mode')
          219  +            redirect(URL('index'))
          220  +        create(form.vars)
          221  +        session.flash = 'Application %s created' % app
          222  +        redirect(URL('generated'))
          223  +    return dict(step='6: Generate app "%s"' % app,form=form)
          224  +
          225  +def generated():
          226  +    return dict(app=session.app['name'])
          227  +
          228  +def sort_tables(tables):
          229  +    import re
          230  +    regex = re.compile('(%s)' % '|'.join(tables))
          231  +    is_auth_user = 'auth_user' in tables
          232  +    d={}
          233  +    for table in tables:
          234  +        d[table]=[]
          235  +        for field in session.app['table_%s' % table]:
          236  +            d[table]+=regex.findall(field)
          237  +    tables=[]
          238  +    if is_auth_user:
          239  +        tables.append('auth_user')
          240  +    def append(table,trail=[]):
          241  +        if table in trail:
          242  +            raise RuntimeError
          243  +        for t in d[table]: append(t,trail=trail+[table])
          244  +        if not table in tables: tables.append(table)
          245  +    for table in d: append(table)
          246  +    return tables
          247  +
          248  +def make_table(table,fields):
          249  +    rawtable=table
          250  +    if table!='auth_user': table='t_'+table
          251  +    s=''
          252  +    s+='\n'+'#'*40+'\n'
          253  +    s+="db.define_table('%s',\n" % table
          254  +    s+="    Field('id','id',\n"
          255  +    s+="          represent=lambda id:SPAN(id,' ',A('view',_href=URL('%s_read',args=id)))),\n"%rawtable
          256  +    first_field='id'
          257  +    for field in fields:
          258  +        items=[x.lower() for x in field.split()]
          259  +        has = {}
          260  +        keys = []
          261  +        for key in ['notnull','unique','integer','double','boolean','float',
          262  +                    'boolean', 'date','time','datetime','text','wiki',
          263  +                    'html','file','upload','image','true',
          264  +                    'hidden','readonly','writeonly','multiple',
          265  +                    'notempty','required']:
          266  +            if key in items[1:]:
          267  +                keys.append(key)
          268  +                has[key] = True
          269  +        tables = session.app['tables']
          270  +        refs = [t for t in tables if t in items]
          271  +        items = items[:1] + [x for x in items[1:] if not x in keys and not x in tables]
          272  +        barename = name = '_'.join(items)
          273  +        if table[:2]=='t_': name='f_'+name
          274  +        if first_field=='id': first_field=name
          275  +
          276  +        ### determine field type
          277  +        ftype='string'
          278  +        deftypes={'integer':'integer','double':'double','boolean':'boolean',
          279  +                  'float':'double','bool':'boolean',
          280  +                  'date':'date','time':'time','datetime':'datetime',
          281  +                  'text':'text','file':'upload','image':'upload','upload':'upload',
          282  +                  'wiki':'text', 'html':'text'}
          283  +        for key,t in deftypes.items():
          284  +            if key in has:                
          285  +                ftype = t
          286  +        if refs:
          287  +            key = refs[0]
          288  +            if not key=='auth_user': key='t_'+key
          289  +            if 'multiple' in has:
          290  +                ftype='list:reference %s' % key
          291  +            else:
          292  +                ftype='reference %s' % key
          293  +        if ftype=='string' and 'multiple' in has:
          294  +            ftype='list:string'
          295  +        elif ftype=='integer' and 'multiple' in has:
          296  +            ftype='list:integer'
          297  +        elif name=='password':
          298  +            ftype='password'
          299  +        s+="    Field('%s', type='%s'" % (name, ftype)
          300  +
          301  +        ### determine field attributes
          302  +        if 'notnull' in has or 'notempty' in has or 'required' in has:
          303  +            s+=', notnull=True'
          304  +        if 'unique' in has:
          305  +            s+=', unique=True'
          306  +        if ftype=='boolean' and 'true' in has:
          307  +            s+=",\n          default=True"
          308  +
          309  +        ### determine field representation
          310  +        if 'image' in has:
          311  +            s+=",\n          represent=lambda x: x and IMG(_alt='image',_src=URL('download',args=x), _width='200px') or ''"
          312  +        elif ftype in ('file','upload'):
          313  +            s+=",\n          represent=lambda x: x and A('download',_href=URL('download',args=x)) or ''"
          314  +        elif 'wiki' in has:
          315  +            s+=",\n          represent=lambda x: MARKMIN(x)"
          316  +            s+=",\n          comment='WIKI (markmin)'"
          317  +        elif 'html' in has:
          318  +            s+=",\n          represent=lambda x: XML(x,sanitize=True)"
          319  +            s+=",\n          comment='HTML (sanitized)'"
          320  +        ### determine field access
          321  +        if name=='password' or 'writeonly' in has:
          322  +            s+=",\n          readable=False"
          323  +        elif 'hidden' in has:
          324  +            s+=",\n          writable=False, readable=False"
          325  +        elif 'readonly' in has:
          326  +            s+=",\n          writable=False"
          327  +
          328  +        ### make up a label
          329  +        s+=",\n          label=T('%s')),\n" % \
          330  +            ' '.join(x.capitalize() for x in barename.split('_'))
          331  +    if table!='auth_user':
          332  +        s+="    Field('is_active','boolean',default=True,\n"
          333  +        s+="          label=T('Active'),writable=False,readable=False),\n"
          334  +    s+="    Field('created_on','datetime',default=request.now,\n"
          335  +    s+="          label=T('Created On'),writable=False,readable=False),\n"
          336  +    s+="    Field('modified_on','datetime',default=request.now,\n"
          337  +    s+="          label=T('Modified On'),writable=False,readable=False,\n"
          338  +    s+="          update=request.now),\n"
          339  +    if not table=='auth_user' and 'auth_user' in session.app['tables']:
          340  +        s+="    Field('created_by',db.auth_user,default=auth.user_id,\n"
          341  +        s+="          label=T('Created By'),writable=False,readable=False),\n"
          342  +        s+="    Field('modified_by',db.auth_user,default=auth.user_id,\n"
          343  +        s+="          label=T('Modified By'),writable=False,readable=False,\n"
          344  +        s+="          update=auth.user_id),\n"
          345  +    elif table=='auth_user':
          346  +        s+="    Field('registration_key',default='',\n"
          347  +        s+="          writable=False,readable=False),\n"
          348  +        s+="    Field('reset_password_key',default='',\n"
          349  +        s+="          writable=False,readable=False),\n"
          350  +        s+="    Field('registration_id',default='',\n"
          351  +        s+="          writable=False,readable=False),\n"
          352  +    s+="    format='%("+first_field+")s',\n"
          353  +    s+="    migrate=settings.migrate)\n\n"
          354  +    if table=='auth_user':
          355  +        s+="""
          356  +db.auth_user.first_name.requires = IS_NOT_EMPTY(error_message=auth.messages.is_empty)
          357  +db.auth_user.last_name.requires = IS_NOT_EMPTY(error_message=auth.messages.is_empty)
          358  +db.auth_user.password.requires = CRYPT(key=auth.settings.hmac_key)
          359  +db.auth_user.username.requires = IS_NOT_IN_DB(db, db.auth_user.username)
          360  +db.auth_user.registration_id.requires = IS_NOT_IN_DB(db, db.auth_user.registration_id)
          361  +db.auth_user.email.requires = (IS_EMAIL(error_message=auth.messages.invalid_email),
          362  +                               IS_NOT_IN_DB(db, db.auth_user.email))
          363  +"""
          364  +    else:
          365  +        s+="db.define_table('%s_archive',db.%s,Field('current_record','reference %s'))\n" % (table,table,table)
          366  +    return s
          367  +
          368  +
          369  +def fix_db(filename):
          370  +    params = dict(session.app['params'])
          371  +    content = read_file(filename,'rb')
          372  +    if 'auth_user' in session.app['tables']:
          373  +        auth_user = make_table('auth_user',session.app['table_auth_user'])
          374  +        content = content.replace('sqlite://storage.sqlite',
          375  +                                params['database_uri'])
          376  +        content = content.replace('auth.define_tables()',\
          377  +            auth_user+'auth.define_tables(migrate = settings.migrate)')
          378  +    content += """
          379  +mail.settings.server = settings.email_server
          380  +mail.settings.sender = settings.email_sender
          381  +mail.settings.login = settings.email_login
          382  +"""
          383  +    if params['login_method']=='janrain':
          384  +        content+="""
          385  +from gluon.contrib.login_methods.rpx_account import RPXAccount
          386  +auth.settings.actions_disabled=['register','change_password','request_reset_password']
          387  +auth.settings.login_form = RPXAccount(request,
          388  +    api_key = settings.login_config.split(':')[-1],
          389  +    domain = settings.login_config.split(':')[0],
          390  +    url = "http://%s/%s/default/user/login" % (request.env.http_host,request.application))
          391  +"""
          392  +    write_file(filename, content, 'wb')
          393  +
          394  +def make_menu(pages):
          395  +    s="""
          396  +response.title = settings.title
          397  +response.subtitle = settings.subtitle
          398  +response.meta.author = '%s <%s>' % (settings.author, settings.author_email)
          399  +response.meta.keywords = settings.keywords
          400  +response.meta.description = settings.description
          401  +response.menu = [
          402  +"""
          403  +    for page in pages:
          404  +        if not page.endswith('_read') and \
          405  +                not page.endswith('_update') and \
          406  +                not page.endswith('_search') and \
          407  +                not page.startswith('_') and not page.startswith('error'):
          408  +            s+="    (T('%s'),URL('default','%s')==URL(),URL('default','%s'),[]),\n" % \
          409  +                (' '.join(x.capitalize() for x in page.split('_')),page,page)
          410  +    s+=']'
          411  +    return s
          412  +
          413  +def make_page(page,contents):
          414  +    if 'auth_user' in session.app['tables'] and not page in ('index','error'):
          415  +        s="@auth.requires_login()\ndef %s():\n" % page
          416  +    else:
          417  +        s="def %s():\n" % page
          418  +    items=page.rsplit('_',1)
          419  +    if items[0] in session.app['tables'] and len(items)==2:
          420  +        t=items[0]
          421  +        if items[1]=='read':
          422  +            s+="    record = db.t_%s(request.args(0)) or redirect(URL('error'))\n" % t
          423  +            s+="    form=crud.read(db.t_%s,record)\n" % t
          424  +            s+="    return dict(form=form)\n\n"
          425  +        elif items[1]=='update':
          426  +            s+="    record = db.t_%s(request.args(0),is_active=True) or redirect(URL('error'))\n" % t
          427  +            s+="    form=crud.update(db.t_%s,record,next='%s_read/[id]',\n"  % (t,t)
          428  +            s+="                     ondelete=lambda form: redirect(URL('%s_select')),\n" % t
          429  +            s+="                     onaccept=crud.archive)\n"
          430  +            s+="    return dict(form=form)\n\n"
          431  +        elif items[1]=='create':
          432  +            s+="    form=crud.create(db.t_%s,next='%s_read/[id]')\n" % (t,t)
          433  +            s+="    return dict(form=form)\n\n"
          434  +        elif items[1]=='select':
          435  +            s+="    f,v=request.args(0),request.args(1)\n"
          436  +            s+="    try: query=f and db.t_%s[f]==v or db.t_%s\n" % (t,t)
          437  +            s+="    except: redirect(URL('error'))\n"
          438  +            s+="    rows=db(query)(db.t_%s.is_active==True).select()\n" % t
          439  +            s+="    return dict(rows=rows)\n\n"
          440  +        elif items[1]=='search':
          441  +            s+="    form, rows=crud.search(db.t_%s,query=db.t_%s.is_active==True)\n" % (t,t)
          442  +            s+="    return dict(form=form, rows=rows)\n\n"
          443  +        else:
          444  +            t=None
          445  +    else:
          446  +        t=None
          447  +    if not t:
          448  +        s+="    return dict()\n\n"
          449  +    return s
          450  +
          451  +def make_view(page,contents):
          452  +    s="{{extend 'layout.html'}}\n\n"
          453  +    s+=str(MARKMIN(contents))
          454  +    items=page.rsplit('_',1)
          455  +    if items[0] in session.app['tables'] and len(items)==2:
          456  +        t=items[0]
          457  +        if items[1]=='read':
          458  +            s+="\n{{=A(T('edit %s'),_href=URL('%s_update',args=request.args(0)))}}\n<br/>\n"%(t,t)
          459  +            s+='\n{{=form}}\n'
          460  +            s+="{{for t,f in db.t_%s._referenced_by:}}{{if not t[-8:]=='_archive':}}" % t
          461  +            s+="[{{=A(t[2:],_href=URL('%s_select'%t[2:],args=(f,form.record.id)))}}]"
          462  +            s+='{{pass}}{{pass}}'
          463  +        elif items[1]=='create':
          464  +            s+="\n{{=A(T('select %s'),_href=URL('%s_select'))}}\n<br/>\n"%(t,t)
          465  +            s+='\n{{=form}}\n'
          466  +        elif items[1]=='update':
          467  +            s+="\n{{=A(T('show %s'),_href=URL('%s_read',args=request.args(0)))}}\n<br/>\n"%(t,t)
          468  +            s+='\n{{=form}}\n'
          469  +        elif items[1]=='select':
          470  +            s+="\n{{if request.args:}}<h3>{{=T('For %s #%s' % (request.args(0)[2:],request.args(1)))}}</h3>{{pass}}\n"
          471  +            s+="\n{{=A(T('create new %s'),_href=URL('%s_create'))}}\n<br/>\n"%(t,t)
          472  +            s+="\n{{=A(T('search %s'),_href=URL('%s_search'))}}\n<br/>\n"%(t,t)
          473  +            s+="\n{{if rows:}}"
          474  +            s+="\n  {{headers=dict((str(k),k.label) for k in db.t_%s)}}" % t
          475  +            s+="\n  {{=SQLTABLE(rows,headers=headers)}}"
          476  +            s+="\n{{else:}}"
          477  +            s+="\n  {{=TAG.blockquote(T('No Data'))}}"
          478  +            s+="\n{{pass}}\n"
          479  +        elif items[1]=='search':
          480  +            s+="\n{{=A(T('create new %s'),_href=URL('%s_create'))}}\n<br/>\n"%(t,t)
          481  +            s+='\n{{=form}}\n'
          482  +            s+="\n{{if rows:}}"
          483  +            s+="\n  {{headers=dict((str(k),k.label) for k in db.t_%s)}}" % t
          484  +            s+="\n  {{=SQLTABLE(rows,headers=headers)}}"
          485  +            s+="\n{{else:}}"
          486  +            s+="\n  {{=TAG.blockquote(T('No Data'))}}"
          487  +            s+="\n{{pass}}\n"
          488  +    return s
          489  +
          490  +def populate(tables):
          491  +
          492  +    s = 'from gluon.contrib.populate import populate\n'
          493  +    s+= 'if not db(db.auth_user).count():\n'
          494  +    for table in sort_tables(tables):
          495  +        t=table=='auth_user' and 'auth_user' or 't_'+table
          496  +        s+="     populate(db.%s,10)\n" % t
          497  +    return s
          498  +
          499  +def create(options):
          500  +    if DEMO_MODE:
          501  +        session.flash = T('disabled in demo mode')
          502  +        redirect(URL('step6'))
          503  +    params = dict(session.app['params'])
          504  +    app = session.app['name']
          505  +    if not app_create(app,request,force=True,key=params['security_key']):
          506  +        session.flash = 'Failure to create application'
          507  +        redirect(URL('step6'))
          508  +
          509  +    ### save metadata in newapp/wizard.metadata
          510  +    try:
          511  +        meta = os.path.join(request.folder,'..',app,'wizard.metadata')
          512  +        file=open(meta,'wb')
          513  +        pickle.dump(session.app,file)
          514  +        file.close()
          515  +    except IOError:
          516  +        session.flash = 'Failure to write wizard metadata'
          517  +        redirect(URL('step6'))
          518  +
          519  +    ### apply theme
          520  +    if options.apply_layout and params['layout_theme']!='Default':
          521  +        try:
          522  +            fn = 'web2py.plugin.layout_%s.w2p' % params['layout_theme']
          523  +            theme = urllib.urlopen(LAYOUTS_APP+'/static/plugin_layouts/plugins/'+fn)
          524  +            plugin_install(app, theme, request, fn)
          525  +        except: 
          526  +            session.flash = T("unable to download layout")
          527  +
          528  +    ### apply plugins
          529  +    for plugin in params['plugins']:
          530  +        try:
          531  +            plugin_name = 'web2py.plugin.'+plugin+'.w2p'
          532  +            stream = urllib.urlopen(PLUGINS_APP+'/static/'+plugin_name)
          533  +            plugin_install(app, stream, request, plugin_name)
          534  +        except Exception, e: 
          535  +            session.flash = T("unable to download plugin: %s" % plugin)
          536  +                    
          537  +    ### write configuration file into newapp/models/0.py
          538  +    model = os.path.join(request.folder,'..',app,'models','0.py')
          539  +    file = open(model, 'wb')
          540  +    try:
          541  +        file.write("from gluon.storage import Storage\n")
          542  +        file.write("settings = Storage()\n\n")
          543  +        file.write("settings.migrate = True\n")
          544  +        for key,value in session.app['params']:
          545  +            file.write("settings.%s = %s\n" % (key,repr(value)))
          546  +    finally:
          547  +        file.close()
          548  +
          549  +    ### write configuration file into newapp/models/menu.py
          550  +    if options.generate_menu:
          551  +        model = os.path.join(request.folder,'..',app,'models','menu.py')
          552  +        file = open(model,'wb')
          553  +        try:
          554  +            file.write(make_menu(session.app['pages']))
          555  +        finally:
          556  +            file.close()
          557  +
          558  +    ### customize the auth_user table
          559  +    model = os.path.join(request.folder,'..',app,'models','db.py')
          560  +    fix_db(model)
          561  +
          562  +    ### create newapp/models/db_wizard.py
          563  +    if options.generate_model:
          564  +        model = os.path.join(request.folder,'..',app,'models','db_wizard.py')
          565  +        file = open(model,'wb')
          566  +        try:
          567  +            file.write('### we prepend t_ to tablenames and f_ to fieldnames for disambiguity\n\n')
          568  +            tables = sort_tables(session.app['tables'])
          569  +            for table in tables:
          570  +                if table=='auth_user': continue
          571  +                file.write(make_table(table,session.app['table_'+table]))
          572  +        finally:
          573  +            file.close()
          574  +
          575  +    model = os.path.join(request.folder,'..',app,
          576  +                         'models','db_wizard_populate.py')
          577  +    if os.path.exists(model): os.unlink(model)
          578  +    if options.populate_database and session.app['tables']:
          579  +        file = open(model,'wb')
          580  +        try:
          581  +            file.write(populate(session.app['tables']))
          582  +        finally:
          583  +            file.close()
          584  +
          585  +    ### create newapp/controllers/default.py
          586  +    if options.generate_controller:
          587  +        controller = os.path.join(request.folder,'..',app,'controllers','default.py')
          588  +        file = open(controller,'wb')
          589  +        try:
          590  +            file.write("""# -*- coding: utf-8 -*-
          591  +### required - do no delete
          592  +def user(): return dict(form=auth())
          593  +def download(): return response.download(request,db)
          594  +def call():
          595  +    session.forget()
          596  +    return service()
          597  +### end requires
          598  +""")
          599  +            for page in session.app['pages']:
          600  +                file.write(make_page(page,session.app.get('page_'+page,'')))
          601  +        finally:
          602  +            file.close()
          603  +
          604  +    ### create newapp/views/default/*.html
          605  +    if options.generate_views:
          606  +        for page in session.app['pages']:
          607  +            view = os.path.join(request.folder,'..',app,'views','default',page+'.html')
          608  +            file = open(view,'wb')
          609  +            try:
          610  +                file.write(make_view(page,session.app.get('page_'+page,'')))
          611  +            finally:
          612  +                file.close()
          613  +
          614  +    if options.erase_database:
          615  +        path = os.path.join(request.folder,'..',app,'databases','*')
          616  +        for file in glob.glob(path): 
          617  +            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  +# coding: utf8
            2  +{
            3  +'%Y-%m-%d': '%Y-%m-%d',
            4  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            5  +'(requires internet access)': '(vereis internet toegang)',
            6  +'(something like "it-it")': '(iets soos "it-it")',
            7  +'About': 'Oor',
            8  +'About application': 'Oor program',
            9  +'Additional code for your application': 'Additionele kode vir u application',
           10  +'Admin language': 'Admin taal',
           11  +'Application name:': 'Program naam:',
           12  +'Controllers': 'Beheerders',
           13  +'Deploy on Google App Engine': 'Stuur na Google App Engine toe',
           14  +'Edit application': 'Wysig program',
           15  +'Installed applications': 'Geinstalleerde apps',
           16  +'Languages': 'Tale',
           17  +'License for': 'Lisensie vir',
           18  +'Models': 'Modelle',
           19  +'Modules': 'Modules',
           20  +'New application wizard': 'Nuwe app wizard',
           21  +'New simple application': 'Nuwe eenvoudige app',
           22  +'Plugins': 'Plugins',
           23  +'Powered by': 'Aangedryf deur',
           24  +'Searching:': 'Soek:',
           25  +'Static files': 'Static files',
           26  +'Sure you want to delete this object?': 'Is jy seker jy will hierde object verwyder?',
           27  +'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',
           28  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
           29  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
           30  +'There are no plugins': 'Daar is geen plugins',
           31  +'These files are served without processing, your images go here': 'Hierdie lêre is sonder veranderinge geserved, jou images gaan hier',
           32  +'To create a plugin, name a file/folder plugin_[name]': 'Om ''n plugin te skep, noem ''n lêer/gids plugin_[name]',
           33  +'Translation strings for the application': 'Vertaling woorde vir die program',
           34  +'Upload & install packed application': 'Oplaai & install gepakte program',
           35  +'Upload a package:': 'Oplaai ''n package:',
           36  +'Use an url:': 'Gebruik n url:',
           37  +'Views': 'Views',
           38  +'about': 'oor',
           39  +'administrative interface': 'administrative interface',
           40  +'and rename it:': 'en verander die naam:',
           41  +'change admin password': 'verander admin wagwoord',
           42  +'check for upgrades': 'soek vir upgrades',
           43  +'clean': 'maak skoon',
           44  +'collapse/expand all': 'collapse/expand all',
           45  +'compile': 'kompileer',
           46  +'controllers': 'beheerders',
           47  +'create': 'skep',
           48  +'create file with filename:': 'skep lêer met naam:',
           49  +'created by': 'geskep deur',
           50  +'crontab': 'crontab',
           51  +'currently running': 'loop tans',
           52  +'database administration': 'database administration',
           53  +'deploy': 'deploy',
           54  +'direction: ltr': 'direction: ltr',
           55  +'download layouts': 'aflaai layouts',
           56  +'download plugins': 'aflaai plugins',
           57  +'edit': 'wysig',
           58  +'errors': 'foute',
           59  +'exposes': 'exposes',
           60  +'extends': 'extends',
           61  +'files': 'lêre',
           62  +'filter': 'filter',
           63  +'help': 'hulp',
           64  +'includes': 'includes',
           65  +'install': 'installeer',
           66  +'languages': 'tale',
           67  +'loading...': 'laai...',
           68  +'logout': 'logout',
           69  +'models': 'modelle',
           70  +'modules': 'modules',
           71  +'overwrite installed app': 'skryf oor geinstalleerde program',
           72  +'pack all': 'pack alles',
           73  +'plugins': 'plugins',
           74  +'shell': 'shell',
           75  +'site': 'site',
           76  +'start wizard': 'start wizard',
           77  +'static': 'static',
           78  +'test': 'toets',
           79  +'uninstall': 'verwyder',
           80  +'update all languages': 'update all languages',
           81  +'upload': 'oplaai',
           82  +'upload file:': 'oplaai lêer:',
           83  +'upload plugin file:': 'upload plugin lêer:',
           84  +'versioning': 'versioning',
           85  +'views': 'views',
           86  +'web2py Recent Tweets': 'web2py Onlangse Tweets',
           87  +}

Added applications/admin/languages/bg-bg.py version [7882283c41].

            1  +# coding: utf8
            2  +{
            3  +'"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',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': '%s записите бяха изтрити',
            7  +'%s rows updated': '%s записите бяха обновени',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(something like "it-it")',
           10  +'A new version of web2py is available': 'A new version of web2py is available',
           11  +'A new version of web2py is available: %s': 'A new version of web2py is available: %s',
           12  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.',
           13  +'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.',
           14  +'ATTENTION: you cannot edit the running application!': 'ATTENTION: you cannot edit the running application!',
           15  +'About': 'About',
           16  +'About application': 'About application',
           17  +'Additional code for your application': 'Additional code for your application',
           18  +'Admin is disabled because insecure channel': 'Admin is disabled because insecure channel',
           19  +'Admin is disabled because unsecure channel': 'Admin is disabled because unsecure channel',
           20  +'Admin language': 'Admin language',
           21  +'Administrator Password:': 'Administrator Password:',
           22  +'Application name:': 'Application name:',
           23  +'Are you sure you want to delete file "%s"?': 'Are you sure you want to delete file "%s"?',
           24  +'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?',
           25  +'Are you sure you want to uninstall application "%s"': 'Are you sure you want to uninstall application "%s"',
           26  +'Are you sure you want to uninstall application "%s"?': 'Are you sure you want to uninstall application "%s"?',
           27  +'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?',
           28  +'Available databases and tables': 'Available databases and tables',
           29  +'Cannot be empty': 'Cannot be empty',
           30  +'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.',
           31  +'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:',
           32  +'Check to delete': 'Check to delete',
           33  +'Checking for upgrades...': 'Checking for upgrades...',
           34  +'Controllers': 'Controllers',
           35  +'Create new simple application': 'Create new simple application',
           36  +'Current request': 'Current request',
           37  +'Current response': 'Current response',
           38  +'Current session': 'Current session',
           39  +'DESIGN': 'DESIGN',
           40  +'Date and Time': 'Date and Time',
           41  +'Delete': 'Delete',
           42  +'Delete:': 'Delete:',
           43  +'Deploy on Google App Engine': 'Deploy on Google App Engine',
           44  +'Design for': 'Design for',
           45  +'EDIT': 'EDIT',
           46  +'Edit application': 'Edit application',
           47  +'Edit current record': 'Edit current record',
           48  +'Editing Language file': 'Editing Language file',
           49  +'Editing file': 'Editing file',
           50  +'Editing file "%s"': 'Editing file "%s"',
           51  +'Enterprise Web Framework': 'Enterprise Web Framework',
           52  +'Error logs for "%(app)s"': 'Error logs for "%(app)s"',
           53  +'Exception instance attributes': 'Exception instance attributes',
           54  +'Functions with no doctests will result in [passed] tests.': 'Functions with no doctests will result in [passed] tests.',
           55  +'Hello World': 'Здравей, свят',
           56  +'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.',
           57  +'Import/Export': 'Import/Export',
           58  +'Installed applications': 'Installed applications',
           59  +'Internal State': 'Internal State',
           60  +'Invalid Query': 'Невалидна заявка',
           61  +'Invalid action': 'Invalid action',
           62  +'Language files (static strings) updated': 'Language files (static strings) updated',
           63  +'Languages': 'Languages',
           64  +'Last saved on:': 'Last saved on:',
           65  +'License for': 'License for',
           66  +'Login': 'Login',
           67  +'Login to the Administrative Interface': 'Login to the Administrative Interface',
           68  +'Models': 'Models',
           69  +'Modules': 'Modules',
           70  +'NO': 'NO',
           71  +'New Record': 'New Record',
           72  +'New application wizard': 'New application wizard',
           73  +'New simple application': 'New simple application',
           74  +'No databases in this application': 'No databases in this application',
           75  +'Original/Translation': 'Original/Translation',
           76  +'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here',
           77  +'Peeking at file': 'Peeking at file',
           78  +'Plugin "%s" in application': 'Plugin "%s" in application',
           79  +'Plugins': 'Plugins',
           80  +'Powered by': 'Powered by',
           81  +'Query:': 'Query:',
           82  +'Resolve Conflict file': 'Resolve Conflict file',
           83  +'Rows in table': 'Rows in table',
           84  +'Rows selected': 'Rows selected',
           85  +'Saved file hash:': 'Saved file hash:',
           86  +'Searching:': 'Searching:',
           87  +'Static files': 'Static files',
           88  +'Sure you want to delete this object?': 'Сигурен ли си, че искаш да изтриеш този обект?',
           89  +'TM': 'TM',
           90  +'Testing application': 'Testing application',
           91  +'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.',
           92  +'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',
           93  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
           94  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
           95  +'There are no controllers': 'There are no controllers',
           96  +'There are no models': 'There are no models',
           97  +'There are no modules': 'There are no modules',
           98  +'There are no plugins': 'There are no plugins',
           99  +'There are no static files': 'There are no static files',
          100  +'There are no translators, only default language is supported': 'There are no translators, only default language is supported',
          101  +'There are no views': 'There are no views',
          102  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
          103  +'This is the %(filename)s template': 'This is the %(filename)s template',
          104  +'Ticket': 'Ticket',
          105  +'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]',
          106  +'Translation strings for the application': 'Translation strings for the application',
          107  +'Unable to check for upgrades': 'Unable to check for upgrades',
          108  +'Unable to download': 'Unable to download',
          109  +'Unable to download app because:': 'Unable to download app because:',
          110  +'Unable to download because': 'Unable to download because',
          111  +'Update:': 'Update:',
          112  +'Upload & install packed application': 'Upload & install packed application',
          113  +'Upload a package:': 'Upload a package:',
          114  +'Upload existing application': 'Upload existing application',
          115  +'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.',
          116  +'Use an url:': 'Use an url:',
          117  +'Version': 'Version',
          118  +'Views': 'Views',
          119  +'Welcome to web2py': 'Добре дошъл в web2py',
          120  +'YES': 'YES',
          121  +'about': 'about',
          122  +'additional code for your application': 'additional code for your application',
          123  +'admin disabled because no admin password': 'admin disabled because no admin password',
          124  +'admin disabled because not supported on google app engine': 'admin disabled because not supported on google apps engine',
          125  +'admin disabled because unable to access password file': 'admin disabled because unable to access password file',
          126  +'administrative interface': 'administrative interface',
          127  +'and rename it (required):': 'and rename it (required):',
          128  +'and rename it:': 'and rename it:',
          129  +'appadmin': 'appadmin',
          130  +'appadmin is disabled because insecure channel': 'appadmin is disabled because insecure channel',
          131  +'application "%s" uninstalled': 'application "%s" uninstalled',
          132  +'application compiled': 'application compiled',
          133  +'application is compiled and cannot be designed': 'application is compiled and cannot be designed',
          134  +'arguments': 'arguments',
          135  +'back': 'back',
          136  +'cache': 'cache',
          137  +'cache, errors and sessions cleaned': 'cache, errors and sessions cleaned',
          138  +'cannot create file': 'cannot create file',
          139  +'cannot upload file "%(filename)s"': 'cannot upload file "%(filename)s"',
          140  +'change admin password': 'change admin password',
          141  +'check all': 'check all',
          142  +'check for upgrades': 'check for upgrades',
          143  +'clean': 'clean',
          144  +'click here for online examples': 'щракни тук за онлайн примери',
          145  +'click here for the administrative interface': 'щракни тук за административния интерфейс',
          146  +'click to check for upgrades': 'click to check for upgrades',
          147  +'code': 'code',
          148  +'collapse/expand all': 'collapse/expand all',
          149  +'compile': 'compile',
          150  +'compiled application removed': 'compiled application removed',
          151  +'controllers': 'controllers',
          152  +'create': 'create',
          153  +'create file with filename:': 'create file with filename:',
          154  +'create new application:': 'create new application:',
          155  +'created by': 'created by',
          156  +'crontab': 'crontab',
          157  +'currently running': 'currently running',
          158  +'currently saved or': 'currently saved or',
          159  +'data uploaded': 'данните бяха качени',
          160  +'database': 'database',
          161  +'database %s select': 'database %s select',
          162  +'database administration': 'database administration',
          163  +'db': 'дб',
          164  +'defines tables': 'defines tables',
          165  +'delete': 'delete',
          166  +'delete all checked': 'delete all checked',
          167  +'delete plugin': 'delete plugin',
          168  +'deploy': 'deploy',
          169  +'design': 'дизайн',
          170  +'direction: ltr': 'direction: ltr',
          171  +'done!': 'готово!',
          172  +'download layouts': 'download layouts',
          173  +'download plugins': 'download plugins',
          174  +'edit': 'edit',
          175  +'edit controller': 'edit controller',
          176  +'edit views:': 'edit views:',
          177  +'errors': 'errors',
          178  +'export as csv file': 'export as csv file',
          179  +'exposes': 'exposes',
          180  +'extends': 'extends',
          181  +'failed to reload module': 'failed to reload module',
          182  +'failed to reload module because:': 'failed to reload module because:',
          183  +'file "%(filename)s" created': 'file "%(filename)s" created',
          184  +'file "%(filename)s" deleted': 'file "%(filename)s" deleted',
          185  +'file "%(filename)s" uploaded': 'file "%(filename)s" uploaded',
          186  +'file "%(filename)s" was not deleted': 'file "%(filename)s" was not deleted',
          187  +'file "%s" of %s restored': 'file "%s" of %s restored',
          188  +'file changed on disk': 'file changed on disk',
          189  +'file does not exist': 'file does not exist',
          190  +'file saved on %(time)s': 'file saved on %(time)s',
          191  +'file saved on %s': 'file saved on %s',
          192  +'files': 'files',
          193  +'filter': 'filter',
          194  +'help': 'help',
          195  +'htmledit': 'htmledit',
          196  +'includes': 'includes',
          197  +'insert new': 'insert new',
          198  +'insert new %s': 'insert new %s',
          199  +'install': 'install',
          200  +'internal error': 'internal error',
          201  +'invalid password': 'invalid password',
          202  +'invalid request': 'невалидна заявка',
          203  +'invalid ticket': 'invalid ticket',
          204  +'language file "%(filename)s" created/updated': 'language file "%(filename)s" created/updated',
          205  +'languages': 'languages',
          206  +'languages updated': 'languages updated',
          207  +'loading...': 'loading...',
          208  +'login': 'login',
          209  +'logout': 'logout',
          210  +'merge': 'merge',
          211  +'models': 'models',
          212  +'modules': 'modules',
          213  +'new application "%s" created': 'new application "%s" created',
          214  +'new plugin installed': 'new plugin installed',
          215  +'new record inserted': 'новият запис беше добавен',
          216  +'next 100 rows': 'next 100 rows',
          217  +'no match': 'no match',
          218  +'or import from csv file': 'or import from csv file',
          219  +'or provide app url:': 'or provide app url:',
          220  +'or provide application url:': 'or provide application url:',
          221  +'overwrite installed app': 'overwrite installed app',
          222  +'pack all': 'pack all',
          223  +'pack compiled': 'pack compiled',
          224  +'pack plugin': 'pack plugin',
          225  +'password changed': 'password changed',
          226  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted',
          227  +'plugins': 'plugins',
          228  +'previous 100 rows': 'previous 100 rows',
          229  +'record': 'record',
          230  +'record does not exist': 'записът не съществува',
          231  +'record id': 'record id',
          232  +'remove compiled': 'remove compiled',
          233  +'restore': 'restore',
          234  +'revert': 'revert',
          235  +'save': 'save',
          236  +'selected': 'selected',
          237  +'session expired': 'session expired',
          238  +'shell': 'shell',
          239  +'site': 'site',
          240  +'some files could not be removed': 'some files could not be removed',
          241  +'start wizard': 'start wizard',
          242  +'state': 'състояние',
          243  +'static': 'static',
          244  +'submit': 'submit',
          245  +'table': 'table',
          246  +'test': 'test',
          247  +'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',
          248  +'the data representation, define database tables and sets': 'the data representation, define database tables and sets',
          249  +'the presentations layer, views are also known as templates': 'the presentations layer, views are also known as templates',
          250  +'these files are served without processing, your images go here': 'these files are served without processing, your images go here',
          251  +'to  previous version.': 'to  previous version.',
          252  +'translation strings for the application': 'translation strings for the application',
          253  +'try': 'try',
          254  +'try something like': 'try something like',
          255  +'unable to create application "%s"': 'unable to create application "%s"',
          256  +'unable to delete file "%(filename)s"': 'unable to delete file "%(filename)s"',
          257  +'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"',
          258  +'unable to parse csv file': 'не е възможна обработката на csv файла',
          259  +'unable to uninstall "%s"': 'unable to uninstall "%s"',
          260  +'unable to upgrade because "%s"': 'unable to upgrade because "%s"',
          261  +'uncheck all': 'uncheck all',
          262  +'uninstall': 'uninstall',
          263  +'update': 'update',
          264  +'update all languages': 'update all languages',
          265  +'upgrade web2py now': 'upgrade web2py now',
          266  +'upload': 'upload',
          267  +'upload application:': 'upload application:',
          268  +'upload file:': 'upload file:',
          269  +'upload plugin file:': 'upload plugin file:',
          270  +'variables': 'variables',
          271  +'versioning': 'versioning',
          272  +'view': 'view',
          273  +'views': 'views',
          274  +'web2py Recent Tweets': 'web2py Recent Tweets',
          275  +'web2py is up to date': 'web2py is up to date',
          276  +'web2py upgraded; please restart it': 'web2py upgraded; please restart it',
          277  +}

Added applications/admin/languages/de-de.py version [d326e7c06f].

            1  +# coding: utf8
            2  +{
            3  +'"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',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': '%s Zeilen gelöscht',
            7  +'%s rows updated': '%s Zeilen aktualisiert',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(so etwas wie "it-it")',
           10  +'A new version of web2py is available': 'Eine neue Version von web2py ist verfügbar',
           11  +'A new version of web2py is available: %s': 'Eine neue Version von web2py ist verfügbar: %s',
           12  +'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',
           13  +'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).',
           14  +'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.',
           15  +'ATTENTION: This is an experimental feature and it needs more testing.': 'ACHTUNG: Dies ist eine experimentelle Funktion und benötigt noch weitere Tests.',
           16  +'ATTENTION: you cannot edit the running application!': 'ACHTUNG: Eine laufende Anwendung kann nicht editiert werden!',
           17  +'About': 'Über',
           18  +'About application': 'Über die Anwendung',
           19  +'Additional code for your application': 'Additional code for your application',
           20  +'Admin is disabled because insecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals',
           21  +'Admin is disabled because unsecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals',
           22  +'Admin language': 'Admin language',
           23  +'Administrator Password:': 'Administrator Passwort:',
           24  +'Application name:': 'Application name:',
           25  +'Are you sure you want to delete file "%s"?': 'Sind Sie sich sicher, dass Sie diese Datei löschen wollen "%s"?',
           26  +'Are you sure you want to uninstall application "%s"': 'Sind Sie sich sicher, dass Sie diese Anwendung deinstallieren wollen "%s"',
           27  +'Are you sure you want to uninstall application "%s"?': 'Sind Sie sich sicher, dass Sie diese Anwendung deinstallieren wollen "%s"?',
           28  +'Are you sure you want to upgrade web2py now?': 'Sind Sie sich sicher, dass Sie web2py jetzt upgraden möchten?',
           29  +'Authentication': 'Authentifizierung',
           30  +'Available databases and tables': 'Verfügbare Datenbanken und Tabellen',
           31  +'Cannot be empty': 'Darf nicht leer sein',
           32  +'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.',
           33  +'Change Password': 'Passwort ändern',
           34  +'Check to delete': 'Markiere zum löschen',
           35  +'Checking for upgrades...': 'Auf Updates überprüfen...',
           36  +'Client IP': 'Client IP',
           37  +'Controller': 'Controller',
           38  +'Controllers': 'Controller',
           39  +'Copyright': 'Urheberrecht',
           40  +'Create new simple application': 'Erzeuge neue Anwendung',
           41  +'Current request': 'Aktuelle Anfrage (request)',
           42  +'Current response': 'Aktuelle Antwort (response)',
           43  +'Current session': 'Aktuelle Sitzung (session)',
           44  +'DB Model': 'DB Modell',
           45  +'DESIGN': 'design',
           46  +'Database': 'Datenbank',
           47  +'Date and Time': 'Datum und Uhrzeit',
           48  +'Delete': 'Löschen',
           49  +'Delete:': 'Löschen:',
           50  +'Deploy on Google App Engine': 'Auf Google App Engine installieren',
           51  +'Description': 'Beschreibung',
           52  +'Design for': 'Design für',
           53  +'E-mail': 'E-mail',
           54  +'EDIT': 'BEARBEITEN',
           55  +'Edit': 'Bearbeiten',
           56  +'Edit Profile': 'Bearbeite Profil',
           57  +'Edit This App': 'Bearbeite diese Anwendung',
           58  +'Edit application': 'Bearbeite Anwendung',
           59  +'Edit current record': 'Bearbeite aktuellen Datensatz',
           60  +'Editing Language file': 'Sprachdatei bearbeiten',
           61  +'Editing file': 'Bearbeite Datei',
           62  +'Editing file "%s"': 'Bearbeite Datei "%s"',
           63  +'Enterprise Web Framework': 'Enterprise Web Framework',
           64  +'Error logs for "%(app)s"': 'Fehlerprotokoll für "%(app)s"',
           65  +'Exception instance attributes': 'Atribute der Ausnahmeinstanz',
           66  +'Expand Abbreviation': 'Kürzel erweitern',
           67  +'First name': 'Vorname',
           68  +'Functions with no doctests will result in [passed] tests.': 'Funktionen ohne doctests erzeugen [passed] in Tests',
           69  +'Go to Matching Pair': 'gehe zum übereinstimmenden Paar',
           70  +'Group ID': 'Gruppen ID',
           71  +'Hello World': 'Hallo Welt',
           72  +'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.',
           73  +'If you answer "yes", be patient, it may take a while to download': '',
           74  +'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',
           75  +'Import/Export': 'Importieren/Exportieren',
           76  +'Index': 'Index',
           77  +'Installed applications': 'Installierte Anwendungen',
           78  +'Internal State': 'interner Status',
           79  +'Invalid Query': 'Ungültige Abfrage',
           80  +'Invalid action': 'Ungültige Aktion',
           81  +'Invalid email': 'Ungültige Email',
           82  +'Key bindings': 'Tastenbelegungen',
           83  +'Key bindings for ZenConding Plugin': 'Tastenbelegungen für das ZenConding Plugin',
           84  +'Language files (static strings) updated': 'Sprachdatei (statisch Strings) aktualisiert',
           85  +'Languages': 'Sprachen',
           86  +'Last name': 'Nachname',
           87  +'Last saved on:': 'Zuletzt gespeichert am:',
           88  +'Layout': 'Layout',
           89  +'License for': 'Lizenz für',
           90  +'Login': 'Anmelden',
           91  +'Login to the Administrative Interface': 'An das Administrations-Interface anmelden',
           92  +'Logout': 'Abmeldung',
           93  +'Lost Password': 'Passwort vergessen',
           94  +'Main Menu': 'Menú principal',
           95  +'Match Pair': 'Paare finden',
           96  +'Menu Model': 'Menü Modell',
           97  +'Merge Lines': 'Zeilen zusammenfügen',
           98  +'Models': 'Modelle',
           99  +'Modules': 'Module',
          100  +'NO': 'NEIN',
          101  +'Name': 'Name',
          102  +'New Record': 'Neuer Datensatz',
          103  +'New application wizard': 'New application wizard',
          104  +'New simple application': 'New simple application',
          105  +'Next Edit Point': 'nächster Bearbeitungsschritt',
          106  +'No databases in this application': 'Keine Datenbank in dieser Anwendung',
          107  +'Origin': 'Herkunft',
          108  +'Original/Translation': 'Original/Übersetzung',
          109  +'Password': 'Passwort',
          110  +'Peeking at file': 'Dateiansicht',
          111  +'Plugin "%s" in application': 'Plugin "%s" in Anwendung',
          112  +'Plugins': 'Plugins',
          113  +'Powered by': 'Unterstützt von',
          114  +'Previous Edit Point': 'vorheriger Bearbeitungsschritt',
          115  +'Query:': 'Abfrage:',
          116  +'Record ID': 'Datensatz ID',
          117  +'Register': 'registrieren',
          118  +'Registration key': 'Registrierungsschlüssel',
          119  +'Reset Password key': 'Passwortschlüssel zurücksetzen',
          120  +'Resolve Conflict file': 'bereinige Konflikt-Datei',
          121  +'Role': 'Rolle',
          122  +'Rows in table': 'Zeilen in Tabelle',
          123  +'Rows selected': 'Zeilen ausgewählt',
          124  +'Save via Ajax': 'via Ajax sichern',
          125  +'Saved file hash:': 'Gespeicherter Datei-Hash:',
          126  +'Searching:': 'Searching:',
          127  +'Static files': 'statische Dateien',
          128  +'Stylesheet': 'Stylesheet',
          129  +'Sure you want to delete this object?': 'Wollen Sie das Objekt wirklich löschen?',
          130  +'TM': 'TM',
          131  +'Table name': 'Tabellen Name',
          132  +'Testing application': 'Teste die Anwendung',
          133  +'Testing controller': 'teste Controller',
          134  +'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.',
          135  +'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',
          136  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
          137  +'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',
          138  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
          139  +'There are no controllers': 'Keine Controller vorhanden',
          140  +'There are no models': 'Keine Modelle vorhanden',
          141  +'There are no modules': 'Keine Module vorhanden',
          142  +'There are no plugins': 'There are no plugins',
          143  +'There are no static files': 'Keine statischen Dateien vorhanden',
          144  +'There are no translators, only default language is supported': 'Keine Übersetzungen vorhanden, nur die voreingestellte Sprache wird unterstützt',
          145  +'There are no views': 'Keine Views vorhanden',
          146  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
          147  +'This is a copy of the scaffolding application': 'Dies ist eine Kopie einer Grundgerüst-Anwendung',
          148  +'This is the %(filename)s template': 'Dies ist das Template %(filename)s',
          149  +'Ticket': 'Ticket',
          150  +'Timestamp': 'Timestamp',
          151  +'To create a plugin, name a file/folder plugin_[name]': 'Um ein Plugin zu erstellen benennen Sie eine(n) Datei/Ordner plugin_[Name]',
          152  +'Translation strings for the application': 'Translation strings for the application',
          153  +'Unable to check for upgrades': 'überprüfen von Upgrades nicht möglich',
          154  +'Unable to download': 'herunterladen nicht möglich',
          155  +'Unable to download app': 'herunterladen der Anwendung nicht möglich',
          156  +'Update:': 'Aktualisiere:',
          157  +'Upload & install packed application': 'Verpackte Anwendung hochladen und installieren',
          158  +'Upload a package:': 'Upload a package:',
          159  +'Upload existing application': 'lade existierende Anwendung hoch',
          160  +'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.',
          161  +'Use an url:': 'Use an url:',
          162  +'User ID': 'Benutzer ID',
          163  +'Version': 'Version',
          164  +'View': 'View',
          165  +'Views': 'Views',
          166  +'Welcome %s': 'Willkommen %s',
          167  +'Welcome to web2py': 'Willkommen zu web2py',
          168  +'Which called the function': 'Which called the function',
          169  +'Wrap with Abbreviation': 'mit Kürzel einhüllen',
          170  +'YES': 'JA',
          171  +'You are successfully running web2py': 'web2by wird erfolgreich ausgeführt',
          172  +'You can modify this application and adapt it to your needs': 'Sie können diese Anwendung verändern und Ihren Bedürfnissen anpassen',
          173  +'You visited the url': 'Sie besuchten die URL',
          174  +'about': 'Über',
          175  +'additional code for your application': 'zusätzlicher Code für Ihre Anwendung',
          176  +'admin disabled because no admin password': ' admin ist deaktiviert, weil kein Admin-Passwort gesetzt ist',
          177  +'admin disabled because not supported on google apps engine': 'admin ist deaktiviert, es existiert dafür keine Unterstützung auf der google apps engine',
          178  +'admin disabled because unable to access password file': 'admin ist deaktiviert, weil kein Zugriff auf die Passwortdatei besteht',
          179  +'administrative interface': 'administrative interface',
          180  +'and rename it (required):': 'und benenne sie um (erforderlich):',
          181  +'and rename it:': ' und benenne sie um:',
          182  +'appadmin': 'appadmin',
          183  +'appadmin is disabled because insecure channel': 'Appadmin ist deaktiviert, wegen der Benutzung eines unsicheren Kanals',
          184  +'application "%s" uninstalled': 'Anwendung "%s" deinstalliert',
          185  +'application compiled': 'Anwendung kompiliert',
          186  +'application is compiled and cannot be designed': 'Die Anwendung ist kompiliert kann deswegen nicht mehr geändert werden',
          187  +'arguments': 'arguments',
          188  +'back': 'zurück',
          189  +'beautify': 'beautify',
          190  +'cache': 'Cache',
          191  +'cache, errors and sessions cleaned': 'Zwischenspeicher (cache), Fehler und Sitzungen (sessions) gelöscht',
          192  +'call': 'call',
          193  +'cannot create file': 'Kann Datei nicht erstellen',
          194  +'cannot upload file "%(filename)s"': 'Kann Datei nicht Hochladen "%(filename)s"',
          195  +'change admin password': 'Administrator-Passwort ändern',
          196  +'change password': 'Passwort ändern',
          197  +'check all': 'alles auswählen',
          198  +'check for upgrades': 'check for upgrades',
          199  +'clean': 'löschen',
          200  +'click here for online examples': 'hier klicken für online Beispiele',
          201  +'click here for the administrative interface': 'hier klicken für die Administrationsoberfläche ',
          202  +'click to check for upgrades': 'hier klicken um nach Upgrades zu suchen',
          203  +'code': 'code',
          204  +'collapse/expand all': 'collapse/expand all',
          205  +'compile': 'kompilieren',
          206  +'compiled application removed': 'kompilierte Anwendung gelöscht',
          207  +'controllers': 'Controllers',
          208  +'create': 'erstellen',
          209  +'create file with filename:': 'erzeuge Datei mit Dateinamen:',
          210  +'create new application:': 'erzeuge neue Anwendung:',
          211  +'created by': 'created by',
          212  +'crontab': 'crontab',
          213  +'currently running': 'currently running',
          214  +'currently saved or': 'des derzeit gespeicherten oder',
          215  +'customize me!': 'pass mich an!',
          216  +'data uploaded': 'Daten hochgeladen',
          217  +'database': 'Datenbank',
          218  +'database %s select': 'Datenbank %s ausgewählt',
          219  +'database administration': 'Datenbankadministration',
          220  +'db': 'db',
          221  +'defines tables': 'definiere Tabellen',
          222  +'delete': 'löschen',
          223  +'delete all checked': 'lösche alle markierten',
          224  +'delete plugin': 'Plugin löschen',
          225  +'deploy': 'deploy',
          226  +'design': 'design',
          227  +'direction: ltr': 'direction: ltr',
          228  +'documentation': 'Dokumentation',
          229  +'done!': 'fertig!',
          230  +'download layouts': 'download layouts',
          231  +'download plugins': 'download plugins',
          232  +'edit': 'bearbeiten',
          233  +'edit controller': 'Bearbeite Controller',
          234  +'edit profile': 'bearbeite Profil',
          235  +'edit views:': 'Views bearbeiten:',
          236  +'errors': 'Fehler',
          237  +'escape': 'escape',
          238  +'export as csv file': 'Exportieren als CSV-Datei',
          239  +'exposes': 'stellt zur Verfügung',
          240  +'extends': 'erweitert',
          241  +'failed to reload module': 'neu laden des Moduls fehlgeschlagen',
          242  +'file "%(filename)s" created': 'Datei "%(filename)s" erstellt',
          243  +'file "%(filename)s" deleted': 'Datei "%(filename)s" gelöscht',
          244  +'file "%(filename)s" uploaded': 'Datei "%(filename)s" hochgeladen',
          245  +'file "%(filename)s" was not deleted': 'Datei "%(filename)s" wurde nicht gelöscht',
          246  +'file "%s" of %s restored': 'Datei "%s" von %s wiederhergestellt',
          247  +'file changed on disk': 'Datei auf Festplatte geändert',
          248  +'file does not exist': 'Datei existiert nicht',
          249  +'file saved on %(time)s': 'Datei gespeichert am %(time)s',
          250  +'file saved on %s': 'Datei gespeichert auf %s',
          251  +'files': 'files',
          252  +'filter': 'filter',
          253  +'help': 'Hilfe',
          254  +'htmledit': 'htmledit',
          255  +'includes': 'Einfügen',
          256  +'index': 'index',
          257  +'insert new': 'neu einfügen',
          258  +'insert new %s': 'neu einfügen %s',
          259  +'install': 'installieren',
          260  +'internal error': 'interner Fehler',
          261  +'invalid password': 'Ungültiges Passwort',
          262  +'invalid request': 'ungültige Anfrage',
          263  +'invalid ticket': 'ungültiges Ticket',
          264  +'language file "%(filename)s" created/updated': 'Sprachdatei "%(filename)s" erstellt/aktualisiert',
          265  +'languages': 'Sprachen',
          266  +'languages updated': 'Sprachen aktualisiert',
          267  +'loading...': 'lade...',
          268  +'located in the file': 'located in Datei',
          269  +'login': 'anmelden',
          270  +'logout': 'abmelden',
          271  +'lost password?': 'Passwort vergessen?',
          272  +'merge': 'verbinden',
          273  +'models': 'Modelle',
          274  +'modules': 'Module',
          275  +'new application "%s" created': 'neue Anwendung "%s" erzeugt',
          276  +'new record inserted': 'neuer Datensatz eingefügt',
          277  +'next 100 rows': 'nächsten 100 Zeilen',
          278  +'or import from csv file': 'oder importieren von cvs Datei',
          279  +'or provide app url:': 'oder geben Sie eine Anwendungs-URL an:',
          280  +'or provide application url:': 'oder geben Sie eine Anwendungs-URL an:',
          281  +'overwrite installed app': 'installierte Anwendungen überschreiben',
          282  +'pack all': 'verpacke alles',
          283  +'pack compiled': 'Verpacke kompiliert',
          284  +'pack plugin': 'Plugin verpacken',
          285  +'please wait!': 'bitte warten!',
          286  +'plugins': 'plugins',
          287  +'previous 100 rows': 'vorherige 100 zeilen',
          288  +'record': 'Datensatz',
          289  +'record does not exist': 'Datensatz existiert nicht',
          290  +'record id': 'Datensatz id',
          291  +'register': 'Registrierung',
          292  +'remove compiled': 'kompilat gelöscht',
          293  +'restore': 'wiederherstellen',
          294  +'revert': 'zurückkehren',
          295  +'save': 'sichern',
          296  +'selected': 'ausgewählt(e)',
          297  +'session expired': 'Sitzung Abgelaufen',
          298  +'shell': 'shell',
          299  +'site': 'Seite',
          300  +'some files could not be removed': 'einige Dateien konnten nicht gelöscht werden',
          301  +'start wizard': 'start wizard',
          302  +'state': 'Status',
          303  +'static': 'statische Dateien',
          304  +'submit': 'Absenden',
          305  +'table': 'Tabelle',
          306  +'test': 'Test',
          307  +'test_def': 'test_def',
          308  +'test_for': 'test_for',
          309  +'test_if': 'test_if',
          310  +'test_try': 'test_try',
          311  +'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',
          312  +'the data representation, define database tables and sets': 'Die Datenrepräsentation definiert Mengen von Tabellen und Datenbanken ',
          313  +'the presentations layer, views are also known as templates': 'Die Präsentationsschicht, Views sind auch bekannt als Vorlagen/Templates',
          314  +'these files are served without processing, your images go here': 'Diese Dateien werden ohne Verarbeitung ausgeliefert. Beispielsweise Bilder kommen hier hin.',
          315  +'to  previous version.': 'zu einer früheren Version.',
          316  +'translation strings for the application': 'Übersetzungs-Strings für die Anwendung',
          317  +'try': 'versuche',
          318  +'try something like': 'versuche so etwas wie',
          319  +'unable to create application "%s"': 'erzeugen von Anwendung "%s" nicht möglich',
          320  +'unable to delete file "%(filename)s"': 'löschen von Datein "%(filename)s" nicht möglich',
          321  +'unable to parse csv file': 'analysieren der cvs Datei nicht möglich',
          322  +'unable to uninstall "%s"': 'deinstallieren von "%s" nicht möglich',
          323  +'uncheck all': 'alles demarkieren',
          324  +'uninstall': 'deinstallieren',
          325  +'update': 'aktualisieren',
          326  +'update all languages': 'aktualisiere alle Sprachen',
          327  +'upgrade web2py now': 'jetzt web2py upgraden',
          328  +'upload': 'upload',
          329  +'upload application:': 'lade Anwendung hoch:',
          330  +'upload file:': 'lade Datei hoch:',
          331  +'upload plugin file:': 'Plugin-Datei hochladen:',
          332  +'user': 'user',
          333  +'variables': 'variables',
          334  +'versioning': 'Versionierung',
          335  +'view': 'View',
          336  +'views': 'Views',
          337  +'web2py Recent Tweets': 'neuste Tweets von web2py',
          338  +'web2py is up to date': 'web2py ist auf dem neuesten Stand',
          339  +'xml': 'xml',
          340  +}

Added applications/admin/languages/es-es.py version [677aa3fba3].

            1  +# coding: utf8
            2  +{
            3  +'"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',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': '%s filas eliminadas',
            7  +'%s rows updated': '%s filas actualizadas',
            8  +'(something like "it-it")': '(algo como "it-it")',
            9  +'A new version of web2py is available': 'Hay una nueva versión de web2py disponible',
           10  +'A new version of web2py is available: %s': 'Hay una nueva versión de web2py disponible: %s',
           11  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATENCION: Inicio de sesión requiere una conexión segura (HTTPS) o localhost.',
           12  +'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'ATENCION: NO EJECUTE VARIAS PRUEBAS SIMULTANEAMENTE, NO SON THREAD SAFE.',
           13  +'ATTENTION: you cannot edit the running application!': 'ATENCION: no puede modificar la aplicación que se ejecuta!',
           14  +'About': 'Acerca de',
           15  +'About application': 'Acerca de la aplicación',
           16  +'Admin is disabled because insecure channel': 'Admin deshabilitado, el canal no es seguro',
           17  +'Admin is disabled because unsecure channel': 'Admin deshabilitado, el canal no es seguro',
           18  +'Administrator Password:': 'Contraseña del Administrador:',
           19  +'Are you sure you want to delete file "%s"?': '¿Está seguro que desea eliminar el archivo "%s"?',
           20  +'Are you sure you want to delete plugin "%s"?': '¿Está seguro que quiere eliminar el plugin "%s"?',
           21  +'Are you sure you want to uninstall application "%s"': '¿Está seguro que desea desinstalar la aplicación "%s"',
           22  +'Are you sure you want to uninstall application "%s"?': '¿Está seguro que desea desinstalar la aplicación "%s"?',
           23  +'Are you sure you want to upgrade web2py now?': '¿Está seguro que desea actualizar web2py ahora?',
           24  +'Available databases and tables': 'Bases de datos y tablas disponibles',
           25  +'Cannot be empty': 'No puede estar vacío',
           26  +'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.',
           27  +'Cannot compile: there are errors in your app:': 'No se puede compilar: hay errores en su aplicación:',
           28  +'Change Password': 'Cambie Contraseña',
           29  +'Check to delete': 'Marque para eliminar',
           30  +'Checking for upgrades...': 'Buscando actulizaciones...',
           31  +'Click row to expand traceback': 'Click row to expand traceback',
           32  +'Client IP': 'IP del Cliente',
           33  +'Controllers': 'Controladores',
           34  +'Count': 'Count',
           35  +'Create new application using the Wizard': 'Create new application using the Wizard',
           36  +'Create new simple application': 'Cree una nueva aplicación',
           37  +'Current request': 'Solicitud en curso',
           38  +'Current response': 'Respuesta en curso',
           39  +'Current session': 'Sesión en curso',
           40  +'DESIGN': 'DISEÑO',
           41  +'Date and Time': 'Fecha y Hora',
           42  +'Delete': 'Elimine',
           43  +'Delete:': 'Elimine:',
           44  +'Deploy on Google App Engine': 'Instale en Google App Engine',
           45  +'Description': 'Descripción',
           46  +'Design for': 'Diseño para',
           47  +'E-mail': 'Correo electrónico',
           48  +'EDIT': 'EDITAR',
           49  +'Edit Profile': 'Editar Perfil',
           50  +'Edit application': 'Editar aplicación',
           51  +'Edit current record': 'Edite el registro actual',
           52  +'Editing Language file': 'Editando archivo de lenguaje',
           53  +'Editing file': 'Editando archivo',
           54  +'Editing file "%s"': 'Editando archivo "%s"',
           55  +'Enterprise Web Framework': 'Armazón Empresarial para Internet',
           56  +'Error': 'Error',
           57  +'Error logs for "%(app)s"': 'Bitácora de errores en "%(app)s"',
           58  +'Exception instance attributes': 'Atributos de la instancia de Excepción',
           59  +'File': 'File',
           60  +'First name': 'Nombre',
           61  +'Functions with no doctests will result in [passed] tests.': 'Funciones sin doctests equivalen a pruebas [aceptadas].',
           62  +'Group ID': 'ID de Grupo',
           63  +'Hello World': 'Hola Mundo',
           64  +'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.',
           65  +'Import/Export': 'Importar/Exportar',
           66  +'Installed applications': 'Aplicaciones instaladas',
           67  +'Internal State': 'Estado Interno',
           68  +'Invalid Query': 'Consulta inválida',
           69  +'Invalid action': 'Acción inválida',
           70  +'Invalid email': 'Correo inválido',
           71  +'Language files (static strings) updated': 'Archivos de lenguaje (cadenas estáticas) actualizados',
           72  +'Languages': 'Lenguajes',
           73  +'Last name': 'Apellido',
           74  +'Last saved on:': 'Guardado en:',
           75  +'License for': 'Licencia para',
           76  +'Login': 'Inicio de sesión',
           77  +'Login to the Administrative Interface': 'Inicio de sesión para la Interfaz Administrativa',
           78  +'Logout': 'Fin de sesión',
           79  +'Lost Password': 'Contraseña perdida',
           80  +'Models': 'Modelos',
           81  +'Modules': 'Módulos',
           82  +'NO': 'NO',
           83  +'Name': 'Nombre',
           84  +'New Record': 'Registro nuevo',
           85  +'No databases in this application': 'No hay bases de datos en esta aplicación',
           86  +'Origin': 'Origen',
           87  +'Original/Translation': 'Original/Traducción',
           88  +'PAM authenticated user, cannot change password here': 'usuario autenticado por PAM, no puede cambiar la contraseña aquí',
           89  +'Password': 'Contraseña',
           90  +'Peeking at file': 'Visualizando archivo',
           91  +'Plugin "%s" in application': 'Plugin "%s" en aplicación',
           92  +'Plugins': 'Plugins',
           93  +'Powered by': 'Este sitio usa',
           94  +'Query:': 'Consulta:',
           95  +'Record ID': 'ID de Registro',
           96  +'Register': 'Registrese',
           97  +'Registration key': 'Contraseña de Registro',
           98  +'Resolve Conflict file': 'archivo Resolución de Conflicto',
           99  +'Role': 'Rol',
          100  +'Rows in table': 'Filas en la tabla',
          101  +'Rows selected': 'Filas seleccionadas',
          102  +'Saved file hash:': 'Hash del archivo guardado:',
          103  +'Static files': 'Archivos estáticos',
          104  +'Sure you want to delete this object?': '¿Está seguro que desea eliminar este objeto?',
          105  +'TM': 'MR',
          106  +'Table name': 'Nombre de la tabla',
          107  +'Testing application': 'Probando aplicación',
          108  +'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.',
          109  +'There are no controllers': 'No hay controladores',
          110  +'There are no models': 'No hay modelos',
          111  +'There are no modules': 'No hay módulos',
          112  +'There are no static files': 'No hay archivos estáticos',
          113  +'There are no translators, only default language is supported': 'No hay traductores, sólo el lenguaje por defecto es soportado',
          114  +'There are no views': 'No hay vistas',
          115  +'This is the %(filename)s template': 'Esta es la plantilla %(filename)s',
          116  +'Ticket': 'Tiquete',
          117  +'Timestamp': 'Timestamp',
          118  +'To create a plugin, name a file/folder plugin_[name]': 'Para crear un plugin, nombre un archivo/carpeta plugin_[nombre]',
          119  +'Unable to check for upgrades': 'No es posible verificar la existencia de actualizaciones',
          120  +'Unable to download': 'No es posible la descarga',
          121  +'Unable to download app': 'No es posible descargar la aplicación',
          122  +'Unable to download app because:': 'No es posible descargar la aplicación porque:',
          123  +'Unable to download because': 'No es posible descargar porque',
          124  +'Update:': 'Actualice:',
          125  +'Upload & install packed application': 'Suba e instale aplicación empaquetada',
          126  +'Upload existing application': 'Suba esta aplicación',
          127  +'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.',
          128  +'User ID': 'ID de Usuario',
          129  +'Version': 'Versión',
          130  +'Views': 'Vistas',
          131  +'Welcome to web2py': 'Bienvenido a web2py',
          132  +'YES': 'SI',
          133  +'about': 'acerca de',
          134  +'additional code for your application': 'código adicional para su aplicación',
          135  +'admin disabled because no admin password': ' por falta de contraseña',
          136  +'admin disabled because not supported on google app engine': 'admin deshabilitado, no es soportado en GAE',
          137  +'admin disabled because unable to access password file': 'admin deshabilitado, imposible acceder al archivo con la contraseña',
          138  +'and rename it (required):': 'y renombrela (requerido):',
          139  +'and rename it:': ' y renombrelo:',
          140  +'appadmin': 'appadmin',
          141  +'appadmin is disabled because insecure channel': 'admin deshabilitado, el canal no es seguro',
          142  +'application "%s" uninstalled': 'aplicación "%s" desinstalada',
          143  +'application compiled': 'aplicación compilada',
          144  +'application is compiled and cannot be designed': 'la aplicación está compilada y no puede ser modificada',
          145  +'arguments': 'argumentos',
          146  +'back': 'atrás',
          147  +'browse': 'buscar',
          148  +'cache': 'cache',
          149  +'cache, errors and sessions cleaned': 'cache, errores y sesiones eliminados',
          150  +'cannot create file': 'no es posible crear archivo',
          151  +'cannot upload file "%(filename)s"': 'no es posible subir archivo "%(filename)s"',
          152  +'change admin password': 'cambie contraseña admin',
          153  +'check all': 'marcar todos',
          154  +'clean': 'limpiar',
          155  +'click here for online examples': 'haga clic aquí para ver ejemplos en línea',
          156  +'click here for the administrative interface': 'haga clic aquí para usar la interfaz administrativa',
          157  +'click to check for upgrades': 'haga clic para buscar actualizaciones',
          158  +'click to open': 'click to open',
          159  +'code': 'código',
          160  +'commit (mercurial)': 'commit (mercurial)',
          161  +'compile': 'compilar',
          162  +'compiled application removed': 'aplicación compilada removida',
          163  +'controllers': 'controladores',
          164  +'create': 'crear',
          165  +'create file with filename:': 'cree archivo con nombre:',
          166  +'create new application:': 'nombre de la nueva aplicación:',
          167  +'created by': 'creado por',
          168  +'crontab': 'crontab',
          169  +'currently saved or': 'actualmente guardado o',
          170  +'customize me!': 'Adaptame!',
          171  +'data uploaded': 'datos subidos',
          172  +'database': 'base de datos',
          173  +'database %s select': 'selección en base de datos %s',
          174  +'database administration': 'administración base de datos',
          175  +'db': 'db',
          176  +'defines tables': 'define tablas',
          177  +'delete': 'eliminar',
          178  +'delete all checked': 'eliminar marcados',
          179  +'delete plugin': 'eliminar plugin',
          180  +'design': 'modificar',
          181  +'direction: ltr': 'direction: ltr',
          182  +'done!': 'listo!',
          183  +'edit': 'editar',
          184  +'edit controller': 'editar controlador',
          185  +'edit views:': 'editar vistas:',
          186  +'errors': 'errores',
          187  +'export as csv file': 'exportar como archivo CSV',
          188  +'exposes': 'expone',
          189  +'extends': 'extiende',
          190  +'failed to reload module': 'recarga del módulo ha fallado',
          191  +'failed to reload module because:': 'no es posible recargar el módulo por:',
          192  +'file "%(filename)s" created': 'archivo "%(filename)s" creado',
          193  +'file "%(filename)s" deleted': 'archivo "%(filename)s" eliminado',
          194  +'file "%(filename)s" uploaded': 'archivo "%(filename)s" subido',
          195  +'file "%(filename)s" was not deleted': 'archivo "%(filename)s" no fué eliminado',
          196  +'file "%s" of %s restored': 'archivo "%s" de %s restaurado',
          197  +'file changed on disk': 'archivo modificado en el disco',
          198  +'file does not exist': 'archivo no existe',
          199  +'file saved on %(time)s': 'archivo guardado %(time)s',
          200  +'file saved on %s': 'archivo guardado %s',
          201  +'help': 'ayuda',
          202  +'htmledit': 'htmledit',
          203  +'includes': 'incluye',
          204  +'insert new': 'inserte nuevo',
          205  +'insert new %s': 'inserte nuevo %s',
          206  +'install': 'instalar',
          207  +'internal error': 'error interno',
          208  +'invalid password': 'contraseña inválida',
          209  +'invalid request': 'solicitud inválida',
          210  +'invalid ticket': 'tiquete inválido',
          211  +'language file "%(filename)s" created/updated': 'archivo de lenguaje "%(filename)s" creado/actualizado',
          212  +'languages': 'lenguajes',
          213  +'languages updated': 'lenguajes actualizados',
          214  +'loading...': 'cargando...',
          215  +'login': 'inicio de sesión',
          216  +'logout': 'fin de sesión',
          217  +'manage': 'manage',
          218  +'merge': 'combinar',
          219  +'models': 'modelos',
          220  +'modules': 'módulos',
          221  +'new application "%s" created': 'nueva aplicación "%s" creada',
          222  +'new plugin installed': 'nuevo plugin instalado',
          223  +'new record inserted': 'nuevo registro insertado',
          224  +'next 100 rows': '100 filas siguientes',
          225  +'no match': 'no encontrado',
          226  +'or import from csv file': 'o importar desde archivo CSV',
          227  +'or provide app url:': 'o provea URL de la aplicación:',
          228  +'or provide application url:': 'o provea URL de la aplicación:',
          229  +'overwrite installed app': 'sobreescriba aplicación instalada',
          230  +'pack all': 'empaquetar todo',
          231  +'pack compiled': 'empaquete compiladas',
          232  +'pack plugin': 'empaquetar plugin',
          233  +'password changed': 'contraseña cambiada',
          234  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" eliminado',
          235  +'previous 100 rows': '100 filas anteriores',
          236  +'record': 'registro',
          237  +'record does not exist': 'el registro no existe',
          238  +'record id': 'id de registro',
          239  +'remove compiled': 'eliminar compiladas',
          240  +'restore': 'restaurar',
          241  +'revert': 'revertir',
          242  +'save': 'guardar',
          243  +'selected': 'seleccionado(s)',
          244  +'session expired': 'sesión expirada',
          245  +'shell': 'shell',
          246  +'site': 'sitio',
          247  +'some files could not be removed': 'algunos archivos no pudieron ser removidos',
          248  +'state': 'estado',
          249  +'static': 'estáticos',
          250  +'submit': 'enviar',
          251  +'table': 'tabla',
          252  +'test': 'probar',
          253  +'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',
          254  +'the data representation, define database tables and sets': 'la representación de datos, define tablas y conjuntos de base de datos',
          255  +'the presentations layer, views are also known as templates': 'la capa de presentación, las vistas también son llamadas plantillas',
          256  +'these files are served without processing, your images go here': 'estos archivos son servidos sin procesar, sus imágenes van aquí',
          257  +'to  previous version.': 'a la versión previa.',
          258  +'translation strings for the application': 'cadenas de caracteres de traducción para la aplicación',
          259  +'try': 'intente',
          260  +'try something like': 'intente algo como',
          261  +'unable to create application "%s"': 'no es posible crear la aplicación "%s"',
          262  +'unable to delete file "%(filename)s"': 'no es posible eliminar el archivo "%(filename)s"',
          263  +'unable to delete file plugin "%(plugin)s"': 'no es posible eliminar plugin "%(plugin)s"',
          264  +'unable to parse csv file': 'no es posible analizar el archivo CSV',
          265  +'unable to uninstall "%s"': 'no es posible instalar "%s"',
          266  +'unable to upgrade because "%s"': 'no es posible actualizar porque "%s"',
          267  +'uncheck all': 'desmarcar todos',
          268  +'uninstall': 'desinstalar',
          269  +'update': 'actualizar',
          270  +'update all languages': 'actualizar todos los lenguajes',
          271  +'upgrade web2py now': 'actualize web2py ahora',
          272  +'upload application:': 'subir aplicación:',
          273  +'upload file:': 'suba archivo:',
          274  +'upload plugin file:': 'suba archivo de plugin:',
          275  +'variables': 'variables',
          276  +'versioning': 'versiones',
          277  +'view': 'vista',
          278  +'views': 'vistas',
          279  +'web2py Recent Tweets': 'Tweets Recientes de web2py',
          280  +'web2py is up to date': 'web2py está actualizado',
          281  +'web2py upgraded; please restart it': 'web2py actualizado; favor reiniciar',
          282  +}

Added applications/admin/languages/fr-fr.py version [ed6f3ea1be].

            1  +# coding: utf8
            2  +{
            3  +'"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"',
            4  +'%Y-%m-%d': '%d-%m-%Y',
            5  +'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',
            6  +'%s rows deleted': 'lignes %s supprimé',
            7  +'%s rows updated': 'lignes %s mis à jour',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(quelque chose comme "it-it") ',
           10  +'A new version of web2py is available: %s': 'Une nouvelle version de web2py est disponible: %s ',
           11  +'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',
           12  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'ATTENTION: nécessite une connexion sécurisée (HTTPS) ou être en localhost. ',
           13  +'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.',
           14  +'ATTENTION: you cannot edit the running application!': "ATTENTION: vous ne pouvez pas modifier l'application qui tourne!",
           15  +'About': 'À propos',
           16  +'About application': "A propos de l'application",
           17  +'Additional code for your application': 'Additional code for your application',
           18  +'Admin is disabled because insecure channel': 'Admin est désactivé parce que canal non sécurisé',
           19  +'Admin language': 'Admin language',
           20  +'Administrator Password:': 'Mot de passe Administrateur:',
           21  +'Application name:': 'Application name:',
           22  +'Are you sure you want to delete file "%s"?': 'Etes-vous sûr de vouloir supprimer le fichier «%s»?',
           23  +'Are you sure you want to delete plugin "%s"?': 'Etes-vous sûr de vouloir effacer le plugin "%s"?',
           24  +'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?',
           25  +'Are you sure you want to uninstall application "%s"?': "Êtes-vous sûr de vouloir désinstaller l'application «%s»?",
           26  +'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?',
           27  +'Available databases and tables': 'Bases de données et tables disponible',
           28  +'Cannot be empty': 'Ne peut pas être vide',
           29  +'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.',
           30  +'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:',
           31  +'Check to delete': 'Cocher pour supprimer',
           32  +'Checking for upgrades...': 'Vérification des mises à jour ... ',
           33  +'Controllers': 'Contrôleurs',
           34  +'Create new simple application': 'Créer une nouvelle application',
           35  +'Current request': 'Requête actuel',
           36  +'Current response': 'Réponse actuelle',
           37  +'Current session': 'Session en cours',
           38  +'Date and Time': 'Date et heure',
           39  +'Delete': 'Supprimer',
           40  +'Delete this file (you will be asked to confirm deletion)': 'Delete this file (you will be asked to confirm deletion)',
           41  +'Delete:': 'Supprimer:',
           42  +'Deploy on Google App Engine': 'Déployer sur Google App Engine',
           43  +'EDIT': 'MODIFIER',
           44  +'Edit application': "Modifier l'application",
           45  +'Edit current record': 'Modifier cet entrée',
           46  +'Editing Language file': 'Modifier le fichier de langue',
           47  +'Editing file': 'Modifier le fichier',
           48  +'Editing file "%s"': 'Modifier le fichier "% s" ',
           49  +'Enterprise Web Framework': 'Enterprise Web Framework',
           50  +'Error logs for "%(app)s"': 'Journal d\'erreurs pour "%(app)s"',
           51  +'Exception instance attributes': 'Exception instance attributes',
           52  +'Functions with no doctests will result in [passed] tests.': 'Des fonctions sans doctests entraînera tests [passed] .',
           53  +'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.",
           54  +'Import/Export': 'Importer/Exporter',
           55  +'Installed applications': 'Les applications installées',
           56  +'Internal State': 'État Interne',
           57  +'Invalid Query': 'Requête non valide',
           58  +'Invalid action': 'Action non valide',
           59  +'Language files (static strings) updated': 'Fichiers de langue (static strings) Mise à jour ',
           60  +'Languages': 'Langues',
           61  +'Last saved on:': 'Dernière sauvegarde le:',
           62  +'License for': 'Licence pour',
           63  +'Login': 'Connexion',
           64  +'Login to the Administrative Interface': "Se connecter à l'interface d'administration",
           65  +'Models': 'Modèles',
           66  +'Modules': 'Modules',
           67  +'NO': 'NON',
           68  +'New Record': 'Nouvel Entrée',
           69  +'New application wizard': 'New application wizard',
           70  +'New simple application': 'New simple application',
           71  +'No databases in this application': 'Aucune base de données dans cette application',
           72  +'Original/Translation': 'Original / Traduction',
           73  +'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here',
           74  +'Peeking at file': 'Jeter un oeil au fichier',
           75  +'Plugin "%s" in application': 'Plugin "%s" dans l\'application',
           76  +'Plugins': 'Plugins',
           77  +'Powered by': 'Propulsé par',
           78  +'Query:': 'Requête: ',
           79  +'Resolve Conflict file': 'Résoudre les conflits de fichiers',
           80  +'Rows in table': 'Lignes de la table',
           81  +'Rows selected': 'Lignes sélectionnées',
           82  +"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')",
           83  +'Save': 'Save',
           84  +'Saved file hash:': 'Hash du Fichier enregistré:',
           85  +'Searching:': 'Searching:',
           86  +'Static files': 'Fichiers statiques',
           87  +'Sure you want to delete this object?': 'Vous êtes sûr de vouloir supprimer cet objet? ',
           88  +'TM': 'MD',
           89  +'Testing application': "Test de l'application",
           90  +'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.',
           91  +'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',
           92  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
           93  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
           94  +'There are no controllers': "Il n'existe pas de contrôleurs",
           95  +'There are no models': "Il n'existe pas de modèles",
           96  +'There are no modules': "Il n'existe pas de modules",
           97  +'There are no plugins': 'There are no plugins',
           98  +'There are no static files': "Il n'existe pas de fichiers statiques",
           99  +'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",
          100  +'There are no views': "Il n'existe pas de vues",
          101  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
          102  +'This is the %(filename)s template': 'Ceci est le modèle %(filename)s ',
          103  +'Ticket': 'Ticket',
          104  +'To create a plugin, name a file/folder plugin_[name]': 'Pour créer un plugin, créer un fichier /dossier plugin_[nom]',
          105  +'Translation strings for the application': 'Translation strings for the application',
          106  +'Unable to check for upgrades': 'Impossible de vérifier les mises à niveau',
          107  +'Unable to download': 'Impossible de télécharger',
          108  +'Unable to download app': 'Impossible de télécharger app',
          109  +'Unable to download app because:': 'Unable to download app because:',
          110  +'Unable to download because': 'Unable to download because',
          111  +'Update:': 'Mise à jour:',
          112  +'Upload & install packed application': 'Upload & install packed application',
          113  +'Upload a package:': 'Upload a package:',
          114  +'Upload existing application': 'charger une application existante',
          115  +'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. ',
          116  +'Use an url:': 'Use an url:',
          117  +'Version': 'Version',
          118  +'Views': 'Vues',
          119  +'Web Framework': 'Web Framework',
          120  +'YES': 'OUI',
          121  +'about': 'à propos',
          122  +'additional code for your application': 'code supplémentaire pour votre application',
          123  +'admin disabled because no admin password': 'admin désactivé car aucun mot de passe admin',
          124  +'admin disabled because not supported on google app engine': 'admin désactivé car non pris en charge sur Google Apps engine',
          125  +'admin disabled because unable to access password file': "admin désactivé car incapable d'accéder au fichier mot de passe",
          126  +'administrative interface': 'administrative interface',
          127  +'and rename it (required):': 'et renommez-la (obligatoire):',
          128  +'and rename it:': 'et renommez-le:',
          129  +'appadmin': 'appadmin',
          130  +'appadmin is disabled because insecure channel': 'appadmin est désactivé parce que canal non sécurisé',
          131  +'application "%s" uninstalled': 'application "%s" désinstallé',
          132  +'application %(appname)s installed with md5sum: %(digest)s': 'application %(appname)s installed with md5sum: %(digest)s',
          133  +'application compiled': 'application compilée',
          134  +'application is compiled and cannot be designed': "l'application est compilée et ne peut être désigné",
          135  +'arguments': 'arguments',
          136  +'back': 'retour',
          137  +'cache': 'cache',
          138  +'cache, errors and sessions cleaned': 'cache, erreurs et sessions nettoyé',
          139  +'cannot create file': 'ne peu pas créer de fichier',
          140  +'cannot upload file "%(filename)s"': 'ne peu pas charger le fichier "%(filename)s"',
          141  +'change admin password': 'change admin password',
          142  +'check all': 'tous vérifier ',
          143  +'check for upgrades': 'check for upgrades',
          144  +'clean': 'nettoyer',
          145  +'click to check for upgrades': 'Cliquez pour vérifier les mises à niveau',
          146  +'code': 'code',
          147  +'collapse/expand all': 'collapse/expand all',
          148  +'compile': 'compiler',
          149  +'compiled application removed': 'application compilée enlevé',
          150  +'controllers': 'contrôleurs',
          151  +'create': 'create',
          152  +'create file with filename:': 'créer un fichier avec nom de fichier:',
          153  +'create new application:': 'créer une nouvelle application:',
          154  +'created by': 'créé par',
          155  +'crontab': 'crontab',
          156  +'currently running': 'currently running',
          157  +'currently saved or': 'actuellement enregistrés ou',
          158  +'data uploaded': 'données chargées',
          159  +'database': 'base de données',
          160  +'database %s select': 'base de données  %s sélectionner',
          161  +'database administration': 'administration base de données',
          162  +'db': 'db',
          163  +'defines tables': 'définit les tables',
          164  +'delete': 'supprimer',
          165  +'delete all checked': 'supprimer tout ce qui est cocher',
          166  +'delete plugin': ' supprimer plugin',
          167  +'deploy': 'deploy',
          168  +'design': 'conception',
          169  +'direction: ltr': 'direction: ltr',
          170  +'docs': 'docs',
          171  +'done!': 'fait!',
          172  +'download layouts': 'download layouts',
          173  +'download plugins': 'download plugins',
          174  +'edit': 'modifier',
          175  +'edit controller': 'modifier contrôleur',
          176  +'edit views:': 'edit views:',
          177  +'errors': 'erreurs',
          178  +'export as csv file': 'exportation au format CSV',
          179  +'exposes': 'expose',
          180  +'exposes:': 'exposes:',
          181  +'extends': 'étend',
          182  +'failed to reload module': 'impossible de recharger le module',
          183  +'failed to reload module because:': 'failed to reload module because:',
          184  +'file "%(filename)s" created': 'fichier "%(filename)s" créé',
          185  +'file "%(filename)s" deleted': 'fichier "%(filename)s" supprimé',
          186  +'file "%(filename)s" uploaded': 'fichier "%(filename)s" chargé',
          187  +'file "%s" of %s restored': 'fichier "%s" de %s restauré',
          188  +'file changed on disk': 'fichier modifié sur le disque',
          189  +'file does not exist': "fichier n'existe pas",
          190  +'file saved on %(time)s': 'fichier enregistré le %(time)s',
          191  +'file saved on %s': 'fichier enregistré le %s',
          192  +'files': 'files',
          193  +'filter': 'filter',
          194  +'help': 'aide',
          195  +'htmledit': 'edition html',
          196  +'includes': 'inclus',
          197  +'index': 'index',
          198  +'insert new': 'insérer nouveau',
          199  +'insert new %s': 'insérer nouveau %s',
          200  +'install': 'install',
          201  +'internal error': 'erreur interne',
          202  +'invalid password': 'mot de passe invalide',
          203  +'invalid request': 'Demande incorrecte',
          204  +'invalid ticket': 'ticket non valide',
          205  +'language file "%(filename)s" created/updated': 'fichier de langue "%(filename)s" créé/mis à jour',
          206  +'languages': 'langues',
          207  +'loading...': 'Chargement ...',
          208  +'login': 'connexion',
          209  +'logout': 'déconnexion',
          210  +'merge': 'fusionner',
          211  +'models': 'modèles',
          212  +'modules': 'modules',
          213  +'new application "%s" created': 'nouvelle application "%s" créée',
          214  +'new plugin installed': 'nouveau plugin installé',
          215  +'new record inserted': 'nouvelle entrée inséré',
          216  +'next 100 rows': '100 lignes suivantes',
          217  +'no match': 'no match',
          218  +'or import from csv file': 'ou importer depuis un fichier CSV ',
          219  +'or provide app url:': 'or provide app url:',
          220  +'or provide application url:': "ou fournir l'URL de l'application:",
          221  +'overwrite installed app': 'overwrite installed app',
          222  +'pack all': 'tout empaqueter',
          223  +'pack compiled': 'paquet compilé',
          224  +'pack plugin': 'paquet plugin',
          225  +'password changed': 'password changed',
          226  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" supprimé',
          227  +'plugins': 'plugins',
          228  +'previous 100 rows': '100 lignes précédentes',
          229  +'record': 'entrée',
          230  +'record does not exist': "l'entrée n'existe pas",
          231  +'record id': 'id entrée',
          232  +'remove compiled': 'retirer compilé',
          233  +'restore': 'restaurer',
          234  +'revert': 'revenir',
          235  +'save': 'sauver',
          236  +'selected': 'sélectionnés',
          237  +'session expired': 'la session a expiré ',
          238  +'shell': 'shell',
          239  +'site': 'site',
          240  +'some files could not be removed': 'certains fichiers ne peuvent pas être supprimés',
          241  +'start wizard': 'start wizard',
          242  +'state': 'état',
          243  +'static': 'statiques',
          244  +'submit': 'envoyer',
          245  +'table': 'table',
          246  +'test': 'tester',
          247  +'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",
          248  +'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',
          249  +'the presentations layer, views are also known as templates': 'la couche des présentations, les vues sont également connus en tant que modèles',
          250  +'these files are served without processing, your images go here': 'ces fichiers sont servis sans transformation, vos images vont ici',
          251  +'to  previous version.': 'à la version précédente.',
          252  +'translation strings for the application': "chaînes de traduction de l'application",
          253  +'try': 'essayer',
          254  +'try something like': 'essayez quelque chose comme',
          255  +'unable to create application "%s"': 'impossible de créer l\'application  "%s"',
          256  +'unable to delete file "%(filename)s"': 'impossible de supprimer le fichier "%(filename)s"',
          257  +'unable to delete file plugin "%(plugin)s"': 'impossible de supprimer le plugin "%(plugin)s"',
          258  +'unable to parse csv file': "impossible d'analyser les fichiers CSV",
          259  +'unable to uninstall "%s"': 'impossible de désinstaller "%s"',
          260  +'unable to upgrade because "%s"': 'unable to upgrade because "%s"',
          261  +'uncheck all': 'tout décocher',
          262  +'uninstall': 'désinstaller',
          263  +'update': 'mettre à jour',
          264  +'update all languages': 'mettre à jour toutes les langues',
          265  +'upgrade now': 'upgrade now',
          266  +'upgrade web2py now': 'upgrade web2py now',
          267  +'upload': 'upload',
          268  +'upload application:': "charger l'application:",
          269  +'upload file:': 'charger le fichier:',
          270  +'upload plugin file:': 'charger fichier plugin:',
          271  +'user': 'user',
          272  +'variables': 'variables',
          273  +'versioning': 'versioning',
          274  +'view': 'vue',
          275  +'views': 'vues',
          276  +'web2py Recent Tweets': 'web2py Tweets récentes',
          277  +'web2py is up to date': 'web2py est à jour',
          278  +'web2py upgraded; please restart it': 'web2py upgraded; please restart it',
          279  +}

Added applications/admin/languages/he.py version [f3c994794b].

            1  +# coding: utf8
            2  +{
            3  +'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"עדכן" הוא ביטוי אופציונאלי, כגון "field1=newvalue". אינך יוכל להשתמש בjoin, בעת שימוש ב"עדכן" או "מחק".',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': '%s רשומות נמחקו',
            7  +'%s rows updated': '%s רשומות עודכנו',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(למשל "it-it")',
           10  +'A new version of web2py is available: %s': 'גירסא חדשה של web2py זמינה: %s',
           11  +'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',
           12  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'לתשומת ליבך: ניתן להתחבר רק בערוץ מאובטח (HTTPS) או מlocalhost',
           13  +'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': 'לתשומת ליבך: אין לערוך מספר בדיקות במקביל, שכן הן עשויות להפריע זו לזו',
           14  +'ATTENTION: you cannot edit the running application!': 'לתשומת ליבך: לא ניתן לערוך אפליקציה בזמן הרצתה',
           15  +'About': 'אודות',
           16  +'About application': 'אודות אפליקציה',
           17  +'Additional code for your application': 'Additional code for your application',
           18  +'Admin is disabled because insecure channel': 'ממשק האדמין נוטרל בשל גישה לא מאובטחת',
           19  +'Admin language': 'Admin language',
           20  +'Administrator Password:': 'סיסמת מנהל',
           21  +'Application name:': 'Application name:',
           22  +'Are you sure you want to delete file "%s"?': 'האם אתה בטוח שברצונך למחוק את הקובץ "%s"?',
           23  +'Are you sure you want to delete plugin "%s"?': 'האם אתה בטוח שברצונך למחוק את התוסף "%s"?',
           24  +'Are you sure you want to uninstall application "%s"?': 'האם אתה בטוח שברצונך להסיר את האפליקציה "%s"?',
           25  +'Are you sure you want to upgrade web2py now?': 'האם אתה בטוח שאתה רוצה לשדרג את web2py עכשיו?',
           26  +'Available databases and tables': 'מסדי נתונים וטבלאות זמינים',
           27  +'Cannot be empty': 'אינו יכול להישאר ריק',
           28  +'Cannot compile: there are errors in your app:': 'לא ניתן לקמפל: ישנן שגיאות באפליקציה שלך:',
           29  +'Check to delete': 'סמן כדי למחוק',
           30  +'Checking for upgrades...': 'מחפש עדכונים',
           31  +'Controllers': 'בקרים',
           32  +'Create new simple application': 'צור אפליקציה חדשה',
           33  +'Current request': 'בקשה נוכחית',
           34  +'Current response': 'מענה נוכחי',
           35  +'Current session': 'סשן זה',
           36  +'Date and Time': 'תאריך ושעה',
           37  +'Delete': 'מחק',
           38  +'Delete:': 'מחק:',
           39  +'Deploy on Google App Engine': 'העלה ל Google App Engine',
           40  +'Detailed traceback description': 'Detailed traceback description',
           41  +'EDIT': 'ערוך!',
           42  +'Edit application': 'ערוך אפליקציה',
           43  +'Edit current record': 'ערוך רשומה נוכחית',
           44  +'Editing Language file': 'עורך את קובץ השפה',
           45  +'Editing file "%s"': 'עורך את הקובץ "%s"',
           46  +'Enterprise Web Framework': 'סביבת הפיתוח לרשת',
           47  +'Error logs for "%(app)s"': 'דו"ח שגיאות עבור אפליקציה "%(app)s"',
           48  +'Error snapshot': 'Error snapshot',
           49  +'Error ticket': 'Error ticket',
           50  +'Exception instance attributes': 'נתוני החריגה',
           51  +'Frames': 'Frames',
           52  +'Functions with no doctests will result in [passed] tests.': 'פונקציות שלא הוגדר להן doctest ירשמו כבדיקות ש[עברו בהצלחה].',
           53  +'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כותרת ירוקה מצביע על כך שכל הבדיקות (אם הוגדרו) עברו בהצלחה, במידה ותוצאות הבדיקה אינן מופיעות.',
           54  +'Import/Export': 'יבא\יצא',
           55  +'Installed applications': 'אפליקציות מותקנות',
           56  +'Internal State': 'מצב מובנה',
           57  +'Invalid Query': 'שאילתה לא תקינה',
           58  +'Invalid action': 'הוראה לא קיימת',
           59  +'Language files (static strings) updated': 'קובץ השפה (מחרוזות סטאטיות) עודכן',
           60  +'Languages': 'שפות',
           61  +'Last saved on:': 'לאחרונה נשמר בתאריך:',
           62  +'License for': 'רשיון עבור',
           63  +'Login': 'התחבר',
           64  +'Login to the Administrative Interface': 'התחבר לממשק המנהל',
           65  +'Models': 'מבני נתונים',
           66  +'Modules': 'מודולים',
           67  +'NO': 'לא',
           68  +'New Record': 'רשומה חדשה',
           69  +'New application wizard': 'New application wizard',
           70  +'New simple application': 'New simple application',
           71  +'No databases in this application': 'אין מסדי נתונים לאפליקציה זו',
           72  +'Original/Translation': 'מקור\תרגום',
           73  +'PAM authenticated user, cannot change password here': 'שינוי סיסמא באמצעות PAM אינו יכול להתבצע כאן',
           74  +'Peeking at file': 'מעיין בקובץ',
           75  +'Plugin "%s" in application': 'פלאגין "%s" של אפליקציה',
           76  +'Plugins': 'תוספים',
           77  +'Powered by': 'מופעל ע"י',
           78  +'Query:': 'שאילתה:',
           79  +'Resolve Conflict file': 'הסר קובץ היוצר קונפליקט',
           80  +'Rows in table': 'רשומות בטבלה',
           81  +'Rows selected': 'רשומות נבחרו',
           82  +'Saved file hash:': 'גיבוב הקובץ השמור:',
           83  +'Static files': 'קבצים סטאטיים',
           84  +'Sure you want to delete this object?': 'האם אתה בטוח שברצונך למחוק אובייקט זה?',
           85  +'TM': 'סימן רשום',
           86  +'Testing application': 'בודק את האפליקציה',
           87  +'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',
           88  +'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',
           89  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
           90  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
           91  +'There are no controllers': 'אין בקרים',
           92  +'There are no models': 'אין מבני נתונים',
           93  +'There are no modules': 'אין מודולים',
           94  +'There are no plugins': 'There are no plugins',
           95  +'There are no static files': 'אין קבצים סטאטיים',
           96  +'There are no translators, only default language is supported': 'אין תרגומים. רק שפת ברירת המחדל נתמכת',
           97  +'There are no views': 'אין קבצי תצוגה',
           98  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
           99  +'This is the %(filename)s template': 'זוהי תבנית הקובץ %(filename)s ',
          100  +'Ticket': 'דו"ח שגיאה',
          101  +'Ticket ID': 'Ticket ID',
          102  +'To create a plugin, name a file/folder plugin_[name]': 'כדי ליצור תוסף, קרא לקובץ או סיפריה בשם לפי התבנית plugin_[name]',
          103  +'Traceback': 'Traceback',
          104  +'Translation strings for the application': 'Translation strings for the application',
          105  +'Unable to check for upgrades': 'לא ניתן היה לבדוק אם יש שדרוגים',
          106  +'Unable to download app because:': 'לא ניתן היה להוריד את האפליקציה כי:',
          107  +'Unable to download because': 'לא הצלחתי להוריד כי',
          108  +'Update:': 'עדכן:',
          109  +'Upload & install packed application': 'העלה והתקן אפליקציה ארוזה',
          110  +'Upload a package:': 'Upload a package:',
          111  +'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...)  for NOT to build more complex queries.': 'השתמש ב (...)&(...) עבור תנאי AND, (...)|(...) עבור תנאי OR ו~(...) עבור תנאי NOT ליצירת שאילתות מורכבות',
          112  +'Use an url:': 'Use an url:',
          113  +'Version': 'גירסא',
          114  +'Views': 'מראה',
          115  +'YES': 'כן',
          116  +'about': 'אודות',
          117  +'additional code for your application': 'קוד נוסף עבור האפליקציה שלך',
          118  +'admin disabled because no admin password': 'ממשק המנהל מנוטרל כי לא הוגדרה סיסמת מנהל',
          119  +'admin disabled because not supported on google app engine': 'ממשק המנהל נוטרל, כי אין תמיכה בGoogle app engine',
          120  +'admin disabled because unable to access password file': 'ממשק מנהל נוטרל, כי לא ניתן לגשת לקובץ הסיסמאות',
          121  +'administrative interface': 'administrative interface',
          122  +'and rename it (required):': 'ושנה את שמו (חובה):',
          123  +'and rename it:': 'ושנה את שמו:',
          124  +'appadmin': 'מנהל מסד הנתונים',
          125  +'appadmin is disabled because insecure channel': 'מנהל מסד הנתונים נוטרל בשל ערוץ לא מאובטח',
          126  +'application "%s" uninstalled': 'אפליקציה "%s" הוסרה',
          127  +'application compiled': 'אפליקציה קומפלה',
          128  +'application is compiled and cannot be designed': 'לא ניתן לערוך אפליקציה מקומפלת',
          129  +'arguments': 'פרמטרים',
          130  +'back': 'אחורה',
          131  +'cache': 'מטמון',
          132  +'cache, errors and sessions cleaned': 'מטמון, שגיאות וסשן נוקו',
          133  +'cannot create file': 'לא מצליח ליצור קובץ',
          134  +'cannot upload file "%(filename)s"': 'לא הצלחתי להעלות את הקובץ "%(filename)s"',
          135  +'change admin password': 'סיסמת מנהל שונתה',
          136  +'check all': 'סמן הכל',
          137  +'check for upgrades': 'check for upgrades',
          138  +'clean': 'נקה',
          139  +'click to check for upgrades': 'לחץ כדי לחפש עדכונים',
          140  +'code': 'קוד',
          141  +'collapse/expand all': 'collapse/expand all',
          142  +'compile': 'קמפל',
          143  +'compiled application removed': 'אפליקציה מקומפלת הוסרה',
          144  +'controllers': 'בקרים',
          145  +'create': 'צור',
          146  +'create file with filename:': 'צור קובץ בשם:',
          147  +'create new application:': 'צור אפליקציה חדשה:',
          148  +'created by': 'נוצר ע"י',
          149  +'crontab': 'משימות מתוזמנות',
          150  +'currently running': 'currently running',
          151  +'currently saved or': 'נשמר כעת או',
          152  +'data uploaded': 'המידע הועלה',
          153  +'database': 'מסד נתונים',
          154  +'database %s select': 'מסד הנתונים %s נבחר',
          155  +'database administration': 'ניהול מסד נתונים',
          156  +'db': 'מסד נתונים',
          157  +'defines tables': 'הגדר טבלאות',
          158  +'delete': 'מחק',
          159  +'delete all checked': 'סמן הכל למחיקה',
          160  +'delete plugin': 'מחק תוסף',
          161  +'deploy': 'deploy',
          162  +'design': 'עיצוב',
          163  +'direction: ltr': 'direction: rtl',
          164  +'done!': 'הסתיים!',
          165  +'download layouts': 'download layouts',
          166  +'download plugins': 'download plugins',
          167  +'edit': 'ערוך',
          168  +'edit controller': 'ערוך בקר',
          169  +'edit views:': 'ערוך קיבצי תצוגה:',
          170  +'errors': 'שגיאות',
          171  +'export as csv file': 'יצא לקובץ csv',
          172  +'exposes': 'חושף את',
          173  +'extends': 'הרחבה של',
          174  +'failed to reload module because:': 'נכשל בטעינה חוזרת של מודול בגלל:',
          175  +'file "%(filename)s" created': 'הקובץ "%(filename)s" נוצר',
          176  +'file "%(filename)s" deleted': 'הקובץ "%(filename)s" נמחק',
          177  +'file "%(filename)s" uploaded': 'הקובץ "%(filename)s" הועלה',
          178  +'file "%s" of %s restored': 'הקובץ "%s" of %s שוחזר',
          179  +'file changed on disk': 'קובץ שונה על גבי הדיסק',
          180  +'file does not exist': 'קובץ לא נמצא',
          181  +'file saved on %(time)s': 'הקובץ נשמר בשעה %(time)s',
          182  +'file saved on %s': 'הקובץ נשמר ב%s',
          183  +'filter': 'filter',
          184  +'help': 'עזרה',
          185  +'htmledit': 'עורך ויזואלי',
          186  +'includes': 'מכיל',
          187  +'insert new': 'הכנס נוסף',
          188  +'insert new %s': 'הכנס %s נוסף',
          189  +'inspect attributes': 'inspect attributes',
          190  +'install': 'התקן',
          191  +'internal error': 'שגיאה מובנית',
          192  +'invalid password': 'סיסמא שגויה',
          193  +'invalid request': 'בקשה לא תקינה',
          194  +'invalid ticket': 'דו"ח שגיאה לא קיים',
          195  +'language file "%(filename)s" created/updated': 'קובץ השפה "%(filename)s" נוצר\עודכן',
          196  +'languages': 'שפות',
          197  +'loading...': 'טוען...',
          198  +'locals': 'locals',
          199  +'login': 'התחבר',
          200  +'logout': 'התנתק',
          201  +'merge': 'מזג',
          202  +'models': 'מבני נתונים',
          203  +'modules': 'מודולים',
          204  +'new application "%s" created': 'האפליקציה "%s" נוצרה',
          205  +'new plugin installed': 'פלאגין חדש הותקן',
          206  +'new record inserted': 'הרשומה נוספה',
          207  +'next 100 rows': '100 הרשומות הבאות',
          208  +'no match': 'לא נמצאה התאמה',
          209  +'or import from csv file': 'או יבא מקובץ csv',
          210  +'or provide app url:': 'או ספק כתובת url של אפליקציה',
          211  +'overwrite installed app': 'התקן על גבי אפלקציה מותקנת',
          212  +'pack all': 'ארוז הכל',
          213  +'pack compiled': 'ארוז מקומפל',
          214  +'pack plugin': 'ארוז תוסף',
          215  +'password changed': 'סיסמא שונתה',
          216  +'plugin "%(plugin)s" deleted': 'תוסף "%(plugin)s" נמחק',
          217  +'plugins': 'plugins',
          218  +'previous 100 rows': '100 הרשומות הקודמות',
          219  +'record': 'רשומה',
          220  +'record does not exist': 'הרשומה אינה קיימת',
          221  +'record id': 'מזהה רשומה',
          222  +'remove compiled': 'הסר מקומפל',
          223  +'request': 'request',
          224  +'response': 'response',
          225  +'restore': 'שחזר',
          226  +'revert': 'חזור לגירסא קודמת',
          227  +'selected': 'נבחרו',
          228  +'session': 'session',
          229  +'session expired': 'תם הסשן',
          230  +'shell': 'שורת פקודה',
          231  +'site': 'אתר',
          232  +'some files could not be removed': 'לא ניתן היה להסיר חלק מהקבצים',
          233  +'start wizard': 'start wizard',
          234  +'state': 'מצב',
          235  +'static': 'קבצים סטאטיים',
          236  +'submit': 'שלח',
          237  +'table': 'טבלה',
          238  +'test': 'בדיקות',
          239  +'the application logic, each URL path is mapped in one exposed function in the controller': 'הלוגיקה של האפליקציה, כל url ממופה לפונקציה חשופה בבקר',
          240  +'the data representation, define database tables and sets': 'ייצוג המידע, בו מוגדרים טבלאות ומבנים',
          241  +'the presentations layer, views are also known as templates': 'שכבת התצוגה, המכונה גם template',
          242  +'these files are served without processing, your images go here': 'אלו הם קבצים הנשלחים מהשרת ללא עיבוד. הכנס את התמונות כאן',
          243  +'to  previous version.': 'אין גירסא קודמת',
          244  +'translation strings for the application': 'מחרוזות תרגום עבור האפליקציה',
          245  +'try': 'נסה',
          246  +'try something like': 'נסה משהו כמו',
          247  +'unable to create application "%s"': 'נכשל ביצירת האפליקציה "%s"',
          248  +'unable to delete file "%(filename)s"': 'נכשל במחיקת הקובץ "%(filename)s"',
          249  +'unable to delete file plugin "%(plugin)s"': 'נכשל במחיקת התוסף "%(plugin)s"',
          250  +'unable to parse csv file': 'לא הצלחתי לנתח את הקלט של קובץ csv',
          251  +'unable to uninstall "%s"': 'לא ניתן להסיר את "%s"',
          252  +'unable to upgrade because "%s"': 'לא ניתן היה לשדרג כי "%s"',
          253  +'uncheck all': 'הסר סימון מהכל',
          254  +'uninstall': 'הסר התקנה',
          255  +'update': 'עדכן',
          256  +'update all languages': 'עדכן את כלל קיבצי השפה',
          257  +'upgrade now': 'upgrade now',
          258  +'upgrade web2py now': 'שדרג את web2py עכשיו',
          259  +'upload': 'upload',
          260  +'upload application:': 'העלה אפליקציה:',
          261  +'upload file:': 'העלה קובץ:',
          262  +'upload plugin file:': 'העלה קובץ תוסף:',
          263  +'variables': 'משתנים',
          264  +'versioning': 'מנגנון גירסאות',
          265  +'view': 'הצג',
          266  +'views': 'מראה',
          267  +'web2py Recent Tweets': 'ציוצים אחרונים של web2py',
          268  +'web2py is up to date': 'web2py מותקנת בגירסתה האחרונה',
          269  +'web2py upgraded; please restart it': 'web2py שודרגה; נא אתחל אותה',
          270  +}

Added applications/admin/languages/it-it.py version [f838859834].

            1  +# coding: utf8
            2  +{
            3  +'"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 ',
            4  +'%Y-%m-%d': '%d/%m/%Y',
            5  +'%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S',
            6  +'%s rows deleted': '%s righe ("record") cancellate',
            7  +'%s rows updated': '%s righe ("record") modificate',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(qualcosa simile a "it-it")',
           10  +'A new version of web2py is available: %s': 'È disponibile una nuova versione di web2py: %s',
           11  +'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)",
           12  +'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")',
           13  +'ATTENTION: you cannot edit the running application!': "ATTENZIONE: non puoi modificare l'applicazione correntemente in uso ",
           14  +'About': 'Informazioni',
           15  +'About application': "Informazioni sull'applicazione",
           16  +'Admin is disabled because insecure channel': 'amministrazione disabilitata: comunicazione non sicura',
           17  +'Administrator Password:': 'Password Amministratore:',
           18  +'Application name:': 'Application name:',
           19  +'Are you sure you want to delete file "%s"?': 'Confermi di voler cancellare il file "%s"?',
           20  +'Are you sure you want to delete plugin "%s"?': 'Confermi di voler cancellare il plugin "%s"?',
           21  +'Are you sure you want to uninstall application "%s"?': 'Confermi di voler disinstallare l\'applicazione "%s"?',
           22  +'Are you sure you want to upgrade web2py now?': 'Confermi di voler aggiornare web2py ora?',
           23  +'Available databases and tables': 'Database e tabelle disponibili',
           24  +'Cannot be empty': 'Non può essere vuoto',
           25  +'Cannot compile: there are errors in your app:': "Compilazione fallita: ci sono errori nell'applicazione.",
           26  +'Check to delete': 'Seleziona per cancellare',
           27  +'Checking for upgrades...': 'Controllo aggiornamenti in corso...',
           28  +'Controller': 'Controller',
           29  +'Controllers': 'Controllers',
           30  +'Copyright': 'Copyright',
           31  +'Create new simple application': 'Crea nuova applicazione',
           32  +'Current request': 'Richiesta (request) corrente',
           33  +'Current response': 'Risposta (response) corrente',
           34  +'Current session': 'Sessione (session) corrente',
           35  +'DB Model': 'Modello di DB',
           36  +'Database': 'Database',
           37  +'Date and Time': 'Data and Ora',
           38  +'Delete': 'Cancella',
           39  +'Delete:': 'Cancella:',
           40  +'Deploy on Google App Engine': 'Installa su Google App Engine',
           41  +'EDIT': 'MODIFICA',
           42  +'Edit': 'Modifica',
           43  +'Edit This App': 'Modifica questa applicazione',
           44  +'Edit application': 'Modifica applicazione',
           45  +'Edit current record': 'Modifica record corrente',
           46  +'Editing Language file': 'Modifica file linguaggio',
           47  +'Editing file "%s"': 'Modifica del file "%s"',
           48  +'Enterprise Web Framework': 'Enterprise Web Framework',
           49  +'Error logs for "%(app)s"': 'Log degli errori per "%(app)s"',
           50  +'Exception instance attributes': 'Exception instance attributes',
           51  +'Functions with no doctests will result in [passed] tests.': 'I test delle funzioni senza "doctests" risulteranno sempre [passed].',
           52  +'Hello World': 'Salve Mondo',
           53  +'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.',
           54  +'Import/Export': 'Importa/Esporta',
           55  +'Index': 'Indice',
           56  +'Installed applications': 'Applicazioni installate',
           57  +'Internal State': 'Stato interno',
           58  +'Invalid Query': 'Richiesta (query) non valida',
           59  +'Invalid action': 'Azione non valida',
           60  +'Language files (static strings) updated': 'Linguaggi (documenti con stringhe statiche) aggiornati',
           61  +'Languages': 'Linguaggi',
           62  +'Last saved on:': 'Ultimo salvataggio:',
           63  +'Layout': 'Layout',
           64  +'License for': 'Licenza relativa a',
           65  +'Login': 'Accesso',
           66  +'Login to the Administrative Interface': "Accesso all'interfaccia amministrativa",
           67  +'Main Menu': 'Menu principale',
           68  +'Menu Model': 'Menu Modelli',
           69  +'Models': 'Modelli',
           70  +'Modules': 'Moduli',
           71  +'NO': 'NO',
           72  +'New Record': 'Nuovo elemento (record)',
           73  +'New application wizard': 'New application wizard',
           74  +'New simple application': 'New simple application',
           75  +'No databases in this application': 'Nessun database presente in questa applicazione',
           76  +'Original/Translation': 'Originale/Traduzione',
           77  +'PAM authenticated user, cannot change password here': 'utente autenticato tramite PAM, impossibile modificare password qui',
           78  +'Peeking at file': 'Uno sguardo al file',
           79  +'Plugin "%s" in application': 'Plugin "%s" nell\'applicazione',
           80  +'Plugins': 'I Plugins',
           81  +'Powered by': 'Powered by',
           82  +'Query:': 'Richiesta (query):',
           83  +'Resolve Conflict file': 'File di risoluzione conflitto',
           84  +'Rows in table': 'Righe nella tabella',
           85  +'Rows selected': 'Righe selezionate',
           86  +'Saved file hash:': 'Hash del file salvato:',
           87  +'Static files': 'Files statici',
           88  +'Stylesheet': 'Foglio di stile (stylesheet)',
           89  +'Sure you want to delete this object?': 'Vuoi veramente cancellare questo oggetto?',
           90  +'TM': 'TM',
           91  +'Testing application': 'Test applicazione in corsg',
           92  +'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.',
           93  +'There are no controllers': 'Non ci sono controller',
           94  +'There are no models': 'Non ci sono modelli',
           95  +'There are no modules': 'Non ci sono moduli',
           96  +'There are no static files': 'Non ci sono file statici',
           97  +'There are no translators, only default language is supported': 'Non ci sono traduzioni, viene solo supportato il linguaggio di base',
           98  +'There are no views': 'Non ci sono viste ("view")',
           99  +'This is the %(filename)s template': 'Questo è il template %(filename)s',
          100  +'Ticket': 'Ticket',
          101  +'To create a plugin, name a file/folder plugin_[name]': 'Per creare un plugin, chiamare un file o cartella plugin_[nome]',
          102  +'Unable to check for upgrades': 'Impossibile controllare presenza di aggiornamenti',
          103  +'Unable to download app because:': 'Impossibile scaricare applicazione perché',
          104  +'Unable to download because': 'Impossibile scaricare perché',
          105  +'Update:': 'Aggiorna:',
          106  +'Upload & install packed application': 'Carica ed installa pacchetto con applicazione',
          107  +'Upload a package:': 'Upload a package:',
          108  +'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).',
          109  +'Use an url:': 'Use an url:',
          110  +'Version': 'Versione',
          111  +'View': 'Vista',
          112  +'Views': 'viste',
          113  +'Welcome %s': 'Benvenuto %s',
          114  +'Welcome to web2py': 'Benvenuto su web2py',
          115  +'YES': 'SI',
          116  +'about': 'informazioni',
          117  +'additional code for your application': 'righe di codice aggiuntive per la tua applicazione',
          118  +'admin disabled because no admin password': 'amministrazione disabilitata per mancanza di password amministrativa',
          119  +'admin disabled because not supported on google app engine': 'amministrazione non supportata da Google Apps Engine',
          120  +'admin disabled because unable to access password file': 'amministrazione disabilitata per impossibilità di leggere il file delle password',
          121  +'administrative interface': 'administrative interface',
          122  +'and rename it (required):': 'e rinominala (obbligatorio):',
          123  +'and rename it:': 'e rinominala:',
          124  +'appadmin': 'appadmin ',
          125  +'appadmin is disabled because insecure channel': 'amministrazione app (appadmin) disabilitata: comunicazione non sicura',
          126  +'application "%s" uninstalled': 'applicazione "%s" disinstallata',
          127  +'application compiled': 'applicazione compilata',
          128  +'application is compiled and cannot be designed': "l'applicazione è compilata e non si può modificare",
          129  +'arguments': 'arguments',
          130  +'back': 'indietro',
          131  +'cache': 'cache',
          132  +'cache, errors and sessions cleaned': 'pulitura cache, errori and sessioni ',
          133  +'cannot create file': 'impossibile creare il file',
          134  +'cannot upload file "%(filename)s"': 'impossibile caricare il file "%(filename)s"',
          135  +'change admin password': 'change admin password',
          136  +'change password': 'cambia password',
          137  +'check all': 'controlla tutto',
          138  +'check for upgrades': 'check for upgrades',
          139  +'clean': 'pulisci',
          140  +'click here for online examples': 'clicca per vedere gli esempi',
          141  +'click here for the administrative interface': "clicca per l'interfaccia amministrativa",
          142  +'click to check for upgrades': 'clicca per controllare presenza di aggiornamenti',
          143  +'code': 'code',
          144  +'compile': 'compila',
          145  +'compiled application removed': "rimosso il codice compilato dell'applicazione",
          146  +'controllers': 'controllers',
          147  +'create': 'crea',
          148  +'create file with filename:': 'crea un file col nome:',
          149  +'create new application:': 'create new application:',
          150  +'created by': 'creato da',
          151  +'crontab': 'crontab',
          152  +'currently running': 'currently running',
          153  +'currently saved or': 'attualmente salvato o',
          154  +'customize me!': 'Personalizzami!',
          155  +'data uploaded': 'dati caricati',
          156  +'database': 'database',
          157  +'database %s select': 'database %s select',
          158  +'database administration': 'amministrazione database',
          159  +'db': 'db',
          160  +'defines tables': 'defininisce le tabelle',
          161  +'delete': 'Cancella',
          162  +'delete all checked': 'cancella tutti i selezionati',
          163  +'delete plugin': 'cancella plugin',
          164  +'deploy': 'deploy',
          165  +'design': 'progetta',
          166  +'direction: ltr': 'direction: ltr',
          167  +'done!': 'fatto!',
          168  +'edit': 'modifica',
          169  +'edit controller': 'modifica controller',
          170  +'edit profile': 'modifica profilo',
          171  +'edit views:': 'modifica viste (view):',
          172  +'errors': 'errori',
          173  +'export as csv file': 'esporta come file CSV',
          174  +'exposes': 'espone',
          175  +'extends': 'estende',
          176  +'failed to reload module because:': 'ricaricamento modulo fallito perché:',
          177  +'file "%(filename)s" created': 'creato il file "%(filename)s"',
          178  +'file "%(filename)s" deleted': 'cancellato il file "%(filename)s"',
          179  +'file "%(filename)s" uploaded': 'caricato il file "%(filename)s"',
          180  +'file "%s" of %s restored': 'ripristinato "%(filename)s"',
          181  +'file changed on disk': 'il file ha subito una modifica su disco',
          182  +'file does not exist': 'file inesistente',
          183  +'file saved on %(time)s': "file salvato nell'istante %(time)s",
          184  +'file saved on %s': 'file salvato: %s',
          185  +'help': 'aiuto',
          186  +'htmledit': 'modifica come html',
          187  +'includes': 'include',
          188  +'insert new': 'inserisci nuovo',
          189  +'insert new %s': 'inserisci nuovo %s',
          190  +'install': 'installa',
          191  +'internal error': 'errore interno',
          192  +'invalid password': 'password non valida',
          193  +'invalid request': 'richiesta non valida',
          194  +'invalid ticket': 'ticket non valido',
          195  +'language file "%(filename)s" created/updated': 'file linguaggio "%(filename)s" creato/aggiornato',
          196  +'languages': 'linguaggi',
          197  +'loading...': 'caricamento...',
          198  +'login': 'accesso',
          199  +'logout': 'uscita',
          200  +'merge': 'unisci',
          201  +'models': 'modelli',
          202  +'modules': 'moduli',
          203  +'new application "%s" created': 'creata la nuova applicazione "%s"',
          204  +'new plugin installed': 'installato nuovo plugin',
          205  +'new record inserted': 'nuovo record inserito',
          206  +'next 100 rows': 'prossime 100 righe',
          207  +'no match': 'nessuna corrispondenza',
          208  +'or import from csv file': 'oppure importa da file CSV',
          209  +'or provide app url:': "oppure fornisci url dell'applicazione:",
          210  +'overwrite installed app': 'sovrascrivi applicazione installata',
          211  +'pack all': 'crea pacchetto',
          212  +'pack compiled': 'crea pacchetto del codice compilato',
          213  +'pack plugin': 'crea pacchetto del plugin',
          214  +'password changed': 'password modificata',
          215  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" cancellato',
          216  +'previous 100 rows': '100 righe precedenti',
          217  +'record': 'record',
          218  +'record does not exist': 'il record non esiste',
          219  +'record id': 'ID del record',
          220  +'register': 'registrazione',
          221  +'remove compiled': 'rimozione codice compilato',
          222  +'restore': 'ripristino',
          223  +'revert': 'versione precedente',
          224  +'selected': 'selezionato',
          225  +'session expired': 'sessions scaduta',
          226  +'shell': 'shell',
          227  +'site': 'sito',
          228  +'some files could not be removed': 'non è stato possibile rimuovere alcuni files',
          229  +'start wizard': 'start wizard',
          230  +'state': 'stato',
          231  +'static': 'statico',
          232  +'submit': 'invia',
          233  +'table': 'tabella',
          234  +'test': 'test',
          235  +'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',
          236  +'the data representation, define database tables and sets': 'rappresentazione dei dati, definizione di tabelle di database e di "set" ',
          237  +'the presentations layer, views are also known as templates': 'Presentazione dell\'applicazione, viste (views, chiamate anche "templates")',
          238  +'these files are served without processing, your images go here': 'questi files vengono serviti così come sono, le immagini vanno qui',
          239  +'to  previous version.': 'torna a versione precedente',
          240  +'translation strings for the application': "stringhe di traduzioni per l'applicazione",
          241  +'try': 'prova',
          242  +'try something like': 'prova qualcosa come',
          243  +'unable to create application "%s"': 'impossibile creare applicazione "%s"',
          244  +'unable to delete file "%(filename)s"': 'impossibile rimuovere file "%(plugin)s"',
          245  +'unable to delete file plugin "%(plugin)s"': 'impossibile rimuovere file di plugin "%(plugin)s"',
          246  +'unable to parse csv file': 'non riesco a decodificare questo file CSV',
          247  +'unable to uninstall "%s"': 'impossibile disinstallare "%s"',
          248  +'unable to upgrade because "%s"': 'impossibile aggiornare perché "%s"',
          249  +'uncheck all': 'smarca tutti',
          250  +'uninstall': 'disinstalla',
          251  +'update': 'aggiorna',
          252  +'update all languages': 'aggiorna tutti i linguaggi',
          253  +'upgrade web2py now': 'upgrade web2py now',
          254  +'upload application:': 'carica applicazione:',
          255  +'upload file:': 'carica file:',
          256  +'upload plugin file:': 'carica file di plugin:',
          257  +'variables': 'variables',
          258  +'versioning': 'sistema di versioni',
          259  +'view': 'vista',
          260  +'views': 'viste',
          261  +'web2py Recent Tweets': 'Tweets recenti per web2py',
          262  +'web2py is up to date': 'web2py è aggiornato',
          263  +'web2py upgraded; please restart it': 'web2py aggiornato; prego riavviarlo',
          264  +}

Added applications/admin/languages/it.py version [bef6439651].

            1  +# coding: utf8
            2  +{
            3  +'"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 ',
            4  +'%Y-%m-%d': '%d/%m/%Y',
            5  +'%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S',
            6  +'%s rows deleted': '%s righe ("record") cancellate',
            7  +'%s rows updated': '%s righe ("record") modificate',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(qualcosa simile a "it-it")',
           10  +'A new version of web2py is available: %s': 'È disponibile una nuova versione di web2py: %s',
           11  +'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)",
           12  +'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")',
           13  +'ATTENTION: you cannot edit the running application!': "ATTENZIONE: non puoi modificare l'applicazione correntemente in uso ",
           14  +'About': 'Informazioni',
           15  +'About application': "Informazioni sull'applicazione",
           16  +'Admin is disabled because insecure channel': 'amministrazione disabilitata: comunicazione non sicura',
           17  +'Admin language': 'Admin language',
           18  +'Administrator Password:': 'Password Amministratore:',
           19  +'Application name:': 'Application name:',
           20  +'Are you sure you want to delete file "%s"?': 'Confermi di voler cancellare il file "%s"?',
           21  +'Are you sure you want to delete plugin "%s"?': 'Confermi di voler cancellare il plugin "%s"?',
           22  +'Are you sure you want to uninstall application "%s"?': 'Confermi di voler disinstallare l\'applicazione "%s"?',
           23  +'Are you sure you want to upgrade web2py now?': 'Confermi di voler aggiornare web2py ora?',
           24  +'Available databases and tables': 'Database e tabelle disponibili',
           25  +'Cannot be empty': 'Non può essere vuoto',
           26  +'Cannot compile: there are errors in your app:': "Compilazione fallita: ci sono errori nell'applicazione.",
           27  +'Check to delete': 'Seleziona per cancellare',
           28  +'Checking for upgrades...': 'Controllo aggiornamenti in corso...',
           29  +'Controller': 'Controller',
           30  +'Controllers': 'Controllers',
           31  +'Copyright': 'Copyright',
           32  +'Create new simple application': 'Crea nuova applicazione',
           33  +'Current request': 'Richiesta (request) corrente',
           34  +'Current response': 'Risposta (response) corrente',
           35  +'Current session': 'Sessione (session) corrente',
           36  +'DB Model': 'Modello di DB',
           37  +'Database': 'Database',
           38  +'Date and Time': 'Data and Ora',
           39  +'Delete': 'Cancella',
           40  +'Delete:': 'Cancella:',
           41  +'Deploy on Google App Engine': 'Installa su Google App Engine',
           42  +'EDIT': 'MODIFICA',
           43  +'Edit': 'Modifica',
           44  +'Edit This App': 'Modifica questa applicazione',
           45  +'Edit application': 'Modifica applicazione',
           46  +'Edit current record': 'Modifica record corrente',
           47  +'Editing Language file': 'Modifica file linguaggio',
           48  +'Editing file "%s"': 'Modifica del file "%s"',
           49  +'Enterprise Web Framework': 'Enterprise Web Framework',
           50  +'Error logs for "%(app)s"': 'Log degli errori per "%(app)s"',
           51  +'Exception instance attributes': 'Exception instance attributes',
           52  +'Functions with no doctests will result in [passed] tests.': 'I test delle funzioni senza "doctests" risulteranno sempre [passed].',
           53  +'Hello World': 'Salve Mondo',
           54  +'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.',
           55  +'Import/Export': 'Importa/Esporta',
           56  +'Index': 'Indice',
           57  +'Installed applications': 'Applicazioni installate',
           58  +'Internal State': 'Stato interno',
           59  +'Invalid Query': 'Richiesta (query) non valida',
           60  +'Invalid action': 'Azione non valida',
           61  +'Language files (static strings) updated': 'Linguaggi (documenti con stringhe statiche) aggiornati',
           62  +'Languages': 'Linguaggi',
           63  +'Last saved on:': 'Ultimo salvataggio:',
           64  +'Layout': 'Layout',
           65  +'License for': 'Licenza relativa a',
           66  +'Login': 'Accesso',
           67  +'Login to the Administrative Interface': "Accesso all'interfaccia amministrativa",
           68  +'Main Menu': 'Menu principale',
           69  +'Menu Model': 'Menu Modelli',
           70  +'Models': 'Modelli',
           71  +'Modules': 'Moduli',
           72  +'NO': 'NO',
           73  +'New Record': 'Nuovo elemento (record)',
           74  +'New application wizard': 'New application wizard',
           75  +'New simple application': 'New simple application',
           76  +'No databases in this application': 'Nessun database presente in questa applicazione',
           77  +'Original/Translation': 'Originale/Traduzione',
           78  +'PAM authenticated user, cannot change password here': 'utente autenticato tramite PAM, impossibile modificare password qui',
           79  +'Peeking at file': 'Uno sguardo al file',
           80  +'Plugin "%s" in application': 'Plugin "%s" nell\'applicazione',
           81  +'Plugins': 'I Plugins',
           82  +'Powered by': 'Powered by',
           83  +'Query:': 'Richiesta (query):',
           84  +'Resolve Conflict file': 'File di risoluzione conflitto',
           85  +'Rows in table': 'Righe nella tabella',
           86  +'Rows selected': 'Righe selezionate',
           87  +'Saved file hash:': 'Hash del file salvato:',
           88  +'Static files': 'Files statici',
           89  +'Stylesheet': 'Foglio di stile (stylesheet)',
           90  +'Sure you want to delete this object?': 'Vuoi veramente cancellare questo oggetto?',
           91  +'TM': 'TM',
           92  +'Testing application': 'Test applicazione in corsg',
           93  +'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.',
           94  +'There are no controllers': 'Non ci sono controller',
           95  +'There are no models': 'Non ci sono modelli',
           96  +'There are no modules': 'Non ci sono moduli',
           97  +'There are no static files': 'Non ci sono file statici',
           98  +'There are no translators, only default language is supported': 'Non ci sono traduzioni, viene solo supportato il linguaggio di base',
           99  +'There are no views': 'Non ci sono viste ("view")',
          100  +'This is the %(filename)s template': 'Questo è il template %(filename)s',
          101  +'Ticket': 'Ticket',
          102  +'To create a plugin, name a file/folder plugin_[name]': 'Per creare un plugin, chiamare un file o cartella plugin_[nome]',
          103  +'Unable to check for upgrades': 'Impossibile controllare presenza di aggiornamenti',
          104  +'Unable to download app because:': 'Impossibile scaricare applicazione perché',
          105  +'Unable to download because': 'Impossibile scaricare perché',
          106  +'Unable to download because:': 'Unable to download because:',
          107  +'Update:': 'Aggiorna:',
          108  +'Upload & install packed application': 'Carica ed installa pacchetto con applicazione',
          109  +'Upload a package:': 'Upload a package:',
          110  +'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).',
          111  +'Use an url:': 'Use an url:',
          112  +'Version': 'Versione',
          113  +'View': 'Vista',
          114  +'Views': 'viste',
          115  +'Welcome %s': 'Benvenuto %s',
          116  +'Welcome to web2py': 'Benvenuto su web2py',
          117  +'YES': 'SI',
          118  +'about': 'informazioni',
          119  +'additional code for your application': 'righe di codice aggiuntive per la tua applicazione',
          120  +'admin disabled because no admin password': 'amministrazione disabilitata per mancanza di password amministrativa',
          121  +'admin disabled because not supported on google app engine': 'amministrazione non supportata da Google Apps Engine',
          122  +'admin disabled because unable to access password file': 'amministrazione disabilitata per impossibilità di leggere il file delle password',
          123  +'administrative interface': 'administrative interface',
          124  +'and rename it (required):': 'e rinominala (obbligatorio):',
          125  +'and rename it:': 'e rinominala:',
          126  +'appadmin': 'appadmin ',
          127  +'appadmin is disabled because insecure channel': 'amministrazione app (appadmin) disabilitata: comunicazione non sicura',
          128  +'application "%s" uninstalled': 'applicazione "%s" disinstallata',
          129  +'application compiled': 'applicazione compilata',
          130  +'application is compiled and cannot be designed': "l'applicazione è compilata e non si può modificare",
          131  +'arguments': 'arguments',
          132  +'back': 'indietro',
          133  +'cache': 'cache',
          134  +'cache, errors and sessions cleaned': 'pulitura cache, errori and sessioni ',
          135  +'cannot create file': 'impossibile creare il file',
          136  +'cannot upload file "%(filename)s"': 'impossibile caricare il file "%(filename)s"',
          137  +'change admin password': 'change admin password',
          138  +'change password': 'cambia password',
          139  +'check all': 'controlla tutto',
          140  +'check for upgrades': 'check for upgrades',
          141  +'clean': 'pulisci',
          142  +'click here for online examples': 'clicca per vedere gli esempi',
          143  +'click here for the administrative interface': "clicca per l'interfaccia amministrativa",
          144  +'click to check for upgrades': 'clicca per controllare presenza di aggiornamenti',
          145  +'code': 'code',
          146  +'compile': 'compila',
          147  +'compiled application removed': "rimosso il codice compilato dell'applicazione",
          148  +'controllers': 'controllers',
          149  +'create': 'crea',
          150  +'create file with filename:': 'crea un file col nome:',
          151  +'create new application:': 'create new application:',
          152  +'created by': 'creato da',
          153  +'crontab': 'crontab',
          154  +'currently running': 'currently running',
          155  +'currently saved or': 'attualmente salvato o',
          156  +'customize me!': 'Personalizzami!',
          157  +'data uploaded': 'dati caricati',
          158  +'database': 'database',
          159  +'database %s select': 'database %s select',
          160  +'database administration': 'amministrazione database',
          161  +'db': 'db',
          162  +'defines tables': 'defininisce le tabelle',
          163  +'delete': 'Cancella',
          164  +'delete all checked': 'cancella tutti i selezionati',
          165  +'delete plugin': 'cancella plugin',
          166  +'deploy': 'deploy',
          167  +'design': 'progetta',
          168  +'direction: ltr': 'direction: ltr',
          169  +'done!': 'fatto!',
          170  +'edit': 'modifica',
          171  +'edit controller': 'modifica controller',
          172  +'edit profile': 'modifica profilo',
          173  +'edit views:': 'modifica viste (view):',
          174  +'errors': 'errori',
          175  +'export as csv file': 'esporta come file CSV',
          176  +'exposes': 'espone',
          177  +'extends': 'estende',
          178  +'failed to reload module because:': 'ricaricamento modulo fallito perché:',
          179  +'file "%(filename)s" created': 'creato il file "%(filename)s"',
          180  +'file "%(filename)s" deleted': 'cancellato il file "%(filename)s"',
          181  +'file "%(filename)s" uploaded': 'caricato il file "%(filename)s"',
          182  +'file "%s" of %s restored': 'ripristinato "%(filename)s"',
          183  +'file changed on disk': 'il file ha subito una modifica su disco',
          184  +'file does not exist': 'file inesistente',
          185  +'file saved on %(time)s': "file salvato nell'istante %(time)s",
          186  +'file saved on %s': 'file salvato: %s',
          187  +'help': 'aiuto',
          188  +'htmledit': 'modifica come html',
          189  +'includes': 'include',
          190  +'insert new': 'inserisci nuovo',
          191  +'insert new %s': 'inserisci nuovo %s',
          192  +'install': 'installa',
          193  +'internal error': 'errore interno',
          194  +'invalid password': 'password non valida',
          195  +'invalid request': 'richiesta non valida',
          196  +'invalid ticket': 'ticket non valido',
          197  +'language file "%(filename)s" created/updated': 'file linguaggio "%(filename)s" creato/aggiornato',
          198  +'languages': 'linguaggi',
          199  +'loading...': 'caricamento...',
          200  +'login': 'accesso',
          201  +'logout': 'uscita',
          202  +'merge': 'unisci',
          203  +'models': 'modelli',
          204  +'modules': 'moduli',
          205  +'new application "%s" created': 'creata la nuova applicazione "%s"',
          206  +'new plugin installed': 'installato nuovo plugin',
          207  +'new record inserted': 'nuovo record inserito',
          208  +'next 100 rows': 'prossime 100 righe',
          209  +'no match': 'nessuna corrispondenza',
          210  +'or import from csv file': 'oppure importa da file CSV',
          211  +'or provide app url:': "oppure fornisci url dell'applicazione:",
          212  +'overwrite installed app': 'sovrascrivi applicazione installata',
          213  +'pack all': 'crea pacchetto',
          214  +'pack compiled': 'crea pacchetto del codice compilato',
          215  +'pack plugin': 'crea pacchetto del plugin',
          216  +'password changed': 'password modificata',
          217  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" cancellato',
          218  +'previous 100 rows': '100 righe precedenti',
          219  +'record': 'record',
          220  +'record does not exist': 'il record non esiste',
          221  +'record id': 'ID del record',
          222  +'register': 'registrazione',
          223  +'remove compiled': 'rimozione codice compilato',
          224  +'restore': 'ripristino',
          225  +'revert': 'versione precedente',
          226  +'selected': 'selezionato',
          227  +'session expired': 'sessions scaduta',
          228  +'shell': 'shell',
          229  +'site': 'sito',
          230  +'some files could not be removed': 'non è stato possibile rimuovere alcuni files',
          231  +'start wizard': 'start wizard',
          232  +'state': 'stato',
          233  +'static': 'statico',
          234  +'submit': 'invia',
          235  +'table': 'tabella',
          236  +'test': 'test',
          237  +'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',
          238  +'the data representation, define database tables and sets': 'rappresentazione dei dati, definizione di tabelle di database e di "set" ',
          239  +'the presentations layer, views are also known as templates': 'Presentazione dell\'applicazione, viste (views, chiamate anche "templates")',
          240  +'these files are served without processing, your images go here': 'questi files vengono serviti così come sono, le immagini vanno qui',
          241  +'to  previous version.': 'torna a versione precedente',
          242  +'translation strings for the application': "stringhe di traduzioni per l'applicazione",
          243  +'try': 'prova',
          244  +'try something like': 'prova qualcosa come',
          245  +'unable to create application "%s"': 'impossibile creare applicazione "%s"',
          246  +'unable to delete file "%(filename)s"': 'impossibile rimuovere file "%(plugin)s"',
          247  +'unable to delete file plugin "%(plugin)s"': 'impossibile rimuovere file di plugin "%(plugin)s"',
          248  +'unable to parse csv file': 'non riesco a decodificare questo file CSV',
          249  +'unable to uninstall "%s"': 'impossibile disinstallare "%s"',
          250  +'unable to upgrade because "%s"': 'impossibile aggiornare perché "%s"',
          251  +'uncheck all': 'smarca tutti',
          252  +'uninstall': 'disinstalla',
          253  +'update': 'aggiorna',
          254  +'update all languages': 'aggiorna tutti i linguaggi',
          255  +'upgrade web2py now': 'upgrade web2py now',
          256  +'upload application:': 'carica applicazione:',
          257  +'upload file:': 'carica file:',
          258  +'upload plugin file:': 'carica file di plugin:',
          259  +'variables': 'variables',
          260  +'versioning': 'sistema di versioni',
          261  +'view': 'vista',
          262  +'views': 'viste',
          263  +'web2py Recent Tweets': 'Tweets recenti per web2py',
          264  +'web2py is up to date': 'web2py è aggiornato',
          265  +'web2py upgraded; please restart it': 'web2py aggiornato; prego riavviarlo',
          266  +}

Added applications/admin/languages/pl-pl.py version [4ff0dcf09e].

            1  +# coding: utf8
            2  +{
            3  +'"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:',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': 'Wierszy usuniętych: %s',
            7  +'%s rows updated': 'Wierszy uaktualnionych: %s',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(coś podobnego do "it-it")',
           10  +'A new version of web2py is available': 'Nowa wersja web2py jest dostępna',
           11  +'A new version of web2py is available: %s': 'A new version of web2py is available: %s',
           12  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'UWAGA: Wymagane jest bezpieczne (HTTPS) połączenie lub połączenia z lokalnego adresu.',
           13  +'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.',
           14  +'ATTENTION: you cannot edit the running application!': 'UWAGA: nie można edytować uruchomionych aplikacji!',
           15  +'About': 'Informacje o',
           16  +'About application': 'Informacje o aplikacji',
           17  +'Admin is disabled because insecure channel': 'Admin is disabled because insecure channel',
           18  +'Admin is disabled because unsecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia',
           19  +'Admin language': 'Admin language',
           20  +'Administrator Password:': 'Hasło administratora:',
           21  +'Application name:': 'Application name:',
           22  +'Are you sure you want to delete file "%s"?': 'Czy na pewno chcesz usunąć plik "%s"?',
           23  +'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?',
           24  +'Are you sure you want to uninstall application "%s"': 'Czy na pewno chcesz usunąć aplikację "%s"',
           25  +'Are you sure you want to uninstall application "%s"?': 'Czy na pewno chcesz usunąć aplikację "%s"?',
           26  +'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?',
           27  +'Available databases and tables': 'Dostępne bazy danych i tabele',
           28  +'Cannot be empty': 'Nie może być puste',
           29  +'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.',
           30  +'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:',
           31  +'Check to delete': 'Zaznacz aby usunąć',
           32  +'Checking for upgrades...': 'Checking for upgrades...',
           33  +'Controllers': 'Kontrolery',
           34  +'Create new simple application': 'Utwórz nową aplikację',
           35  +'Current request': 'Aktualne żądanie',
           36  +'Current response': 'Aktualna odpowiedź',
           37  +'Current session': 'Aktualna sesja',
           38  +'DESIGN': 'PROJEKTUJ',
           39  +'Date and Time': 'Data i godzina',
           40  +'Delete': 'Usuń',
           41  +'Delete:': 'Usuń:',
           42  +'Deploy on Google App Engine': 'Umieść na Google App Engine',
           43  +'Design for': 'Projekt dla',
           44  +'EDIT': 'EDYTUJ',
           45  +'Edit application': 'Edycja aplikacji',
           46  +'Edit current record': 'Edytuj aktualny rekord',
           47  +'Editing Language file': 'Editing Language file',
           48  +'Editing file': 'Edycja pliku',
           49  +'Editing file "%s"': 'Edycja pliku "%s"',
           50  +'Enterprise Web Framework': 'Enterprise Web Framework',
           51  +'Error logs for "%(app)s"': 'Wpisy błędów dla "%(app)s"',
           52  +'Exception instance attributes': 'Exception instance attributes',
           53  +'Functions with no doctests will result in [passed] tests.': 'Functions with no doctests will result in [passed] tests.',
           54  +'Hello World': 'Witaj Świecie',
           55  +'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.',
           56  +'Import/Export': 'Importuj/eksportuj',
           57  +'Installed applications': 'Zainstalowane aplikacje',
           58  +'Internal State': 'Stan wewnętrzny',
           59  +'Invalid Query': 'Błędne zapytanie',
           60  +'Invalid action': 'Błędna akcja',
           61  +'Language files (static strings) updated': 'Language files (static strings) updated',
           62  +'Languages': 'Tłumaczenia',
           63  +'Last saved on:': 'Ostatnio zapisany:',
           64  +'License for': 'Licencja dla',
           65  +'Login': 'Zaloguj',
           66  +'Login to the Administrative Interface': 'Logowanie do panelu administracyjnego',
           67  +'Models': 'Modele',
           68  +'Modules': 'Moduły',
           69  +'NO': 'NIE',
           70  +'New Record': 'Nowy rekord',
           71  +'New application wizard': 'New application wizard',
           72  +'New simple application': 'New simple application',
           73  +'No databases in this application': 'Brak baz danych w tej aplikacji',
           74  +'Original/Translation': 'Oryginał/tłumaczenie',
           75  +'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here',
           76  +'Peeking at file': 'Podgląd pliku',
           77  +'Plugin "%s" in application': 'Plugin "%s" in application',
           78  +'Plugins': 'Plugins',
           79  +'Powered by': 'Powered by',
           80  +'Query:': 'Zapytanie:',
           81  +'Resolve Conflict file': 'Resolve Conflict file',
           82  +'Rows in table': 'Wiersze w tabeli',
           83  +'Rows selected': 'Wierszy wybranych',
           84  +'Saved file hash:': 'Suma kontrolna zapisanego pliku:',
           85  +'Static files': 'Pliki statyczne',
           86  +'Sure you want to delete this object?': 'Czy na pewno chcesz usunąć ten obiekt?',
           87  +'TM': 'TM',
           88  +'Testing application': 'Testing application',
           89  +'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.',
           90  +'There are no controllers': 'Brak kontrolerów',
           91  +'There are no models': 'Brak modeli',
           92  +'There are no modules': 'Brak modułów',
           93  +'There are no static files': 'Brak plików statycznych',
           94  +'There are no translators, only default language is supported': 'Brak plików tłumaczeń, wspierany jest tylko domyślny język',
           95  +'There are no views': 'Brak widoków',
           96  +'This is the %(filename)s template': 'To jest szablon %(filename)s',
           97  +'Ticket': 'Bilet',
           98  +'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]',
           99  +'Unable to check for upgrades': 'Nie można sprawdzić aktualizacji',
          100  +'Unable to download': 'Nie można ściągnąć',
          101  +'Unable to download app because:': 'Unable to download app because:',
          102  +'Unable to download because': 'Unable to download because',
          103  +'Update:': 'Uaktualnij:',
          104  +'Upload & install packed application': 'Upload & install packed application',
          105  +'Upload a package:': 'Upload a package:',
          106  +'Upload existing application': 'Wyślij istniejącą aplikację',
          107  +'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ń.',
          108  +'Use an url:': 'Use an url:',
          109  +'Version': 'Version',
          110  +'Views': 'Widoki',
          111  +'Welcome to web2py': 'Witaj w web2py',
          112  +'YES': 'TAK',
          113  +'about': 'informacje',
          114  +'additional code for your application': 'dodatkowy kod Twojej aplikacji',
          115  +'admin disabled because no admin password': 'panel administracyjny wyłączony z powodu braku hasła administracyjnego',
          116  +'admin disabled because not supported on google app engine': 'admin disabled because not supported on google apps engine',
          117  +'admin disabled because unable to access password file': 'panel administracyjny wyłączony z powodu braku dostępu do pliku z hasłem',
          118  +'administrative interface': 'administrative interface',
          119  +'and rename it (required):': 'i nadaj jej nową nazwę (wymagane):',
          120  +'and rename it:': 'i nadaj mu nową nazwę:',
          121  +'appadmin': 'administracja aplikacji',
          122  +'appadmin is disabled because insecure channel': 'appadmin is disabled because insecure channel',
          123  +'application "%s" uninstalled': 'aplikacja "%s" została odinstalowana',
          124  +'application compiled': 'aplikacja została skompilowana',
          125  +'application is compiled and cannot be designed': 'aplikacja jest skompilowana i nie może być projektowana',
          126  +'arguments': 'arguments',
          127  +'back': 'back',
          128  +'cache': 'cache',
          129  +'cache, errors and sessions cleaned': 'pamięć podręczna, bilety błędów oraz pliki sesji zostały wyczyszczone',
          130  +'cannot create file': 'nie można utworzyć pliku',
          131  +'cannot upload file "%(filename)s"': 'nie można wysłać pliku "%(filename)s"',
          132  +'change admin password': 'change admin password',
          133  +'check all': 'zaznacz wszystko',
          134  +'check for upgrades': 'check for upgrades',
          135  +'clean': 'oczyść',
          136  +'click here for online examples': 'kliknij aby przejść do interaktywnych przykładów',
          137  +'click here for the administrative interface': 'kliknij aby przejść do panelu administracyjnego',
          138  +'click to check for upgrades': 'kliknij aby sprawdzić aktualizacje',
          139  +'code': 'code',
          140  +'compile': 'skompiluj',
          141  +'compiled application removed': 'skompilowana aplikacja została usunięta',
          142  +'controllers': 'kontrolery',
          143  +'create': 'create',
          144  +'create file with filename:': 'utwórz plik o nazwie:',
          145  +'create new application:': 'utwórz nową aplikację:',
          146  +'created by': 'created by',
          147  +'crontab': 'crontab',
          148  +'currently running': 'currently running',
          149  +'currently saved or': 'aktualnie zapisany lub',
          150  +'data uploaded': 'dane wysłane',
          151  +'database': 'baza danych',
          152  +'database %s select': 'wybór z bazy danych %s',
          153  +'database administration': 'administracja bazy danych',
          154  +'db': 'baza danych',
          155  +'defines tables': 'zdefiniuj tabele',
          156  +'delete': 'usuń',
          157  +'delete all checked': 'usuń wszystkie zaznaczone',
          158  +'delete plugin': 'delete plugin',
          159  +'deploy': 'deploy',
          160  +'design': 'projektuj',
          161  +'direction: ltr': 'direction: ltr',
          162  +'done!': 'zrobione!',
          163  +'edit': 'edytuj',
          164  +'edit controller': 'edytuj kontroler',
          165  +'edit views:': 'edit views:',
          166  +'errors': 'błędy',
          167  +'export as csv file': 'eksportuj jako plik csv',
          168  +'exposes': 'eksponuje',
          169  +'extends': 'rozszerza',
          170  +'failed to reload module': 'nie udało się przeładować modułu',
          171  +'failed to reload module because:': 'failed to reload module because:',
          172  +'file "%(filename)s" created': 'plik "%(filename)s" został utworzony',
          173  +'file "%(filename)s" deleted': 'plik "%(filename)s" został usunięty',
          174  +'file "%(filename)s" uploaded': 'plik "%(filename)s" został wysłany',
          175  +'file "%(filename)s" was not deleted': 'plik "%(filename)s" nie został usunięty',
          176  +'file "%s" of %s restored': 'plik "%s" z %s został odtworzony',
          177  +'file changed on disk': 'plik na dysku został zmieniony',
          178  +'file does not exist': 'plik nie istnieje',
          179  +'file saved on %(time)s': 'plik zapisany o %(time)s',
          180  +'file saved on %s': 'plik zapisany o %s',
          181  +'help': 'pomoc',
          182  +'htmledit': 'edytuj HTML',
          183  +'includes': 'zawiera',
          184  +'insert new': 'wstaw nowy rekord tabeli',
          185  +'insert new %s': 'wstaw nowy rekord do tabeli %s',
          186  +'install': 'install',
          187  +'internal error': 'wewnętrzny błąd',
          188  +'invalid password': 'błędne hasło',
          189  +'invalid request': 'błędne zapytanie',
          190  +'invalid ticket': 'błędny bilet',
          191  +'language file "%(filename)s" created/updated': 'plik tłumaczeń "%(filename)s" został utworzony/uaktualniony',
          192  +'languages': 'pliki tłumaczeń',
          193  +'languages updated': 'pliki tłumaczeń zostały uaktualnione',
          194  +'loading...': 'wczytywanie...',
          195  +'login': 'zaloguj',
          196  +'logout': 'wyloguj',
          197  +'merge': 'merge',
          198  +'models': 'modele',
          199  +'modules': 'moduły',
          200  +'new application "%s" created': 'nowa aplikacja "%s" została utworzona',
          201  +'new plugin installed': 'new plugin installed',
          202  +'new record inserted': 'nowy rekord został wstawiony',
          203  +'next 100 rows': 'następne 100 wierszy',
          204  +'no match': 'no match',
          205  +'or import from csv file': 'lub zaimportuj z pliku csv',
          206  +'or provide app url:': 'or provide app url:',
          207  +'or provide application url:': 'lub podaj url aplikacji:',
          208  +'overwrite installed app': 'overwrite installed app',
          209  +'pack all': 'spakuj wszystko',
          210  +'pack compiled': 'spakuj skompilowane',
          211  +'pack plugin': 'pack plugin',
          212  +'password changed': 'password changed',
          213  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted',
          214  +'previous 100 rows': 'poprzednie 100 wierszy',
          215  +'record': 'record',
          216  +'record does not exist': 'rekord nie istnieje',
          217  +'record id': 'id rekordu',
          218  +'remove compiled': 'usuń skompilowane',
          219  +'restore': 'odtwórz',
          220  +'revert': 'przywróć',
          221  +'save': 'zapisz',
          222  +'selected': 'zaznaczone',
          223  +'session expired': 'sesja wygasła',
          224  +'shell': 'powłoka',
          225  +'site': 'strona główna',
          226  +'some files could not be removed': 'niektóre pliki nie mogły zostać usunięte',
          227  +'start wizard': 'start wizard',
          228  +'state': 'stan',
          229  +'static': 'pliki statyczne',
          230  +'submit': 'submit',
          231  +'table': 'tabela',
          232  +'test': 'testuj',
          233  +'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',
          234  +'the data representation, define database tables and sets': 'reprezentacja danych, definicje zbiorów i tabel bazy danych',
          235  +'the presentations layer, views are also known as templates': 'warstwa prezentacji, widoki zwane są również szablonami',
          236  +'these files are served without processing, your images go here': 'pliki obsługiwane bez interpretacji, to jest miejsce na Twoje obrazy',
          237  +'to  previous version.': 'do  poprzedniej wersji.',
          238  +'translation strings for the application': 'ciągi tłumaczeń dla aplikacji',
          239  +'try': 'spróbój',
          240  +'try something like': 'spróbój czegos takiego jak',
          241  +'unable to create application "%s"': 'nie można utworzyć aplikacji "%s"',
          242  +'unable to delete file "%(filename)s"': 'nie można usunąć pliku "%(filename)s"',
          243  +'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"',
          244  +'unable to parse csv file': 'nie można sparsować pliku csv',
          245  +'unable to uninstall "%s"': 'nie można odinstalować "%s"',
          246  +'unable to upgrade because "%s"': 'unable to upgrade because "%s"',
          247  +'uncheck all': 'odznacz wszystko',
          248  +'uninstall': 'odinstaluj',
          249  +'update': 'uaktualnij',
          250  +'update all languages': 'uaktualnij wszystkie pliki tłumaczeń',
          251  +'upgrade web2py now': 'upgrade web2py now',
          252  +'upload application:': 'wyślij plik aplikacji:',
          253  +'upload file:': 'wyślij plik:',
          254  +'upload plugin file:': 'upload plugin file:',
          255  +'variables': 'variables',
          256  +'versioning': 'versioning',
          257  +'view': 'widok',
          258  +'views': 'widoki',
          259  +'web2py Recent Tweets': 'najnowsze tweety web2py',
          260  +'web2py is up to date': 'web2py jest aktualne',
          261  +'web2py upgraded; please restart it': 'web2py upgraded; please restart it',
          262  +}

Added applications/admin/languages/pl.py version [83ac10247b].

            1  +# coding: utf8
            2  +{
            3  +'"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:',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': 'Wierszy usuniętych: %s',
            7  +'%s rows updated': 'Wierszy uaktualnionych: %s',
            8  +'(requires internet access)': '(requires internet access)',
            9  +'(something like "it-it")': '(coś podobnego do "it-it")',
           10  +'A new version of web2py is available': 'Nowa wersja web2py jest dostępna',
           11  +'A new version of web2py is available: %s': 'Nowa wersja web2py jest dostępna: %s',
           12  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': 'UWAGA: Wymagane jest bezpieczne (HTTPS) połączenie lub połączenie z lokalnego adresu.',
           13  +'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.',
           14  +'ATTENTION: you cannot edit the running application!': 'UWAGA: nie można edytować uruchomionych aplikacji!',
           15  +'About': 'Informacje o',
           16  +'About application': 'Informacje o aplikacji',
           17  +'Additional code for your application': 'Additional code for your application',
           18  +'Admin is disabled because insecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia',
           19  +'Admin is disabled because unsecure channel': 'Panel administracyjny wyłączony z powodu braku bezpiecznego połączenia',
           20  +'Administrator Password:': 'Hasło administratora:',
           21  +'Application name:': 'Application name:',
           22  +'Are you sure you want to delete file "%s"?': 'Czy na pewno chcesz usunąć plik "%s"?',
           23  +'Are you sure you want to delete plugin "%s"?': 'Czy na pewno chcesz usunąć wtyczkę "%s"?',
           24  +'Are you sure you want to uninstall application "%s"': 'Czy na pewno chcesz usunąć aplikację "%s"',
           25  +'Are you sure you want to uninstall application "%s"?': 'Czy na pewno chcesz usunąć aplikację "%s"?',
           26  +'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?',
           27  +'Available databases and tables': 'Dostępne bazy danych i tabele',
           28  +'Cannot be empty': 'Nie może być puste',
           29  +'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.',
           30  +'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:',
           31  +'Check to delete': 'Zaznacz aby usunąć',
           32  +'Checking for upgrades...': 'Sprawdzanie aktualizacji...',
           33  +'Controllers': 'Kontrolery',
           34  +'Create new simple application': 'Utwórz nową aplikację',
           35  +'Current request': 'Aktualne żądanie',
           36  +'Current response': 'Aktualna odpowiedź',
           37  +'Current session': 'Aktualna sesja',
           38  +'DESIGN': 'PROJEKTUJ',
           39  +'Date and Time': 'Data i godzina',
           40  +'Delete': 'Usuń',
           41  +'Delete:': 'Usuń:',
           42  +'Deploy on Google App Engine': 'Umieść na Google App Engine',
           43  +'Design for': 'Projekt dla',
           44  +'EDIT': 'EDYTUJ',
           45  +'Edit application': 'Edycja aplikacji',
           46  +'Edit current record': 'Edytuj aktualny rekord',
           47  +'Editing Language file': 'Edytuj plik tłumaczeń',
           48  +'Editing file': 'Edycja pliku',
           49  +'Editing file "%s"': 'Edycja pliku "%s"',
           50  +'Enterprise Web Framework': 'Enterprise Web Framework',
           51  +'Error logs for "%(app)s"': 'Wpisy błędów dla "%(app)s"',
           52  +'Exception instance attributes': 'Exception instance attributes',
           53  +'Functions with no doctests will result in [passed] tests.': 'Funkcje bez doctestów będą dołączone do [zaliczonych] testów.',
           54  +'Hello World': 'Witaj Świecie',
           55  +'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.',
           56  +'Import/Export': 'Importuj/eksportuj',
           57  +'Installed applications': 'Zainstalowane aplikacje',
           58  +'Internal State': 'Stan wewnętrzny',
           59  +'Invalid Query': 'Błędne zapytanie',
           60  +'Invalid action': 'Błędna akcja',
           61  +'Language files (static strings) updated': 'Pliki tłumaczeń (ciągi statyczne) zostały uaktualnione',
           62  +'Languages': 'Tłumaczenia',
           63  +'Last saved on:': 'Ostatnio zapisany:',
           64  +'License for': 'Licencja dla',
           65  +'Login': 'Zaloguj',
           66  +'Login to the Administrative Interface': 'Logowanie do panelu administracyjnego',
           67  +'Models': 'Modele',
           68  +'Modules': 'Moduły',
           69  +'NO': 'NIE',
           70  +'New Record': 'Nowy rekord',
           71  +'New application wizard': 'New application wizard',
           72  +'New simple application': 'New simple application',
           73  +'No databases in this application': 'Brak baz danych w tej aplikacji',
           74  +'Original/Translation': 'Oryginał/tłumaczenie',
           75  +'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here',
           76  +'Peeking at file': 'Podgląd pliku',
           77  +'Plugin "%s" in application': 'Wtyczka "%s" w aplikacji',
           78  +'Plugins': 'Wtyczki',
           79  +'Powered by': 'Zasilane przez',
           80  +'Query:': 'Zapytanie:',
           81  +'Resolve Conflict file': 'Rozwiąż konflikt plików',
           82  +'Rows in table': 'Wiersze w tabeli',
           83  +'Rows selected': 'Wierszy wybranych',
           84  +'Saved file hash:': 'Suma kontrolna zapisanego pliku:',
           85  +'Searching:': 'Searching:',
           86  +'Static files': 'Pliki statyczne',
           87  +'Sure you want to delete this object?': 'Czy na pewno chcesz usunąć ten obiekt?',
           88  +'TM': 'TM',
           89  +'Testing application': 'Testowanie aplikacji',
           90  +'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.',
           91  +'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',
           92  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
           93  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
           94  +'There are no controllers': 'Brak kontrolerów',
           95  +'There are no models': 'Brak modeli',
           96  +'There are no modules': 'Brak modułów',
           97  +'There are no plugins': 'There are no plugins',
           98  +'There are no static files': 'Brak plików statycznych',
           99  +'There are no translators, only default language is supported': 'Brak plików tłumaczeń, wspierany jest tylko domyślny język',
          100  +'There are no views': 'Brak widoków',
          101  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
          102  +'This is the %(filename)s template': 'To jest szablon %(filename)s',
          103  +'Ticket': 'Bilet',
          104  +'To create a plugin, name a file/folder plugin_[name]': 'Aby utworzyć wtyczkę, nazwij plik/katalog plugin_[nazwa]',
          105  +'Translation strings for the application': 'Translation strings for the application',
          106  +'Unable to check for upgrades': 'Nie można sprawdzić aktualizacji',
          107  +'Unable to download': 'Nie można ściągnąć',
          108  +'Unable to download app': 'Nie można ściągnąć aplikacji',
          109  +'Unable to download app because:': 'Unable to download app because:',
          110  +'Unable to download because': 'Unable to download because',
          111  +'Update:': 'Uaktualnij:',
          112  +'Upload & install packed application': 'Upload & install packed application',
          113  +'Upload a package:': 'Upload a package:',
          114  +'Upload existing application': 'Wyślij istniejącą aplikację',
          115  +'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ń.',
          116  +'Use an url:': 'Use an url:',
          117  +'Version': 'Wersja',
          118  +'Views': 'Widoki',
          119  +'Welcome to web2py': 'Witaj w web2py',
          120  +'YES': 'TAK',
          121  +'about': 'informacje',
          122  +'additional code for your application': 'dodatkowy kod Twojej aplikacji',
          123  +'admin disabled because no admin password': 'panel administracyjny wyłączony z powodu braku hasła administracyjnego',
          124  +'admin disabled because not supported on google app engine': 'panel administracyjny wyłączony z powodu braku wsparcia na google apps engine',
          125  +'admin disabled because unable to access password file': 'panel administracyjny wyłączony z powodu braku dostępu do pliku z hasłem',
          126  +'administrative interface': 'administrative interface',
          127  +'and rename it (required):': 'i nadaj jej nową nazwę (wymagane):',
          128  +'and rename it:': 'i nadaj mu nową nazwę:',
          129  +'appadmin': 'administracja aplikacji',
          130  +'appadmin is disabled because insecure channel': 'administracja aplikacji wyłączona z powodu braku bezpiecznego połączenia',
          131  +'application "%s" uninstalled': 'aplikacja "%s" została odinstalowana',
          132  +'application compiled': 'aplikacja została skompilowana',
          133  +'application is compiled and cannot be designed': 'aplikacja jest skompilowana i nie może być projektowana',
          134  +'arguments': 'arguments',
          135  +'back': 'wstecz',
          136  +'cache': 'cache',
          137  +'cache, errors and sessions cleaned': 'pamięć podręczna, bilety błędów oraz pliki sesji zostały wyczyszczone',
          138  +'cannot create file': 'nie można utworzyć pliku',
          139  +'cannot upload file "%(filename)s"': 'nie można wysłać pliku "%(filename)s"',
          140  +'change admin password': 'change admin password',
          141  +'check all': 'zaznacz wszystko',
          142  +'check for upgrades': 'check for upgrades',
          143  +'clean': 'oczyść',
          144  +'click here for online examples': 'kliknij aby przejść do interaktywnych przykładów',
          145  +'click here for the administrative interface': 'kliknij aby przejść do panelu administracyjnego',
          146  +'click to check for upgrades': 'kliknij aby sprawdzić aktualizacje',
          147  +'code': 'code',
          148  +'collapse/expand all': 'collapse/expand all',
          149  +'compile': 'skompiluj',
          150  +'compiled application removed': 'skompilowana aplikacja została usunięta',
          151  +'controllers': 'kontrolery',
          152  +'create': 'create',
          153  +'create file with filename:': 'utwórz plik o nazwie:',
          154  +'create new application:': 'utwórz nową aplikację:',
          155  +'created by': 'utworzone przez',
          156  +'crontab': 'crontab',
          157  +'currently running': 'currently running',
          158  +'currently saved or': 'aktualnie zapisany lub',
          159  +'data uploaded': 'dane wysłane',
          160  +'database': 'baza danych',
          161  +'database %s select': 'wybór z bazy danych %s',
          162  +'database administration': 'administracja bazy danych',
          163  +'db': 'baza danych',
          164  +'defines tables': 'zdefiniuj tabele',
          165  +'delete': 'usuń',
          166  +'delete all checked': 'usuń wszystkie zaznaczone',
          167  +'delete plugin': 'usuń wtyczkę',
          168  +'deploy': 'deploy',
          169  +'design': 'projektuj',
          170  +'direction: ltr': 'direction: ltr',
          171  +'done!': 'zrobione!',
          172  +'download layouts': 'download layouts',
          173  +'download plugins': 'download plugins',
          174  +'edit': 'edytuj',
          175  +'edit controller': 'edytuj kontroler',
          176  +'edit views:': 'edit views:',
          177  +'errors': 'błędy',
          178  +'export as csv file': 'eksportuj jako plik csv',
          179  +'exposes': 'eksponuje',
          180  +'extends': 'rozszerza',
          181  +'failed to reload module': 'nie udało się przeładować modułu',
          182  +'failed to reload module because:': 'failed to reload module because:',
          183  +'file "%(filename)s" created': 'plik "%(filename)s" został utworzony',
          184  +'file "%(filename)s" deleted': 'plik "%(filename)s" został usunięty',
          185  +'file "%(filename)s" uploaded': 'plik "%(filename)s" został wysłany',
          186  +'file "%(filename)s" was not deleted': 'plik "%(filename)s" nie został usunięty',
          187  +'file "%s" of %s restored': 'plik "%s" z %s został odtworzony',
          188  +'file changed on disk': 'plik na dysku został zmieniony',
          189  +'file does not exist': 'plik nie istnieje',
          190  +'file saved on %(time)s': 'plik zapisany o %(time)s',
          191  +'file saved on %s': 'plik zapisany o %s',
          192  +'files': 'files',
          193  +'filter': 'filter',
          194  +'help': 'pomoc',
          195  +'htmledit': 'edytuj HTML',
          196  +'includes': 'zawiera',
          197  +'insert new': 'wstaw nowy rekord tabeli',
          198  +'insert new %s': 'wstaw nowy rekord do tabeli %s',
          199  +'install': 'install',
          200  +'internal error': 'wewnętrzny błąd',
          201  +'invalid password': 'błędne hasło',
          202  +'invalid request': 'błędne zapytanie',
          203  +'invalid ticket': 'błędny bilet',
          204  +'language file "%(filename)s" created/updated': 'plik tłumaczeń "%(filename)s" został utworzony/uaktualniony',
          205  +'languages': 'pliki tłumaczeń',
          206  +'languages updated': 'pliki tłumaczeń zostały uaktualnione',
          207  +'loading...': 'wczytywanie...',
          208  +'login': 'zaloguj',
          209  +'logout': 'wyloguj',
          210  +'merge': 'zespól',
          211  +'models': 'modele',
          212  +'modules': 'moduły',
          213  +'new application "%s" created': 'nowa aplikacja "%s" została utworzona',
          214  +'new plugin installed': 'nowa wtyczka została zainstalowana',
          215  +'new record inserted': 'nowy rekord został wstawiony',
          216  +'next 100 rows': 'następne 100 wierszy',
          217  +'no match': 'no match',
          218  +'or import from csv file': 'lub zaimportuj z pliku csv',
          219  +'or provide app url:': 'or provide app url:',
          220  +'or provide application url:': 'lub podaj url aplikacji:',
          221  +'overwrite installed app': 'overwrite installed app',
          222  +'pack all': 'spakuj wszystko',
          223  +'pack compiled': 'spakuj skompilowane',
          224  +'pack plugin': 'spakuj wtyczkę',
          225  +'password changed': 'password changed',
          226  +'plugin "%(plugin)s" deleted': 'wtyczka "%(plugin)s" została usunięta',
          227  +'plugins': 'plugins',
          228  +'previous 100 rows': 'poprzednie 100 wierszy',
          229  +'record': 'rekord',
          230  +'record does not exist': 'rekord nie istnieje',
          231  +'record id': 'ID rekordu',
          232  +'remove compiled': 'usuń skompilowane',
          233  +'restore': 'odtwórz',
          234  +'revert': 'przywróć',
          235  +'save': 'zapisz',
          236  +'selected': 'zaznaczone',
          237  +'session expired': 'sesja wygasła',
          238  +'shell': 'powłoka',
          239  +'site': 'strona główna',
          240  +'some files could not be removed': 'niektóre pliki nie mogły zostać usunięte',
          241  +'start wizard': 'start wizard',
          242  +'state': 'stan',
          243  +'static': 'pliki statyczne',
          244  +'submit': 'wyślij',
          245  +'table': 'tabela',
          246  +'test': 'testuj',
          247  +'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',
          248  +'the data representation, define database tables and sets': 'reprezentacja danych, definicje zbiorów i tabel bazy danych',
          249  +'the presentations layer, views are also known as templates': 'warstwa prezentacji, widoki zwane są również szablonami',
          250  +'these files are served without processing, your images go here': 'pliki obsługiwane bez interpretacji, to jest miejsce na Twoje obrazy',
          251  +'to  previous version.': 'do  poprzedniej wersji.',
          252  +'translation strings for the application': 'ciągi tłumaczeń dla aplikacji',
          253  +'try': 'spróbój',
          254  +'try something like': 'spróbój czegos takiego jak',
          255  +'unable to create application "%s"': 'nie można utworzyć aplikacji "%s"',
          256  +'unable to delete file "%(filename)s"': 'nie można usunąć pliku "%(filename)s"',
          257  +'unable to delete file plugin "%(plugin)s"': 'nie można usunąc pliku wtyczki "%(plugin)s"',
          258  +'unable to parse csv file': 'nie można sparsować pliku csv',
          259  +'unable to uninstall "%s"': 'nie można odinstalować "%s"',
          260  +'unable to upgrade because "%s"': 'unable to upgrade because "%s"',
          261  +'uncheck all': 'odznacz wszystko',
          262  +'uninstall': 'odinstaluj',
          263  +'update': 'uaktualnij',
          264  +'update all languages': 'uaktualnij wszystkie pliki tłumaczeń',
          265  +'upgrade web2py now': 'upgrade web2py now',
          266  +'upload': 'upload',
          267  +'upload application:': 'wyślij plik aplikacji:',
          268  +'upload file:': 'wyślij plik:',
          269  +'upload plugin file:': 'wyślij plik wtyczki:',
          270  +'variables': 'variables',
          271  +'versioning': 'versioning',
          272  +'view': 'widok',
          273  +'views': 'widoki',
          274  +'web2py Recent Tweets': 'najnowsze tweety web2py',
          275  +'web2py is up to date': 'web2py jest aktualne',
          276  +'web2py upgraded; please restart it': 'web2py upgraded; please restart it',
          277  +}

Added applications/admin/languages/pt-br.py version [33973b63ad].

            1  +# coding: utf8
            2  +{
            3  +'"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',
            4  +'%Y-%m-%d': '%d/%m/%Y',
            5  +'%Y-%m-%d %H:%M:%S': '%d/%m/%Y %H:%M:%S',
            6  +'%s rows deleted': '%s registros apagados',
            7  +'%s rows updated': '%s registros atualizados',
            8  +'(requires internet access)': '(requer acesso a internet)',
            9  +'(something like "it-it")': '(algo como "it-it")',
           10  +'A new version of web2py is available': 'Está disponível uma nova versão do web2py',
           11  +'A new version of web2py is available: %s': 'Está disponível uma nova versão do web2py: %s',
           12  +'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.',
           13  +'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.',
           14  +'ATTENTION: you cannot edit the running application!': 'ATENÇÃO: Não pode modificar a aplicação em execução!',
           15  +'About': 'Sobre',
           16  +'About application': 'Sobre a aplicação',
           17  +'Additional code for your application': 'Additional code for your application',
           18  +'Admin is disabled because insecure channel': 'Admin desabilitado pois o canal não é seguro',
           19  +'Admin is disabled because unsecure channel': 'Admin desabilitado pois o canal não é seguro',
           20  +'Admin language': 'Linguagem do Admin',
           21  +'Administrator Password:': 'Senha de administrador:',
           22  +'Application name:': 'Nome da aplicação:',
           23  +'Are you sure you want to delete file "%s"?': 'Tem certeza que deseja apagar o arquivo "%s"?',
           24  +'Are you sure you want to delete plugin "%s"?': 'Tem certeza que deseja apagar o plugin "%s"?',
           25  +'Are you sure you want to uninstall application "%s"': 'Tem certeza que deseja apagar a aplicação "%s"?',
           26  +'Are you sure you want to uninstall application "%s"?': 'Tem certeza que deseja apagar a aplicação "%s"?',
           27  +'Are you sure you want to upgrade web2py now?': 'Tem certeza que deseja atualizar o web2py agora?',
           28  +'Available databases and tables': 'Bancos de dados e tabelas disponíveis',
           29  +'Cannot be empty': 'Não pode ser vazio',
           30  +'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',
           31  +'Cannot compile: there are errors in your app:': 'Não é possível compilar: Existem erros em sua aplicação',
           32  +'Change Password': 'Trocar Senha',
           33  +'Check to delete': 'Marque para apagar',
           34  +'Checking for upgrades...': 'Buscando atualizações...',
           35  +'Click row to expand traceback': 'Clique em uma coluna para expandir o log do erro',
           36  +'Client IP': 'IP do cliente',
           37  +'Controllers': 'Controladores',
           38  +'Count': 'Contagem',
           39  +'Create new application using the Wizard': 'Criar nova aplicação utilizando o assistente',
           40  +'Create new simple application': 'Crie uma nova aplicação',
           41  +'Current request': 'Requisição atual',
           42  +'Current response': 'Resposta atual',
           43  +'Current session': 'Sessão atual',
           44  +'DESIGN': 'Projeto',
           45  +'Date and Time': 'Data e Hora',
           46  +'Delete': 'Apague',
           47  +'Delete:': 'Apague:',
           48  +'Deploy on Google App Engine': 'Publicar no Google App Engine',
           49  +'Description': 'Descrição',
           50  +'Design for': 'Projeto de',
           51  +'Detailed traceback description': 'Detailed traceback description',
           52  +'E-mail': 'E-mail',
           53  +'EDIT': 'EDITAR',
           54  +'Edit Profile': 'Editar Perfil',
           55  +'Edit application': 'Editar aplicação',
           56  +'Edit current record': 'Editar o registro atual',
           57  +'Editing Language file': 'Editando arquivo de linguagem',
           58  +'Editing file': 'Editando arquivo',
           59  +'Editing file "%s"': 'Editando arquivo "%s"',
           60  +'Enterprise Web Framework': 'Framework web empresarial',
           61  +'Error': 'Erro',
           62  +'Error logs for "%(app)s"': 'Logs de erro para "%(app)s"',
           63  +'Error snapshot': 'Error snapshot',
           64  +'Error ticket': 'Error ticket',
           65  +'Exception instance attributes': 'Atributos da instancia de excessão',
           66  +'File': 'Arquivo',
           67  +'First name': 'Nome',
           68  +'Frames': 'Frames',
           69  +'Functions with no doctests will result in [passed] tests.': 'Funções sem doctests resultarão em testes [aceitos].',
           70  +'Group ID': 'ID do Grupo',
           71  +'Hello World': 'Olá Mundo',
           72  +'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.',
           73  +'Import/Export': 'Importar/Exportar',
           74  +'Installed applications': 'Aplicações instaladas',
           75  +'Internal State': 'Estado Interno',
           76  +'Invalid Query': 'Consulta inválida',
           77  +'Invalid action': 'Ação inválida',
           78  +'Invalid email': 'E-mail inválido',
           79  +'Language files (static strings) updated': 'Arquivos de linguagem (textos estáticos) atualizados',
           80  +'Languages': 'Linguagens',
           81  +'Last name': 'Sobrenome',
           82  +'Last saved on:': 'Salvo em:',
           83  +'License for': 'Licença para',
           84  +'Login': 'Entrar',
           85  +'Login to the Administrative Interface': 'Entrar na interface adminitrativa',
           86  +'Logout': 'Sair',
           87  +'Lost Password': 'Senha perdida',
           88  +'Models': 'Modelos',
           89  +'Modules': 'Módulos',
           90  +'NO': 'NÃO',
           91  +'Name': 'Nome',
           92  +'New Record': 'Novo registro',
           93  +'New application wizard': 'Assistente para novas aplicações ',
           94  +'New simple application': 'Nova aplicação básica',
           95  +'No databases in this application': 'Não existem bancos de dados nesta aplicação',
           96  +'Origin': 'Origem',
           97  +'Original/Translation': 'Original/Tradução',
           98  +'PAM authenticated user, cannot change password here': 'usuario autenticado por PAM, não pode alterar a senha por aqui',
           99  +'Password': 'Senha',
          100  +'Peeking at file': 'Visualizando arquivo',
          101  +'Plugin "%s" in application': 'Plugin "%s" na aplicação',
          102  +'Plugins': 'Plugins',
          103  +'Powered by': 'Este site utiliza',
          104  +'Query:': 'Consulta:',
          105  +'Record ID': 'ID do Registro',
          106  +'Register': 'Registrar-se',
          107  +'Registration key': 'Chave de registro',
          108  +'Resolve Conflict file': 'Arquivo de resolução de conflito',
          109  +'Role': 'Papel',
          110  +'Rows in table': 'Registros na tabela',
          111  +'Rows selected': 'Registros selecionados',
          112  +'Saved file hash:': 'Hash do arquivo salvo:',
          113  +'Searching:': 'Searching:',
          114  +'Static files': 'Arquivos estáticos',
          115  +'Sure you want to delete this object?': 'Tem certeza que deseja apaagr este objeto?',
          116  +'TM': 'MR',
          117  +'Table name': 'Nome da tabela',
          118  +'Testing application': 'Testando a aplicação',
          119  +'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.',
          120  +'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',
          121  +'The data representation, define database tables and sets': 'The data representation, define database tables and sets',
          122  +'The presentations layer, views are also known as templates': 'The presentations layer, views are also known as templates',
          123  +'There are no controllers': 'Não existem controllers',
          124  +'There are no models': 'Não existem modelos',
          125  +'There are no modules': 'Não existem módulos',
          126  +'There are no plugins': 'There are no plugins',
          127  +'There are no static files': 'Não existem arquicos estáticos',
          128  +'There are no translators, only default language is supported': 'Não há traduções, somente a linguagem padrão é suportada',
          129  +'There are no views': 'Não existem visões',
          130  +'These files are served without processing, your images go here': 'These files are served without processing, your images go here',
          131  +'This is the %(filename)s template': 'Este é o template %(filename)s',
          132  +'Ticket': 'Ticket',
          133  +'Ticket ID': 'Ticket ID',
          134  +'Timestamp': 'Data Atual',
          135  +'To create a plugin, name a file/folder plugin_[name]': 'Para criar um plugin, nomeio um arquivo/pasta como plugin_[nome]',
          136  +'Traceback': 'Traceback',
          137  +'Translation strings for the application': 'Translation strings for the application',
          138  +'Unable to check for upgrades': 'Não é possível checar as atualizações',
          139  +'Unable to download': 'Não é possível efetuar o download',
          140  +'Unable to download app': 'Não é possível baixar a aplicação',
          141  +'Unable to download app because:': 'Não é possível baixar a aplicação porque:',
          142  +'Unable to download because': 'Não é possível baixar porque',
          143  +'Update:': 'Atualizar:',
          144  +'Upload & install packed application': 'Faça upload e instale uma aplicação empacotada',
          145  +'Upload a package:': 'Faça upload de um pacote:',
          146  +'Upload existing application': 'Faça upload de uma aplicação existente',
          147  +'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.',
          148  +'Use an url:': 'Use uma url:',
          149  +'User ID': 'ID do Usuario',
          150  +'Version': 'Versão',
          151  +'Views': 'Visões',
          152  +'Welcome to web2py': 'Bem-vindo ao web2py',
          153  +'YES': 'SIM',
          154  +'about': 'sobre',
          155  +'additional code for your application': 'código adicional para sua aplicação',
          156  +'admin disabled because no admin password': ' admin desabilitado por falta de senha definida',
          157  +'admin disabled because not supported on google app engine': 'admin dehabilitado, não é soportado no GAE',
          158  +'admin disabled because unable to access password file': 'admin desabilitado, não foi possível ler o arquivo de senha',
          159  +'administrative interface': 'interface administrativa',
          160  +'and rename it (required):': 'e renomeie (requerido):',
          161  +'and rename it:': ' e renomeie:',
          162  +'appadmin': 'appadmin',
          163  +'appadmin is disabled because insecure channel': 'admin desabilitado, canal inseguro',
          164  +'application "%s" uninstalled': 'aplicação "%s" desinstalada',
          165  +'application compiled': 'aplicação compilada',
          166  +'application is compiled and cannot be designed': 'A aplicação está compilada e não pode ser modificada',
          167  +'arguments': 'argumentos',
          168  +'back': 'voltar',
          169  +'browse': 'buscar',
          170  +'cache': 'cache',
          171  +'cache, errors and sessions cleaned': 'cache, erros e sessões eliminadas',
          172  +'cannot create file': 'Não é possível criar o arquivo',
          173  +'cannot upload file "%(filename)s"': 'não é possível fazer upload do arquivo "%(filename)s"',
          174  +'change admin password': 'mudar senha de administrador',
          175  +'check all': 'marcar todos',
          176  +'check for upgrades': 'checar por atualizações',
          177  +'clean': 'limpar',
          178  +'click here for online examples': 'clique para ver exemplos online',
          179  +'click here for the administrative interface': 'Clique aqui para acessar a interface administrativa',
          180  +'click to check for upgrades': 'clique aqui para checar por atualizações',
          181  +'click to open': 'clique para abrir',
          182  +'code': 'código',
          183  +'collapse/expand all': 'collapse/expand all',
          184  +'commit (mercurial)': 'commit (mercurial)',
          185  +'compile': 'compilar',
          186  +'compiled application removed': 'aplicação compilada removida',
          187  +'controllers': 'controladores',
          188  +'create': 'criar',
          189  +'create file with filename:': 'criar um arquivo com o nome:',
          190  +'create new application:': 'nome da nova aplicação:',
          191  +'created by': 'criado por',
          192  +'crontab': 'crontab',
          193  +'currently running': 'Executando',
          194  +'currently saved or': 'Atualmente salvo ou',
          195  +'customize me!': 'Modifique-me',
          196  +'data uploaded': 'Dados enviados',
          197  +'database': 'banco de dados',
          198  +'database %s select': 'Seleção no banco de dados %s',
          199  +'database administration': 'administração de banco de dados',
          200  +'db': 'db',
          201  +'defines tables': 'define as tabelas',
          202  +'delete': 'apagar',
          203  +'delete all checked': 'apagar marcados',
          204  +'delete plugin': 'apagar plugin',
          205  +'deploy': 'publicar',
          206  +'design': 'modificar',
          207  +'direction: ltr': 'direção: ltr',
          208  +'done!': 'feito!',
          209  +'download layouts': 'download layouts',
          210  +'download plugins': 'download plugins',
          211  +'edit': 'editar',
          212  +'edit controller': 'editar controlador',
          213  +'edit views:': 'editar visões:',
          214  +'errors': 'erros',
          215  +'export as csv file': 'exportar como arquivo CSV',
          216  +'exposes': 'expõe',
          217  +'extends': 'estende',
          218  +'failed to reload module': 'Falha ao recarregar o módulo',
          219  +'failed to reload module because:': 'falha ao recarregar o módulo por:',
          220  +'file "%(filename)s" created': 'arquivo "%(filename)s" criado',
          221  +'file "%(filename)s" deleted': 'arquivo "%(filename)s" apagado',
          222  +'file "%(filename)s" uploaded': 'arquivo "%(filename)s" enviado',
          223  +'file "%(filename)s" was not deleted': 'arquivo "%(filename)s" não foi apagado',
          224  +'file "%s" of %s restored': 'arquivo "%s" de %s restaurado',
          225  +'file changed on disk': 'arquivo modificado no disco',
          226  +'file does not exist': 'arquivo não existe',
          227  +'file saved on %(time)s': 'arquivo salvo em %(time)s',
          228  +'file saved on %s': 'arquivo salvo em %s',
          229  +'files': 'files',
          230  +'filter': 'filter',
          231  +'help': 'ajuda',
          232  +'htmledit': 'htmledit',
          233  +'includes': 'inclui',
          234  +'insert new': 'inserir novo',
          235  +'insert new %s': 'inserir novo %s',
          236  +'inspect attributes': 'inspect attributes',
          237  +'install': 'instalar',
          238  +'internal error': 'erro interno',
          239  +'invalid password': 'senha inválida',
          240  +'invalid request': 'solicitação inválida',
          241  +'invalid ticket': 'ticket inválido',
          242  +'language file "%(filename)s" created/updated': 'arquivo de linguagem "%(filename)s" criado/atualizado',
          243  +'languages': 'linguagens',
          244  +'languages updated': 'linguagens atualizadas',
          245  +'loading...': 'carregando...',
          246  +'locals': 'locals',
          247  +'login': 'inicio de sessão',
          248  +'logout': 'finalizar sessão',
          249  +'manage': 'gerenciar',
          250  +'merge': 'juntar',
          251  +'models': 'modelos',
          252  +'modules': 'módulos',
          253  +'new application "%s" created': 'nova aplicação "%s" criada',
          254  +'new plugin installed': 'novo plugin instalado',
          255  +'new record inserted': 'novo registro inserido',
          256  +'next 100 rows': 'próximos 100 registros',
          257  +'no match': 'não encontrado',
          258  +'or import from csv file': 'ou importar de um arquivo CSV',
          259  +'or provide app url:': 'ou forneça a url de uma aplicação:',
          260  +'or provide application url:': 'ou forneça a url de uma aplicação:',
          261  +'overwrite installed app': 'sobrescrever aplicação instalada',
          262  +'pack all': 'criar pacote',
          263  +'pack compiled': 'criar pacote compilado',
          264  +'pack plugin': 'empacotar plugin',
          265  +'password changed': 'senha alterada',
          266  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" eliminado',
          267  +'plugins': 'plugins',
          268  +'previous 100 rows': '100 registros anteriores',
          269  +'record': 'registro',
          270  +'record does not exist': 'o registro não existe',
          271  +'record id': 'id do registro',
          272  +'remove compiled': 'eliminar compilados',
          273  +'request': 'request',
          274  +'response': 'response',
          275  +'restore': 'restaurar',
          276  +'revert': 'reverter',
          277  +'save': 'salvar',
          278  +'selected': 'selecionado(s)',
          279  +'session': 'session',
          280  +'session expired': 'sessão expirada',
          281  +'shell': 'Terminal',
          282  +'site': 'site',
          283  +'some files could not be removed': 'alguns arquicos não puderam ser removidos',
          284  +'start wizard': 'iniciar assistente',
          285  +'state': 'estado',
          286  +'static': 'estáticos',
          287  +'submit': 'enviar',
          288  +'table': 'tabela',
          289  +'test': 'testar',
          290  +'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',
          291  +'the data representation, define database tables and sets': 'A representação dos dadps, define tabelas e estruturas de dados',
          292  +'the presentations layer, views are also known as templates': 'A camada de apresentação, As visões também são chamadas de templates',
          293  +'these files are served without processing, your images go here': 'Estes arquivos são servidos sem processamento, suas imagens ficam aqui',
          294  +'to  previous version.': 'para a versão anterior.',
          295  +'translation strings for the application': 'textos traduzidos para a aplicação',
          296  +'try': 'tente',
          297  +'try something like': 'tente algo como',
          298  +'unable to create application "%s"': 'não é possível criar a aplicação "%s"',
          299  +'unable to delete file "%(filename)s"': 'não é possível criar o arquico "%(filename)s"',
          300  +'unable to delete file plugin "%(plugin)s"': 'não é possível criar o plugin "%(plugin)s"',
          301  +'unable to parse csv file': 'não é possível analisar o arquivo CSV',
          302  +'unable to uninstall "%s"': 'não é possível instalar "%s"',
          303  +'unable to upgrade because "%s"': 'não é possível atualizar porque "%s"',
          304  +'uncheck all': 'desmarcar todos',
          305  +'uninstall': 'desinstalar',
          306  +'update': 'atualizar',
          307  +'update all languages': 'atualizar todas as linguagens',
          308  +'upgrade web2py now': 'atualize o web2py agora',
          309  +'upload': 'upload',
          310  +'upload application:': 'Fazer upload de uma aplicação:',
          311  +'upload file:': 'Enviar arquivo:',
          312  +'upload plugin file:': 'Enviar arquivo de plugin:',
          313  +'variables': 'variáveis',
          314  +'versioning': 'versionamento',
          315  +'view': 'visão',
          316  +'views': 'visões',
          317  +'web2py Recent Tweets': 'Tweets Recentes de @web2py',
          318  +'web2py is up to date': 'web2py está atualizado',
          319  +'web2py upgraded; please restart it': 'web2py atualizado; favor reiniciar',
          320  +}

Added applications/admin/languages/zh-cn.py version [d9ae1038f2].

            1  +# coding: utf8
            2  +{
            3  +'"browse"': '游览',
            4  +'"save"': '"保存"',
            5  +'"submit"': '"提交"',
            6  +'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新"是可配置项 如 "field1=\'newvalue\'",你无法在JOIN 中更新或删除',
            7  +'%Y-%m-%d': '%Y-%m-%d',
            8  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            9  +'%s rows deleted': '%s 行已删',
           10  +'%s rows updated': '%s 行更新',
           11  +'(requires internet access)': '(requires internet access)',
           12  +'(something like "it-it")': '(就酱 "it-it")',
           13  +'A new version of web2py is available': '新版本web2py已经可用',
           14  +'A new version of web2py is available: %s': '新版本web2py已经可用: %s',
           15  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': '',
           16  +'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': '',
           17  +'ATTENTION: you cannot edit the running application!': '注意: 不能修改正在运行中的应用!',
           18  +'About': '关于',
           19  +'About application': '关于这个应用',
           20  +'Admin is disabled because insecure channel': '管理因不安全通道而关闭',
           21  +'Admin is disabled because unsecure channel': '管理因不稳定通道而关闭',
           22  +'Admin language': 'Admin language',
           23  +'Administrator Password:': '管理员密码:',
           24  +'Application name:': 'Application name:',
           25  +'Are you sure you want to delete file "%s"?': '你真想删除文件"%s"?',
           26  +'Are you sure you want to delete plugin "%s"?': 'Are you sure you want to delete plugin "%s"?',
           27  +'Are you sure you want to uninstall application "%s"': '你真确定要卸载应用 "%s"',
           28  +'Are you sure you want to uninstall application "%s"?': '你真确定要卸载应用 "%s" ?',
           29  +'Are you sure you want to upgrade web2py now?': 'Are you sure you want to upgrade web2py now?',
           30  +'Available databases and tables': '可用数据库/表',
           31  +'Cannot be empty': '不能不填',
           32  +'Cannot compile: there are errors in your app.        Debug it, correct errors and try again.': '无法编译: 应用中有错误,请修订后再试.',
           33  +'Cannot compile: there are errors in your app:': 'Cannot compile: there are errors in your app:',
           34  +'Change Password': '修改密码',
           35  +'Check to delete': '检验删除',
           36  +'Checking for upgrades...': '是否有升级版本检查ing...',
           37  +'Client IP': '客户端IP',
           38  +'Controllers': '控制器s',
           39  +'Create new simple application': '创建一个新应用',
           40  +'Current request': '当前请求',
           41  +'Current response': '当前返回',
           42  +'Current session': '当前会话',
           43  +'DESIGN': '设计',
           44  +'Date and Time': '时间日期',
           45  +'Delete': '删除',
           46  +'Delete:': '删除:',
           47  +'Deploy on Google App Engine': '部署到GAE',
           48  +'Description': '描述',
           49  +'Design for': '设计:',
           50  +'E-mail': '邮箱:',
           51  +'EDIT': '编辑',
           52  +'Edit Profile': '修订配置',
           53  +'Edit application': '修订应用',
           54  +'Edit current record': '修订当前记录',
           55  +'Editing Language file': '修订语言文件',
           56  +'Editing file': '修订文件',
           57  +'Editing file "%s"': '修订文件 %s',
           58  +'Enterprise Web Framework': '强悍的网络开发框架',
           59  +'Error logs for "%(app)s"': '"%(app)s" 的错误日志',
           60  +'Exception instance attributes': 'Exception instance attributes',
           61  +'First name': '姓',
           62  +'Functions with no doctests will result in [passed] tests.': '',
           63  +'Group ID': '组ID',
           64  +'Hello World': '道可道,非常道;名可名,非常名',
           65  +'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.',
           66  +'Import/Export': '导入/导出',
           67  +'Installed applications': '已安装的应用',
           68  +'Internal State': '内部状态',
           69  +'Invalid Query': '无效查询',
           70  +'Invalid action': '无效动作',
           71  +'Invalid email': '无效的email',
           72  +'Language files (static strings) updated': '语言文件(静态部分)已更新',
           73  +'Languages': '语言',
           74  +'Last name': '名',
           75  +'Last saved on:': '最后保存于:',
           76  +'License for': '许可证',
           77  +'Login': '登录',
           78  +'Login to the Administrative Interface': '登录到管理员界面',
           79  +'Logout': '注销',
           80  +'Lost Password': '忘记密码',
           81  +'Models': '模型s',
           82  +'Modules': '模块s',
           83  +'NO': '不',
           84  +'Name': '姓名',
           85  +'New Record': '新记录',
           86  +'New application wizard': 'New application wizard',
           87  +'New simple application': 'New simple application',
           88  +'No databases in this application': '这应用没有数据库',
           89  +'Origin': '起源',
           90  +'Original/Translation': '原始文件/翻译文件',
           91  +'PAM authenticated user, cannot change password here': 'PAM authenticated user, cannot change password here',
           92  +'Password': '密码',
           93  +'Peeking at file': '选个文件',
           94  +'Plugin "%s" in application': 'Plugin "%s" in application',
           95  +'Plugins': 'Plugins',
           96  +'Powered by': '',
           97  +'Query:': '查询',
           98  +'Record ID': '记录ID',
           99  +'Register': '注册',
          100  +'Registration key': '注册密匙',
          101  +'Resolve Conflict file': '解决冲突文件',
          102  +'Role': '角色',
          103  +'Rows in table': '表行',
          104  +'Rows selected': '行选择',
          105  +'Saved file hash:': '已存文件Hash:',
          106  +'Static files': '静态文件',
          107  +'Sure you want to delete this object?': '真的要删除这个对象?',
          108  +'TM': '',
          109  +'Table name': '表名',
          110  +'Testing application': '应用测试',
          111  +'The "query" is a condition like "db.table1.field1==\'value\'". Something like "db.table1.field1==db.table2.field2" results in a SQL JOIN.': '',
          112  +'There are no controllers': '冇控制器',
          113  +'There are no models': '冇模型s',
          114  +'There are no modules': '冇模块s',
          115  +'There are no static files': '冇静态文件',
          116  +'There are no translators, only default language is supported': '没有找到相应翻译,只能使用默认语言',
          117  +'There are no views': '冇视图',
          118  +'This is the %(filename)s template': '这是 %(filename)s 模板',
          119  +'Ticket': '传票',
          120  +'Timestamp': '时间戳',
          121  +'To create a plugin, name a file/folder plugin_[name]': 'To create a plugin, name a file/folder plugin_[name]',
          122  +'Unable to check for upgrades': '无法检查是否需要升级',
          123  +'Unable to download': '无法下载',
          124  +'Unable to download app': '无法下载应用',
          125  +'Unable to download app because:': 'Unable to download app because:',
          126  +'Unable to download because': 'Unable to download because',
          127  +'Update:': '更新:',
          128  +'Upload & install packed application': 'Upload & install packed application',
          129  +'Upload a package:': 'Upload a package:',
          130  +'Upload existing application': '上传已有应用',
          131  +'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.',
          132  +'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...)  for NOT to build more complex queries.': '',
          133  +'Use an url:': 'Use an url:',
          134  +'User ID': '用户ID',
          135  +'Version': '版本',
          136  +'Views': '视图',
          137  +'Welcome to web2py': '欢迎使用web2py',
          138  +'YES': '是',
          139  +'about': '关于',
          140  +'additional code for your application': '给你的应用附加代码',
          141  +'admin disabled because no admin password': '管理员需要设定密码,否则无法管理',
          142  +'admin disabled because not supported on google app engine': '未支持GAE,无法管理',
          143  +'admin disabled because unable to access password file': '需要可以操作密码文件,否则无法进行管理',
          144  +'administrative interface': 'administrative interface',
          145  +'and rename it (required):': '重命名为 (必须):',
          146  +'and rename it:': ' 重命名为:',
          147  +'appadmin': '应用管理',
          148  +'appadmin is disabled because insecure channel': '应用管理因非法通道失效',
          149  +'application "%s" uninstalled': '应用"%s" 已被卸载',
          150  +'application compiled': '应用已编译完',
          151  +'application is compiled and cannot be designed': '应用已编译完无法设计',
          152  +'arguments': 'arguments',
          153  +'back': 'back',
          154  +'cache': 'cache',
          155  +'cache, errors and sessions cleaned': '缓存、错误、sesiones已被清空',
          156  +'cannot create file': '无法创建文件',
          157  +'cannot upload file "%(filename)s"': '无法上传文件 "%(filename)s"',
          158  +'change admin password': 'change admin password',
          159  +'check all': '检查所有',
          160  +'check for upgrades': 'check for upgrades',
          161  +'clean': '清除',
          162  +'click here for online examples': '猛击此处,查看在线实例',
          163  +'click here for the administrative interface': '猛击此处,进入管理界面',
          164  +'click to check for upgrades': '猛击查看是否有升级版本',
          165  +'code': 'code',
          166  +'compile': '编译',
          167  +'compiled application removed': '已编译应用已移走',
          168  +'controllers': '控制器',
          169  +'create': 'create',
          170  +'create file with filename:': '创建文件用这名:',
          171  +'create new application:': '创建新应用:',
          172  +'created by': '创建自',
          173  +'crontab': '定期事务',
          174  +'currently running': 'currently running',
          175  +'currently saved or': '保存当前的或',
          176  +'customize me!': '定制俺!',
          177  +'data uploaded': '数据已上传',
          178  +'database': '数据库',
          179  +'database %s select': '数据库 %s 选择',
          180  +'database administration': '数据库管理',
          181  +'db': '',
          182  +'defines tables': '已定义表',
          183  +'delete': '删除',
          184  +'delete all checked': '删除所有选择的',
          185  +'delete plugin': 'delete plugin',
          186  +'deploy': 'deploy',
          187  +'design': '设计',
          188  +'direction: ltr': 'direction: ltr',
          189  +'done!': '搞定!',
          190  +'edit': '修改',
          191  +'edit controller': '修订控制器',
          192  +'edit views:': 'edit views:',
          193  +'errors': '错误',
          194  +'export as csv file': '导出为CSV文件',
          195  +'exposes': '暴露',
          196  +'extends': '扩展',
          197  +'failed to reload module': '重新加载模块失败',
          198  +'failed to reload module because:': 'failed to reload module because:',
          199  +'file "%(filename)s" created': '文件 "%(filename)s" 已创建',
          200  +'file "%(filename)s" deleted': '文件 "%(filename)s" 已删除',
          201  +'file "%(filename)s" uploaded': '文件 "%(filename)s" 已上传',
          202  +'file "%(filename)s" was not deleted': '文件 "%(filename)s" 没删除',
          203  +'file "%s" of %s restored': '文件"%s" 有关 %s 已重存',
          204  +'file changed on disk': '硬盘上的文件已经修改',
          205  +'file does not exist': '文件并不存在',
          206  +'file saved on %(time)s': '文件保存于 %(time)s',
          207  +'file saved on %s': '文件保存在 %s',
          208  +'help': '帮助',
          209  +'htmledit': 'html编辑',
          210  +'includes': '包含',
          211  +'insert new': '新插入',
          212  +'insert new %s': '新插入 %s',
          213  +'install': 'install',
          214  +'internal error': '内部错误',
          215  +'invalid password': '无效密码',
          216  +'invalid request': '无效请求',
          217  +'invalid ticket': '无效传票',
          218  +'language file "%(filename)s" created/updated': '语言文件 "%(filename)s"被创建/更新',
          219  +'languages': '语言',
          220  +'languages updated': '语言已被刷新',
          221  +'loading...': '载入中...',
          222  +'login': '登录',
          223  +'logout': '注销',
          224  +'merge': '合并',
          225  +'models': '模型s',
          226  +'modules': '模块s',
          227  +'new application "%s" created': '新应用 "%s"已被创建',
          228  +'new plugin installed': 'new plugin installed',
          229  +'new record inserted': '新记录被插入',
          230  +'next 100 rows': '后100行',
          231  +'no match': 'no match',
          232  +'or import from csv file': '或者,从csv文件导入',
          233  +'or provide app url:': 'or provide app url:',
          234  +'or provide application url:': '或者,提供应用所在地址链接:',
          235  +'overwrite installed app': 'overwrite installed app',
          236  +'pack all': '全部打包',
          237  +'pack compiled': '包编译完',
          238  +'pack plugin': 'pack plugin',
          239  +'password changed': 'password changed',
          240  +'plugin "%(plugin)s" deleted': 'plugin "%(plugin)s" deleted',
          241  +'previous 100 rows': '前100行',
          242  +'record': 'record',
          243  +'record does not exist': '记录并不存在',
          244  +'record id': '记录ID',
          245  +'remove compiled': '已移除',
          246  +'restore': '重存',
          247  +'revert': '恢复',
          248  +'save': '保存',
          249  +'selected': '已选',
          250  +'session expired': '会话过期',
          251  +'shell': '',
          252  +'site': '总站',
          253  +'some files could not be removed': '有些文件无法被移除',
          254  +'start wizard': 'start wizard',
          255  +'state': '状态',
          256  +'static': '静态文件',
          257  +'submit': '提交',
          258  +'table': '表',
          259  +'test': '测试',
          260  +'the application logic, each URL path is mapped in one exposed function in the controller': '应用逻辑:每个URL由控制器暴露的函式完成映射',
          261  +'the data representation, define database tables and sets': '数据表达式,定义数据库/表',
          262  +'the presentations layer, views are also known as templates': '提交层/视图都在模板中可知',
          263  +'these files are served without processing, your images go here': '',
          264  +'to  previous version.': 'to  previous version.',
          265  +'to  previous version.': '退回前一版本',
          266  +'translation strings for the application': '应用的翻译字串',
          267  +'try': '尝试',
          268  +'try something like': '尝试',
          269  +'unable to create application "%s"': '无法创建应用 "%s"',
          270  +'unable to delete file "%(filename)s"': '无法删除文件 "%(filename)s"',
          271  +'unable to delete file plugin "%(plugin)s"': 'unable to delete file plugin "%(plugin)s"',
          272  +'unable to parse csv file': '无法生成 cvs',
          273  +'unable to uninstall "%s"': '无法卸载 "%s"',
          274  +'unable to upgrade because "%s"': 'unable to upgrade because "%s"',
          275  +'uncheck all': '反选全部',
          276  +'uninstall': '卸载',
          277  +'update': '更新',
          278  +'update all languages': '更新所有语言',
          279  +'upgrade web2py now': 'upgrade web2py now',
          280  +'upload application:': '提交已有的应用:',
          281  +'upload file:': '提交文件:',
          282  +'upload plugin file:': 'upload plugin file:',
          283  +'variables': 'variables',
          284  +'versioning': '版本',
          285  +'view': '视图',
          286  +'views': '视图s',
          287  +'web2py Recent Tweets': 'twitter上的web2py进展实播',
          288  +'web2py is up to date': 'web2py现在已经是最新的版本了',
          289  +'web2py upgraded; please restart it': 'web2py upgraded; please restart it',
          290  +}

Added applications/admin/languages/zh-tw.py version [599934d534].

            1  +# coding: utf8
            2  +{
            3  +'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" 是選擇性的條件式, 格式就像 "欄位1=\'值\'". 但是 JOIN 的資料不可以使用 update 或是 delete"',
            4  +'%Y-%m-%d': '%Y-%m-%d',
            5  +'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
            6  +'%s rows deleted': '已刪除 %s 筆',
            7  +'%s rows updated': '已更新 %s 筆',
            8  +'(something like "it-it")': '(格式類似 "zh-tw")',
            9  +'A new version of web2py is available': '新版的 web2py 已發行',
           10  +'A new version of web2py is available: %s': '新版的 web2py 已發行: %s',
           11  +'ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.': '注意: 登入管理帳號需要安全連線(HTTPS)或是在本機連線(localhost).',
           12  +'ATTENTION: TESTING IS NOT THREAD SAFE SO DO NOT PERFORM MULTIPLE TESTS CONCURRENTLY.': '注意: 因為在測試模式不保證多執行緒安全性,也就是說不可以同時執行多個測試案例',
           13  +'ATTENTION: you cannot edit the running application!': '注意:不可編輯正在執行的應用程式!',
           14  +'About': '關於',
           15  +'About application': '關於本應用程式',
           16  +'Admin is disabled because insecure channel': '管理功能(Admin)在不安全連線環境下自動關閉',
           17  +'Admin is disabled because unsecure channel': '管理功能(Admin)在不安全連線環境下自動關閉',
           18  +'Administrator Password:': '管理員密碼:',
           19  +'Are you sure you want to delete file "%s"?': '確定要刪除檔案"%s"?',
           20  +'Are you sure you want to delete plugin "%s"?': '確定要刪除插件 "%s"?',
           21  +'Are you sure you want to uninstall application "%s"': '確定要移除應用程式 "%s"',
           22  +'Are you sure you want to uninstall application "%s"?': '確定要移除應用程式 "%s"',
           23  +'Are you sure you want to upgrade web2py now?': '確定現在要升級 web2py?',
           24  +'Authentication': '驗證',
           25  +'Available databases and tables': '可提供的資料庫和資料表',
           26  +'Cannot be empty': '不可空白',
           27  +'Cannot compile: there are errors in your app.        Debug it, correct errors and try again.': '無法編譯:應用程式中含有錯誤,請除錯後再試一次.',
           28  +'Cannot compile: there are errors in your app:': '無法編譯: 在你的應用程式存在錯誤:',
           29  +'Change Password': '變更密碼',
           30  +'Check to delete': '打勾代表刪除',
           31  +'Check to delete:': '打勾代表刪除:',
           32  +'Checking for upgrades...': '檢查新版本中...',
           33  +'Client IP': '客戶端網址(IP)',
           34  +'Controller': '控件',
           35  +'Controllers': '控件',
           36  +'Copyright': '版權所有',
           37  +'Create new simple application': '創建應用程式',
           38  +'Current request': '目前網路資料要求(request)',
           39  +'Current response': '目前網路資料回應(response)',
           40  +'Current session': '目前網路連線資訊(session)',
           41  +'DB Model': '資料庫模組',
           42  +'DESIGN': '設計',
           43  +'Database': '資料庫',
           44  +'Date and Time': '日期和時間',
           45  +'Delete': '刪除',
           46  +'Delete:': '刪除:',
           47  +'Deploy on Google App Engine': '配置到 Google App Engine',
           48  +'Description': '描述',
           49  +'Design for': '設計為了',
           50  +'E-mail': '電子郵件',
           51  +'EDIT': '編輯',
           52  +'Edit': '編輯',
           53  +'Edit Profile': '編輯設定檔',
           54  +'Edit This App': '編輯本應用程式',
           55  +'Edit application': '編輯應用程式',
           56  +'Edit current record': '編輯當前紀錄',
           57  +'Editing Language file': '編輯語言檔案',
           58  +'Editing file': '編輯檔案',
           59  +'Editing file "%s"': '編輯檔案"%s"',
           60  +'Enterprise Web Framework': '企業網站平台',
           61  +'Error logs for "%(app)s"': '"%(app)s"的錯誤紀錄',
           62  +'Exception instance attributes': 'Exception instance attributes',
           63  +'First name': '名',
           64  +'Functions with no doctests will result in [passed] tests.': '沒有 doctests 的函式會顯示 [passed].',
           65  +'Group ID': '群組編號',
           66  +'Hello World': '嗨! 世界',
           67  +'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.',
           68  +'Import/Export': '匯入/匯出',
           69  +'Index': '索引',
           70  +'Installed applications': '已安裝應用程式',
           71  +'Internal State': '內部狀態',
           72  +'Invalid Query': '不合法的查詢',
           73  +'Invalid action': '不合法的動作(action)',
           74  +'Invalid email': '不合法的電子郵件',
           75  +'Language files (static strings) updated': '語言檔已更新',
           76  +'Languages': '各國語言',
           77  +'Last name': '姓',
           78  +'Last saved on:': '最後儲存時間:',
           79  +'Layout': '網頁配置',
           80  +'License for': '許可證',
           81  +'Login': '登入',
           82  +'Login to the Administrative Interface': '登入到管理員介面',
           83  +'Logout': '登出',
           84  +'Lost Password': '密碼遺忘',
           85  +'Main Menu': '主選單',
           86  +'Menu Model': '選單模組(menu)',
           87  +'Models': '資料模組',
           88  +'Modules': '程式模組',
           89  +'NO': '否',
           90  +'Name': '名字',
           91  +'New Record': '新紀錄',
           92  +'No databases in this application': '這應用程式不含資料庫',
           93  +'Origin': '原文',
           94  +'Original/Translation': '原文/翻譯',
           95  +'PAM authenticated user, cannot change password here': 'PAM 授權使用者, 無法在此變更密碼',
           96  +'Password': '密碼',
           97  +"Password fields don't match": '密碼欄不匹配',
           98  +'Peeking at file': '選個文件',
           99  +'Plugin "%s" in application': '在應用程式的插件 "%s"',
          100  +'Plugins': '插件',
          101  +'Powered by': '基於以下技術構建:',
          102  +'Query:': '查詢:',
          103  +'Record ID': '紀錄編號',
          104  +'Register': '註冊',
          105  +'Registration key': '註冊金鑰',
          106  +'Remember me (for 30 days)': '記住帳號(30 天)',
          107  +'Reset Password key': '重設密碼',
          108  +'Resolve Conflict file': '解決衝突檔案',
          109  +'Role': '角色',
          110  +'Rows in table': '在資料表裏的資料',
          111  +'Rows selected': '筆資料被選擇',
          112  +'Saved file hash:': '檔案雜湊值已紀錄:',
          113  +'Static files': '靜態檔案',
          114  +'Stylesheet': '網頁風格檔',
          115  +'Submit': '傳送',
          116  +'Sure you want to delete this object?': '確定要刪除此物件?',
          117  +'TM': 'TM',
          118  +'Table name': '資料表名稱',
          119  +'Testing application': '測試中的應用程式',
          120  +'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.',
          121  +'There are no controllers': '沒有控件(controllers)',
          122  +'There are no models': '沒有資料庫模組(models)',
          123  +'There are no modules': '沒有程式模組(modules)',
          124  +'There are no static files': '沒有靜態檔案',
          125  +'There are no translators, only default language is supported': '沒有翻譯檔,只支援原始語言',
          126  +'There are no views': '沒有視圖',
          127  +'This is the %(filename)s template': '這是%(filename)s檔案的樣板(template)',
          128  +'Ticket': '問題單',
          129  +'Timestamp': '時間標記',
          130  +'To create a plugin, name a file/folder plugin_[name]': '檔案或目錄名稱以 plugin_開頭來創建插件',
          131  +'Unable to check for upgrades': '無法做升級檢查',
          132  +'Unable to download': '無法下載',
          133  +'Unable to download app': '無法下載應用程式',
          134  +'Unable to download app because:': '無法下載應用程式因為:',
          135  +'Unable to download because': '因為下列原因無法下載:',
          136  +'Update:': '更新:',
          137  +'Upload & install packed application': '上傳並安裝已打包的應用程式',
          138  +'Upload existing application': '更新存在的應用程式',
          139  +'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...)  for NOT to build more complex queries.': '使用下列方式來組合更複雜的條件式, (...)&(...) 代表同時存在的條件, (...)|(...) 代表擇一的條件, ~(...)則代表反向條件.',
          140  +'User %(id)s Logged-in': '使用者 %(id)s 已登入',
          141  +'User %(id)s Registered': '使用者 %(id)s 已註冊',
          142  +'User ID': '使用者編號',
          143  +'Verify Password': '驗證密碼',
          144  +'Version': '版本',
          145  +'View': '視圖',
          146  +'Views': '視圖',
          147  +'Welcome %s': '歡迎 %s',
          148  +'Welcome to web2py': '歡迎使用 web2py',
          149  +'YES': '是',
          150  +'about': '關於',
          151  +'additional code for your application': '應用程式額外的程式碼',
          152  +'admin disabled because no admin password': '管理介面關閉原因是沒有設定管理員密碼 ',
          153  +'admin disabled because not supported on google app engine': '管理介面關閉原因是不支援在google apps engine環境下運作',
          154  +'admin disabled because unable to access password file': '管理介面關閉原因是無法存取密碼檔',
          155  +'amy_ajax': 'amy_ajax',
          156  +'and rename it (required):': '同時更名為(必要的):',
          157  +'and rename it:': '同時更名為:',
          158  +'appadmin': '應用程式管理員',
          159  +'appadmin is disabled because insecure channel': '管理介面關閉理由是連線方式不安全',
          160  +'application "%s" uninstalled': '已移除應用程式 "%s"',
          161  +'application compiled': '已編譯應用程式',
          162  +'application is compiled and cannot be designed': '應用程式已經編譯無法重新設計',
          163  +'arguments': 'arguments',
          164  +'back': '回復(back)',
          165  +'cache': '快取記憶體',
          166  +'cache, errors and sessions cleaned': '快取記憶體,錯誤紀錄,連線紀錄已清除',
          167  +'cannot create file': '無法創建檔案',
          168  +'cannot upload file "%(filename)s"': '無法上傳檔案 "%(filename)s"',
          169  +'change admin password': 'change admin password',
          170  +'change_password': '變更密碼',
          171  +'check all': '全選',
          172  +'clean': '清除',
          173  +'click here for online examples': '點此處進入線上範例',
          174  +'click here for the administrative interface': '點此處進入管理介面',
          175  +'click to check for upgrades': '點擊打勾以便升級',
          176  +'code': 'code',
          177  +'compile': '編譯',
          178  +'compiled application removed': '已移除已編譯的應用程式',
          179  +'controllers': '控件',
          180  +'create': '創建',
          181  +'create file with filename:': '創建檔案:',
          182  +'create new application:': '創建新應用程式:',
          183  +'created by': '創建自',
          184  +'crontab': '定時執行表',
          185  +'currently saved or': '現在存檔或',
          186  +'customize me!': '請調整我!',
          187  +'data uploaded': '資料已上傳',
          188  +'database': '資料庫',
          189  +'database %s select': '已選擇 %s 資料庫',
          190  +'database administration': '資料庫管理',
          191  +'db': 'db',
          192  +'defines tables': '定義資料表',
          193  +'delete': '刪除',
          194  +'delete all checked': '刪除所有已選擇項目',
          195  +'delete plugin': '刪除插件',
          196  +'delete_plugin': '刪除插件',
          197  +'design': '設計',
          198  +'direction: ltr': 'direction: ltr',
          199  +'done!': '完成!',
          200  +'edit': '編輯',
          201  +'edit controller': '編輯控件',
          202  +'edit views:': '編輯視圖',
          203  +'edit_language': '編輯語言檔',
          204  +'errors': '錯誤紀錄',
          205  +'export as csv file': '以逗號分隔檔(csv)格式匯出',
          206  +'exposes': '外顯',
          207  +'extends': '擴展',
          208  +'failed to reload module because:': '因為下列原因無法重新載入程式模組:',
          209  +'file "%(filename)s" created': '檔案 "%(filename)s" 已創建',
          210  +'file "%(filename)s" deleted': '檔案 "%(filename)s" 已刪除',
          211  +'file "%(filename)s" uploaded': '檔案 "%(filename)s" 已上傳',
          212  +'file "%s" of %s restored': '檔案 %s 的 "%s" 已回存',
          213  +'file changed on disk': '在磁碟上檔案已改變',
          214  +'file does not exist': '檔案不存在',
          215  +'file saved on %(time)s': '檔案已於 %(time)s 儲存',
          216  +'file saved on %s': '檔案在 %s 已儲存',
          217  +'help': '說明檔',
          218  +'htmledit': 'html編輯',
          219  +'includes': '包含',
          220  +'index': '索引',
          221  +'insert new': '插入新資料',
          222  +'insert new %s': '插入新資料 %s',
          223  +'install': '安裝',
          224  +'internal error': '內部錯誤',
          225  +'invalid password': '密碼錯誤',
          226  +'invalid request': '不合法的網路要求(request)',
          227  +'invalid ticket': '不合法的問題單號',
          228  +'language file "%(filename)s" created/updated': '語言檔"%(filename)s"已創建或更新',
          229  +'languages': '語言檔',
          230  +'loading...': '載入中...',
          231  +'login': '登入',
          232  +'logout': '登出',
          233  +'merge': '合併',
          234  +'models': '資料庫模組',
          235  +'modules': '程式模組',
          236  +'new application "%s" created': '已創建新的應用程式 "%s"',
          237  +'new plugin installed': '已安裝新插件',
          238  +'new record inserted': '已新增新紀錄',
          239  +'next 100 rows': '往後 100 筆',
          240  +'no match': '無法匹配',
          241  +'or import from csv file': '或是從逗號分隔檔(CSV)匯入',
          242  +'or provide app url:': '或是提供應用程式的安裝網址:',
          243  +'overwrite installed app': '覆蓋已安裝的應用程式',
          244  +'pack all': '全部打包',
          245  +'pack compiled': '打包已編譯資料',
          246  +'pack plugin': '打包插件',
          247  +'password changed': '密碼已變更',
          248  +'peek': '選取',
          249  +'plugin': '插件',
          250  +'plugin "%(plugin)s" deleted': '已刪除插件"%(plugin)s"',
          251  +'previous 100 rows': '往前 100 筆',
          252  +'record': '紀錄',
          253  +'record does not exist': '紀錄不存在',
          254  +'record id': '紀錄編號',
          255  +'register': '註冊',
          256  +'remove compiled': '編譯檔案已移除',
          257  +'resolve': '解決',
          258  +'restore': '回存',
          259  +'revert': '反向恢復',
          260  +'save': '儲存',
          261  +'selected': '已選擇',
          262  +'session expired': '連線(session)已過時',
          263  +'shell': '命令列操作介面',
          264  +'site': '網站',
          265  +'some files could not be removed': '部份檔案無法移除',
          266  +'state': '狀態',
          267  +'static': '靜態檔案',
          268  +'submit': '傳送',
          269  +'table': '資料表',
          270  +'test': '測試',
          271  +'the application logic, each URL path is mapped in one exposed function in the controller': '應用程式邏輯 - 每個網址路徑對應到一個控件的函式',
          272  +'the data representation, define database tables and sets': '資料展現層 - 用來定義資料表和集合',
          273  +'the presentations layer, views are also known as templates': '外觀展現層 - 視圖有時也被稱為樣板',
          274  +'these files are served without processing, your images go here': '這些檔案保留未經處理,你的影像檔在此',
          275  +'ticket': '問題單',
          276  +'to  previous version.': '到前一個版本',
          277  +'translation strings for the application': '翻譯此應用程式的字串',
          278  +'try': '嘗試',
          279  +'try something like': '嘗試如',
          280  +'unable to create application "%s"': '無法創建應用程式 "%s"',
          281  +'unable to delete file "%(filename)s"': '無法刪除檔案 "%(filename)s"',
          282  +'unable to delete file plugin "%(plugin)s"': '無法刪查插件檔 "%(plugin)s"',
          283  +'unable to parse csv file': '無法解析逗號分隔檔(csv)',
          284  +'unable to uninstall "%s"': '無法移除安裝 "%s"',
          285  +'unable to upgrade because "%s"': '無法升級因為 "%s"',
          286  +'uncheck all': '全不選',
          287  +'uninstall': '解除安裝',
          288  +'update': '更新',
          289  +'update all languages': '將程式中待翻譯語句更新到所有的語言檔',
          290  +'upgrade web2py now': 'upgrade web2py now',
          291  +'upgrade_web2py': '升級 web2py',
          292  +'upload application:': '上傳應用程式:',
          293  +'upload file:': '上傳檔案:',
          294  +'upload plugin file:': '上傳插件檔:',
          295  +'variables': 'variables',
          296  +'versioning': '版本管理',
          297  +'view': '視圖',
          298  +'views': '視圖',
          299  +'web2py Recent Tweets': 'web2py 最近的 Tweets',
          300  +'web2py is up to date': 'web2py 已經是最新版',
          301  +'web2py upgraded; please restart it': '已升級 web2py ; 請重新啟動',
          302  +}

Added applications/admin/models/0.py version [2f774cf077].

            1  +EXPIRATION = 60 * 60  # logout after 60 minutes of inactivity
            2  +CHECK_VERSION = True
            3  +WEB2PY_URL = 'http://web2py.com'
            4  +WEB2PY_VERSION_URL = WEB2PY_URL+'/examples/default/version'
            5  +
            6  +###########################################################################
            7  +# Preferences for EditArea
            8  +# the user-interface feature that allows you to edit files in your web
            9  +# browser.
           10  +
           11  +## Default editor
           12  +TEXT_EDITOR = 'edit_area' or 'amy'
           13  +
           14  +### edit_area
           15  +# The default font size, measured in 'points'. The value must be an integer > 0
           16  +FONT_SIZE = 10
           17  +
           18  +# Displays the editor in full screen mode. The value must be 'true' or 'false'
           19  +FULL_SCREEN = 'false'
           20  +
           21  +# Display a check box under the editor to allow the user to switch
           22  +# between the editor and a simple
           23  +# HTML text area. The value must be 'true' or 'false'
           24  +ALLOW_TOGGLE = 'true'
           25  +
           26  +# Replaces tab characters with space characters.
           27  +# The value can be 'false' (meaning that tabs are not replaced),
           28  +# or an integer > 0 that specifies the number of spaces to replace a tab with.
           29  +REPLACE_TAB_BY_SPACES = 4
           30  +
           31  +# Toggle on/off the code editor instead of textarea on startup
           32  +DISPLAY = "onload" or "later"
           33  +
           34  +# if demo mode is True then admin works readonly and does not require login
           35  +DEMO_MODE = False
           36  +
           37  +# if visible_apps is not empty only listed apps will be accessible
           38  +FILTER_APPS = []
           39  +
           40  +# To upload on google app engine this has to point to the proper appengine
           41  +# config file
           42  +import os
           43  +# extract google_appengine_x.x.x.zip to web2py root directory
           44  +#GAE_APPCFG = os.path.abspath(os.path.join('appcfg.py'))
           45  +# extract google_appengine_x.x.x.zip to applications/admin/private/
           46  +GAE_APPCFG = os.path.abspath(os.path.join('/usr/local/bin/appcfg.py'))
           47  +
           48  +# To use web2py as a teaching tool, set MULTI_USER_MODE to True
           49  +MULTI_USER_MODE = False
           50  +
           51  +# configurable twitterbox, set to None/False to suppress
           52  +TWITTER_HASH = "web2py"
           53  +
           54  +# parameter for downloading LAYOUTS
           55  +LAYOUTS_APP = 'http://web2py.com/layouts'
           56  +#LAYOUTS_APP = 'http://127.0.0.1:8000/layouts'
           57  +
           58  +
           59  +# parameter for downloading PLUGINS
           60  +PLUGINS_APP = 'http://web2py.com/plugins'
           61  +#PLUGINS_APP = 'http://127.0.0.1:8000/plugins'
           62  +
           63  +# set the language
           64  +if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None):
           65  +    T.force(request.cookies['adminLanguage'].value)

Added applications/admin/models/0_imports.py version [f31d8a5e98].

            1  +import time
            2  +import os
            3  +import sys
            4  +import re
            5  +import urllib
            6  +import cgi
            7  +import difflib
            8  +import shutil
            9  +import stat
           10  +import socket
           11  +
           12  +from textwrap import dedent
           13  +
           14  +try:
           15  +    from mercurial import ui, hg, cmdutil
           16  +    have_mercurial = True
           17  +except ImportError:
           18  +    have_mercurial = False
           19  +
           20  +from gluon.utils import md5_hash
           21  +from gluon.fileutils import listdir, cleanpath, up
           22  +from gluon.fileutils import tar, tar_compiled, untar, fix_newlines
           23  +from gluon.languages import findT, update_all_languages
           24  +from gluon.myregex import *
           25  +from gluon.restricted import *
           26  +from gluon.compileapp import compile_application, remove_compiled_application

Added applications/admin/models/access.py version [b01ffcca56].

            1  +import os, time
            2  +from gluon import portalocker
            3  +from gluon.admin import apath
            4  +from gluon.fileutils import read_file
            5  +# ###########################################################
            6  +# ## make sure administrator is on localhost or https
            7  +# ###########################################################
            8  +
            9  +http_host = request.env.http_host.split(':')[0]
           10  +
           11  +if request.env.web2py_runtime_gae:
           12  +    session_db = DAL('gae')
           13  +    session.connect(request, response, db=session_db)
           14  +    hosts = (http_host, )
           15  +
           16  +if request.env.http_x_forwarded_for or request.is_https:
           17  +    session.secure()
           18  +elif not request.is_local and not DEMO_MODE:
           19  +    raise HTTP(200, T('Admin is disabled because insecure channel'))
           20  +
           21  +try:
           22  +    _config = {}
           23  +    port = int(request.env.server_port or 0)
           24  +    restricted(read_file(apath('../parameters_%i.py' % port, request)), _config)
           25  +
           26  +    if not 'password' in _config or not _config['password']:
           27  +        raise HTTP(200, T('admin disabled because no admin password'))
           28  +except IOError:
           29  +    import gluon.fileutils
           30  +    if request.env.web2py_runtime_gae:
           31  +        if gluon.fileutils.check_credentials(request):
           32  +            session.authorized = True
           33  +            session.last_time = time.time()
           34  +        else:
           35  +            raise HTTP(200,
           36  +                       T('admin disabled because not supported on google app engine'))
           37  +    else:
           38  +        raise HTTP(200, T('admin disabled because unable to access password file'))
           39  +
           40  +
           41  +def verify_password(password):
           42  +    session.pam_user = None
           43  +    if DEMO_MODE:
           44  +        return True
           45  +    elif not 'password' in _config:
           46  +        return False
           47  +    elif _config['password'].startswith('pam_user:'):
           48  +        session.pam_user = _config['password'][9:].strip()
           49  +        import gluon.contrib.pam
           50  +        return gluon.contrib.pam.authenticate(session.pam_user,password)
           51  +    else:
           52  +        return _config['password'] == CRYPT()(password)[0]
           53  +
           54  +
           55  +# ###########################################################
           56  +# ## handle brute-force login attacks
           57  +# ###########################################################
           58  +
           59  +deny_file = os.path.join(request.folder, 'private', 'hosts.deny')
           60  +allowed_number_of_attempts = 5
           61  +expiration_failed_logins = 3600
           62  +
           63  +def read_hosts_deny():
           64  +    import datetime
           65  +    hosts = {}
           66  +    if os.path.exists(deny_file):
           67  +        hosts = {}
           68  +        f = open(deny_file, 'r')
           69  +        portalocker.lock(f, portalocker.LOCK_SH)
           70  +        for line in f.readlines():
           71  +            if not line.strip() or line.startswith('#'):
           72  +                continue
           73  +            fields = line.strip().split()
           74  +            if len(fields) > 2:
           75  +                hosts[fields[0].strip()] = ( # ip
           76  +                    int(fields[1].strip()),  # n attemps
           77  +                    int(fields[2].strip())   # last attempts
           78  +                    )
           79  +        portalocker.unlock(f)
           80  +        f.close()  
           81  +    return hosts
           82  +        
           83  +def write_hosts_deny(denied_hosts):
           84  +    f = open(deny_file, 'w')
           85  +    portalocker.lock(f, portalocker.LOCK_EX)
           86  +    for key, val in denied_hosts.items():
           87  +        if time.time()-val[1] < expiration_failed_logins:
           88  +            line = '%s %s %s\n' % (key, val[0], val[1])
           89  +            f.write(line)
           90  +    portalocker.unlock(f)
           91  +    f.close()        
           92  +
           93  +def login_record(success=True):
           94  +    denied_hosts = read_hosts_deny()
           95  +    val = (0,0)
           96  +    if success and request.client in denied_hosts:
           97  +        del denied_hosts[request.client]
           98  +    elif not success and not request.is_local:
           99  +        val = denied_hosts.get(request.client,(0,0))
          100  +        if time.time()-val[1]<expiration_failed_logins \
          101  +            and val[0] >= allowed_number_of_attempts:
          102  +            return val[0] # locked out
          103  +        time.sleep(2**val[0])
          104  +        val = (val[0]+1,int(time.time()))        
          105  +        denied_hosts[request.client] = val
          106  +    write_hosts_deny(denied_hosts)
          107  +    return val[0]
          108  +        
          109  +
          110  +# ###########################################################
          111  +# ## session expiration
          112  +# ###########################################################
          113  +
          114  +t0 = time.time()
          115  +if session.authorized:
          116  +
          117  +    if session.last_time and session.last_time < t0 - EXPIRATION:
          118  +        session.flash = T('session expired')
          119  +        session.authorized = False
          120  +    else:
          121  +        session.last_time = t0
          122  +
          123  +if not session.authorized and not \
          124  +    (request.controller == 'default' and \
          125  +     request.function in ('index','user')):
          126  +
          127  +    if request.env.query_string:
          128  +        query_string = '?' + request.env.query_string
          129  +    else:
          130  +        query_string = ''
          131  +
          132  +    if request.env.web2py_original_uri:
          133  +        url = request.env.web2py_original_uri
          134  +    else:
          135  +        url = request.env.path_info + query_string
          136  +    redirect(URL(request.application, 'default', 'index', vars=dict(send=url)))
          137  +elif session.authorized and \
          138  +     request.controller == 'default' and \
          139  +     request.function == 'index':
          140  +    redirect(URL(request.application, 'default', 'site'))
          141  +
          142  +
          143  +if request.controller=='appadmin' and DEMO_MODE:
          144  +    session.flash = 'Appadmin disabled in demo mode'
          145  +    redirect(URL('default','sites'))
          146  +

Added applications/admin/models/buttons.py version [697f589af3].

            1  +# Template helpers
            2  +
            3  +import os
            4  +
            5  +def button(href, label):
            6  +  return A(SPAN(label),_class='button',_href=href)
            7  +
            8  +def sp_button(href, label):
            9  +  return A(SPAN(label),_class='button special',_href=href)
           10  +
           11  +def helpicon():
           12  +  return IMG(_src=URL('static', 'images/help.png'), _alt='help')
           13  +