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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -