mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-03 11:29:28 -05:00

The `SessionOrBasicAuthMixin` and `StandardPagination` classes were living in the documents app and I needed them in the new `reminders` app, so this commit breaks them out of `documents` and puts them in the central `paperless` app instead.
10 lines
239 B
Python
10 lines
239 B
Python
class Renderable(object):
|
|
"""
|
|
A handy mixin to make it easier/cleaner to print output based on a
|
|
verbosity value.
|
|
"""
|
|
|
|
def _render(self, text, verbosity):
|
|
if self.verbosity >= verbosity:
|
|
print(text)
|