def grant_access( self ):
    access_id = self.database.next_id( Download_access, commit = False )
    download_access = Download_access.create( access_id, self.item_number, self.transaction_id )
    self.database.save( download_access, commit = False )

    https_url = self.settings[ u"global" ][ u"luminotes.https_url" ]
    print u"%s/d/%s" % ( https_url, access_id )
    def setUp(self):
        self.object_id = u"17"
        self.item_number = u"999"
        self.transaction_id = u"foooooooo234"

        self.download_access = Download_access.create(self.object_id,
                                                      self.item_number,
                                                      self.transaction_id)
Exemple #3
0
    def grant_access(self):
        access_id = self.database.next_id(Download_access, commit=False)
        download_access = Download_access.create(access_id, self.item_number,
                                                 self.transaction_id)
        self.database.save(download_access, commit=False)

        https_url = self.settings[u"global"][u"luminotes.https_url"]
        print u"%s/d/%s" % (https_url, access_id)
  def setUp( self ):
    self.object_id = u"17"
    self.item_number = u"999"
    self.transaction_id = u"foooooooo234"

    self.download_access = Download_access.create( self.object_id, self.item_number, self.transaction_id )