예제 #1
0
 def __init__(self):
     dburi = "mongodb://*****:*****@127.0.1:27017/rnc_production"
     rncMongoDB.__init__(self, dburi, "rnc_production")
     #
     self.deleteCollections()
     self.createCollections()
     self.createVoivideshipsCollection()
     self.createCountiesCollection()
     self.createCitiesCollection()
예제 #2
0
    def __init__(self):
	print "menData"
	dburi = 'mongodb://*****:*****@127.0.1:27017/rnc_production'
	rncMongoDB.__init__(self,dburi,"rnc_production")
	
	#
	self.collVoiv = self.mongoDB['voivodeships']
	self.collConties = self.mongoDB['counties']
	self.collCities = self.mongoDB['cities']
	self.collSchoolType = self.mongoDB['schooltypes']
	self.collServiceGroup = self.mongoDB['servicegroups']
	self.collServiceGroupMember = self.mongoDB['servicegroupmemberss']
	#
	# rekreate kolekcje listy szkol
	#self._recreateSchoolCollection()
	self._deleteSchoolsGroupsAndMembers()
	#
	self.readDataFromXLS()