Changeset 1578
- Timestamp:
- 10/01/08 02:28:06 (2 months ago)
- Files:
-
- satchmo/trunk/satchmo/payment/views (modified) (1 prop)
- satchmo/trunk/satchmo/product/models.py (modified) (3 diffs)
- satchmo/trunk/satchmo/shop/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
satchmo/trunk/satchmo/payment/views
- Property svn:ignore set to
*.pyc
- Property svn:ignore set to
satchmo/trunk/satchmo/product/models.py
r1567 r1578 11 11 import sha 12 12 import signals 13 import os.path 13 14 14 15 from django.conf import settings … … 1114 1115 raw = config_value_safe('PRODUCT', 'PROTECTED_DIR', 'images/') 1115 1116 updir = normalize_dir(raw) 1116 return updir1117 return os.path.join(updir, os.path.basename(filename)) 1117 1118 1118 1119 class DownloadableProduct(models.Model): … … 1121 1122 """ 1122 1123 product = models.OneToOneField(Product, verbose_name=_("Product"), primary_key=True) 1123 file = FileField(_("File"), upload_to=_protected_dir) ,1124 file = FileField(_("File"), upload_to=_protected_dir) 1124 1125 num_allowed_downloads = models.IntegerField(_("Num allowed downloads"), help_text=_("Number of times link can be accessed.")) 1125 1126 expire_minutes = models.IntegerField(_("Expire minutes"), help_text=_("Number of minutes the link should remain active.")) satchmo/trunk/satchmo/shop/models.py
r1571 r1578 18 18 from django.db import models 19 19 from django.utils.encoding import force_unicode 20 from django.core import urlresolvers 20 21 from django.utils.safestring import mark_safe 21 22 from django.utils.translation import ugettext, ugettext_lazy as _
