old_contents: import sys
  sys.path.append('../../')
  from lib.cilok import urlEncode16,tokenuri,setTTL,keyuri
  from lib.sampeu import getWMTS
  from apps.models import calendar
  from apps.templates import batik
  
  class Controller(object):
  	def home(self,uridt='null'):
  		provinsi = 'jakarta'
  		provloc = '106.842041, -6.198240'
  		mapzoom = '9'
  		kabkotcord = [
  		'106.50719819999995, -5.798526600000001',
  		'106.810659, -6.267381',
  		'106.886468, -6.258399',
  		'106.832003, -6.179923',
  		'106.755540, -6.170063',
  		'106.892013, -6.133137'
  		]
  		listkabkot = [
  		'%3101%',
  		'%3171%','%3172%','%3173%','%3174%','%3175%'
  		]
  		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
  		cal = calendar.Calendar()
  		dt = {}
  		for kabkot in listkabkot:
  			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
  		cal.close()
  		dt['%WMTS%']=getWMTS()
  		dt['%PERIODE%']=uridt
  		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
  		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
  		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
  		return dt
new_contents: import sys
  sys.path.append('../../')
  from lib.cilok import urlEncode16,tokenuri,setTTL,keyuri
  from lib.sampeu import getWMTS
  from apps.models import calendar
  from apps.templates import batik
  
  class Controller(object):
  	def home(self,uridt='null'):
  		provinsi = 'jakarta'
  		provloc = '106.842041, -6.198240'
  		mapzoom = '9'
  		kabkotcord = [
  		'106.50719819999995, -5.798526600000001',
  		'106.810659, -6.267381',
  		'106.886468, -6.258399',
  		'106.832003, -6.179923',
  		'106.755541, -6.170063',
  		'106.892013, -6.133137'
  		]
  		listkabkot = [
  		'%3101%',
  		'%3171%','%3172%','%3173%','%3174%','%3175%'
  		]
  		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
  		cal = calendar.Calendar()
  		dt = {}
  		for kabkot in listkabkot:
  			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
  		cal.close()
  		dt['%WMTS%']=getWMTS()
  		dt['%PERIODE%']=uridt
  		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
  		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
  		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
  		return dt
subject: Add jakarta