# Sample mgarepo plugin. In order to test it, rename to sample.py
# vim:ft=python
from MgaRepo 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)
