fix in messages

This commit is contained in:
Anand Doshi 2012-03-08 12:06:27 +05:30
parent 2a72179597
commit eb55df0aa3

View File

@ -56,8 +56,6 @@ def get_active_users(arg=None):
@webnotes.whitelist() @webnotes.whitelist()
def post(arg=None): def post(arg=None):
"""post message""" """post message"""
import json
arg = json.loads(arg)
from webnotes.model.doc import Document from webnotes.model.doc import Document
d = Document('Comment Widget Record') d = Document('Comment Widget Record')
d.comment = arg['txt'] d.comment = arg['txt']