Commit Graph

53 Commits

Author SHA1 Message Date
Keyan Pishdadian 4cb311b945 Add support for function call fixing, add tests
Addresses #1135, some code cleanup and refactoring. Changes wrapper function which handles testing, further modularized code, added test to cover function call fixing, and fixed duplicate test function name.
2015-02-13 15:27:29 -05:00
Keyan Pishdadian 9cbe83ef0d Add a test and cover edge case with parens 2015-02-12 16:41:57 -05:00
Keyan Pishdadian b759aa2b95 Add test for naming module and fix logic to cover 2015-02-12 11:58:38 -05:00
Keyan Pishdadian 37217e85b8 Fix issue with wrapper logic 2015-02-11 15:22:07 -05:00
Keyan Pishdadian 0cf5881312 Add tests, remove manual testing file #1135 2015-02-11 15:06:53 -05:00
Keyan Pishdadian 96d81c297a Change wrapper logic for testing 2015-02-11 14:53:39 -05:00
Keyan Pishdadian 4a9e34a574 Add wrapper for testing fixing functionality 2015-02-11 14:41:48 -05:00
Keyan Pishdadian c90c4e5e8c Support "import flask.ext.foo" format
New commit supports the above import format, however it does not fix function calls elsewhere in the source. Perhaps there should be an error or simply alert the user through stdout().
2015-02-11 14:29:04 -05:00
Keyan Pishdadian 61d5e6a4d4 Cleanup 2015-02-11 13:29:50 -05:00
Keyan Pishdadian 8488a3afa9 Change parsing format to use AST via RedBaron
Moved away from using manual parsing. Source is parsed using RedBaron to make the FST. Some import formats not yet implemented, and still some bugs to work out. However, the current script works well for the two cases in the file comments.
2015-02-11 13:07:24 -05:00
Keyan Pishdadian 0b2556f3ec Add lib2to3 fixer base code
Switching to using RedBaron instead of lib2to3, committing to save lib2to3 code in case using Baron is not successful.
2015-02-10 11:23:16 -05:00
Keyan Pishdadian 9d64ff420f Early commit for issue #1135
Add support migrating single imports from the flask.ext style to flask_
2015-02-06 14:38:33 -05:00
Parkayun 33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Markus Unterwaditzer 97dc687793 Merge pull request #619 from QuentinRoy/master
Fix missing argument in find_module of flaskext_compat.py
2014-10-07 19:01:17 +02:00
Markus Unterwaditzer 8d97d71430 Metadata change 2014-09-11 22:09:51 +02:00
cgar 013d8ad3d9 minor spelling fixes 2014-09-09 20:12:38 -04:00
Armin Ronacher 817b72d484 Removed deprecated module functionality 2014-08-27 01:12:33 +02:00
Markus Unterwaditzer 54688b26a9 Fix when release date is not today
Also, some fixes for PyFlakes

Original commit by @dongweiming at
a05c403870
2014-04-05 11:39:31 +02:00
Daniel Neuhäuser 52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Thomas Waldmann e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Thomas Waldmann 40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Quentin Roy 1e39871d68 Add back path=None argument into find_module. This fixes #618 and revert #524. 2012-10-20 18:21:48 +02:00
d1ffuz0r 8d330a368a fixed issue #524 2012-08-29 22:26:39 +04:00
Alex Vykalyuk 444698d42b Changed docstring according to docs. 2012-05-14 23:39:27 +03:00
Florent Xicluna a2eb5efcd8 few typos 2012-04-12 19:14:52 +03:00
Armin Ronacher 95c4dcb4d5 Refactored flask.ext process to not swallow exceptions on weird Pythons. 2011-09-27 13:33:23 +02:00
Armin Ronacher 9691b7f0bf Deal with partially setup packages in the redirect hook. 2011-09-21 21:34:47 +02:00
Armin Ronacher 9a70e62b8d No longer swallow important import errors.
This implements a simple but elegant method to find out if an import
error can be swallowed to try the next module or if the import error is
important and must be reraised.
2011-09-21 03:47:36 +02:00
Armin Ronacher 7997bae5bb Explicitly activate compat module 2011-09-19 21:00:28 +02:00
Armin Ronacher e94416704d Added the flaskext_compat module to support flask.ext in 0.7 and earlier. 2011-09-18 15:03:35 +02:00
Armin Ronacher 4cb6eea8f1 Split up testsuite and moved it to flask.testsuite. This fixes #246 2011-08-26 11:21:26 +01:00
Armin Ronacher 505cd663cd Hopefully fixed release script date parsing thingy. This fixes #299 2011-08-08 01:26:39 +02:00
Armin Ronacher 7e1ebae3a2 Another fix for the script
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-06-29 18:37:13 +02:00
Armin Ronacher 21d4a054e3 Fixed a bug in the release script
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-06-29 18:35:16 +02:00
Armin Ronacher 5afeac0c19 Fixed release script :( 2011-06-28 16:06:51 +02:00
Armin Ronacher 85efa3f895 Updated upgrade script to no longer change url_for that don't need to be changed 2011-06-27 01:04:18 +02:00
Armin Ronacher bffe97bb50 Added version bumping 2011-06-27 00:34:15 +02:00
Armin Ronacher 3d146548c7 Added release script 2011-06-27 00:31:24 +02:00
Armin Ronacher 0fcbe0a478 render_template calls no longer need changing for blueprints. They need new paths though :( 2011-06-17 03:42:11 +02:00
Armin Ronacher bfd67764fb Started documentation for blueprints 2011-06-07 15:32:44 +02:00
Armin Ronacher b4ffa4d9ac Allow name to be specified as the first parameter but with an explict name. 2011-06-06 10:10:10 +02:00
Armin Ronacher 99bb902cc3 Error handler deprecation 2011-06-05 16:21:31 +02:00
Armin Ronacher 6094c8536b Usage for the script 2011-06-05 16:16:13 +02:00
Armin Ronacher 9770054dee Started documenting the upgrade script 2011-06-05 16:11:17 +02:00
Armin Ronacher aa863efd92 Don't scan the whole file contents for template detection 2011-06-05 16:00:19 +02:00
Armin Ronacher 17d1ade6b9 Alternative names for app 2011-06-05 14:37:57 +02:00
Armin Ronacher 10104e98cf app.modules -> app.blueprints 2011-06-05 14:37:33 +02:00
Armin Ronacher cbfacd8962 Added disclaimer 2011-06-05 14:32:33 +02:00
Armin Ronacher 670d2bcf7a Added test project I use for testing 2011-06-05 14:31:33 +02:00
Armin Ronacher 6d072f00ad Better control over template rendering calls 2011-06-05 14:31:17 +02:00