Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Recipient Lists resource lib #48

Merged
merged 6 commits into from
Sep 1, 2015
Merged

Added Recipient Lists resource lib #48

merged 6 commits into from
Sep 1, 2015

Conversation

aydrian
Copy link
Contributor

@aydrian aydrian commented Aug 27, 2015

Closes #12

Take a look and see if we want to abstract it any further. I left passing the recipients objects as is.

@richleland
Copy link
Contributor

Running make docs throws some errors:

make docs-open                                                                                                        2015-08-28 09:29
. venv/bin/activate; cd docs && make html
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.3.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 2 added, 3 changed, 2 removed
reading sources... [100%] resources/recipient_lists
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/api/recipient_lists.rst:4: WARNING: Title underline too short.

:mod:`sparkpost.recipient_lists`
=============================
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/api/transmissions.rst:6: WARNING: autodoc: failed to import class u'Transmission' from module u'sparkpost.transmission'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/venv/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
ImportError: No module named transmission
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/resources/recipient_lists.rst:2: WARNING: Title underline too short.

Recipient Lists
=============
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/resources/recipient_lists.rst:41: WARNING: Title underline too short.

Retrieve a recipient list
-----------------------
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/resources/recipient_lists.rst:53: WARNING: Title underline too short.

List all recipient lists
----------------------
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/resources/recipient_lists.rst:53: WARNING: Title underline too short.

List all recipient lists
----------------------
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/resources/recipient_lists.rst:81: ERROR: Unknown target name: "sparkpost recipient list api reference".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] resources/recipient_lists
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/sparkpost/recipient_lists.py:docstring of sparkpost.recipient_lists.RecipientLists.create:None: WARNING: more than one target found for cross-reference u'list': sparkpost.recipient_lists.RecipientLists.list, sparkpost.templates.Templates.list
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/sparkpost/recipient_lists.py:docstring of sparkpost.recipient_lists.RecipientLists.update:None: WARNING: more than one target found for cross-reference u'list': sparkpost.recipient_lists.RecipientLists.list, sparkpost.templates.Templates.list
generating indices... genindex py-modindex
writing additional pages... search
copying static files... WARNING: html_static_path entry u'/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/_static' does not exist
done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 10 warnings.

Build finished. The HTML pages are in _build/html.
. venv/bin/activate; open docs/_build/html/index.html

Additional documentation
------------------------

See the `SparkPost Recipient List API Reference`_.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link is broken in the HTML output by make docs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's Recipient List vs. Recipient Lists

@richleland
Copy link
Contributor

Looks like just docs issues - other than that good to go.

@richleland
Copy link
Contributor

I see the following errors:

make docs-open                                                                                                        2015-08-28 15:24
. venv/bin/activate; cd docs && make html
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.3.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 2 source files that are out of date
updating environment: 0 added, 3 changed, 0 removed
reading sources... [100%] resources/recipient_lists
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/api/transmissions.rst:6: WARNING: autodoc: failed to import class u'Transmission' from module u'sparkpost.transmission'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/venv/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
ImportError: No module named transmission
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] resources/recipient_lists
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/sparkpost/recipient_lists.py:docstring of sparkpost.recipient_lists.RecipientLists.create:None: WARNING: more than one target found for cross-reference u'list': sparkpost.recipient_lists.RecipientLists.list, sparkpost.templates.Templates.list
/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/sparkpost/recipient_lists.py:docstring of sparkpost.recipient_lists.RecipientLists.update:None: WARNING: more than one target found for cross-reference u'list': sparkpost.recipient_lists.RecipientLists.list, sparkpost.templates.Templates.list
generating indices... genindex py-modindex
writing additional pages... search
copying static files... WARNING: html_static_path entry u'/Users/rleland/src/oss/reviews/python-sparkpost-aydrian/docs/_static' does not exist
done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 4 warnings.

Build finished. The HTML pages are in _build/html.
. venv/bin/activate; open docs/_build/html/index.html

Looks like some references to the old transmission class exist.

@aydrian
Copy link
Contributor Author

aydrian commented Aug 31, 2015

All doc warnings are resolved with the exception of the list method issues. Not sure how to resolve.

richleland added a commit that referenced this pull request Sep 1, 2015
Added Recipient Lists resource lib
@richleland richleland merged commit 39b4581 into SparkPost:master Sep 1, 2015
@aydrian aydrian deleted the ISSUE-12 branch September 1, 2015 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants