implement Writable as specified.
Change-Id: I8a1b192dcfba91ae1828a2b2e0e2e8bd24538c08
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
|
||||
import random
|
||||
|
||||
from secop.modules import Readable, Drivable, PARAM
|
||||
from secop.modules import Readable, Drivable, Communicator, PARAM
|
||||
from secop.datatypes import FloatRange, StringType
|
||||
|
||||
|
||||
@ -84,3 +84,9 @@ class Temp(Drivable):
|
||||
|
||||
def write_target(self, target):
|
||||
pass
|
||||
|
||||
|
||||
class Lower(Communicator):
|
||||
"""Communicator returning a lowercase version of the request"""
|
||||
def do_communicate(self, request):
|
||||
return str(request).lower()
|
||||
|
Reference in New Issue
Block a user