Пример #1
0
def mk_wp_doc(wrapper):
    doc = Doc("hello.txt|wp",
              contents="hello, this is a blog post",
              dirty=True,
              wrapper=wrapper)
    for d in doc.datas():
        d.setup()
    return doc
Пример #2
0
def mk_wp_doc(wrapper):
    doc = Doc("hello.txt|wp",
            contents = "hello, this is a blog post",
            dirty = True,
            wrapper=wrapper
            )
    for d in doc.datas():
        d.setup()
    return doc