Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File sql.py.diff,
487 bytes
(added by vinces1979, 3 years ago) |
|
patched to use getattr
|
-
|
|
|
|
| 271 | 271 | identity['user'] = user |
| 272 | 272 | |
| 273 | 273 | user_memberships = getattr(user, self.translations['sections']) |
| 274 | | return set([group.group_name for group in user_memberships]) |
| | 274 | return set([getattr(group, self.translations['section_name']) for group in user_memberships]) |
| 275 | 275 | |
| 276 | 276 | |
| 277 | 277 | class SqlPermissionsAdapter(_BaseSqlAdapter): |
Download in other formats: