Rushabh Mehta | 3a751e8 | 2012-01-27 18:00:14 +0530 | [diff] [blame] | 1 | def unsubscribe(arg): |
2 | """unsubscribe from lists""" | ||||
3 | import webnotes | ||||
4 | lists = [['Blog Subscriber', 'name']] | ||||
5 | for l in lists: | ||||
6 | webnotes.conn.sql("""delete from `tab%s` where %s=%s""" % (l[0], l[1], '%s'), arg) | ||||
7 | |||||
8 | webnotes.msgprint('Unsubscribed!') |