#20 closed enhancement (fixed)
configure AccountManagerPlugin via web administration interface
| Reported by: | mgood | Owned by: | mgood |
|---|---|---|---|
| Priority: | normal | Component: | AccountManagerPlugin |
| Severity: | normal | Keywords: | |
| Cc: | gunnar, charlie.clark@… | Trac Release: | 0.10 |
Description (last modified by athomas)
The AccountManagerPlugin should implement the interfaces from the new web administration plugin to provide web-based configuration of the account module.
Attachments (2)
Change History (14)
comment:1 Changed 8 years ago by athomas
- Description modified (diff)
comment:2 Changed 8 years ago by mgood
- Status changed from new to assigned
- Summary changed from configure AccountManagementPlugin via web administration interface to configure AccountManagerPlugin via web administration interface
comment:3 Changed 8 years ago by charlie.clark@…
comment:4 Changed 7 years ago by Marcin Hlybin, marcin.hlybin@…
- Cc charlie.clark@… added
- Resolution set to invalid
- Status changed from assigned to closed
- Trac Release set to 0.9
I suppose that patch usermanagement.diff is obsolete. I tried to patch webadmin line by line using vim but afterwards trac (version 0.9.4) crash with:
Oops...
Trac detected an internal error:
No module named path
Traceback (most recent call last):
File "/trac/trac/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line 130, in run
dispatch_request(req.path_info, req, env)
File "/trac/trac/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/trac/trac/lib/python2.4/site-packages/trac/web/main.py", line 83, in dispatch
req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
File "/trac/trac/lib/python2.4/site-packages/trac/web/chrome.py", line 195, in get_all_templates_dirs
dirs += provider.get_templates_dirs()
File "/trac/python/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r3112-py2.4.egg/webadmin/web_ui.py", line 132, in get_templates_dirs
from pkg_resources import resource_filename
File "/trac/python/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 16, in ?
import sys, os, zipimport, time, re, imp, new
File "/usr/local/lib/python2.4/os.py", line 133, in ?
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
ImportError: No module named path
I would be grateful for help because it's quite important.
Regards
comment:5 Changed 7 years ago by Marcin Hlybin, marcin.hlybin@…
- Resolution invalid deleted
- Status changed from closed to reopened
comment:6 in reply to: ↑ description ; follow-up: ↓ 7 Changed 7 years ago by mfeldheim@…
Replying to anonymous:
The AccountManagerPlugin should implement the interfaces from the new web administration plugin to provide web-based configuration of the account module.
Using Trac 0.9.5 the statements
roles = self.env.get_roles() status = self.env.get_status()
fail with error
'trac.env.Environment' object has no attribute 'get_roles' 'trac.env.Environment' object has no attribute 'get_status'
What can I do?
(merged the diff file manually)
comment:7 in reply to: ↑ 6 Changed 7 years ago by mgood
Replying to mfeldheim@gmail.com:
Using Trac 0.9.5 the statements
roles = self.env.get_roles() status = self.env.get_status()
fail with error
'trac.env.Environment' object has no attribute 'get_roles' 'trac.env.Environment' object has no attribute 'get_status'
What can I do?
The patches attached by Charlie Clark depend on some other patches he made to Trac, so they will not work on any official Trac version.
comment:8 Changed 7 years ago by gunnar
- Cc gunnar added
comment:9 Changed 7 years ago by Charlie Clark
Trac has no concept of roles, nor even really of users which is why I implemented them in RelationalTrac and supplied the patches for AccountManager to work with these. I don't understand why the plugin would throw errors if not using dbauth.
comment:10 Changed 7 years ago by mgood
comment:11 follow-up: ↓ 12 Changed 7 years ago by mgood
- Resolution set to fixed
- Status changed from reopened to closed
- Trac Release changed from 0.9 to 0.10
r1065 implemented basic account administration for use with Trac 0.10. I'm opening a new ticket for administration of the AccountManagerPlugin settings in trac.ini.
comment:12 in reply to: ↑ 11 Changed 7 years ago by mgood
Replying to mgood:
I'm opening a new ticket for administration of the AccountManagerPlugin settings in trac.ini.
That ticket would be #542.


Am currently working on a "user.py" for webadmin. Highly tied in to my own "RelationalTac" stuff but will post the diffs here.