Added support for classic/timers.

This commit is contained in:
Dhananjay Balan
2013-07-17 16:00:57 +05:30
committed by Chris Johns
parent 591fbf65d3
commit 086e689955
3 changed files with 31 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ import re
import objects
import threads
import watchdog
import supercore
class attribute:
@@ -179,4 +180,17 @@ class message_queue:
print ' Name:', self.object_control.name()
print ' Attr:', self.attr.to_string()
self.core_control.show()
self.core_control.show()
class timer:
'''Print a classic timer'''
def __init__(self, id):
self.id = id
self.object = objects.information.object(self.id).dereference()
self.object_control = objects.control(self.object['Object'])
self.watchdog = watchdog.control(self.object['Ticker'])
def show(self, from_tty):
print ' Name:', self.object_control.name()
self.watchdog.show()