typos & doc string formatting
svn: r12925
This commit is contained in:
parent
f6409fe94f
commit
28c404be58
@ -110,12 +110,12 @@ class BaseDoc(object):
|
|||||||
|
|
||||||
def open(self, filename):
|
def open(self, filename):
|
||||||
"""
|
"""
|
||||||
Opens the document.
|
Opens the file so that it can be generated.
|
||||||
|
|
||||||
@param filename: path name of the file to create
|
@param filename: path name of the file to create
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"Closes the document"
|
"Closes the generated file."
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
@ -54,7 +54,7 @@ log = logging.getLogger(".drawdoc")
|
|||||||
class DrawDoc(object):
|
class DrawDoc(object):
|
||||||
"""
|
"""
|
||||||
Abstract Interface for graphical document generators. Output formats
|
Abstract Interface for graphical document generators. Output formats
|
||||||
for graphical reports must implment this interface to be used by the
|
for graphical reports must implement this interface to be used by the
|
||||||
report system.
|
report system.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ log = logging.getLogger(".graphdoc")
|
|||||||
class GVDoc(object):
|
class GVDoc(object):
|
||||||
"""
|
"""
|
||||||
Abstract Interface for Graphviz document generators. Output formats
|
Abstract Interface for Graphviz document generators. Output formats
|
||||||
for Graphviz reports must implment this interface to be used by the
|
for Graphviz reports must implement this interface to be used by the
|
||||||
report system.
|
report system.
|
||||||
"""
|
"""
|
||||||
def add_node(self, node_id, label, shape="", color="",
|
def add_node(self, node_id, label, shape="", color="",
|
||||||
|
@ -81,11 +81,13 @@ class IndexMark(object):
|
|||||||
class TextDoc(object):
|
class TextDoc(object):
|
||||||
"""
|
"""
|
||||||
Abstract Interface for text document generators. Output formats for
|
Abstract Interface for text document generators. Output formats for
|
||||||
text reports must implment this interface to be used by the report
|
text reports must implement this interface to be used by the report
|
||||||
system.
|
system.
|
||||||
"""
|
"""
|
||||||
def page_break(self):
|
def page_break(self):
|
||||||
"Forces a page break, creating a new page"
|
"""
|
||||||
|
Forces a page break, creating a new page.
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def start_bold(self):
|
def start_bold(self):
|
||||||
@ -112,7 +114,9 @@ class TextDoc(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def end_paragraph(self):
|
def end_paragraph(self):
|
||||||
"Ends the current parsgraph"
|
"""
|
||||||
|
Ends the current paragraph.
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def start_table(self, name, style_name):
|
def start_table(self, name, style_name):
|
||||||
@ -129,11 +133,15 @@ class TextDoc(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def start_row(self):
|
def start_row(self):
|
||||||
"Starts a new row on the current table"
|
"""
|
||||||
|
Starts a new row on the current table.
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def end_row(self):
|
def end_row(self):
|
||||||
"Ends the current row on the current table"
|
"""
|
||||||
|
Ends the current row on the current table.
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def start_cell(self, style_name, span=1):
|
def start_cell(self, style_name, span=1):
|
||||||
@ -146,7 +154,9 @@ class TextDoc(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def end_cell(self):
|
def end_cell(self):
|
||||||
"Ends the current table cell"
|
"""
|
||||||
|
Ends the current table cell.
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def write_text(self, text, mark=None):
|
def write_text(self, text, mark=None):
|
||||||
@ -196,7 +206,9 @@ class TextDoc(object):
|
|||||||
self.write_note(text, format, style_name)
|
self.write_note(text, format, style_name)
|
||||||
|
|
||||||
def write_text_citation(self, text, mark=None):
|
def write_text_citation(self, text, mark=None):
|
||||||
"""Method to write text with GRAMPS <super> citation marks"""
|
"""
|
||||||
|
Method to write text with GRAMPS <super> citation marks.
|
||||||
|
"""
|
||||||
if not text:
|
if not text:
|
||||||
return
|
return
|
||||||
parts = text.split("<super>")
|
parts = text.split("<super>")
|
||||||
@ -227,13 +239,13 @@ class TextDoc(object):
|
|||||||
|
|
||||||
def add_media_object(self, name, align, w_cm, h_cm, alt=''):
|
def add_media_object(self, name, align, w_cm, h_cm, alt=''):
|
||||||
"""
|
"""
|
||||||
Add a photo of the specified width (in centimeters)
|
Add a photo of the specified width (in centimeters).
|
||||||
|
|
||||||
@param name: filename of the image to add
|
@param name: filename of the image to add
|
||||||
@param align: alignment of the image. Valid values are 'left',
|
@param align: alignment of the image. Valid values are 'left',
|
||||||
'right', 'center', and 'single'
|
'right', 'center', and 'single'
|
||||||
@param w_cm: width in centimeters
|
@param w_cm: width in centimeters
|
||||||
@param h_cm: height in centimeters
|
@param h_cm: height in centimeters
|
||||||
@param alt: an alternative text to use. Usefull for eg html reports
|
@param alt: an alternative text to use. Useful for eg html reports
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
Loading…
Reference in New Issue
Block a user