google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

'Photo' object has no attribute 'get_image_filename' #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
photologue-2.0-preview-3.zip on django-trunk

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from photologue.models import *
>>> p = Photo.objects.all()[0]
>>> p.get_display_url()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "c:\python25\Lib\site-packages\django\utils\functional.py", line 55,
in _
curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File "C:\tmp\mysite\photologue\models.py", line 289, in _get_SIZE_url
    if not self.size_exists(photosize):
  File "C:\tmp\mysite\photologue\models.py", line 315, in size_exists
    if os.path.isfile(func()):
  File "c:\python25\Lib\site-packages\django\utils\functional.py", line 55,
in _
curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File "C:\tmp\mysite\photologue\models.py", line 298, in _get_SIZE_filename
    return os.path.join(self.cache_path(),
  File "C:\tmp\mysite\photologue\models.py", line 261, in cache_path
    return os.path.join(os.path.dirname(self.get_image_filename()), "cache")
AttributeError: 'Photo' object has no attribute 'get_image_filename'
>>>

Original issue reported on code.google.com by slyzhn...@gmail.com on 14 Aug 2008 at 10:38

GoogleCodeExporter commented 9 years ago
Please checkout the latest Photologue trunk which works with the new file 
storage
interface. Django made this backwards incompatible change right after preview 3 
was
released. Thanks for reminding me I need to depreciate that file. :)

- Justin

Original comment by justin.d...@gmail.com on 14 Aug 2008 at 12:24