|
@@ -55,7 +55,17 @@ class Htlogr:
|
55
|
55
|
return self.DIV_FIELD.join(fields)
|
56
|
56
|
|
57
|
57
|
def log(self, msg, tag=None, i=None):
|
58
|
|
- params = {"msg": msg, "tag": tag, "i": i}
|
|
58
|
+ params = {"msg": msg}
|
|
59
|
+
|
|
60
|
+ try:
|
|
61
|
+ params["tag"] = tag()
|
|
62
|
+ except TypeError:
|
|
63
|
+ params["tag"] = tag
|
|
64
|
+ try:
|
|
65
|
+ params["i"] = i()
|
|
66
|
+ except TypeError:
|
|
67
|
+ params["i"] = i
|
|
68
|
+
|
59
|
69
|
pq = "%s?%s" % (self.parsed_url.path, self._zipup_params(params))
|
60
|
70
|
self.conn.request("GET", pq)
|
61
|
71
|
self.last_error = None
|