mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
utils/apparmor/yasti.py: remove XXX comments; when the time comes for
someone to attempt to see if things work with the python ycp bindings, they'll discover whether the functions are the right ones or not.
This commit is contained in:
@@ -42,7 +42,7 @@ def SendDataToYast(data):
|
|||||||
ycommand, ypath, yargument = ParseCommand(line)
|
ycommand, ypath, yargument = ParseCommand(line)
|
||||||
if ycommand and ycommand == 'Read':
|
if ycommand and ycommand == 'Read':
|
||||||
debug_logger.info('SendDataToYast: Sending--%s' % data)
|
debug_logger.info('SendDataToYast: Sending--%s' % data)
|
||||||
ycp.Return(data) # XXX is this right?
|
ycp.Return(data)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
debug_logger.info('SendDataToYast: Expected \'Read\' but got-- %s' % line)
|
debug_logger.info('SendDataToYast: Expected \'Read\' but got-- %s' % line)
|
||||||
@@ -55,7 +55,7 @@ def GetDataFromYast():
|
|||||||
ycommand, ypath, yarg = ParseCommand(line)
|
ycommand, ypath, yarg = ParseCommand(line)
|
||||||
debug_logger.info('GetDataFromYast: Recieved--\n%s' % yarg)
|
debug_logger.info('GetDataFromYast: Recieved--\n%s' % yarg)
|
||||||
if ycommand and ycommand == 'Write':
|
if ycommand and ycommand == 'Write':
|
||||||
ycp.Return('true') # XXX is this right?
|
ycp.Return('true')
|
||||||
return ypath, yarg
|
return ypath, yarg
|
||||||
else:
|
else:
|
||||||
debug_logger.info('GetDataFromYast: Expected Write but got-- %s' % line)
|
debug_logger.info('GetDataFromYast: Expected Write but got-- %s' % line)
|
||||||
@@ -98,7 +98,7 @@ def ParseTerm(inp):
|
|||||||
inp = regex_term.sub('', inp)
|
inp = regex_term.sub('', inp)
|
||||||
if not inp.startswith('('):
|
if not inp.startswith('('):
|
||||||
ycp.y2error('No term parantheses')
|
ycp.y2error('No term parantheses')
|
||||||
argref, err, rest = ycp.ParseYcpTermBody(inp) # XXX
|
argref, err, rest = ycp.ParseYcpTermBody(inp)
|
||||||
if err:
|
if err:
|
||||||
ycp.y2error('%s (%s)' % (err, rest))
|
ycp.y2error('%s (%s)' % (err, rest))
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user