示例#1
0
def xauthor(nd):
    npf.push()
    p = spar('author')
    _mt['author'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#2
0
def xdate(nd):
    npf.push()
    p = spar('author')
    _mt['date'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#3
0
def xtitle(nd):
    npf.push()
    p = spar('title')
    _mt['title'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#4
0
def xdate(nd):
    npf.push()
    p = spar('author')
    _mt['date'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#5
0
def xauthor(nd):
    npf.push()
    p = spar('author')
    _mt['author'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#6
0
def xtitle(nd):
    npf.push()
    p = spar('title')
    _mt['title'] = p
    setx(nd, p, p)
    ct.cnl(nd)
    npf.pop()
示例#7
0
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()
示例#8
0
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()