Skip to content
Myr

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

6 files+12 added−296 removed

modified:docs/patterns/fabric.rst+1 added-1 removed
46 unmodified lines
47 local('python setup.py sdist --formats=gztar', capture=False)4849 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 it
141 unmodified lines
modified:docs/patterns/jquery.rst+7 added-7 removed
21 unmodified lines
2223In order to use jQuery, you have to download it first and place it in the24static folder of your application and then ensure it's loaded. Ideally25you have a layout template that is used for all pages where you just have26to add a script statement to your `head` to load jQuery:26to add a script statement to the bottom of your `<body>` to load jQuery:2728.. sourcecode:: html2930 <script type=text/javascript src="{{
3 unmodified lines
34<http://code.google.com/apis/ajaxlibs/documentation/>`_ to load jQuery:3536.. sourcecode:: html3738 <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>4141In this case you don't have to put jQuery into your static folder, it will42instead be loaded from Google directly. This has the advantage that your42In this case you have to put jQuery into your static folder as a fallback, but it will43first try to load it directly from Google. This has the advantage that your44website will probably load faster for users if they went to at least one45other website before using the same jQuery version from Google because it45will already be in the browser cache. Downside is that if you don't have46network connectivity during development jQuery will not load.46will already be in the browser cache.4748Where is My Site?49-----------------50
117 unmodified lines
deleted:extreview/approved.rst-168 removed
1Approved Extensions2===================34This document contains a list of all extensions that were approved and the5date of approval as well as notes. This should make it possible to better6track the extension approval process.789Flask-Babel10-----------1112:First Approval: 2010-07-2313:Last Review: 2010-07-2314:Approved Version: 0.615:Approved License: BSD1617Notes: Developed by the Flask development head1819How to improve: add a better long description to the next release202122Flask-SQLAlchemy23----------------2425:First Approval: 2010-07-2526:Last Review: 2010-07-2527:Approved Version: 0.9.128:Approved License: BSD2930Notes: Developed by the Flask development head3132How to improve: add a better long description to the next release333435Flask-Creole36------------3738:First Approval: 2010-07-2539:Last Review: 2010-07-2540:Approved Version: 0.4.441:Approved License: BSD4243Notes: Flask-Markdown and this should share API, consider that when44approving Flask-Markdown454647Flask-Genshi48------------4950:First Approval: 2010-07-2651:Last Review: 2010-07-2652:Approved Version: 0.3.153:Approved License: BSD5455Notes: This is the first template engine extension. When others come56around it would be a good idea to decide on a common interface.575859Flask-Script60------------6162:First Approval: 2010-07-2663:Last Review: 2010-07-2664:Approved Version: 0.365:Approved License: BSD6667Notes: Flask-Actions has some overlap. Consider that when approving68Flask-Actions or similar packages.697071Flask-CouchDB72-------------7374:First Approval: 2010-07-2675:Last Review: 2010-07-2676:Approved Version: 0.2.177:Approved License: MIT7879There is also Flask-CouchDBKit. Both are fine because they are doing80different things, but the latter is not yet approved.818283Flask-Testing84-------------8586:First Approval: 2010-07-2787:Last Review: 2010-07-2788:Approved Version: 0.2.389:Approved License: BSD9091All fine.929394Flask-WTF95---------9697:First Approval: 2010-07-2798:Last Review: 2010-07-2799:Approved Version: 0.2.3100:Approved License: BSD101102All fine.103104105Flask-Themes106------------107108:First Approval: 2010-07-27109:Last Review: 2010-07-27110:Approved Version: 0.1.2111:Approved License: MIT112113All fine.114115116Flask-Uploads117-------------118119:First Approval: 2010-07-27120:Last Review: 2010-07-27121:Approved Version: 0.1.2122:Approved License: MIT123124All fine.125126127Flask-Mail128----------129130:First Approval: 2010-07-29131:Last Review: 2010-07-29132:Approved Version: 0.3.4133:Approved License: BSD134135All fine.136137138Flask-XML-RPC139-------------140141:First Approval: 2010-07-30142:Last Review: 2010-07-30143:Approved Version: 0.1.2144:Approved License: MIT145146All fine.147148149Frozen-Flask150------------151152:First Approval: 2011-06-05153:Last Review: 2011-06-05154:Approved Version: 0.4155:Approved License: BSD156157All fine. Posted recommendations for minor items/enhancements to mailing list.158159160Flask-Login161-----------162163:First Approval: 2011-06-07164:Last Review: 2011-06-07165:Approved Version: 0.1166:Approved License: MIT167168All fine.
deleted:extreview/listed.rst-64 removed
1Listed Extensions2=================34This list contains extensions that passed listing. This means the5extension is on the list of extensions on the website. It does not6contain extensions that are approved.789Flask-CouchDBKit10----------------1112:Last-Review: 2010-07-2513:Reviewed Version: 0.21415Would be fine for approval, but the test suite is not part of the sdist16package (missing entry in MANIFEST.in) and the test suite does not respond17to either "make test" or "python setup.py test".181920flask-csrf21----------2223:Last-Review: 2010-07-2524:Reviewed Version: 0.22526Will not be approved because this is functionality that should be handled27in the form handling systems which is for Flask-WTF already the case.28Also, this implementation only supports one open tab with forms.2930Name is not following Flask extension naming rules.3132Considered for unlisting.333435flask-lesscss36-------------3738:Last-Review: 2010-07-2539:Reviewed Version: 0.9.14041Broken package description, nonconforming package name, does not follow42standard API rules (init_lesscss instead of lesscss).4344Considered for unlisting, improved version should release as45"Flask-LessCSS" with a conforming API and fixed packages indices, as well46as a testsuite.474849Flask-OAuth50-----------5152:Last-Review: 2010-07-2553:Reviewed Version: 0.95455Short long description, missing tests.565758Flask-OpenID59------------6061:Last-Review: 2010-07-2562:Reviewed Version: 1.0.16364Short long description, missing tests.
deleted:extreview/unlisted.rst-55 removed
1Unlisted Extensions2===================34This is a list of extensions that is currently rejected from listing and5with that also not approved. If an extension ends up here it should6improved to be listed.789Flask-Actions10-------------1112:Last Review: 2010-07-2513:Reviewed Version: 0.21415Rejected because of missing description in PyPI, formatting issues with16the documentation (missing headlines, scrollbars etc.) and a general clash17of functionality with the Flask-Script package. Latter should not be a18problem, but the documentation should improve. For listing, the extension19developer should probably discuss the extension on the mailinglist with20others.2122Futhermore it also has an egg registered with an invalid filename.232425Flask-Jinja2Extender26--------------------2728:Last Review: 2010-07-2529:Reviewed Version: 0.13031Usecase not obvious, hacky implementation, does not solve a problem that32could not be solved with Flask itself. I suppose it is to aid other33extensions, but that should be discussed on the mailinglist.343536Flask-Markdown37--------------3839:Last Review: 2010-07-2540:Reviewed Version: 0.24142Would be great for enlisting but it should follow the API of Flask-Creole.43Besides that, the docstrings are not valid rst (run through rst2html to44see the issue) and it is missing tests. Otherwise fine :)454647flask-urls48----------4950:Last Review: 2010-07-2551:Reviewed Version: 0.9.25253Broken PyPI index and non-conforming extension name. Due to the small54featureset this was also delisted from the list. It was there previously55before the approval process was introduced.
modified:flask/helpers.py+4 added-1 removed
377 unmodified lines
378 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 that
131 unmodified lines