summaryrefslogtreecommitdiffstats
path: root/feincms/content/video/models.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-07-04 19:26:51 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-07-04 19:26:51 +0100
commitebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a (patch)
tree746b52ff3c6b0eba445160c87be0275fd0d7acba /feincms/content/video/models.py
parent9d90506e1cadc17edc908dea4f68b6137ff96b9f (diff)
downloadtroggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.tar.gz
troggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.tar.bz2
troggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.zip
[svn] Remove old subcave model, along with mptt and feincms. Also move OtherCaveNames admin representation to an inline in Cave.
Diffstat (limited to 'feincms/content/video/models.py')
-rw-r--r--feincms/content/video/models.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/feincms/content/video/models.py b/feincms/content/video/models.py
deleted file mode 100644
index f198235..0000000
--- a/feincms/content/video/models.py
+++ /dev/null
@@ -1,26 +0,0 @@
-from django.db import models
-from django.utils.safestring import mark_safe
-from django.utils.translation import ugettext_lazy as _
-import re
-
-class VideoContent(models.Model):
- video = models.URLField(_('video link'),help_text=_('This should be a link to a youtube video, i.e.: http://www.youtube.com/watch?v=zmj1rpzDRZ0'))
-
- class Meta:
- abstract = True
- verbose_name = _('video')
- verbose_name_plural = _('videos')
-
- def render(self, **kwargs):
- vid = re.search('(?<==)\w+',self.video)
- ret = """
- <div class="videocontent">
- <object width="400" height="330">
- <param name="movie" value="http://www.youtube.com/v/%s&hl=de&fs=1"></param>
- <param name="allowFullScreen" value="true"></param>
- <param name="allowscriptaccess" value="always"></param>
- <embed src="http://www.youtube.com/v/%s&hl=de&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="330"></embed>
- </object>
- </div>
- """ % (vid.group(0), vid.group(0))
- return ret