for objItem in colItems:
if objItem.Caption != None:
print("Caption:" + objItem.Caption)
print("Command:" + objItem.Command)
print("User:" + objItem.User)
return self.wfile.write('<p>{}<p>'.format(objItem.Caption).encode('utf-8')) # вывод на веб странице
captions = []
for objItem in colItems:
if objItem.Caption != None:
print("Caption:" + objItem.Caption)
print("Command:" + objItem.Command)
print("User:" + objItem.User)
captions.append('<p>{}<p>'.format(objItem.Caption))
captions = '\n'.join(captions)
return self.wfile.write(captions.encode('utf-8'))