minor refactoring

This commit is contained in:
Miroslav Stampar
2012-04-05 12:55:26 +00:00
parent 02924eb345
commit 2223c884e5
3 changed files with 9 additions and 2 deletions

View File

@@ -242,6 +242,13 @@ class Agent:
return payload
def adjustSleepTime(self, payload):
"""
Returns payload with a replaced tag for SLEEPTIME
"""
return payload.replace("[SLEEPTIME]", str(conf.timeSec)) if payload else payload
def getComment(self, request):
"""
Returns comment form for the given request