コード例 #1
0
ファイル: WorkflowUIMixin.py プロジェクト: bendavis78/zope
 def guardExprDocs(self):
     """Returns documentation on guard expressions.
     """
     here = os.path.dirname(__file__)
     fn = os.path.join(here, 'doc', 'expressions.stx')
     f = open(fn, 'rt')
     try:
         text = f.read()
     finally:
         f.close()
     from DocumentTemplate.DT_Var import structured_text
     return structured_text(text)
コード例 #2
0
 def guardExprDocs(self):
     """Returns documentation on guard expressions.
     """
     here = os.path.dirname(__file__)
     fn = os.path.join(here, 'doc', 'expressions.stx')
     f = open(fn, 'rt')
     try:
         text = f.read()
     finally:
         f.close()
     from DocumentTemplate.DT_Var import structured_text
     return structured_text(text)
コード例 #3
0
 def guardExprDocs(self):
     """Returns documentation on guard expressions.
     """
     text = resource_string('doc/expressions.stx', globals())
     from DocumentTemplate.DT_Var import structured_text
     return structured_text(text)