#! /usr/bin/python
# -*- coding: utf-8 -*-
#
#	tcbn_update.py
#
#					Jun/27/2012
#
import	sys
import	json
import	string
import	pytc
#
sys.path.append ('/var/www/data_base/common/python_common')
from dbm_manipulate import dbm_update_proc
# ------------------------------------------------------------
print ("*** 開始 ***")
#
file_tcbn = sys.argv[1]
id_in = sys.argv[2]
population_in = string.atoi (sys.argv[3])
print ("%s\t%d" % (id_in, population_in))
#
db = pytc.BDB(file_tcbn, pytc.BDBOWRITER | pytc.BDBOCREAT)
#
dbm_update_proc	(db,id_in,population_in)
db.close ()
#
print ("*** 終了 ***")
#
# ------------------------------------------------------------

#! /usr/bin/python
# -*- coding: utf-8 -*-
#
#	tcbn_update.py
#
#					Jun/27/2012
#
import	sys
import	json
import	string
import	pytc
#
sys.path.append ('/var/www/data_base/common/python_common')
from dbm_manipulate import dbm_update_proc
# ------------------------------------------------------------
print ("*** 開始 ***")
#
file_tcbn = sys.argv[1]
id_in = sys.argv[2]
population_in = string.atoi (sys.argv[3])
print ("%s\t%d" % (id_in, population_in))
#
db = pytc.BDB(file_tcbn, pytc.BDBOWRITER | pytc.BDBOCREAT)
#
dbm_update_proc	(db,id_in,population_in)
db.close ()
#
print ("*** 終了 ***")
#
# ------------------------------------------------------------

#! /usr/bin/python # -*- coding: utf-8 -*- # #	tcbn_update.py # #					Jun/27/2012 # # # ------------------------------------------------------------ # # # # # # ------------------------------------------------------------