Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: iso-8859-15 -*-
- from database import *
- def filterZ(x):
- return x['origin']=='z'
- db = DATABASE()
- result = db.executeProcedure('get_all_test', None)
- if result:
- rows = db.getLastExecutionResult()
- print "Test de filter sobre listas \n %s\n" % filter(filterZ,rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement