Hardware Reference
In-Depth Information
Dillo browser. When it does you wait and wait, until the window opens and the Flickr login
page appears. Even then you have to wait for something to inish. he trick is to keep an eye
on the CPU usage block in the bottom right-hand corner; when this stops showing solid
green you can then type your username and password and log in. Two more pages will follow
asking you if it is correct that you want to authorise the use of this package. Only when the
page telling you to close the page has inished loading and you have closed the page can you
then go and answer that question on the Python console with an airmative Y for yes. hen
the contents of your roto-sketch directory will be transferred to Flickr.
When you look at your sketch folder after this you will see that there have been some iles
created by this process - an error log, a debug log and a ile called history . his history ile is
used to make sure only images that were placed in the roto-sketch directory since the last
upload are uploaded and not all of them again. If you turn on the Show Hidden option in the
View menu you will also see a ile called .flickrToken ; this information is used so that you
don't have to go through the authorisation process each time you run the uploader. If you are
curious, you can double-click the ile and see what the token looks like. However don't alter
it or delete the ile, or you will have to go through the whole authorisation rigmarole again.
You should now go to Flickr and check that the image has arrived. At the same time you can
go to the Settings page and click the option to connect Flickr to Facebook. You will then have
to go to Facebook and set the permissions as to whom you want to see these postings from
Yahoo!. (By default it is just you.) his is found in the App Center icon on the left side; click
Your Apps, and use the Yahoo one. Click Yahoo to change the settings.
A word of caution: It can take up to an hour after posting on Flickr for the pictures to appear
on Facebook. If they still don't appear, Flickr recommends disconnecting the Facebook link,
waiting a few minutes and then connecting it again. I have had to do this once.
Part of the problem I found with the setup was the poor wording of the instructions that
were printed out during the authorisation phase. I think it would be much better if the
getAuthKey function, in the uploadr.py ile, were replaced by the code in Listing 15-3.
Listing 15-3 Replacement getAuthKey Function
“””
Checks to see if the user has authenticated this application
“””
def getAuthKey( self ):
d = {
api.frob : FLICKR[ api.frob ],
api.perms : “delete”
}
sig = self.signCall( d )
 
Search WWH ::




Custom Search