Opened 9 years ago
Last modified 6 years ago
#12457 new defect
Some options not written to trac.ini when AccountManagerPlugin is installed
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This issue reminds me of #11520.
To reproduce, create environments before and after installing AccountManager:
$ virtualenv pve $ . pve/bin/activate $ pip install svn+https://svn.edgewall.org/repos/trac/trunk $ trac-admin trac1 initenv "project" sqlite:db/trac.db $ pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk $ trac-admin trac2 initenv "project" sqlite:db/trac.db $ diff trac1/conf/trac.ini trac2/conf/trac.ini
Here is the diff:
+[account-manager] +account_changes_notify_addresses = + [attachment] max_size = 262144 max_zip_size = 2097152 @@ -195,13 +198,10 @@ [trac] auth_cookie_domain = -auth_cookie_lifetime = 0 -auth_cookie_path = auto_preview_timeout = 2.0 auto_reload = disabled backup_dir = db base_url = -check_auth_ip = disabled database = sqlite:db/trac.db debug_sql = disabled default_charset = utf-8 @@ -212,7 +212,6 @@ default_timezone = genshi_cache_size = 128 htdocs_location = -ignore_auth_case = disabled jquery_location = jquery_ui_location = jquery_ui_theme_location =
The options that are redefined on acct_mgr.web_ui.LoginModule
are missing from trac.ini: browser:accountmanagerplugin/trunk/acct_mgr/web_ui.py@15454:315,319,323,332#L305.
Also, an Option
that is defined on acct_mgr.notification.AccountChangeNotification
is mysteriously present. The Option
instance is defined on a class that doesn't inherit from Component
: browser:accountmanagerplugin/trunk/acct_mgr/notification.py@15454:70#L67.