python - Jython: Parameterize values in quotes -


how parameter values in quotes in jython, calling method :

basestsschedulertask.init(self, test(testid, “get service group id”), hostport, ‘/schservices/api/servicegroup/9999′, headers)

i want replace value 9999 variable returned method., id= data.getid().

i tried doing ‘/schservices/api/servicegroup/’+id, not . idea how handle ?

ok, fixed doing : ‘/schservices/api/servicegroup/’+self.id, "id" built in function in jython. self.id instance variable.


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -