<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: GUP 0.2.3 &quot;Not My Fault&quot;</title>
	<atom:link href="http://juliobiason.net/2007/05/16/gup-023-not-my-fault/feed/" rel="self" type="application/rss+xml" />
	<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/</link>
	<description>Old-school coder living in a 2.0 development world.</description>
	<lastBuildDate>Thu, 07 Jan 2010 05:25:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Julio Biason</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-2221</link>
		<dc:creator>Julio Biason</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-2221</guid>
		<description>Also, when I just upload one single picture, it&#039;s just named &quot;IMG0000?.JPG&quot;. Again, completely meaningless.</description>
		<content:encoded><![CDATA[<p>Also, when I just upload one single picture, it&#8217;s just named &#8220;IMG0000?.JPG&#8221;. Again, completely meaningless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio Biason</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-2220</link>
		<dc:creator>Julio Biason</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-2220</guid>
		<description>I was planing using the &quot;caption&quot; field reading information in the EXIF file.

IIRC, there is a way to set the description too. To do that, my plan was to use a file with files to be uploaded, their caption and description. 

I don&#039;t like the idea of using the filename as caption. Most of my files are named using timestamps (using jhead -nf%Y%m%d-%H%M%S *), which makes easier to upload pictures in correct order, but it is completely meaningless otherwise.</description>
		<content:encoded><![CDATA[<p>I was planing using the &#8220;caption&#8221; field reading information in the EXIF file.</p>
<p>IIRC, there is a way to set the description too. To do that, my plan was to use a file with files to be uploaded, their caption and description. </p>
<p>I don&#8217;t like the idea of using the filename as caption. Most of my files are named using timestamps (using jhead -nf%Y%m%d-%H%M%S *), which makes easier to upload pictures in correct order, but it is completely meaningless otherwise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irwan</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-2219</link>
		<dc:creator>Irwan</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-2219</guid>
		<description>GUP doesn&#039;t set caption to the base file name (without extension) by default. Can you change gallery.py to set caption as follows?

    def add_item(self, album, filename):
        &#039;&#039;&#039;Add an item to an album&#039;&#039;&#039;
        (status, _) = self.request(&#039;add-item&#039;, &#039;2.0&#039;, {
            &#039;g2_form[set_albumName]&#039;: album,
            &#039;g2_userfile_name&#039;: filename,
            &#039;g2_form[caption]&#039;: os.path.basename(os.path.splitext(filename)[0])
            }, 
            (&#039;g2_userfile&#039;, filename)
            )

        if status is None:
            raise ConnectionError

        if not status == 0:
            raise self._return_codes[status]


The addition there is the line:
            &#039;g2_form[caption]&#039;: os.path.basename(os.path.splitext(filename)[0])

Thanks!</description>
		<content:encoded><![CDATA[<p>GUP doesn&#8217;t set caption to the base file name (without extension) by default. Can you change gallery.py to set caption as follows?</p>
<p>    def add_item(self, album, filename):<br />
        &#8221;&#8217;Add an item to an album&#8221;&#8217;<br />
        (status, _) = self.request(&#8216;add-item&#8217;, &#8217;2.0&#8242;, {<br />
            &#8216;g2_form[set_albumName]&#8216;: album,<br />
            &#8216;g2_userfile_name&#8217;: filename,<br />
            &#8216;g2_form[caption]&#8216;: os.path.basename(os.path.splitext(filename)[0])<br />
            },<br />
            (&#8216;g2_userfile&#8217;, filename)<br />
            )</p>
<p>        if status is None:<br />
            raise ConnectionError</p>
<p>        if not status == 0:<br />
            raise self._return_codes[status]</p>
<p>The addition there is the line:<br />
            &#8216;g2_form[caption]&#8216;: os.path.basename(os.path.splitext(filename)[0])</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio Biason</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-968</link>
		<dc:creator>Julio Biason</dc:creator>
		<pubDate>Wed, 06 Feb 2008 20:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-968</guid>
		<description>@kito: Sorry, it is the first time I see something like that. Have you tried to upgrade your Gallery + Remote installation?</description>
		<content:encoded><![CDATA[<p>@kito: Sorry, it is the first time I see something like that. Have you tried to upgrade your Gallery + Remote installation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kito</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-951</link>
		<dc:creator>kito</dc:creator>
		<pubDate>Tue, 05 Feb 2008 23:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-951</guid>
		<description>Hey, 

I&#039;m trying to use your script, which is a great idea btw, to upload some photos but for some reason it&#039;s always failing.  The jpegs are being truncated at 59 bytes when they&#039;re uploaded.  The verbose output, which I can send if you want, indicates that the file was uploaded successfully.  I can create albums and see listings, so I&#039;m not sure why the file upload fails.  Just thought you could give some idea as to where I should start looking for the problem.

Thanks,
Kito</description>
		<content:encoded><![CDATA[<p>Hey, </p>
<p>I&#8217;m trying to use your script, which is a great idea btw, to upload some photos but for some reason it&#8217;s always failing.  The jpegs are being truncated at 59 bytes when they&#8217;re uploaded.  The verbose output, which I can send if you want, indicates that the file was uploaded successfully.  I can create albums and see listings, so I&#8217;m not sure why the file upload fails.  Just thought you could give some idea as to where I should start looking for the problem.</p>
<p>Thanks,<br />
Kito</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: //epe/at/blog/ &#187; Fotoblogging from mobilephone via Bluetooth to Gallery2</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-153</link>
		<dc:creator>//epe/at/blog/ &#187; Fotoblogging from mobilephone via Bluetooth to Gallery2</dc:creator>
		<pubDate>Thu, 23 Aug 2007 12:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-153</guid>
		<description>[...] First steps with GUP: [...]</description>
		<content:encoded><![CDATA[<p>[...] First steps with GUP: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://juliobiason.net/2007/05/16/gup-023-not-my-fault/comment-page-1/#comment-152</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Tue, 21 Aug 2007 09:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://juliobiason.net/?p=1484#comment-152</guid>
		<description>Hi! I&#039;d like to use your tool in some shell scripts. (Like accepting files via Bluetooth and  automatically upload them to a gallery)
I&#039;m missing some kind of a man page for it and I don&#039;t really understand python source code.
Could you write up a list of command line parameters and examples.
Also I&#039;m not sure about the format of e.g. the album id (number or album name/url).
thanks for your work on gup!
eric.</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;d like to use your tool in some shell scripts. (Like accepting files via Bluetooth and  automatically upload them to a gallery)<br />
I&#8217;m missing some kind of a man page for it and I don&#8217;t really understand python source code.<br />
Could you write up a list of command line parameters and examples.<br />
Also I&#8217;m not sure about the format of e.g. the album id (number or album name/url).<br />
thanks for your work on gup!<br />
eric.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
