Mercurial > p > roundup > code
comparison doc/upgrading.txt @ 5881:9938c40e03bc
Add "rest" and "xmlrpc" values for database tx_Source property
issue2551059: added new values for tx_Source to indicate when /rest
or /xmlrpc endpoint is being used rather than the html web
interface.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 28 Sep 2019 18:28:17 -0400 |
| parents | 94a7669677ae |
| children | 29d428927362 |
comparison
equal
deleted
inserted
replaced
| 5880:e9221d8ad3ba | 5881:9938c40e03bc |
|---|---|
| 61 | 61 |
| 62 db.security.addPermissionToRole('User', 'Xmlrpc Access') | 62 db.security.addPermissionToRole('User', 'Xmlrpc Access') |
| 63 | 63 |
| 64 This is usually included near where other permissions like "Web Access" | 64 This is usually included near where other permissions like "Web Access" |
| 65 or "Email Access" are assigned. | 65 or "Email Access" are assigned. |
| 66 | |
| 67 New values for db.tx_Source | |
| 68 --------------------------- | |
| 69 | |
| 70 The database attribute tx_Source reports "xmlrpc" and "rest" when the | |
| 71 /xmlrpc and /rest web endpoints are used. Check all code (extensions, | |
| 72 detectors, lib) in trackers looking for tx_Source. If you have code | |
| 73 like:: | |
| 74 | |
| 75 if db.tx_Source == "web": | |
| 76 | |
| 77 or:: | |
| 78 | |
| 79 if db.tx_Source in ['web', 'email-sig-openpgp', 'cli' ]: | |
| 80 | |
| 81 you may need to change these to include matches to "rest" and | |
| 82 "xmlrpc". For example:: | |
| 83 | |
| 84 if db.tx_Source in [ "web", "rest", "xmlrpc" ] | |
| 85 | |
| 86 or:: | |
| 87 | |
| 88 if db.tx_Source in ['web', 'rest', 'xmlrpc', 'email-sig-openpgp', 'cli' ]: | |
| 89 | |
| 66 | 90 |
| 67 Python 3 support | 91 Python 3 support |
| 68 ---------------- | 92 ---------------- |
| 69 | 93 |
| 70 Many of the ``.html`` and ``.py`` files from Roundup that are copied | 94 Many of the ``.html`` and ``.py`` files from Roundup that are copied |
