diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 894b246..5b2d318 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -59,7 +59,7 @@ class File(models.Model): episode = models.IntegerField(default=-1) size = models.BigIntegerField(default=0) - duration = models.IntegerField(default=0) + duration = models.BigIntegerField(default=0) info = fields.DictField(default={}) diff --git a/pandora/api/forms.py b/pandora/item/forms.py similarity index 100% rename from pandora/api/forms.py rename to pandora/item/forms.py diff --git a/pandora/scripts/item_icon b/pandora/scripts/item_icon index 31e4bb9..bb881b1 100755 --- a/pandora/scripts/item_icon +++ b/pandora/scripts/item_icon @@ -1,6 +1,12 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) + +#using virtualenv's activate_this.py to reorder sys.path +activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') +execfile(activate_this, dict(__file__=activate_this)) + from __future__ import division import Image import ImageDraw diff --git a/pandora/scripts/list_icon b/pandora/scripts/list_icon index dcfa0d4..be9c337 100755 --- a/pandora/scripts/list_icon +++ b/pandora/scripts/list_icon @@ -1,6 +1,12 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) + +#using virtualenv's activate_this.py to reorder sys.path +activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') +execfile(activate_this, dict(__file__=activate_this)) + from __future__ import division import Image import ImageDraw diff --git a/pandora/scripts/oxdb_poster b/pandora/scripts/oxdb_poster index f8c1f14..d067fc2 100755 --- a/pandora/scripts/oxdb_poster +++ b/pandora/scripts/oxdb_poster @@ -1,6 +1,12 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) + +#using virtualenv's activate_this.py to reorder sys.path +activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') +execfile(activate_this, dict(__file__=activate_this)) + from __future__ import division import Image import ImageDraw diff --git a/pandora/scripts/padma_poster b/pandora/scripts/padma_poster index 06c3a95..eff4399 100755 --- a/pandora/scripts/padma_poster +++ b/pandora/scripts/padma_poster @@ -1,6 +1,12 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) + +#using virtualenv's activate_this.py to reorder sys.path +activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') +execfile(activate_this, dict(__file__=activate_this)) + from __future__ import division import Image import ImageDraw diff --git a/requirements.txt b/requirements.txt index 39b4209..2103745 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,8 +3,7 @@ South -e bzr+http://code.0x2620.org/python-ox/#egg=python-ox -e bzr+http://code.0x2620.org/oxtimeline/#egg=oxtimeline simplejson -#-e hg+https://django-ajax-filtered-fields.googlecode.com/hg/#egg=django-ajax-filtered-fields -#rabbitmq interface +-e hg+https://django-ajax-filtered-fields.googlecode.com/hg/#egg=django-ajax-filtered-fields celery>2.1.1 django-celery>2.1.1 django_extensions