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

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -