ソースを参照

[fix] remove messages

version-14
Rushabh Mehta 9年前
コミット
a36fdc8e16
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      frappe/__init__.py

+ 1
- 1
frappe/__init__.py ファイルの表示

@@ -243,7 +243,7 @@ def msgprint(msg, small=0, raise_exception=0, as_table=False):
if as_table and type(msg) in (list, tuple): if as_table and type(msg) in (list, tuple):
msg = '<table border="1px" style="border-collapse: collapse" cellpadding="2px">' + ''.join(['<tr>'+''.join(['<td>%s</td>' % c for c in r])+'</tr>' for r in msg]) + '</table>' msg = '<table border="1px" style="border-collapse: collapse" cellpadding="2px">' + ''.join(['<tr>'+''.join(['<td>%s</td>' % c for c in r])+'</tr>' for r in msg]) + '</table>'


if flags.print_messages or not request or (not "cmd" in local.form_dict):
if flags.print_messages:
print "Message: " + repr(msg).encode("utf-8") print "Message: " + repr(msg).encode("utf-8")


message_log.append((small and '__small:' or '')+cstr(msg or '')) message_log.append((small and '__small:' or '')+cstr(msg or ''))


読み込み中…
キャンセル
保存