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

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/f/t/ftw.meeting-1.4.9/ftw/meeting/latex/tasklisting.py   ftw.meeting(Download)
            return self.convert_plain(text, custom_patterns=custom_patterns)
        else:
            return self.convert(text, custom_patterns=custom_patterns)
 
    def render(self):

src/f/t/ftw.meeting-1.4.9/ftw/meeting/latex/views.py   ftw.meeting(Download)
                '_': lambda *a, **kw: translate(_(*a, **kw),
                                                context=self.request),
                'title': self.convert(self.context.Title()),
                'responsibles': self.get_responsibles(),
                'text': self.convert(self.context.getText()),
                'conclusion': self.convert(self.context.getConclusion()),
        for user in self.context.getResponsibility():
            responsibles.append(self.convert(
                get_value_from_vocab(vocabulary, user)))
 
        return responsibles
    def get_related_items(self):
        items = []
 
        for obj in self.context.getRelated_items():
            items.append(self.convert('<a href="%s">%s</a>' % (

src/f/t/ftw.book-2.2.20/ftw/book/latex/link.py   ftw.book(Download)
    def render(self):
        latex = []
        latex.append(r'\begin{description}')
 
        title = self.convert(self.context.Title())
        url = r'\href{%s}{%s}' % (
            self.convert(self.context.remoteUrl),
            self.convert(self.context.remoteUrl))
 
        latex.append(r'\item[%s (%s)]{%s}' % (
                title, url, self.convert(self.context.getRawDescription())))
 
        latex.append(r'\end{description}')

src/f/t/ftw.workspace-2.1.0/ftw/workspace/latex/views.py   ftw.workspace(Download)
    def get_workspace_metadata(self):
        return {
            'workspaceTitle': self.convert(self.context.Title()),
            'workspaceOwner': self.convert(self.get_owner()),
            'workspaceDescription': self.convert(self.context.Description()),
            'workspaceText': self.convert(self.context.getText()),

src/f/t/ftw.book-2.2.20/ftw/book/latex/table.py   ftw.book(Download)
        table = self.context.getTable()
        if len(table) > 0:
            latex.append(self.convert(table))
 
        footnote_text = self.context.getFootnoteText().strip()
        if len(footnote_text) > 0:
 
            latex.append(r'\vspace{0pt}')
            latex.append('{\\footnotesize %s}' % (
                    self.convert(footnote_text.strip())))

src/f/t/ftw.book-2.2.20/ftw/book/latex/remark.py   ftw.book(Download)
        latex = []
 
        title = self.convert(self.context.Title())
        if title:
            latex.append('{\\bf %s}\\' % title)
 
        text = self.context.getText().strip()
        if len(text) > 0:
            latex.append(self.convert(text))

src/f/t/ftw.book-2.2.20/ftw/book/latex/paragraph.py   ftw.book(Download)
    def get_text_latex(self):
        tex = ''
        text = self.context.getText().strip()
        if len(text) > 0:
            tex += self.convert(text)

src/f/t/ftw.book-2.2.20/ftw/book/latex/htmlblock.py   ftw.book(Download)
        text = self.context.getText().strip()
        if len(text) > 0:
            latex.append(self.convert(text))
 
        latex.append('')