Mercurial > p > roundup > code
comparison roundup/configuration.py @ 8136:5a2b9435a04d permission-performance
Make permission filter functions configurable
For debugging and performance measurements it makes sense to allow
turning permission filter functions off.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 23 Oct 2024 17:46:05 +0200 |
| parents | 69629a4f7262 |
| children | 6bd11a73f2ed |
comparison
equal
deleted
inserted
replaced
| 8135:aa5ae3f84889 | 8136:5a2b9435a04d |
|---|---|
| 1460 "application restarts.\n"), | 1460 "application restarts.\n"), |
| 1461 )), | 1461 )), |
| 1462 ("rdbms", ( | 1462 ("rdbms", ( |
| 1463 (DatabaseBackend, 'backend', NODEFAULT, | 1463 (DatabaseBackend, 'backend', NODEFAULT, |
| 1464 "Database backend."), | 1464 "Database backend."), |
| 1465 (BooleanOption, "debug_filter", "no", | |
| 1466 "Filter debugging: Permissions can define additional filter\n" | |
| 1467 "functions that are used when checking permissions on results\n" | |
| 1468 "returned by the database. This is done to improve\n" | |
| 1469 "performance since the filtering is done in the database\n" | |
| 1470 "backend, not in python (at least for the SQL backends). The\n" | |
| 1471 "user is responsible for making the filter return the same\n" | |
| 1472 "set of results as the check function for a permission. So it\n" | |
| 1473 "makes sense to aid in debugging (and performance\n" | |
| 1474 "measurements) to allow turning off the usage of filter\n" | |
| 1475 "functions using only the check functions."), | |
| 1465 (Option, 'name', 'roundup', | 1476 (Option, 'name', 'roundup', |
| 1466 "Name of the database to use. For Postgresql, this can\n" | 1477 "Name of the database to use. For Postgresql, this can\n" |
| 1467 "be database.schema to use a specific schema within\n" | 1478 "be database.schema to use a specific schema within\n" |
| 1468 "a Postgres database.", | 1479 "a Postgres database.", |
| 1469 ['MYSQL_DBNAME']), | 1480 ['MYSQL_DBNAME']), |
| 1543 "http://www.postgresql.org/docs/9.1/static/transaction-iso.html"), | 1554 "http://www.postgresql.org/docs/9.1/static/transaction-iso.html"), |
| 1544 (BooleanOption, "serverside_cursor", "yes", | 1555 (BooleanOption, "serverside_cursor", "yes", |
| 1545 "Set the database cursor for filter queries to serverside\n" | 1556 "Set the database cursor for filter queries to serverside\n" |
| 1546 "cursor, this avoids caching large amounts of data in the\n" | 1557 "cursor, this avoids caching large amounts of data in the\n" |
| 1547 "client. This option only applies for the postgresql backend."), | 1558 "client. This option only applies for the postgresql backend."), |
| 1548 ), "Settings in this section (except for backend) are used\n" | 1559 ), "Most settings in this section (except for backend and debug_filter)\n" |
| 1549 " by RDBMS backends only.", | 1560 "are used by RDBMS backends only.", |
| 1550 ), | 1561 ), |
| 1551 ("sessiondb", ( | 1562 ("sessiondb", ( |
| 1552 (SessiondbBackendOption, "backend", "", | 1563 (SessiondbBackendOption, "backend", "", |
| 1553 "Set backend for storing one time key (otk) and session data.\n" | 1564 "Set backend for storing one time key (otk) and session data.\n" |
| 1554 "Values have to be compatible with main backend.\n" | 1565 "Values have to be compatible with main backend.\n" |
