From 4d2c3c4fd3c02e6aa1b6483bfe97f9bbc833ea76 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 14 Apr 2013 11:06:44 -0400 Subject: [PATCH] more doc --- documentation/devsup.rst | 6 ++++++ python/devsup/_nullapi.py | 6 ++++-- python/devsup/db.py | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/documentation/devsup.rst b/documentation/devsup.rst index b46502c..f4dcff2 100644 --- a/documentation/devsup.rst +++ b/documentation/devsup.rst @@ -40,6 +40,8 @@ devsup Package .. automethod:: field + .. automethod:: setTime + .. automethod:: scan .. automethod:: asyncStart @@ -66,6 +68,10 @@ devsup Package .. automethod:: getarray .. automethod:: fieldinfo + + .. automethod:: getTime + + .. automethod:: getAlarm .. autoclass:: devsup.db.IOScanListBlock :members: diff --git a/python/devsup/_nullapi.py b/python/devsup/_nullapi.py index 756e651..96bd0c9 100644 --- a/python/devsup/_nullapi.py +++ b/python/devsup/_nullapi.py @@ -34,8 +34,10 @@ class _Record(object): :rtype: bool """ def info(self, key): - """info(key) - info(key, default) + """info(key [,default]) + + :rtype: str + :throws: KeyError Lookup record info tag. If no default is provided then an exception is raised diff --git a/python/devsup/db.py b/python/devsup/db.py index 40f6c9c..c7a3cf3 100644 --- a/python/devsup/db.py +++ b/python/devsup/db.py @@ -241,8 +241,9 @@ class Record(_dbapi._Record): def setTime(self, ts): """Set record timestamp. + :param ts: timetuple, float, or (sec, nsec). + Has not effect if the TSE field is not set to -2. - Accepts timetuple, float, or (sec, nsec). All inputs must be referenced to the posix epoch. """ if hasattr(ts, 'timetuple'):