blob: 57d1d47f8698018f589b873123f322464644dd3c [file] [log] [blame]
Rushabh Mehta3a751e82012-01-27 18:00:14 +05301def 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!')