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
Removed dummynet stuff.
[plcapi.git]
/
PLC
/
Methods
/
DeleteAddress.py
diff --git
a/PLC/Methods/DeleteAddress.py
b/PLC/Methods/DeleteAddress.py
index
f50e15b
..
0b0924d
100644
(file)
--- a/
PLC/Methods/DeleteAddress.py
+++ b/
PLC/Methods/DeleteAddress.py
@@
-1,3
+1,5
@@
+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-35,6
+37,9
@@
class DeleteAddress(Method):
raise PLCPermissionDenied, "Address must be associated with one of your sites"
address.delete()
raise PLCPermissionDenied, "Address must be associated with one of your sites"
address.delete()
- self.object_ids = [address['address_id']]
+
+ # Logging variables
+ self.event_objects = {'Address': [address['address_id']]}
+ self.message = 'Address %d deleted' % address['address_id']
return 1
return 1