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)
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)