Mercurial > p > roundup > code
comparison roundup/rest.py @ 7569:940f06dac1b4
flake8: add space between raise and (
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 23 Jul 2023 23:23:17 -0400 |
| parents | 5775d2c4a846 |
| children | 26ef5054e510 |
comparison
equal
deleted
inserted
replaced
| 7568:a2ecc31c43ac | 7569:940f06dac1b4 |
|---|---|
| 565 if isinstance(prop, hyperdb.Multilink): | 565 if isinstance(prop, hyperdb.Multilink): |
| 566 raise UsageError( | 566 raise UsageError( |
| 567 'Multilink Traversal not allowed: %s' % p) | 567 'Multilink Traversal not allowed: %s' % p) |
| 568 # Now we have the classname in cn and the prop name in pn. | 568 # Now we have the classname in cn and the prop name in pn. |
| 569 if not self.db.security.hasPermission('View', uid, cn, pn): | 569 if not self.db.security.hasPermission('View', uid, cn, pn): |
| 570 raise(Unauthorised | 570 raise (Unauthorised |
| 571 ('User does not have permission on "%s.%s"' | 571 ('User does not have permission on "%s.%s"' |
| 572 % (cn, pn))) | 572 % (cn, pn))) |
| 573 try: | 573 try: |
| 574 cn = prop.classname | 574 cn = prop.classname |
| 575 except AttributeError: | 575 except AttributeError: |
