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

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