Skip to content
Myr

Merge pull request #731 from ThomasWaldmann/docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

document python 2.6 minimum requirement, remove stuff that refers to 2.5

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 521398d, 40fad2e · Browse files · 10 files+8 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

10 files+8 added−20 removed

  • other:+8 added−20 removed

10 files+8 added−20 removed

modified:docs/patterns/jquery.rst-4 removed
9 unmodified lines
10Python primitives (numbers, strings, dicts and lists) look like which is11widely supported and very easy to parse. It became popular a few years12ago and quickly replaced XML as transport format in web applications.1314If you have Python 2.6 JSON will work out of the box, in Python 2.5 you15will have to install the `simplejson`_ library from PyPI.1614.. _jQuery: http://jquery.com/18.. _simplejson: http://pypi.python.org/pypi/simplejson1516Loading jQuery17--------------18
145 unmodified lines
modified:docs/tutorial/dbinit.rst+2 added-5 removed
19 unmodified lines
20errors. It's a good idea to add a function that initializes the database21for you to the application.2223If you want to do that, you first have to import the24:func:`contextlib.closing` function from the contextlib package. If you25want to use Python 2.5 it's also necessary to enable the `with` statement26first (`__future__` imports must be the very first import). Accordingly,27add the following lines to your existing imports in `flaskr.py`::24:func:`contextlib.closing` function from the contextlib package.25Accordingly, add the following lines to your existing imports in `flaskr.py`::2629 from __future__ import with_statement27 from contextlib import closing2829Next we can create a function called `init_db` that initializes the30database. For this we can use the `connect_db` function we defined
36 unmodified lines
modified:docs/extensiondev.rst+1 added-1 removed
388 unmodified lines
389 must be a link to automatically install the development version390 (``PackageName==dev``).3919. The ``zip_safe`` flag in the setup script must be set to ``False``,392 even if the extension would be safe for zipping.39310. An extension currently has to support Python 2.5, 2.6 as well as39310. An extension currently has to support Python 2.6 as well as394 Python 2.7395396397.. _ext-import-transition:
23 unmodified lines
modified:docs/installation.rst+1 added-1 removed
11 unmodified lines
12So how do you get all that on your computer quickly? There are many ways you13could do that, but the most kick-ass method is virtualenv, so let's have a look14at that first.1516You will need Python 2.5 or higher to get started, so be sure to have an16You will need Python 2.6 or higher to get started, so be sure to have an17up-to-date Python 2.x installation. Python 3.x is not supported.1819.. _virtualenv:20
152 unmodified lines
modified:flask/json.py+1 added-2 removed
159 unmodified lines
160 "email": "admin@localhost",161 "id": 42162 }163164 This requires Python 2.6 or an installed version of simplejson. For165 security reasons only objects are supported toplevel. For more164 For security reasons only objects are supported toplevel. For more165 information about this, have a look at :ref:`json-security`.166167 .. versionadded:: 0.2168 """
3 unmodified lines
modified:flask/wrappers.py-2 removed
90 unmodified lines
91 @cached_property92 def json(self):93 """If the mimetype is `application/json` this will contain the94 parsed JSON data. Otherwise this will be `None`.9596 This requires Python 2.6 or an installed version of simplejson.95 """96 if self.mimetype == 'application/json':97 request_charset = self.mimetype_params.get('charset')98 try:
46 unmodified lines
modified:scripts/flask-07-upgrade.py+1 added-3 removed
285 unmodified lines
286 if not args:287 args = ['.']288289 if ast is None:290 parser.error('Python 2.6 or later is required to run the upgrade script.\n'291 'The runtime requirements for Flask 0.7 however are still '292 'Python 2.5.')290 parser.error('Python 2.6 or later is required to run the upgrade script.')291292 for path in args:293 scan_path(path, teardown=not options.no_teardown)294
3 unmodified lines
modified:.travis.yml-1 removed
modified:CHANGES+2 added
52 unmodified lines
53 to work better with Google Chrome.54- Added `message_flashed` signal that simplifies flashing testing.55- Added support for copying of request contexts for better working with56 greenlets.57- Python requirements changed: requiring Python 2.6 or 2.7 now to prepare58 for Python 3.3 port.5960Version 0.961-----------62
365 unmodified lines
modified:setup.py-1 removed
99 unmodified lines
100 'Intended Audience :: Developers',101 'License :: OSI Approved :: BSD License',102 'Operating System :: OS Independent',103 'Programming Language :: Python',104 'Programming Language :: Python :: 2.5',104 'Programming Language :: Python :: 2.6',105 'Programming Language :: Python :: 2.7',106 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',107 'Topic :: Software Development :: Libraries :: Python Modules'
4 unmodified lines