diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-04 15:03:57 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-04 15:03:57 +0000 |
commit | b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2 (patch) | |
tree | 0d16405bf439725375a68146a342fa0f44f4b5fa /RepSys/plugins/sample.py.txt | |
parent | f23797f8de1cdc3bb555fb4267ce9eec4c6f3968 (diff) | |
download | mgarepo-b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2.tar mgarepo-b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2.tar.gz mgarepo-b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2.tar.bz2 mgarepo-b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2.tar.xz mgarepo-b2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2.zip |
Frontported changes from V1_6_X since april
Diffstat (limited to 'RepSys/plugins/sample.py.txt')
-rw-r--r-- | RepSys/plugins/sample.py.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/RepSys/plugins/sample.py.txt b/RepSys/plugins/sample.py.txt new file mode 100644 index 0000000..9877f3c --- /dev/null +++ b/RepSys/plugins/sample.py.txt @@ -0,0 +1,14 @@ +# Sample repsys plugin. In order to test it, rename to sample.py +# vim:ft=python +from RepSys import config + +def users_wrapper(section, option=None, default=None, walk=False): + d = {"foolano": "Foolano De Tal <foolano@bla.com>", + "ceeclano": "Ceeclano Algumacoisa <ceeclano@bli.com>", + "beltrano": "Beltrano Bla <beltrano@mail.ru>"} + if walk: + return d.items() + + return d.get(option, default) + +config.wrap("users", handler=users_wrapper) |