From: <pa...@us...> - 2008-02-26 16:14:35
|
Revision: 17485 http://gallery.svn.sourceforge.net/gallery/?rev=17485&view=rev Author: paour Date: 2008-02-26 08:13:52 -0800 (Tue, 26 Feb 2008) Log Message: ----------- Additional protocol support (extrafields in fetch-album-properties). WebStart syntaxt fix. Review #555. Modified Paths: -------------- trunk/gallery2/modules/remote/GalleryRemote.inc trunk/gallery2/modules/remote/GalleryRemoteWebStart.inc trunk/gallery2/modules/remote/classes/GalleryRemoteConstants.class trunk/gallery2/modules/remote/module.inc trunk/gallery2/modules/remote/test/phpunit/GalleryRemoteControllerTest.class Modified: trunk/gallery2/modules/remote/GalleryRemote.inc =================================================================== --- trunk/gallery2/modules/remote/GalleryRemote.inc 2008-02-26 00:50:44 UTC (rev 17484) +++ trunk/gallery2/modules/remote/GalleryRemote.inc 2008-02-26 16:13:52 UTC (rev 17485) @@ -1035,9 +1035,10 @@ $response->setProperty('auto_resize', $biggestDerivative); $response->setProperty('max_size', $maxSize); + $response->setProperty('extrafields', "Summary,Description"); $response->setProperty('status', $grStatusCodes['SUCCESS']); - $response->setProperty('status_text', 'Fetch-album-images successful.'); + $response->setProperty('status_text', 'Album-properties successful.'); return null; } Modified: trunk/gallery2/modules/remote/GalleryRemoteWebStart.inc =================================================================== --- trunk/gallery2/modules/remote/GalleryRemoteWebStart.inc 2008-02-26 00:50:44 UTC (rev 17484) +++ trunk/gallery2/modules/remote/GalleryRemoteWebStart.inc 2008-02-26 16:13:52 UTC (rev 17485) @@ -82,8 +82,7 @@ <description>A Java application you can use to upload pictures to your Gallery</description> <icon href="images/rar_icon_32.gif"/> <icon kind="splash" href="images/rar_about_gr1.png"/> - <offline-allowed/> - <shortcut online="false"> + <shortcut online="true"> <desktop/> <menu submenu="Gallery Remote"/> </shortcut> @@ -104,6 +103,7 @@ <argument>-username</argument> <argument><?php echo $username; ?></argument> <?php } ?> + </application-desc> </jnlp> <?php return null; Modified: trunk/gallery2/modules/remote/classes/GalleryRemoteConstants.class =================================================================== --- trunk/gallery2/modules/remote/classes/GalleryRemoteConstants.class 2008-02-26 00:50:44 UTC (rev 17484) +++ trunk/gallery2/modules/remote/classes/GalleryRemoteConstants.class 2008-02-26 16:13:52 UTC (rev 17485) @@ -38,7 +38,7 @@ if (empty($grVersionCodes)) { $grVersionCodes['MAJ'] = 2; - $grVersionCodes['MIN'] = 12; + $grVersionCodes['MIN'] = 13; } return $grVersionCodes; Modified: trunk/gallery2/modules/remote/module.inc =================================================================== --- trunk/gallery2/modules/remote/module.inc 2008-02-26 00:50:44 UTC (rev 17484) +++ trunk/gallery2/modules/remote/module.inc 2008-02-26 16:13:52 UTC (rev 17485) @@ -30,7 +30,7 @@ $this->setId('remote'); $this->setName($gallery->i18n('Remote')); $this->setDescription($gallery->i18n('Implementation for the remote control protocol')); - $this->setVersion('1.0.14'); + $this->setVersion('1.0.15'); $this->_templateVersion = 1; $this->setGroup('interfaces', $gallery->i18n('Remote Interfaces')); $this->setCallbacks('getSiteAdminViews'); Modified: trunk/gallery2/modules/remote/test/phpunit/GalleryRemoteControllerTest.class =================================================================== --- trunk/gallery2/modules/remote/test/phpunit/GalleryRemoteControllerTest.class 2008-02-26 00:50:44 UTC (rev 17484) +++ trunk/gallery2/modules/remote/test/phpunit/GalleryRemoteControllerTest.class 2008-02-26 16:13:52 UTC (rev 17485) @@ -862,6 +862,7 @@ $this->assertEquals($this->_code['SUCCESS'], (int)$response->getProperty('status')); $this->assertEquals('640', $response->getProperty('auto_resize')); + $this->assertEquals('Summary,Description', $response->getProperty('extrafields')); $this->assert($response->hasProperty('status_text')); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |