def xauthor(nd): npf.push() p = spar('author') _mt['author'] = p setx(nd, p, p) ct.cnl(nd) npf.pop()
def xdate(nd): npf.push() p = spar('author') _mt['date'] = p setx(nd, p, p) ct.cnl(nd) npf.pop()
def xtitle(nd): npf.push() p = spar('title') _mt['title'] = p setx(nd, p, p) ct.cnl(nd) npf.pop()
def xmaketitle(nd): i = 0 if 'title' in _mt.keys(): Body.insert(i,_mt['title']) i = i+1 if 'author' in _mt.keys(): Body.insert(i,_mt['author']) i = i+1 if 'date' in _mt.keys(): Body.insert(i,_mt['date']) else: npf.push() p = spar('author') p.append(txt.tr(datetime.date.strftime(datetime.date.today(),'%B %d, %Y'))) Body.insert(2, p) npf.pop()
def xmaketitle(nd): i = 0 if 'title' in _mt.keys(): Body.insert(i, _mt['title']) i = i + 1 if 'author' in _mt.keys(): Body.insert(i, _mt['author']) i = i + 1 if 'date' in _mt.keys(): Body.insert(i, _mt['date']) else: npf.push() p = spar('author') p.append( txt.tr(datetime.date.strftime(datetime.date.today(), '%B %d, %Y'))) Body.insert(2, p) npf.pop()