[grid] allow section breaks and relayout grid
This commit is contained in:
parent
ec4dfab884
commit
67d1afa481
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user