git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge from head.
[plcapi.git]
/
PLC
/
Methods
/
AdmAddAddressType.py
diff --git
a/PLC/Methods/AdmAddAddressType.py
b/PLC/Methods/AdmAddAddressType.py
index
d969dae
..
e0cd09d
100644
(file)
--- a/
PLC/Methods/AdmAddAddressType.py
+++ b/
PLC/Methods/AdmAddAddressType.py
@@
-1,3
+1,8
@@
+from PLC.Faults import *
+from PLC.Method import Method
+from PLC.Parameter import Parameter, Mixed
+from PLC.AddressTypes import AddressType, AddressTypes
+from PLC.Auth import Auth
from PLC.Methods.AddAddressType import AddAddressType
class AdmAddAddressType(AddAddressType):
from PLC.Methods.AddAddressType import AddAddressType
class AdmAddAddressType(AddAddressType):
@@
-6,3
+11,11
@@
class AdmAddAddressType(AddAddressType):
"""
status = "deprecated"
"""
status = "deprecated"
+
+ accepts = [
+ Auth(),
+ AddressType.fields['name']
+ ]
+
+ def call(self, auth, name):
+ return AddAddressType.call(self, auth, {'name': name})