Remote protocol: How to get parent of an image?

zokieboyo

Joined: 2008-08-28
Posts: 9
Posted: Thu, 2008-09-18 18:24

I can Fetch-Album-Images and this gives me the name (Id) of each image. I can Fetch_Albums (and -Prune) and this gives me the names (Ids) and parent's Names (Ids), all the way up to the Gallery (0 Id).

But nowhere, can I figure out where I can link these two results. I need to find the parents of my images.

Fetch Albums returns this:
[snip]
album.name.1=327
album.title.1=Beating heart
album.summary.1=
album.parent.1=326
album.info.extrafields.1=Summary,Description

Fetch Album Images returns this:
[snip]
#__GR2PROTO__
album.caption=I love you
image.name.1=335
image.raw_width.1=4176
image.raw_height.1=3368
image.raw_filesize.1=792143
image.resizedName.1=337
image.resized_width.1=930
image.resized_height.1=750
image.thumbName.1=336
image.thumb_width.1=310
image.thumb_height.1=250
image.forceExtension.1=jpg
image.caption.1=I love you\!
image.title.1=i-love-you_all_gif_big.jpg
image.hidden.1=no

But there's no parent for my images in the above results. I scoured the protocol, searched the lists. I must be missing something?

TIA

System Information
Gallery version 2.2.5
PHP version 5.2.6 cgi-fcgi
Webserver Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e mod_fastcgi/2.4.2 Phusion_Passenger/2.0.3 DAV/2 SVN/1.4.2
Database mysqli 5.0.67-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux olive 2.6.24.2-grsec-p4-peon-1.1.2-grsec #1 SMP Wed Feb 20 15:30:29 PST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2008-09-18 18:49

Fetch Album Images returns only the images in the album you specified, so you already know which album is the parent.

Or did I misunderstand your question?

--
Gallery Remote developer

 
zokieboyo

Joined: 2008-08-28
Posts: 9
Posted: Thu, 2008-09-18 19:25

Doh!
Sometimes... I bang my head on the desk.
Thank you for the insanity check :-)