def _createScrollingFragment(self): """ Create a Fragment which will display a mailbox. """ f = MailboxScrollingFragment(self.store) f.docFactory = getLoader(f.fragmentName) return f
def button(self, request, tag): if self._buttonPattern is None: self._buttonPattern = inevow.IQ(getLoader('button')).patternGenerator('button') # take the contents of the tag and stuff it inside the button pattern, # and copy over any attributes button = self._buttonPattern() button.attributes.update(tag.attributes) return button.fillSlots('content', tag.children)
def button(self, request, tag): if self._buttonPattern is None: self._buttonPattern = inevow.IQ( getLoader('button')).patternGenerator('button') # take the contents of the tag and stuff it inside the button pattern, # and copy over any attributes button = self._buttonPattern() button.attributes.update(tag.attributes) return button.fillSlots('content', tag.children)
def __init__(self, original): self.original = original # think about this some more - the messageID or partID could be the # mangled storeID of the part to facilitate the making of child # links here, but nobody except for us really needs to know about # this. self.docFactory = getLoader('message-detail-patterns') self.iframePattern = inevow.IQ( self.docFactory).patternGenerator('content-iframe') self.urlPrefix = ixmantissa.IWebTranslator( original.part.store).linkTo(original.messageID)
def __init__(self, original): self.original = original # think about this some more - the messageID or partID could be the # mangled storeID of the part to facilitate the making of child # links here, but nobody except for us really needs to know about # this. self.docFactory = getLoader('message-detail-patterns') self.iframePattern = inevow.IQ( self.docFactory).patternGenerator('content-iframe') self.urlPrefix = ixmantissa.IWebTranslator(original.part.store).linkTo( original.messageID)
def getComposer(self): """ Return an inline L{xquotient.compose.ComposeFragment} instance with empty to address, subject, message body and attacments """ f = ComposeFragment( self.inbox.store.findUnique(Composer), recipients=None, subject=u'', messageBody=u'', attachments=(), inline=True) f.setFragmentParent(self) f.docFactory = getLoader(f.fragmentName) return f
def getComposer(self): """ Return an inline L{xquotient.compose.ComposeFragment} instance with empty to address, subject, message body and attacments """ f = ComposeFragment( self.inbox.store.findUnique(Composer), recipients=None, subject=u"", messageBody=u"", attachments=(), inline=True, ) f.setFragmentParent(self) f.docFactory = getLoader(f.fragmentName) return f
def __init__(self, paragraph): self.paragraph = paragraph self.pattern = inevow.IQ(getLoader('message-detail-patterns')).onePattern('paragraphs')
def __init__(self, paragraph): self.paragraph = paragraph self.pattern = inevow.IQ( getLoader('message-detail-patterns')).onePattern('paragraphs')