]> git.llucax.com Git - software/pymin.git/commitdiff
Don't override the ListSubHandler.delete() method in HopHandler (fixes #19).
authorLeandro Lucarella <llucax@gmail.com>
Sat, 10 May 2008 22:06:04 +0000 (19:06 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 10 May 2008 22:06:04 +0000 (19:06 -0300)
pymin/services/ip/__init__.py

index 12b53e518e2a1d5f45898806b52e0dcc20f17c6c..86551f4ddefdc6b0b62e54ebf270c8a638eba843 100644 (file)
@@ -41,12 +41,6 @@ class HopHandler(ListSubHandler):
             raise DeviceNotFoundError(device)
         return ListSubHandler.add(self, dev, gw)
 
-    @handler(u'Delete a hop: delete <device> <gateway>')
-    def delete(self, dev, gw):
-        if not dev in self.parent.devices:
-            raise DeviceNotFoundError(device)
-        return ListSubHandler.delete(self, dev, gw)
-
 
 class Route(Sequence):
     def __init__(self, net_addr, prefix, gateway):