Commit Graph

7 Commits (46890a95b98b9f9d1307a0ac4034b5e851f9b46d)

Author SHA1 Message Date
Manuel Kaufmann 745dc7483c Fix some linting 2018-01-25 20:43:54 -05:00
Manuel Kaufmann 4d10f2e287 Fix D213 using docformatter
prospector \
  --profile-path=/home/humitos/rtfd/code/readthedocs.org \
  --profile=prospector --die-on-tool-error \
  | \
  grep -e "^[a-z] \
  > \
  list-files.txt

for x in `cat list-files.txt`; do \
  docformatter \
    --wrap-summaries=80 \
    --wrap-descriptions=80 \
    --pre-summary-newline \
    --no-blank \
    --in-place readthedocs/$x\
; done
2017-12-15 20:18:06 -05:00
Hank Gay f201d150dd Make a pass w/ python-modernize. 2017-05-30 17:55:56 -04:00
Daniel Pope a2cf44b43b Fix lint issues for notifications app (#2881) 2017-05-23 10:54:00 -07:00
Anthony d6aa24bff7 Alter usage of message extends (#2567)
* Alter usage of message extends

Instead of using the messages.add method directly, add message for the message
notification backend using the storage adapter directly. This also removes the
limitation on the storage backend that requires a request.user is authenticated,
as we are likely going to be mostly adding messages through celery or other
request-less mechanisms.

* Fix tests

* Make sure we can't add messages for anonymous users and fix tests
2017-01-04 17:32:58 -08:00
Anthony 402c0e3944 Fix signup issues and brand allauth emails (#2448)
* Fix signup issues and brand allauth emails

This fixes a bug with the notification system on logged out users and overrides
the allauth email templates. The base emails are very generic, aren't themed like
the rest of our emails, and had very generic copy.

* Lint fix
2016-10-10 15:42:00 -07:00
Anthony 285bbf13f6 Integrate on-site messaging that is persistent, combine message transports (#2406)
* WIP for integrating persistent messaging for users

Combines notifications so that email/on site messaging will all be maintained in
the same place, and can extend from each other using normal template semantics.

* Add email support, clean up implementation

* Add reqs

* Drop unnecessary string conversion

* Change admin email form to look at templates, not ask for template source

* Add docs, tests, views for processing redirects

* Do the thing I meant to do

* Drop views, just use javascript instead

This adds javascript that intercepts link clicks in notifications,
hits the dismiss url defined on the dom object, and then redirects 
to the correct url of the original link.

* Move classes around and rename module

* Drop unused notification for testing

* Clean up usage, drop test uses of the views/notifications

* Add example usage that will be used for notification on resource usage

* Fix mock module path

* Add more docs around implementation
2016-10-01 10:19:51 -07:00