Page 1 of 1
[Solved] Processing input arguments
Posted: Tue Jul 31, 2012 10:59 pm
by saleem145
class StockVisuJob(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
# store the component context for later use
self.ctx = ctx
def trigger(self, args):
temp = args
temp.Split("&")
I suspect something is wrong with the string split??
Re: Processing input arguments
Posted: Tue Jul 31, 2012 11:26 pm
by FJCC
If args is a string, then
will create a list called MyArgs. The elements of MyArgs will be the text of temp split at the & characters. Notice that split starts with a lower case s.
Re: Processing input arguments
Posted: Tue Jul 31, 2012 11:27 pm
by Charlie Young
saleem145 wrote:class StockVisuJob(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
# store the component context for later use
self.ctx = ctx
def trigger(self, args):
temp = args
temp.Split("&")
I suspect something is wrong with the string split??
Split should be split (lowercase), and I guess you want
Re: Processing input arguments
Posted: Tue Jul 31, 2012 11:41 pm
by saleem145
Yes I figured that one out....sorry for the dummy post....