source: soft/build_system/build_system/repsys/tags/V1_6_17/RepSys/plugins/sample.py.txt @ 1

Last change on this file since 1 was 1, checked in by fasma, 12 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 473 bytes
Line 
1# Sample repsys plugin. In order to test it, rename to sample.py
2# vim:ft=python
3from RepSys import config
4
5def users_wrapper(section, option=None, default=None, walk=False):
6    d = {"foolano": "Foolano De Tal <foolano@bla.com>",
7         "ceeclano": "Ceeclano Algumacoisa <ceeclano@bli.com>",
8         "beltrano": "Beltrano Bla <beltrano@mail.ru>"}
9    if walk:
10        return d.items()
11   
12    return d.get(option, default)
13
14config.wrap("users", handler=users_wrapper)
Note: See TracBrowser for help on using the repository browser.