fix in messages

This commit is contained in:
Anand Doshi 2012-03-08 12:10:51 +05:30
parent eb55df0aa3
commit 20f63da794

View File

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