Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/f/t/ftw.downloadtoken-1.0.0/ftw/downloadtoken/browser/sendmail.py   ftw.downloadtoken(Download)
 
        for email in data['recipients']:
            downloadtoken = storage.add(self.context, email)
 
            options = {'user': api.user.get_current(),

src/f/t/ftw.downloadtoken-1.0.0/ftw/downloadtoken/tests/test_storage.py   ftw.downloadtoken(Download)
    def test_add_new_item_to_storage(self):
        storage = IDownloadTokenStorage(self.portal)
        file_ = create(Builder('file'))
 
        added = storage.add(file_, 'name@example.com')
    def test_remove_item_from_storage(self):
        storage = IDownloadTokenStorage(self.portal)
        file_ = create(Builder('file'))
 
        added = storage.add(file_, 'name@example.com')
    def test_get_downloadtoken_by_token(self):
        storage = IDownloadTokenStorage(self.portal)
        file_ = create(Builder('file'))
 
        added = storage.add(file_, 'name@example.com')
    def test_get_inexistend_downloadtoken(self):
        storage = IDownloadTokenStorage(self.portal)
        file_ = create(Builder('file'))
 
        storage.add(file_, 'name@example.com')
    def test_downloadtoken_url(self):
        storage = IDownloadTokenStorage(self.portal)
        file_ = create(Builder('file'))
 
        added = storage.add(file_, 'name@example.com')