Ticket #20 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

configure AccountManagerPlugin via web administration interface

Reported by: mgood Assigned to: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: gunnar, charlie.clark@yellowtab.com 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

usermanagement.diff (9.6 kB) - added by charlie.clark@yellowtab.com on 11/11/05 04:10:42.
Basic support for user management via webadmin
dbpasswordsource.diff (1.2 kB) - added by charlie.clark@yellowtab.com on 11/11/05 04:12:02.
Patched for database user store and webadmin

Change History

07/20/05 00:47:16 changed by athomas

  • description changed.

07/20/05 00:49:29 changed by mgood

  • status changed from new to assigned.
  • summary changed from configure AccountManagementPlugin via web administration interface to configure AccountManagerPlugin via web administration interface.

11/10/05 08:24:11 changed by charlie.clark@yellowtab.com

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

11/11/05 04:10:42 changed by charlie.clark@yellowtab.com

  • attachment usermanagement.diff added.

Basic support for user management via webadmin

11/11/05 04:12:02 changed by charlie.clark@yellowtab.com

  • attachment dbpasswordsource.diff added.

Patched for database user store and webadmin

04/14/06 06:36:20 changed by Marcin Hlybin, marcin.hlybin@swmind.com

  • cc set to charlie.clark@yellowtab.com.
  • release set to 0.9.
  • status changed from assigned to closed.
  • resolution set to invalid.

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

04/14/06 06:37:21 changed by Marcin Hlybin, marcin.hlybin@swmind.com

  • status changed from closed to reopened.
  • resolution deleted.

(in reply to: ↑ description ; follow-up: ↓ 7 ) 06/15/06 05:21:25 changed by mfeldheim@gmail.com

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)

(in reply to: ↑ 6 ) 06/15/06 10:22:27 changed 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.

06/15/06 16:01:01 changed by gunnar

  • cc changed from charlie.clark@yellowtab.com to gunnar, charlie.clark@yellowtab.com.

06/19/06 04:47:59 changed 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.

07/26/06 21:39:00 changed by mgood

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

(follow-up: ↓ 12 ) 07/26/06 21:45:03 changed by mgood

  • release changed from 0.9 to 0.10.
  • status changed from reopened to closed.
  • resolution set to fixed.

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.

(in reply to: ↑ 11 ) 07/26/06 21:45:41 changed 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.


Add/Change #20 (configure AccountManagerPlugin via web administration interface)




Change Properties
Action