Active Topics

 


Reply
Thread Tools
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#1
In my next attempt to turn the NIT community on it's head I've had success sharing simple documents ( haven't tried anything fancy yet ) between Google Docs and the built in Notes application.

This has been made easier by the fact that notes is really just a html editor itself and appears to be able to open and edit the raw google docs.

Some of the tricks that others may run into is that retreiving uri's that require authentication is tricky and you have to do something like the following.

Code:
request = urllib2.Request(feed.entry[0].content.src)
request.add_header('Authorization', 'GoogleLogin auth=%s' % (gd_client.GetClientLoginToken()))
opener = urllib2.build_opener()
f = opener.open(request)
print f.read()
Neither the header or the format was clearly documented in the Google python examples.

Does anyone know how to "monitor" a directory for changes in python?
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:50.