comparison MoinMoin/config/multiconfig.py @ 4575:bc0ad5554ab0

backup action: add 'self' dummy argument for backup_exclude function
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 14 Feb 2009 22:21:34 +0100
parents ac61d43c1c5a
children 95dc19f1ea75 641b595ce675
comparison
equal deleted inserted replaced
4574:9a34e851b8bb 4575:bc0ad5554ab0
1200 'These settings control how the backup action works and who is allowed to use it.', 1200 'These settings control how the backup action works and who is allowed to use it.',
1201 ( 1201 (
1202 ('compression', 'gz', 'What compression to use for the backup ("gz" or "bz2").'), 1202 ('compression', 'gz', 'What compression to use for the backup ("gz" or "bz2").'),
1203 ('users', [], 'List of trusted user names who are allowed to get a backup.'), 1203 ('users', [], 'List of trusted user names who are allowed to get a backup.'),
1204 ('include', [], 'List of pathes to backup.'), 1204 ('include', [], 'List of pathes to backup.'),
1205 ('exclude', lambda filename: False, 'Function f(filename) that tells whether a file should be excluded from backup. By default, nothing is excluded.'), 1205 ('exclude', lambda self, filename: False, 'Function f(self, filename) that tells whether a file should be excluded from backup. By default, nothing is excluded.'),
1206 )), 1206 )),
1207 } 1207 }
1208 1208
1209 def _add_options_to_defconfig(opts, addgroup=True): 1209 def _add_options_to_defconfig(opts, addgroup=True):
1210 for groupname in opts: 1210 for groupname in opts: