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

    def copy(self, **kwargs):
        return cobble.copy(self, **kwargs)
Пример #7
0
class Hyperlink(HasChildren):
    href = cobble.field()
    anchor = cobble.field()
    target_frame = cobble.field()
Пример #8
0
class Text(Element):
    value = cobble.field()
Пример #9
0
class ParagraphIndent(object):
    start = cobble.field()
    end = cobble.field()
    first_line = cobble.field()
    hanging = cobble.field()
Пример #10
0
class Indent(object):
    left = cobble.field()
    right = cobble.field()
    first_line = cobble.field()
    hanging = cobble.field()
Пример #11
0
class CommentReference(Element):
    comment_id = cobble.field()
Пример #12
0
class Comment(object):
    comment_id = cobble.field()
    body = cobble.field()
    author_name = cobble.field()
    author_initials = cobble.field()
Пример #13
0
class Document(HasChildren):
    notes = cobble.field()
    comments = cobble.field()
    headers = cobble.field()
    footers = cobble.field()
Пример #14
0
class Paragraph(HasChildren):
    style_id = cobble.field()
    style_name = cobble.field()
    numbering = cobble.field()
Пример #15
0
class Table(HasChildren):
    style_id = cobble.field()
    style_name = cobble.field()
Пример #16
0
class NoteReference(Element):
    note_type = cobble.field()
    note_id = cobble.field()
Пример #17
0
class TableRow(HasChildren):
    is_header = cobble.field()
Пример #18
0
class Hyperlink(HasChildren):
    href = cobble.field()
    anchor = cobble.field()
Пример #19
0
class Break(Element):
    break_type = cobble.field()
Пример #20
0
class HasChildren(Element):
    children = cobble.field()
Пример #21
0
class Document(HasChildren):
    notes = cobble.field()
Пример #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)