ncoronado / tracshell

Automatically exported from code.google.com/p/tracshell
1 stars 0 forks source link

respect Trac permissions #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Describe the enhancement in detail.

Trac issues its own permissions to users which may limit which XML-RPC
methods are available to them. Currently, if a user isn't allowed to edit a
ticket but tries to use the edit command in TracShell, they will get a
xmlrpclib.Fault exception printed out which isn't helpful.

The enhancement proposes a way to check the available XML-RPC methods at
startup time and handle the issue gracefully in the shell. Either by
limiting which do_* functions are available or by warning the user and
avoiding executing the entire function.

What files will be affected?

tracshell/shell.py
tracshell/trac.py

How will the enhancement benefit the project?

It will make the program more usable and less prone to error.

What side-effects (if any) will the enhancement create?

None

Original issue reported on code.google.com by j.kennet...@gmail.com on 17 Feb 2009 at 7:35

GoogleCodeExporter commented 8 years ago
it's coming along. will hopefully have a solution this week. will change code 
quite a
bit.

Original comment by j.kennet...@gmail.com on 2 Mar 2009 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by j.kennet...@gmail.com on 3 Mar 2009 at 3:36

GoogleCodeExporter commented 8 years ago
initial fix in r22

new Shell class and changes to TracShell class to dynmically generate shell 
based on
methods available to user from xmlrpclib.system.listMethods

also changes how shortcuts are generated (gathered at init time)

Original comment by j.kennet...@gmail.com on 4 Mar 2009 at 8:23