Beispiel #1
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()
Beispiel #2
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()
Beispiel #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()
Beispiel #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()