Exemplo n.º 1
0
class _NumberingLevel(object):
    level_index = cobble.field()
    is_ordered = cobble.field()
Exemplo n.º 2
0
class Note(Element):
    note_type = cobble.field()
    note_id = cobble.field()
    body = cobble.field()
Exemplo n.º 3
0
class Image(Element):
    alt_text = cobble.field()
    content_type = cobble.field()
    open = cobble.field()
Exemplo n.º 4
0
class Bookmark(Element):
    name = cobble.field()
Exemplo n.º 5
0
class TableCell(HasChildren):
    colspan = cobble.field()
    rowspan = cobble.field()
Exemplo n.º 6
0
class _ConversionContext(object):
    is_table_header = cobble.field()

    def copy(self, **kwargs):
        return cobble.copy(self, **kwargs)
Exemplo n.º 7
0
class Hyperlink(HasChildren):
    href = cobble.field()
    anchor = cobble.field()
    target_frame = cobble.field()
Exemplo n.º 8
0
class Text(Element):
    value = cobble.field()
Exemplo n.º 9
0
class ParagraphIndent(object):
    start = cobble.field()
    end = cobble.field()
    first_line = cobble.field()
    hanging = cobble.field()
Exemplo n.º 10
0
class Indent(object):
    left = cobble.field()
    right = cobble.field()
    first_line = cobble.field()
    hanging = cobble.field()
Exemplo n.º 11
0
class CommentReference(Element):
    comment_id = cobble.field()
Exemplo n.º 12
0
class Comment(object):
    comment_id = cobble.field()
    body = cobble.field()
    author_name = cobble.field()
    author_initials = cobble.field()
Exemplo n.º 13
0
class Document(HasChildren):
    notes = cobble.field()
    comments = cobble.field()
    headers = cobble.field()
    footers = cobble.field()
Exemplo n.º 14
0
class Paragraph(HasChildren):
    style_id = cobble.field()
    style_name = cobble.field()
    numbering = cobble.field()
Exemplo n.º 15
0
class Table(HasChildren):
    style_id = cobble.field()
    style_name = cobble.field()
Exemplo n.º 16
0
class NoteReference(Element):
    note_type = cobble.field()
    note_id = cobble.field()
Exemplo n.º 17
0
class TableRow(HasChildren):
    is_header = cobble.field()
Exemplo n.º 18
0
class Hyperlink(HasChildren):
    href = cobble.field()
    anchor = cobble.field()
Exemplo n.º 19
0
class Break(Element):
    break_type = cobble.field()
Exemplo n.º 20
0
class HasChildren(Element):
    children = cobble.field()
Exemplo n.º 21
0
class Document(HasChildren):
    notes = cobble.field()
Exemplo n.º 22
0
def default_cannot_be_value_other_than_none():
    exception = _assert_raises(TypeError, lambda: cobble.field(default={}))
    assert_equal("default value must be None", str(exception))
class StringMatcher(object):
    operator = cobble.field()
    value = cobble.field()

    def matches(self, other):
        return self.operator(self.value, other)