add Res.py

This commit is contained in:
ppwwyyxx
2014-11-22 21:59:59 +08:00
parent d819eca642
commit d3c20d3490
3 changed files with 48 additions and 4 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: Msg.py
# Date: Sat Nov 22 08:09:56 2014 +0800
# Date: Sat Nov 22 20:58:01 2014 +0800
# Author: Yuxin Wu <[email protected]>
from datetime import datetime
@@ -38,6 +38,10 @@ class WeChatMsg(object):
if self.content:
self.content = ensure_unicode(self.content)
def msg_html(self, res):
# TODO
assert res is not None
def msg_str(self):
# TODO: fix more types
if self.type == TYPE_LOCATION: