comparison roundup/cgi/templating.py @ 7777:173cc61d7474

chore: replace id with itemid One more instance: the variable 'id' shadows the builtin id()
author John Rouillard <rouilj@ieee.org>
date Mon, 04 Mar 2024 19:11:42 -0500
parents 710f998c0d5b
children 219fc5804345
comparison
equal deleted inserted replaced
7776:710f998c0d5b 7777:173cc61d7474
3457 )], klass) 3457 )], klass)
3458 else: 3458 else:
3459 matches = None 3459 matches = None
3460 3460
3461 # filter for visibility 3461 # filter for visibility
3462 allowed = [id for id in klass.filter(matches, filterspec, sort, group) 3462 allowed = [itemid for itemid in klass.filter(matches, filterspec,
3463 if check(permission, userid, self.classname, itemid=id)] 3463 sort, group)
3464 if check(permission, userid, self.classname, itemid=itemid)]
3464 3465
3465 # return the batch object, using IDs only 3466 # return the batch object, using IDs only
3466 return Batch(self.client, allowed, self.pagesize, self.startwith, 3467 return Batch(self.client, allowed, self.pagesize, self.startwith,
3467 classname=self.classname) 3468 classname=self.classname)
3468 3469

Roundup Issue Tracker: http://roundup-tracker.org/