コード例 #1
0
ファイル: inbox.py プロジェクト: pombredanne/quotient
 def _createScrollingFragment(self):
     """
     Create a Fragment which will display a mailbox.
     """
     f = MailboxScrollingFragment(self.store)
     f.docFactory = getLoader(f.fragmentName)
     return f
コード例 #2
0
 def _createScrollingFragment(self):
     """
     Create a Fragment which will display a mailbox.
     """
     f = MailboxScrollingFragment(self.store)
     f.docFactory = getLoader(f.fragmentName)
     return f
コード例 #3
0
ファイル: renderers.py プロジェクト: pombredanne/quotient
    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)
コード例 #4
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)
コード例 #5
0
ファイル: renderers.py プロジェクト: pombredanne/quotient
    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)
コード例 #6
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)
コード例 #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
コード例 #8
0
ファイル: inbox.py プロジェクト: pombredanne/quotient
 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
コード例 #9
0
ファイル: renderers.py プロジェクト: pombredanne/quotient
 def __init__(self, paragraph):
     self.paragraph = paragraph
     self.pattern = inevow.IQ(getLoader('message-detail-patterns')).onePattern('paragraphs')
コード例 #10
0
 def __init__(self, paragraph):
     self.paragraph = paragraph
     self.pattern = inevow.IQ(
         getLoader('message-detail-patterns')).onePattern('paragraphs')