Merge branch 'master' of github.com:mitsuhiko/flask
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parents 04f2bbc, 46ecc57 · Browse files · 6 files·+12 added−296 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+12 added−296 removed
- other:+12 added−296 removed
Provenance
- Commit
26e748c- Tree
45bf455- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent 1
04f2bbc- Parent 2
46ecc57
6 files changed+12 added−296 removed
modified:docs/patterns/fabric.rst+1 added-1 removed
46 unmodified lines47 local('python setup.py sdist --formats=gztar', capture=False)48 49 def deploy():50 # figure out the release name and version51- dist = local('python setup.py --fullname').strip()51+ dist = local('python setup.py --fullname', capture=True).strip()52 # upload the source tarball to the temporary folder on the server53 put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')54 # create a place where we can unzip the tarball, then enter55 # that directory and unzip it141 unmodified linesmodified:docs/patterns/jquery.rst+7 added-7 removed
21 unmodified lines22 23 In order to use jQuery, you have to download it first and place it in the24 static folder of your application and then ensure it's loaded. Ideally25 you have a layout template that is used for all pages where you just have26-to add a script statement to your `head` to load jQuery:26+to add a script statement to the bottom of your `<body>` to load jQuery:27 28 .. sourcecode:: html29 30 <script type=text/javascript src="{{3 unmodified lines34 <http://code.google.com/apis/ajaxlibs/documentation/>`_ to load jQuery:35 36 .. sourcecode:: html37 38- <script type=text/javascript39- src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>38+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script>39+ <script>window.jQuery || document.write('<script src="{{40+ url_for('static', filename='jquery.js') }}">\x3C/script>')</script>41 41-In this case you don't have to put jQuery into your static folder, it will42-instead be loaded from Google directly. This has the advantage that your42+In this case you have to put jQuery into your static folder as a fallback, but it will43+first try to load it directly from Google. This has the advantage that your44 website will probably load faster for users if they went to at least one45 other website before using the same jQuery version from Google because it45-will already be in the browser cache. Downside is that if you don't have46-network connectivity during development jQuery will not load.46+will already be in the browser cache.47 48 Where is My Site?49 -----------------50 117 unmodified linesdeleted:extreview/approved.rst-168 removed
1-Approved Extensions2-===================3-4-This document contains a list of all extensions that were approved and the5-date of approval as well as notes. This should make it possible to better6-track the extension approval process.7-8-9-Flask-Babel10------------11-12-:First Approval: 2010-07-2313-:Last Review: 2010-07-2314-:Approved Version: 0.615-:Approved License: BSD16-17-Notes: Developed by the Flask development head18-19-How to improve: add a better long description to the next release20-21-22-Flask-SQLAlchemy23-----------------24-25-:First Approval: 2010-07-2526-:Last Review: 2010-07-2527-:Approved Version: 0.9.128-:Approved License: BSD29-30-Notes: Developed by the Flask development head31-32-How to improve: add a better long description to the next release33-34-35-Flask-Creole36-------------37-38-:First Approval: 2010-07-2539-:Last Review: 2010-07-2540-:Approved Version: 0.4.441-:Approved License: BSD42-43-Notes: Flask-Markdown and this should share API, consider that when44-approving Flask-Markdown45-46-47-Flask-Genshi48-------------49-50-:First Approval: 2010-07-2651-:Last Review: 2010-07-2652-:Approved Version: 0.3.153-:Approved License: BSD54-55-Notes: This is the first template engine extension. When others come56-around it would be a good idea to decide on a common interface.57-58-59-Flask-Script60-------------61-62-:First Approval: 2010-07-2663-:Last Review: 2010-07-2664-:Approved Version: 0.365-:Approved License: BSD66-67-Notes: Flask-Actions has some overlap. Consider that when approving68-Flask-Actions or similar packages.69-70-71-Flask-CouchDB72--------------73-74-:First Approval: 2010-07-2675-:Last Review: 2010-07-2676-:Approved Version: 0.2.177-:Approved License: MIT78-79-There is also Flask-CouchDBKit. Both are fine because they are doing80-different things, but the latter is not yet approved.81-82-83-Flask-Testing84--------------85-86-:First Approval: 2010-07-2787-:Last Review: 2010-07-2788-:Approved Version: 0.2.389-:Approved License: BSD90-91-All fine.92-93-94-Flask-WTF95----------96-97-:First Approval: 2010-07-2798-:Last Review: 2010-07-2799-:Approved Version: 0.2.3100-:Approved License: BSD101-102-All fine.103-104-105-Flask-Themes106-------------107-108-:First Approval: 2010-07-27109-:Last Review: 2010-07-27110-:Approved Version: 0.1.2111-:Approved License: MIT112-113-All fine.114-115-116-Flask-Uploads117--------------118-119-:First Approval: 2010-07-27120-:Last Review: 2010-07-27121-:Approved Version: 0.1.2122-:Approved License: MIT123-124-All fine.125-126-127-Flask-Mail128-----------129-130-:First Approval: 2010-07-29131-:Last Review: 2010-07-29132-:Approved Version: 0.3.4133-:Approved License: BSD134-135-All fine.136-137-138-Flask-XML-RPC139--------------140-141-:First Approval: 2010-07-30142-:Last Review: 2010-07-30143-:Approved Version: 0.1.2144-:Approved License: MIT145-146-All fine.147-148-149-Frozen-Flask150-------------151-152-:First Approval: 2011-06-05153-:Last Review: 2011-06-05154-:Approved Version: 0.4155-:Approved License: BSD156-157-All fine. Posted recommendations for minor items/enhancements to mailing list.158-159-160-Flask-Login161------------162-163-:First Approval: 2011-06-07164-:Last Review: 2011-06-07165-:Approved Version: 0.1166-:Approved License: MIT167-168-All fine.deleted:extreview/listed.rst-64 removed
1-Listed Extensions2-=================3-4-This list contains extensions that passed listing. This means the5-extension is on the list of extensions on the website. It does not6-contain extensions that are approved.7-8-9-Flask-CouchDBKit10-----------------11-12-:Last-Review: 2010-07-2513-:Reviewed Version: 0.214-15-Would be fine for approval, but the test suite is not part of the sdist16-package (missing entry in MANIFEST.in) and the test suite does not respond17-to either "make test" or "python setup.py test".18-19-20-flask-csrf21-----------22-23-:Last-Review: 2010-07-2524-:Reviewed Version: 0.225-26-Will not be approved because this is functionality that should be handled27-in the form handling systems which is for Flask-WTF already the case.28-Also, this implementation only supports one open tab with forms.29-30-Name is not following Flask extension naming rules.31-32-Considered for unlisting.33-34-35-flask-lesscss36--------------37-38-:Last-Review: 2010-07-2539-:Reviewed Version: 0.9.140-41-Broken package description, nonconforming package name, does not follow42-standard API rules (init_lesscss instead of lesscss).43-44-Considered for unlisting, improved version should release as45-"Flask-LessCSS" with a conforming API and fixed packages indices, as well46-as a testsuite.47-48-49-Flask-OAuth50------------51-52-:Last-Review: 2010-07-2553-:Reviewed Version: 0.954-55-Short long description, missing tests.56-57-58-Flask-OpenID59-------------60-61-:Last-Review: 2010-07-2562-:Reviewed Version: 1.0.163-64-Short long description, missing tests.deleted:extreview/unlisted.rst-55 removed
1-Unlisted Extensions2-===================3-4-This is a list of extensions that is currently rejected from listing and5-with that also not approved. If an extension ends up here it should6-improved to be listed.7-8-9-Flask-Actions10--------------11-12-:Last Review: 2010-07-2513-:Reviewed Version: 0.214-15-Rejected because of missing description in PyPI, formatting issues with16-the documentation (missing headlines, scrollbars etc.) and a general clash17-of functionality with the Flask-Script package. Latter should not be a18-problem, but the documentation should improve. For listing, the extension19-developer should probably discuss the extension on the mailinglist with20-others.21-22-Futhermore it also has an egg registered with an invalid filename.23-24-25-Flask-Jinja2Extender26---------------------27-28-:Last Review: 2010-07-2529-:Reviewed Version: 0.130-31-Usecase not obvious, hacky implementation, does not solve a problem that32-could not be solved with Flask itself. I suppose it is to aid other33-extensions, but that should be discussed on the mailinglist.34-35-36-Flask-Markdown37---------------38-39-:Last Review: 2010-07-2540-:Reviewed Version: 0.241-42-Would be great for enlisting but it should follow the API of Flask-Creole.43-Besides that, the docstrings are not valid rst (run through rst2html to44-see the issue) and it is missing tests. Otherwise fine :)45-46-47-flask-urls48-----------49-50-:Last Review: 2010-07-2551-:Reviewed Version: 0.9.252-53-Broken PyPI index and non-conforming extension name. Due to the small54-featureset this was also delisted from the list. It was there previously55-before the approval process was introduced.modified:flask/helpers.py+4 added-1 removed
377 unmodified lines378 if add_etags and filename is not None:379 rv.set_etag('flask-%s-%s-%s' % (380 os.path.getmtime(filename),381 os.path.getsize(filename),382- adler32(filename) & 0xffffffff382+ adler32(383+ filename.encode('utf8') if isinstance(filename, unicode)384+ else filename385+ ) & 0xffffffff386 ))387 if conditional:388 rv = rv.make_conditional(request)389 # make sure we don't send x-sendfile for servers that131 unmodified lines