SetApplication Parsing
Chris Johnson <[email protected]>
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi.
It seems that if I include superfluous spaces in the string I pass to the client node's SetApplication method, not all of them are parsed away as field separators. For instance,
client_node.SetApplication ('my_app arg1')
^^
will load my_app with 3 arguments ('my_app', '', and 'arg1'). However,
client_node.SetApplication ('my_app arg1')
^
runs as expected. This is in contrast to the AutoStart method, which uses Python's split function and handles multiple IFSes.
Perhaps there is a reason SetApplication does not behave the same. If so, please let me know. For the time being, I've changed the following CRApplicationNode method in mothership.py.
def SetApplication( self, app ):
"""SetApplication(name)
Sets the name of the application that's run."""
self.Conf('application', string.join (string.split (app)))
I think everyone else does parentheses different than me.
--
Chris Johnson
[email protected]
http://www.cs.utk.edu/~cjohnson
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com