def get_public_url(self, remote_dir, remote_file):

        self.refresh_constants()

        if(not self.is_logged_in()):
            raise(Exception("Can't download when not logged in"))

        req_vars = "origin=browse_file_row&t="+self.token+"&is_xhr=true&_subject_uid="+self.uid
        req = urllib2.Request('https://www.dropbox.com/sm/share_link/'+remote_dir+remote_file,data=req_vars)
        req.add_header('Referer', 'https://www.dropbox.com/home'+remote_dir)

        share_info = json.loads(self.browser.open(req).read())

        html = share_info['actions'][0][1]

        fname = html.split('"https://www.dropbox.com/s/')[1].split('?dl=0')[0]
        return 'https://www.dropbox.com/s/' + fname
If a callback of a L{Deferred} from L{CooperativeTask.whenDone} calls
dataset/ETHPy150Open jncraton/PythonDropboxUploader/dbupload/dbconn.py/DropboxConnection.get_public_url--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/RunStateTests.test_stopCooperatorReentrancy