Description

If I try to use the action backup I get

A server error occurred.  Please contact the administrator.

A traceback is shown on the console

Traceback (most recent call last):
  File "/home/user/workspace/moin-1.9/MoinMoin/support/wsgiref/handlers.py", line 92, in run
    self.result = application(self.environ, self.start_response)
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/utils.py", line 815, in __call__
    return self.app(environ, start_response)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 244, in __call__
    response = run(context)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 65, in run
    response = dispatch(request, context, action_name)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 112, in dispatch
    response = handle_action(context, pagename, action_name)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 171, in handle_action
    handler(context.page.page_name, context)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/backup.py", line 105, in execute
    sendBackup(request)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/backup.py", line 46, in sendBackup
    addFiles(path, tar, request.cfg.backup_exclude)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/backup.py", line 31, in addFiles
    if exclude_func(path):
TypeError: <lambda>() takes exactly 1 argument (2 given)

Steps to reproduce

I have configured

backup_users = [u'ReimarBauer', ]
backup_include =  ['/home/user/workspace/moin-1.9/wiki/', ]

If I don't add backup_include to wikiconfig I get a result file of 46 bytes saved.

Component selection

Details

MoinMoin Version

1.8.0/1/2 / 1.9a

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9actionbackup (last edited 2009-02-14 21:27:17 by ThomasWaldmann)