Description
User instance has no attribute 'getFilename'
If you want to report a bug, please save this page and attach it to your bug report. Describe the bug...
Steps to reproduce
Installed ManageUsers in the appropriate /data location
<<ManageUsers>> to use it
- shouldn't that be enough?
Example
Traceback A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0x118edd0>) 1281 self.page.send_page(msg=msg) 1282 else: 1283 handler(self.page.page_name, self) 1284 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now: handler = <function execute at 0x12429b0> self = <MoinMoin.request.request_cgi.Request object at 0x118edd0> self.page = <MoinMoin.Page.Page object at 0x121fbd0> self.page.page_name = u'UserManagement' /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/action/edit.py in execute (pagename=u'UserManagement', request=<MoinMoin.request.request_cgi.Request object at 0x118edd0>) 187 188 # sets revision number to default for further actions 189 request.rev = 0 190 pg.send_page(msg=savemsg) 191 pg = <MoinMoin.Page.Page object at 0x15947b0> pg.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object at 0x15947b0>> msg undefined savemsg = 'Thank you for your changes. Your attention to detail is appreciated.' /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x15947b0>, msg='Thank you for your changes. Your attention to detail is appreciated.', **keywords={}) 1179 format_args=pi['formatargs'], 1180 do_cache=do_cache, 1181 start_line=pi['lines']) 1182 1183 # check for pending footnotes start_line undefined pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x159c648>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0} /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x15947b0>, request=<MoinMoin.request.request_cgi.Request object at 0x118edd0>, body=u'<<ManageUsers>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0}) 1273 try: 1274 code = self.makeCache(request, parser) 1275 self.execute(request, parser, code) 1276 except Exception, e: 1277 if not is_cache_exception(e): self = <MoinMoin.Page.Page object at 0x15947b0> self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x15947b0>> request = <MoinMoin.request.request_cgi.Request object at 0x118edd0> parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x159c788> code = <code object <module> at 0x1614f50, file "UserManagement", line 2> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x15947b0>, request=<MoinMoin.request.request_cgi.Request object at 0x118edd0>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x159c788>, code=<code object <module> at 0x1614f50, file "UserManagement", line 2>) 1298 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy') 1299 try: 1300 exec code 1301 except "CacheNeedsUpdate": # convert the exception 1302 raise Exception("CacheNeedsUpdate") code = <code object <module> at 0x1614f50, file "UserManagement", line 2> /moinwiki/share/moin/orangesnoodwiki/UserManagement in () /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x159c7d8>, macro_obj=<MoinMoin.macro.Macro instance at 0x15bffd0>, name=u'ManageUsers', args=None, markup=u'<<ManageUsers>>') 306 # call the macro 307 try: 308 return macro_obj.execute(name, args) 309 except ImportError, err: 310 errmsg = unicode(err) macro_obj = <MoinMoin.macro.Macro instance at 0x15bffd0> macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x15bffd0>> name = u'ManageUsers' args = None /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x15bffd0>, macro_name=u'ManageUsers', args=None) 114 else: 115 raise ImportError("Cannot load macro %s" % macro_name) 116 return execute(self, args) 117 118 def _m_lang(self, text): execute = <function execute at 0x10993b0> self = <MoinMoin.macro.Macro instance at 0x15bffd0> args = None /moinwiki/share/moin/orangesnoodwiki/data/plugin/macro/ManageUsers.py in execute (macro=<MoinMoin.macro.Macro instance at 0x15bffd0>, args=None) 104 return wikiutil.invoke_extension_function( 105 macro.request, macro_ManageUsers, 106 args, [macro]) 107 except ValueError, err: 108 return macro.request.formatter.text( args = None macro = <MoinMoin.macro.Macro instance at 0x15bffd0> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/MoinMoin/wikiutil.py in invoke_extension_function (request=<MoinMoin.request.request_cgi.Request object at 0x118edd0>, function=<function macro_ManageUsers at 0x10991b0>, args=None, fixed_args=[<MoinMoin.macro.Macro instance at 0x15bffd0>]) 1757 kwargs_to_pass.keys()[0])) 1758 1759 return function(*fixed_args, **kwargs) 1760 1761 function = <function macro_ManageUsers at 0x10991b0> fixed_args = [<MoinMoin.macro.Macro instance at 0x15bffd0>] kwargs = {'args': None} /moinwiki/share/moin/orangesnoodwiki/data/plugin/macro/ManageUsers.py in macro_ManageUsers (macro=<MoinMoin.macro.Macro instance at 0x15bffd0>, args=None) 87 "sysadm": "users"}), 88 request.formatter.text(account.id), 89 wikiutil.link_tag(request, "%s?useradm=%s" % (macro.formatter.page.page_name, account.getFilename()), "delete"), 90 )) 91 global wikiutil = <module 'MoinMoin.wikiutil' from '/Library/Frame...b/python2.5/site-packages/MoinMoin/wikiutil.pyc'> wikiutil.link_tag = <function link_tag at 0x108dbf0> request = <MoinMoin.request.request_cgi.Request object at 0x118edd0> macro = <MoinMoin.macro.Macro instance at 0x15bffd0> macro.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x159c7d8> macro.formatter.page = <MoinMoin.Page.Page object at 0x15947b0> macro.formatter.page.page_name = u'UserManagement' account = <MoinMoin.user.User at 0x15f8f80 name:u'RedByer' valid:1> account.getFilename undefined AttributeError User instance has no attribute 'getFilename' args = ("User instance has no attribute 'getFilename'",) message = "User instance has no attribute 'getFilename'" System Details Date: Sat, 03 May 2008 07:00:16 +0000 Platform: Darwin www.knownothings.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh Python: Python 2.5.2 (/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python) MoinMoin: Release 1.6.3 (release)
Component selection
- general
Details
MoinMoin Version |
1.6.3 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
Plan
- Priority:
- Assigned to:
Status: ManageUsers seems to be a 3rd party extension and likely needs to be updated for 1.6 (please report bugs to its author)