From 49eb2c1e93357890309b3d55b4c51785ec86f496 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 7 Oct 2011 10:50:51 +0200 Subject: [PATCH] rename to edit --- pandora/{timeline => edit}/__init__.py | 0 pandora/{timeline => edit}/models.py | 9 +++++---- pandora/{timeline => edit}/tests.py | 0 pandora/{timeline => edit}/views.py | 0 4 files changed, 5 insertions(+), 4 deletions(-) rename pandora/{timeline => edit}/__init__.py (100%) rename pandora/{timeline => edit}/models.py (89%) rename pandora/{timeline => edit}/tests.py (100%) rename pandora/{timeline => edit}/views.py (100%) diff --git a/pandora/timeline/__init__.py b/pandora/edit/__init__.py similarity index 100% rename from pandora/timeline/__init__.py rename to pandora/edit/__init__.py diff --git a/pandora/timeline/models.py b/pandora/edit/models.py similarity index 89% rename from pandora/timeline/models.py rename to pandora/edit/models.py index 4f5af8ca..3aba2cdb 100644 --- a/pandora/timeline/models.py +++ b/pandora/edit/models.py @@ -6,7 +6,7 @@ from django.db import models from django.contrib.auth.models import User -class Timeline(models.Model): +class Edit(models.Model): class Meta: unique_together = ("user", "name") @@ -40,12 +40,13 @@ class Timeline(models.Model): class Clip(models.Model): created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) - timeline = models.ForeignKey(Timeline) + + edit = models.ForeignKey(Edit) position = models.IntegerField(default=0) #clip position - timeline_position = models.FloatField(default=0) #time on timeline + edit_position = models.FloatField(default=0) #Position in seconds on edit item = models.ForeignKey("item.Item") start = models.FloatField(default=0) - end = models.FloatField(default=-1) + end = models.FloatField(default=0) def __unicode__(self): return u'%s/%0.3f-%0.3f' % (self.item.itemId, self.start, self.end) diff --git a/pandora/timeline/tests.py b/pandora/edit/tests.py similarity index 100% rename from pandora/timeline/tests.py rename to pandora/edit/tests.py diff --git a/pandora/timeline/views.py b/pandora/edit/views.py similarity index 100% rename from pandora/timeline/views.py rename to pandora/edit/views.py