summaryrefslogtreecommitdiffstats
path: root/coffin/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'coffin/contrib')
-rw-r--r--coffin/contrib/__init__.py0
-rw-r--r--coffin/contrib/markup/__init__.py0
-rw-r--r--coffin/contrib/markup/models.py0
-rw-r--r--coffin/contrib/markup/templatetags/__init__.py0
-rw-r--r--coffin/contrib/markup/templatetags/markup.py15
-rw-r--r--coffin/contrib/syndication/__init__.py0
-rw-r--r--coffin/contrib/syndication/feeds.py36
7 files changed, 0 insertions, 51 deletions
diff --git a/coffin/contrib/__init__.py b/coffin/contrib/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/coffin/contrib/__init__.py
+++ /dev/null
diff --git a/coffin/contrib/markup/__init__.py b/coffin/contrib/markup/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/coffin/contrib/markup/__init__.py
+++ /dev/null
diff --git a/coffin/contrib/markup/models.py b/coffin/contrib/markup/models.py
deleted file mode 100644
index e69de29b..00000000
--- a/coffin/contrib/markup/models.py
+++ /dev/null
diff --git a/coffin/contrib/markup/templatetags/__init__.py b/coffin/contrib/markup/templatetags/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/coffin/contrib/markup/templatetags/__init__.py
+++ /dev/null
diff --git a/coffin/contrib/markup/templatetags/markup.py b/coffin/contrib/markup/templatetags/markup.py
deleted file mode 100644
index 0d6b92f9..00000000
--- a/coffin/contrib/markup/templatetags/markup.py
+++ /dev/null
@@ -1,15 +0,0 @@
-"""Makes the template filters from the ``django.contrib.markup`` app
-available to both the Jinja2 and Django engines.
-
-In other words, adding ``coffin.contrib.markup`` to your INSTALLED_APPS
-setting will enable the markup filters not only through Coffin, but
-also through the default Django template system.
-"""
-
-from coffin.template import Library as CoffinLibrary
-from django.contrib.markup.templatetags.markup import register
-
-
-# Convert Django's Library into a Coffin Library object, which will
-# make sure the filters are correctly ported to Jinja2.
-register = CoffinLibrary.from_django(register) \ No newline at end of file
diff --git a/coffin/contrib/syndication/__init__.py b/coffin/contrib/syndication/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/coffin/contrib/syndication/__init__.py
+++ /dev/null
diff --git a/coffin/contrib/syndication/feeds.py b/coffin/contrib/syndication/feeds.py
deleted file mode 100644
index f8f0701f..00000000
--- a/coffin/contrib/syndication/feeds.py
+++ /dev/null
@@ -1,36 +0,0 @@
-from django.contrib.syndication.feeds import * # merge modules
-
-import sys
-from django.contrib.syndication.feeds import Feed as DjangoFeed
-from coffin.template import loader as coffin_loader
-
-
-class Feed(DjangoFeed):
- """A ``Feed`` implementation that renders it's title and
- description templates using Jinja2.
-
- Unfortunately, Django's base ``Feed`` class is not very extensible
- in this respect at all. For a real solution, we'd have to essentially
- have to duplicate the whole class. So for now, we use this terrible
- non-thread safe hack.
-
- Another, somewhat crazy option would be:
- * Render the templates ourselves through Jinja2 (possible
- introduce new attributes to avoid having to rewrite the
- existing ones).
- * Make the rendered result available to Django/the superclass by
- using a custom template loader using a prefix, say
- "feed:<myproject.app.views.MyFeed>". The loader would simply
- return the Jinja-rendered template (escaped), the Django template
- mechanism would find no nodes and just pass the output through.
- Possible even worse than this though.
- """
-
- def get_feed(self, *args, **kwargs):
- parent_module = sys.modules[DjangoFeed.__module__]
- old_loader = parent_module.loader
- parent_module.loader = coffin_loader
- try:
- return super(Feed, self).get_feed(*args, **kwargs)
- finally:
- parent_module.loader = old_loader \ No newline at end of file