Commit Graph

369 Commits

Author SHA1 Message Date
Michael Lazar 9c6d3ab542 Generalized exception handling to handle strange errors like captchas. 2015-12-03 18:15:53 -08:00
Michael Lazar ea05235ddc Fixed crash when opening links from the command line. 2015-12-03 16:26:55 -08:00
Michael Lazar 5a0932f6d3 PEP8 fixes. 2015-12-03 00:20:20 -08:00
Michael Lazar a7b789bfd9 Squashed commit of the following:
Updated the supported python versions list.
    Fixed regression in displaying xposts. #173.
    Fixing a few style things.
    Added a more robust test for the tornado handler.
    Trying without pytest-cov
    Updated travis for coverage.
    Remove python 3.2 support because no unicode literals, following what praw supports.
    "Side effect is not iterable."
    Added requirements for travis.
    Renamed travis file correctly.
    Adding test configurations, got tox working.
    Adding vcr cassettes to the repo.
    Renamed requirements files.
    Split up tests and cleaned up test names.
    Tests done, still one failure.
    Treat cassettes as binary to prevent bad merging.
    Fixed a few broken tests.
    Added a timeout to notifications.
    Prepping subreddit page.
    Finished submission page tests.
    Working on submission tests.
    Fixed vcr matching on urls with params, started submission tests.
    Log cleanup.
    Still trying to fix a broken test.
    -Fixed a few pytest bugs and tweaked logging.
    Still working on subscription tests.
    Finished page tests, on to subscription page.
    Finished content tests and starting page tests.
    Added the test refresh-token file to gitignore.
    Moved functional test file out of the repository.
    Continuing work on subreddit content tests.
    Tests now match module names, cassettes are split into individual tests for faster loading.
    Linter fixes.
    Cleanup.
    Added support for nested loaders.
    Added pytest options, starting subreddit content tests.
    Back on track with loader, continuing content tests.
    Finishing submission content tests and discovered snag with loader exception handling.
    VCR up and running, continuing to implement content tests.
    Playing around with vcr.py
    Moved helper functions into terminal and new objects.py
    Fixed a few broken tests.
    Working on navigator tests.
    Reorganizing some things.
    Mocked webbrowser._tryorder for terminal test.
    Completed oauth tests.
    Progress on the oauth tests.
    Working on adding fake tornado request.
    Starting on OAuth tool tests.
    Finished curses helpers tests.
    Still working on curses helpers tests.
    Almost finished with tests on curses helpers.
    Adding tests and working on mocking stdscr.
    Starting to add tests for curses functions.
    Merge branch 'future_work' of https://github.com/michael-lazar/rtv into future_work
    Refactoring controller, still in progress.
    Renamed auth handler.
    Rename CursesHelper to CursesBase.
    Added temporary file with a possible template for func testing.
    Mixup between basename and dirname.
    Merge branch 'future_work' of https://github.com/michael-lazar/rtv into future_work
    py3 compatability for mock.
    Beginning to refactor the curses session.
    Started adding tests, improved unicode handling in the config.
    Cleanup, fixed a few typos.
    Major refactor, almost done!.
    Started a config class.
    Merge branch 'master' into future_work
    The editor now handles unicode characters in all situations.
    Fixed a few typos from previous commits.
    __main__.py formatting.
    Cleaned up history logic and moved to the config file.
2015-12-02 22:37:50 -08:00
Marc Antonio Queiroz 466af862b3 After update to version 1.6.1 a Unicode error start to happen.
Any SUBREDDIT with special characters like u'\xe3' are trigging an error at line 141, data['flair'] = '[{}]'.format(data['flair'].strip()) .
The solution was to add u'[{}]' to the string.
The original error message: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 7: ordinal not in range(128) .
2015-10-26 14:48:19 -02:00
Michael Lazar 1ae97262de Upping version. 2015-10-20 01:42:37 -07:00
Michael Lazar 71a39980b0 Merge pull request #162 from zambonin/master
Force quit and subscription page fixes. #156 #161 #163
2015-10-16 17:58:38 -07:00
Gustavo Zambonin 63ef032a4e page.py: inbox won't be checked if not logged in. #163 2015-10-16 21:50:40 -03:00
Gustavo Zambonin 998748e1f1 subscription.py: do not sort by hot/new/etc. (#161) 2015-10-16 15:47:36 -03:00
Gustavo Zambonin 0cfa7bd2a8 page.py: quit without prompt restored
docs.py: reflect change on docs
2015-10-16 15:46:15 -03:00
Michael Lazar a37884ca7a Merge branch 'master' of https://github.com/michael-lazar/rtv 2015-10-16 11:40:43 -07:00
Michael Lazar 972fc4ad9a /r/me now checks for an oauth session instead of an old-style login. #160. 2015-10-16 11:39:53 -07:00
Gustavo Zambonin 91c384d36b code width is now consistent
unused imports removed
2015-10-15 16:58:17 -03:00
Michael Lazar 7786c03d9d Updated tornado to point to the correct template path. 2015-10-15 02:14:22 -07:00
Michael Lazar 77a6c71119 Moved templates inside of the package to enable setuptools distribution via package_data. 2015-10-15 01:44:33 -07:00
Michael Lazar 98551c2f35 upping version 2015-10-14 23:48:10 -07:00
Michael Lazar c4bd8aa3c3 Minor style changes. 2015-10-14 23:37:16 -07:00
Michael Lazar 497c7741b3 Merge branch 'master' of https://github.com/zambonin/rtv into zambonin-master 2015-10-14 23:27:55 -07:00
Michael Lazar 2980097d7c Cleaned up exception logging. 2015-10-14 23:25:50 -07:00
Michael Lazar d52f574746 Post count is now displayed before each submission's title. #154. 2015-10-14 18:06:30 -07:00
Gustavo Zambonin b7f3f8db4b content.py: more standardization 2015-10-14 19:32:17 -03:00
Gustavo Zambonin c2065e00b5 content.py: correct subreddit on xpost info 2015-10-14 19:12:02 -03:00
Gustavo Zambonin 21d5c7acca content.py: empty flair case fixed
x-post and self post are now consistent
2015-10-14 18:54:21 -03:00
Gustavo Zambonin 2358eed46e page.py: exit prompt added
logout prompt now works as intended
2015-10-14 00:39:47 -03:00
Gustavo Zambonin 11a322a9c3 content.py: name of the subreddit shown on selfpost 'url'
all flairs now have brackets
2015-10-14 00:37:51 -03:00
John ShaggyTwoDope Jenkins e2fdb22f27 typos 2015-10-13 13:27:17 -07:00
Michael Lazar 1e3abc17d8 Fixed typo in AGENT string formatting. 2015-09-29 00:43:34 -07:00
Michael Lazar ba71453b7c Finished template for manpage, added --version flag. 2015-09-27 18:19:00 -07:00
Michael Lazar dfc5ddef1a Intermediate commit. 2015-09-27 16:23:34 -07:00
Michael Lazar 2e3e99b717 Removed unused import. 2015-09-20 23:14:49 -07:00
Michael Lazar 4287ec1749 Added missing function to __all__. 2015-09-20 23:08:46 -07:00
Michael Lazar 8b80e4e622 Fixed config file parsing. 2015-09-20 23:05:20 -07:00
Michael Lazar f0411fb1d3 Spelling. 2015-09-20 23:01:59 -07:00
Michael Lazar 44c4eeca62 Updated README, added "persistant" option to config and command line. 2015-09-20 22:56:24 -07:00
Michael Lazar 6cc744bf91 Tweaking a few things oauth things. 2015-09-20 19:54:41 -07:00
Théo Piboubès 4bb44eb6de Merge branch 'oauth2' 2015-09-06 02:45:55 +02:00
Théo Piboubès a84ac2f61e Stop IOLoop when callback page reached with GUI browser 2015-09-05 16:36:12 +02:00
Théo Piboubès e90dcc6e5c Start HTTP server only once 2015-09-05 16:29:31 +02:00
Théo Piboubès 8e6758a389 Open terminal web browser asynchronously 2015-09-05 16:25:34 +02:00
Théo Piboubès 2951cc9f30 Merge branch 'oauth2' 2015-09-04 20:28:01 +02:00
Théo Piboubès 67fc9c569c Merge branch 'master' of git://github.com/michael-lazar/rtv 2015-09-04 20:25:46 +02:00
Théo Piboubès 0134e157d0 Listen on port only when web server is needed 2015-09-04 20:09:58 +02:00
Théo Piboubès 1f0ca4d592 Update README.rst and docs 2015-09-04 18:39:22 +02:00
Théo Piboubès b643ce9559 Complete logout 2015-09-04 18:23:10 +02:00
Théo Piboubès eaed514208 OAuth flow terminal web browser support 2015-09-04 18:22:01 +02:00
Théo Piboubès 6933b35240 Avoid infinite loop if server crashes 2015-09-04 18:18:31 +02:00
Théo Piboubès f6546aaf75 Let PRAW manage authentication 2015-09-01 22:32:56 +02:00
Théo Piboubès 314d2dbf26 OAuth config file improvements 2015-08-31 20:37:02 +02:00
Théo Piboubès d24c81bce6 External OAuth configuration file 2015-08-28 21:13:57 +02:00
Théo Piboubès d2822ccf85 Make OAuth compatible with Python 2 2015-08-28 20:28:58 +02:00