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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/configlet.py   ftw.publisher.sender(Download)
from ftw.publisher.sender.interfaces import IConfig
from ftw.publisher.sender.interfaces import IQueue
from ftw.publisher.sender.persistence import Realm
from ftw.publisher.sender.utils import sendRequestToRealm
from ftw.table.interfaces import ITableGenerator
                'password': data['password'],
                }
            realm = Realm(**kwargs)
            config.appendRealm(realm)
            self.statusMessage('Added realm successfully')

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/utils.py   ftw.publisher.sender(Download)
from ftw.publisher.core import communication
from ftw.publisher.core.states import ConnectionLost
from ftw.publisher.sender.persistence import Realm
from httplib import BadStatusLine
import base64

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/tests/test_meta_zcml.py   ftw.publisher.sender(Download)
from Products.CMFPlone.interfaces import IPloneSiteRoot
from ftw.publisher.sender.interfaces import IConfig
from ftw.publisher.sender.interfaces import IOverriddenRealmRegistry
from ftw.publisher.sender.interfaces import IRealm
from ftw.publisher.sender.persistence import Realm
 
        self.assertEquals(len(config.getRealms()), 0)
        config.appendRealm(Realm(1, 'http://site', 'foo', 'pw'))
        self.assertEquals(len(config.getRealms()), 1)
 
 
        with self.assertRaises(AttributeError):
            config.appendRealm(Realm(1, 'http://site', 'foo', 'pw'))