[grid] allow section breaks and relayout grid

This commit is contained in:
Rushabh Mehta 2013-05-29 11:06:03 +05:30
parent ec4dfab884
commit 67d1afa481

View File

@ -1,4 +1,4 @@
import webnotes import webnotes, markdown2
def execute(): def execute():
webnotes.reload_doc("utilities", "doctype", "note") webnotes.reload_doc("utilities", "doctype", "note")
@ -11,8 +11,8 @@ def execute():
note = webnotes.bean({ note = webnotes.bean({
"doctype":"Note", "doctype":"Note",
"title": name, "title": name,
"content": "<hr>".join(webnotes.conn.sql_list("""select answer from tabAnswer "content": "<hr>".join([markdown2.markdown(c) for c in webnotes.conn.sql_list("""
where question=%s""", question.name)), select answer from tabAnswer where question=%s""", question.name)]),
"owner": question.owner, "owner": question.owner,
"creation": question.creation, "creation": question.creation,
"public": 1 "public": 1