Example #1
0
 def _createScrollingFragment(self):
     """
     Create a Fragment which will display a mailbox.
     """
     f = MailboxScrollingFragment(self.store)
     f.docFactory = getLoader(f.fragmentName)
     return f
Example #2
0
 def _createScrollingFragment(self):
     """
     Create a Fragment which will display a mailbox.
     """
     f = MailboxScrollingFragment(self.store)
     f.docFactory = getLoader(f.fragmentName)
     return f
Example #3
0
    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)
Example #5
0
    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)
Example #7
0
 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
Example #8
0
 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
Example #9
0
 def __init__(self, paragraph):
     self.paragraph = paragraph
     self.pattern = inevow.IQ(getLoader('message-detail-patterns')).onePattern('paragraphs')
Example #10
0
 def __init__(self, paragraph):
     self.paragraph = paragraph
     self.pattern = inevow.IQ(
         getLoader('message-detail-patterns')).onePattern('paragraphs')