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

get_*_size() doesn't return an int 2-tuple #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. get a Photo instance p
2. call p.get_display_size()

What is the expected output? What do you see instead?
Should return e.g. (200, 200).
Returns <bound method PhotoSize.size of <PhotoSize: display>>

What version of the product are you using? On what operating system?
2.0 branch revision 185 on Ubuntu 7.10 Gutsy.

Please provide any additional information below.
Probably just parentheses missing from the _get_SIZE_size() method's call
to photosize.size().

Original issue reported on code.google.com by akaih...@gmail.com on 29 Mar 2008 at 5:42

GoogleCodeExporter commented 9 years ago
_get_SIZE_size has been renamed _get_SIZE_photosize and now returns the 
photosize
object. _get_SIZE_size now returns a tuple with the actual file dimensions, not 
the
photosize size.

Original comment by justin.d...@gmail.com on 31 Mar 2008 at 8:22