コード例 #1
0
ファイル: kriek_local.py プロジェクト: deba82de/kriek
	def add_brew_status(self):
		brewconfs = BrewConfiguration.objects.all()

		for brewConf in brewconfs:
			#print "Saving Status for brewConf: " + str(brewConf)
			status = Status(brewconfig=brewConf, date=timezone.now(), owner=self.user)
			status.save()
			for probe in brewConf.probes.all():
				status.probes.add(ProbeStatus.clone_from(probe))
			status.save()
コード例 #2
0
ファイル: kriek_local.py プロジェクト: deba82de/kriek
	def add_ferm_status(self):
		fermconfs = FermConfiguration.objects.all()

		for fermConf in fermconfs:
			#print "Saving Status for fermConf: " + str(fermConf)
			#add a status
			status = Status(fermconfig=fermConf, date=timezone.now(), owner=self.user)
			status.save()
			for probe in fermConf.probes.all():
				status.probes.add(ProbeStatus.clone_from(probe))
			status.save()
コード例 #3
0
    def add_brew_status(self):
        brewconfs = BrewConfiguration.objects.all()

        for brewConf in brewconfs:
            #print "Saving Status for brewConf: " + str(brewConf)
            status = Status(brewconfig=brewConf,
                            date=timezone.now(),
                            owner=self.user)
            status.save()
            for probe in brewConf.probes.all():
                status.probes.add(ProbeStatus.clone_from(probe))
            status.save()
コード例 #4
0
    def add_ferm_status(self):
        fermconfs = FermConfiguration.objects.all()

        for fermConf in fermconfs:
            #print "Saving Status for fermConf: " + str(fermConf)
            #add a status
            status = Status(fermconfig=fermConf,
                            date=timezone.now(),
                            owner=self.user)
            status.save()
            for probe in fermConf.probes.all():
                status.probes.add(ProbeStatus.clone_from(probe))
            status.save()