Thread: [Flickrfs-users] small enhancement
Brought to you by:
manishrjain
From: <rdm...@bi...> - 2006-02-06 02:26:43
Attachments:
cmtime.diff
|
Well, I finally got some time to play with the code enough to figure out may way around at least parts of it. I've got my first small enhancement to contribute. The included diff uses the photo upload time as the 'ctime' and the photo last update time as the 'mtime'. That way you can sort a directory listing by time the way you'd see it on the flickr web page. I've only applied this to the public tags directory at this point, but that's the place it's most likely to be useful. What's the best way to submit contributions? --David |
From: <rdm...@bi...> - 2006-02-06 12:46:14
|
Found the fix for the exception-at-startup bug that is in the bug tracker. Change line 446 from retinfo = fapi.returntestFailure(rsp) to retinfo = fapi.returntestFailure(photos) This led me to figuring out why I wasn't seeing the contents of my set. The fix for _that_ is to change line 441 from photos = fapi.photosets_getPhotos(api_key=flickrAPIKey, photoset_id=set_id) to photos = fapi.photosets_getPhotos(api_key=flickrAPIKey, photoset_id=set_id, auth_token=token) --David |
From: Fabio S. <sp...@gm...> - 2006-02-06 16:03:45
|
Well done! Me I've fixed a bug that makes flickrfs unusable for international users. Add this line: import codecs ...after the other "imports". Then change line 393 (which will become line 394 after that insertion!) fro= m f =3D open(os.path.join(flickrfsHome, '.'+id), 'w') to f =3D codecs.open(os.path.join(flickrfsHome, '.'+id), 'w', 'latin-1') also, please insert just after line 564 (definition of the "_mkfileOrDir" function) this one: pth =3D pth.encode('latin-1') Once these changes are apported, flickrfs will not break anymore when it finds characters like these: =E0=E8=EC=F2=F9, often found in tags, names= , descriptions etc. of users of non-english languages, like me. Time for a bugfix release? :-D -- Fabio |
From: <rdm...@bi...> - 2006-02-06 16:46:19
|
On Mon, 6 Feb 2006 at 17:03, Fabio Spelta wrote: > Well done! Me I've fixed a bug that makes flickrfs unusable for > international users. Any chance we could set up CVS and get multiple people with commit privs? --David |
From: Manish R. J. <man...@gm...> - 2006-02-07 00:22:54
|
Gr8 job! I will set up a CVS now, and give you access to that. Manish On 2/7/06, rdm...@bi... <rdm...@bi...> wrote: > > On Mon, 6 Feb 2006 at 17:03, Fabio Spelta wrote: > > Well done! Me I've fixed a bug that makes flickrfs unusable for > > international users. > > Any chance we could set up CVS and get multiple people with > commit privs? > > --David > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Flickrfs-users mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flickrfs-users > -- http://tuxmann.blogspot.com "If I have seen further it is by standing on the shoulders of Giants" "Software is like sex: it's better when it's free." "An infinite number of monkeys typing into GNU emacs would never make a goo= d program." |
From: Manish R. J. <man...@gm...> - 2006-02-07 03:09:46
|
I have set up the CVS, and it shd be accessible within couple of hours for anonymous users. Please send me ur sourceforge usernames, if you wish to contribute to the code, and I will add you as developers. Regards Manish On 2/7/06, Manish Rai Jain <man...@gm...> wrote: > > Gr8 job! > I will set up a CVS now, and give you access to that. > > Manish > > > On 2/7/06, rdm...@bi... <rdm...@bi...> wrote: > > > > On Mon, 6 Feb 2006 at 17:03, Fabio Spelta wrote: > > > Well done! Me I've fixed a bug that makes flickrfs unusable for > > > international users. > > > > Any chance we could set up CVS and get multiple people with > > commit privs? > > > > --David > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > > _______________________________________________ > > Flickrfs-users mailing list > > Fli...@li... > > https://lists.sourceforge.net/lists/listinfo/flickrfs-users > > > > > > -- > http://tuxmann.blogspot.com > > "If I have seen further it is by standing on the shoulders of Giants" > "Software is like sex: it's better when it's free." > "An infinite number of monkeys typing into GNU emacs would never make a > good program." -- http://tuxmann.blogspot.com "If I have seen further it is by standing on the shoulders of Giants" "Software is like sex: it's better when it's free." "An infinite number of monkeys typing into GNU emacs would never make a goo= d program." |
From: <rdm...@bi...> - 2006-02-07 03:32:07
|
On Tue, 7 Feb 2006 at 11:09, Manish Rai Jain wrote: > Please send me ur sourceforge usernames, if you wish to contribute to the > code, and I will add you as developers. I'm 'bitdance'. Thanks! --David |
From: Fabio S. <sp...@gm...> - 2006-02-07 08:09:10
|
> > Please send me ur sourceforge usernames, if you wish to contribute to t= he > > code, and I will add you as developers. Thank you, my sourceforge username is 'febs'. I hope to contribute with more fixes than the previous one, although after that I can't see what else can be added. :-) Ciao -- Fabio |
From: Fabio S. <sp...@gm...> - 2006-02-07 09:31:13
|
> You're added. :) Lame, I discovered that... I don't use sourceforge from too much time, and I'm not able to recover my pass in any way (lost my old email, too). I opened a support request. Meanwhile, I'd like to ask about search for multiple tags in the "tags" fol= der. If I create a directory with a single tag, i.e. with /mount/point$ cd tags/personal /mount/point$ mkdir francesca that works fine, but if I try multiple tags with ":", I cant get any result neither with /mount/point$ mkdir francesca:io nor with /mount/point$ mkdir francesca\:io is that a bug or it's me that I'm missing something? Thank you very much, ciao -- Fabio |
From: Manish R. J. <man...@gm...> - 2006-02-07 13:43:15
|
On 2/7/06, Fabio Spelta <sp...@gm...> wrote: > > > You're added. :) > > Lame, I discovered that... I don't use sourceforge from too much time, > and I'm not able to recover my pass in any way (lost my old email, > too). I opened a support request. > > Meanwhile, I'd like to ask about search for multiple tags in the "tags" > folder. > If I create a directory with a single tag, i.e. with > > /mount/point$ cd tags/personal > /mount/point$ mkdir francesca > > that works fine, but if I try multiple tags with ":", I cant get any > result neither with > > /mount/point$ mkdir francesca:io > nor with > /mount/point$ mkdir francesca\:io > > is that a bug or it's me that I'm missing something? My tests work fine with multiple tags. Btw, flickrfs won't allow to create directories anywhere. So, can only create directory in tags/personal or tags/public. Just to check if you did that while trying multiple tags. If you still can't find the prob, check the log. Everytime a new directory is created in 'tags/p*/', a new thread is started. log shd reveal that. Thank you very much, ciao > -- > Fabio > -- http://tuxmann.blogspot.com "If I have seen further it is by standing on the shoulders of Giants" "Software is like sex: it's better when it's free." "An infinite number of monkeys typing into GNU emacs would never make a goo= d program." |
From: <rdm...@bi...> - 2006-02-07 19:28:32
|
On Tue, 7 Feb 2006 at 10:31, Fabio Spelta wrote: > Meanwhile, I'd like to ask about search for multiple tags in the "tags" folder. > If I create a directory with a single tag, i.e. with > > /mount/point$ cd tags/personal > /mount/point$ mkdir francesca > > that works fine, but if I try multiple tags with ":", I cant get any > result neither with > > /mount/point$ mkdir francesca:io > nor with > /mount/point$ mkdir francesca\:io > > is that a bug or it's me that I'm missing something? I'm not sure. I haven't gotten anything to work in 'personal' so far. But I don't have any published photos. On the other hand, my test program does: mkdir('tags/public/radio:station:college') which works fine and fetches three images. --David |