renamed _name to name in members.py and changed config files. individual entries in the config MUST have the underscore prefix; not the code!

This commit is contained in:
Johannes Findeisen 2013-11-09 05:10:37 +01:00
commit 707229b36e
4 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{
"members":{
"root":{
"name": "root",
"_name": "root",
"tasks": [
{
"class": "alert/mail",
@ -31,7 +31,7 @@
]
},
"hannes":{
"name": "hannes",
"_name": "hannes",
"tasks": [
{
"class": "alert/mail",

View file

@ -10,7 +10,7 @@
},
"members":{
"root":{
"name": "root",
"_name": "root",
"tasks": [
{ "class":"alert/mail", "type": "error", "args": { "_rcpt": "hanez@linspector.org" }}
]

View file

@ -10,7 +10,7 @@
},
"members":{
"hanez":{
"name": "admin",
"_name": "admin",
"tasks": [
{ "class":"alert/mail", "type": "error", "args": { "_rcpt": "hanez@linspector.org" }}
]

View file

@ -36,12 +36,12 @@ class MemberMissingArgumentException(MemberException):
class Member:
def __init__(self, _name, **kwargs):
self.name = _name
def __init__(self, name, **kwargs):
self.name = name
tmp = "tasks"
self.__tasks = []
if not tmp in kwargs:
raise MemberMissingArgumentException(tmp, _name)
raise MemberMissingArgumentException(tmp, name)
self.add_tasks(kwargs[tmp])
def __add_internal(self, l, item):