implement Writable as specified.

Change-Id: I8a1b192dcfba91ae1828a2b2e0e2e8bd24538c08
This commit is contained in:
Enrico Faulhaber
2017-09-13 09:32:59 +02:00
parent 54379a586a
commit c5671dd26e
3 changed files with 53 additions and 5 deletions

View File

@ -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()