ooiservices/app/alfresco/utils.py
def make_alfresco_download_link(self, id, ticket):
        '''
        In order to download a document, a specific URL needs to be used.
        Each link needs to be passed in the new ticket in order to download.

        param: ticket ; this is the ticket that will be used to authenticate
            the request
        '''

        # then lets split out the object id and use use the hex portion . . .
        arrID = id.split('/')
        hex_id = arrID[3]

        # and before we return, we just need to combine all three parts
        # to make a nice url for a authenticated user to download.

        download_url = ''.join((self.ALFRESCO_DL_URL, '/',
            hex_id, '?alf_ticket=', ticket))

        return download_url

        In order to download a document, a specific URL needs to be used.
        Each link needs to be passed in the new ticket in order to download.

        param: ticket ; this is the ticket that will be used to authenticate
            the request
        
In order to download a document, a specific URL needs to be used.
Each link needs to be passed in the new ticket in order to download.

ticket ; this is the ticket that will be used to authenticate
the request
In order to download a document a specific URL needs to be used . Each link needs to be passed in the new ticket in order to download . ticket ; this is the ticket that will be used to authenticate the request
def make_alfresco_download_link(self, id, ticket):
        arrID = id.split('/')
        hex_id = arrID[3]
        download_url = ''.join((self.ALFRESCO_DL_URL, '/',
            hex_id, '?alf_ticket=', ticket))
        return download_url
def make_alfresco_download_link ( self , id , ticket ) : arrID = id . split ( '/' ) hex_id = arrID [ 3 ] download_url = '' . join ( ( self . ALFRESCO_DL_URL , '/' , hex_id , '?alf_ticket=' , ticket ) ) return download_url
In order to download a document, a specific URL needs to be used.
In order to download a document a specific URL needs to be used .
'''
        In order to download a document, a specific URL needs to be used.
        Each link needs to be passed in the new ticket in order to download.

        param: ticket ; this is the ticket that will be used to authenticate
            the request
        ''' # then lets split out the object id and use use the hex portion . . . # and before we return, we just need to combine all three parts # to make a nice url for a authenticated user to download.
self
id
ticket