fix typos

This commit is contained in:
j 2010-12-05 18:51:40 +01:00
parent 6d3f1b9c40
commit bf995d6edc

View file

@ -593,9 +593,9 @@ class Item(models.Model):
Facet.objects.filter(item=self, key='year').delete() Facet.objects.filter(item=self, key='year').delete()
def path(self, name=''): def path(self, name=''):
h = self.itemId
return os.path.join('items', h[:2], h[2:4], h[4:6], h[6:]) return os.path.join('items', h[:2], h[2:4], h[4:6], h[6:])
''' '''
Video related functions Video related functions
''' '''
@ -877,7 +877,7 @@ class Stream(models.Model):
# return self.video # return self.video
def path(self): def path(self):
return self.item.(self.profile) return self.item.path(self.profile)
def extract_derivatives(self): def extract_derivatives(self):
if settings.VIDEO_H264: if settings.VIDEO_H264: