For some reason when I click on a photo, it just crashes the system.
I have version 4.5.9.372.
The photo object is setup like this:
po = PhotoObject(
key = Callback(PhotoLookup, id = obj['_id']),
rating_key = obj['_id'],
title = obj['name'],
thumb = API + 'view/thumb/' + obj['_id']
)
def PhotoLookup(id):
url = API + 'view/thumb/' + id + '/940'
return Redirect(url)
Another thing I noticed is that if only 1 image is available, it’s saying 2 of 2, but there’s no other photo. I’ve added in logs and the PhotoObject is only getting instantiated one time…
EDIT: Just to update, this ‘2 or 2’ only seems to appear on the second instantiation of an ObjectContainer, in other words, within a folder.
@dmstv said:
For some reason when I click on a photo, it just crashes the system.
I have version 4.5.9.372.
The photo object is setup like this:
po = PhotoObject(
key = Callback(PhotoLookup, id = obj['_id']),
rating_key = obj['_id'],
title = obj['name'],
thumb = API + 'view/thumb/' + obj['_id']
)
def PhotoLookup(id):
url = API + 'view/thumb/' + id + '/940'
return Redirect(url)
Any ideas if I’m doing something wrong here?
Thanks
Have you tried removing the Callback, i.e. "key = API + ‘view/thumb/’ + id + ‘/940’
If that doesn’t work, try adding the photos to a PhotoAlbumObject