def createDatabase(s): """ Add a Drafts item to the store. """ c = Composer(store=s) Drafts(store=s, installedOn=c) c.installed()
def createDatabase(store): LoginMethod(store=store, localpart=LOCAL, domain=DOMAIN, verified=VERIFIED, protocol=PROTOCOL, account=store, internal=INTERNAL) installOn(Composer(store=store), store)
def createDatabase(s): """ Install a _NeedsDelivery and Composer on the given store. """ _NeedsDelivery(store=s, composer=Composer(store=s), message=s, toAddress=u'to@host', tries=21)
def createDatabase(s): """ Install a Composer on the given store. """ LoginMethod(store=s, localpart=u'foo', domain=u'bar', verified=True, protocol=u'*', account=s, internal=False) Composer(store=s).installOn(s)
def getInbox(self): """ Return a newly created Inbox, in a newly created Store. """ s = Store() LoginMethod(store=s, internal=False, protocol=u'email', localpart=u'default', domain=u'host', verified=True, account=s) installOn(Composer(store=s), s) installOn(Catalog(store=s), s) installOn(MessageLister(store=s), s) inbox = Inbox(store=s) installOn(inbox, s) return inbox
def createDatabase(s): """ Install a Composer and ComposePreferenceCollection on the given store. """ LoginMethod(store=s, localpart=u'foo', domain=u'bar', verified=True, protocol=u'*', account=s, internal=False) Composer(store=s).installOn(s) ComposePreferenceCollection(store=s, smarthostAddress=u'foo2@bar', smarthostUsername=u'foo2', smarthostPort=23, smarthostPassword=u'secret', preferredSmarthost=u'localhost').installOn(s)
def endow(): installOn(Inbox(store=subStore), subStore) installOn(Composer(store=subStore), subStore)