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:
parent
7db64f59e6
commit
707229b36e
4 changed files with 7 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
"members":{
|
||||
"root":{
|
||||
"name": "root",
|
||||
"_name": "root",
|
||||
"tasks": [
|
||||
{ "class":"alert/mail", "type": "error", "args": { "_rcpt": "hanez@linspector.org" }}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
"members":{
|
||||
"hanez":{
|
||||
"name": "admin",
|
||||
"_name": "admin",
|
||||
"tasks": [
|
||||
{ "class":"alert/mail", "type": "error", "args": { "_rcpt": "hanez@linspector.org" }}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue