Work in progress: django-imagekit but for all types of media files (movies, PDFs etc.). + private media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
465 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Erik Stein <code@classlibrary.net>, 2016
class Noop(object):
def process(self, source):
result = source
return result
class Placeholder(object):
def __init__(self, label_text="placeholder"):
# The label text is intentionally not translated
self.label_text = label_text
def process(self, source):
# Ignore source
raise NotImplemented