views:

467

answers:

0

I want to move a document into a folder. The client API for that is MoveIntoFolder

gd_client.MoveIntoFolder(self, source_entry, folder_entry)
    #folder_entry: DocumentListEntry An object with a link 
    #to the destination folder

I can't figure out how to get folder_entry from the client API. Digging into the protocol I think I want a document query with URI "/feeds/default/private/full/-/folder" so I did

feed = gd_client.QueryDocumentListFeed('/feeds/default/private/full/-/folder')
    #gdata\service.py", line 1050, in Get
    #'reason': server_response.reason, 'body': result_body}
    #RequestError: {'status': 400, 'body': 'Invalid request URI', 
    #               'reason': 'Bad Request'}

any hints?