Modify

Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#20 closed enhancement (fixed)

configure AccountManagerPlugin via web administration interface

Reported by: Matt Good Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Gunnar Wagenknecht, charlie.clark@… Trac Release: 0.10

Description (last modified by Alec Thomas)

The AccountManagerPlugin should implement the interfaces from the new web administration plugin to provide web-based configuration of the account module.

Attachments (2)

usermanagement.diff (9.6 KB) - added by charlie.clark@… 19 years ago.
Basic support for user management via webadmin
dbpasswordsource.diff (1.2 KB) - added by charlie.clark@… 19 years ago.
Patched for database user store and webadmin

Download all attachments as: .zip

Change History (14)

comment:1 Changed 19 years ago by Alec Thomas

Description: modified (diff)

comment:2 Changed 19 years ago by Matt Good

Status: newassigned
Summary: configure AccountManagementPlugin via web administration interfaceconfigure AccountManagerPlugin via web administration interface

comment:3 Changed 19 years ago by charlie.clark@…

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

Changed 19 years ago by charlie.clark@…

Attachment: usermanagement.diff added

Basic support for user management via webadmin

Changed 19 years ago by charlie.clark@…

Attachment: dbpasswordsource.diff added

Patched for database user store and webadmin

comment:4 Changed 19 years ago by Marcin Hlybin <marcin@…>

Cc: charlie.clark@… added; anonymous removed
Resolution: invalid
Status: assignedclosed
Trac Release: 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 19 years ago by Marcin Hlybin <marcin@…>

Resolution: invalid
Status: closedreopened

comment:6 in reply to:  description ; Changed 18 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 18 years ago by Matt Good

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 18 years ago by Gunnar Wagenknecht

Cc: Gunnar Wagenknecht added

comment:9 Changed 18 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 18 years ago by Matt Good

(In [1065]) admin page for adding/removing accounts (re #20)

comment:11 Changed 18 years ago by Matt Good

Resolution: fixed
Status: reopenedclosed
Trac Release: 0.90.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 18 years ago by Matt Good

Replying to mgood:

I'm opening a new ticket for administration of the AccountManagerPlugin settings in trac.ini.

That ticket would be #542.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.