本文整理汇总了Python中fmt_template.Formatter.begin_project方法的典型用法代码示例。如果您正苦于以下问题:Python Formatter.begin_project方法的具体用法?Python Formatter.begin_project怎么用?Python Formatter.begin_project使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fmt_template.Formatter
的用法示例。
在下文中一共展示了Formatter.begin_project方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: begin_project
# 需要导入模块: from fmt_template import Formatter [as 别名]
# 或者: from fmt_template.Formatter import begin_project [as 别名]
def begin_project (self, project):
fix_dates(project)
load_note_attribs (project)
if project.date_due != None or project.date_to_start != None:
fix_dates(project)
load_note_attribs (project)
Formatter.begin_project(self, project)
示例2: begin_project
# 需要导入模块: from fmt_template import Formatter [as 别名]
# 或者: from fmt_template.Formatter import begin_project [as 别名]
def begin_project (self, project):
if self.last_line_was_text:
print >> self.out
print >>self.out, ('#' * (self.header_depth+1)),
Formatter.begin_project(self, project)
print >>self.out
self.depth = 0
self.header_depth+=1
self.last_line_was_text = False
示例3: begin_project
# 需要导入模块: from fmt_template import Formatter [as 别名]
# 或者: from fmt_template.Formatter import begin_project [as 别名]
def begin_project (self, project):
is_output = 'ProjectStart' in self.template.nodes
if self.last_line_was_text and is_output:
print >> self.out
self.last_line_was_text = False
Formatter.begin_project(self, project)
if is_output:
print >>self.out
self.depth = 0
self.header_depth+=1
示例4: begin_project
# 需要导入模块: from fmt_template import Formatter [as 别名]
# 或者: from fmt_template.Formatter import begin_project [as 别名]
def begin_project (self, project):
if project.date_due != None or project.date_to_start != None:
fix_dates(project)
load_note_attribs (project, self.time_control_default)
Formatter.begin_project(self, project)