… subreddit actions and added MoreComments support. Minor version bump. With MoreComments comes convenience functions, comments_flat, all_comments, and all_comments_flat which converts the MoreComments objects into their appropriate comments. Note that when using all_comments(_flat) that it will throw a ClientException if there are more than 10 MoreComments objects to convert as each mMoreComment object unfortunately requires a single request to fetch. You can manually query the comments from a MoreComments object via the `comment` method of the MoreComments object.
…s of a subreddit (must be a mod) Alignment issue
…tools. This patch make the package able to be installed under system that doesn't have setuptools.
…tings. A positive side effect of this change is that the api_request_delay now operates on a per-domain basis. Thus there are different rate limits for different sites that you are connecting to. Note that the key for the last_call is the domain name, thus even though the Reddit or config object may be different, if the domain is the same, then the rate limit will apply.
Added test functionality for: * create_subreddit * get_all_comments * get_front_page * my_moderation * my_reddits
… functions to work properly.
…flair is updated. Did the same for a submission's permalink when comments are added.
…it class to group functions into extension classes.
…h dummy tests (no verification they worked) as there doesn't appear to be a nice way to get the current list of flair templates.
More specific details: * Consolodated all api objects and their ancestors in objects.py * Cleaned up imports in __init__.py * Added Config class which holds the per-instance configuration thus allowing concurrent instances at multiple sites * Removed urls.py and moved url mapping to the new Config class * Replaced " with ' in some files for consistency.
…at's somewhere other than reddit.com. See example_settings.py.
…er and pyflakes.
* updated get_content to support flair list * combined get_submission and get_submission_by_id into a single function * added flair_list function to get a list of current flair on a subreddit * refactored reddit_test.py to make all tests independent and verifiable where possible * Updated README to add flair examples.
Notable differences: * Renamed api_exceptions.py to errors.py * Refactored error_mapping code * Added set_flair function to subreddit class * Added ModTest class for testing flair setting