Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def FormatDropDown():
- conn = pgdb.connect(host='localhost', database='mailman_members', user='mailman', password='mailman')
- cursor = conn.cursor()
- command = cursor.execute("Select listname from mailman_test")
- data = cursor.fetchall()
- items = len(data)
- # while items != 0:
- # a = items -1
- while items != 0:
- for i in range(0, items):
- return '<option>' + data[i][0] + '</option>'
- items = items - 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement