fast fertig
This commit is contained in:
parent
ee136000cb
commit
a572a80cae
Binary file not shown.
@ -32,7 +32,6 @@ class Application_cl(object):
|
|||||||
def category(self, cat=None):
|
def category(self, cat=None):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
print("Category: ", cat, "\n")
|
print("Category: ", cat, "\n")
|
||||||
self.db.ReadAll()
|
|
||||||
if(cat==None):
|
if(cat==None):
|
||||||
return self.GenerateIndex()
|
return self.GenerateIndex()
|
||||||
else:
|
else:
|
||||||
@ -43,7 +42,6 @@ class Application_cl(object):
|
|||||||
def choice(self):
|
def choice(self):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
print("Choice \n")
|
print("Choice \n")
|
||||||
self.db.ReadAll()
|
|
||||||
return self.GenerateListChoice()
|
return self.GenerateListChoice()
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
|
|
||||||
@ -51,7 +49,6 @@ class Application_cl(object):
|
|||||||
def eval(self, cat):
|
def eval(self, cat):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
print("Eval \n")
|
print("Eval \n")
|
||||||
self.db.ReadAll()
|
|
||||||
self.db.CheckDates()
|
self.db.CheckDates()
|
||||||
return self.GenerateListEval(cat)
|
return self.GenerateListEval(cat)
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@ -123,6 +120,7 @@ class Application_cl(object):
|
|||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
def GenerateList(self, category):
|
def GenerateList(self, category):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
self.db.ReadAll()
|
||||||
data = {}
|
data = {}
|
||||||
data['content'] = {}
|
data['content'] = {}
|
||||||
data['headings'] = {}
|
data['headings'] = {}
|
||||||
@ -138,6 +136,7 @@ class Application_cl(object):
|
|||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
def GenerateListChoice(self):
|
def GenerateListChoice(self):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
self.db.ReadAll()
|
||||||
data = {}
|
data = {}
|
||||||
data['content'] = {}
|
data['content'] = {}
|
||||||
offerings = self.db.data['Angebote']
|
offerings = self.db.data['Angebote']
|
||||||
@ -153,6 +152,7 @@ class Application_cl(object):
|
|||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
def GenerateDetail(self, category, id=None):
|
def GenerateDetail(self, category, id=None):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
self.db.ReadAll()
|
||||||
data = {}
|
data = {}
|
||||||
data['category'] = category
|
data['category'] = category
|
||||||
print("Detail",category,id)
|
print("Detail",category,id)
|
||||||
@ -172,6 +172,7 @@ class Application_cl(object):
|
|||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
def GenerateDetailChoice(self, id):
|
def GenerateDetailChoice(self, id):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
self.db.ReadAll()
|
||||||
data = {}
|
data = {}
|
||||||
data['id'] = id
|
data['id'] = id
|
||||||
data = self.db.data['Angebote'][id]
|
data = self.db.data['Angebote'][id]
|
||||||
@ -183,6 +184,7 @@ class Application_cl(object):
|
|||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
def GenerateListEval(self, cat):
|
def GenerateListEval(self, cat):
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
self.db.ReadAll()
|
||||||
data = {}
|
data = {}
|
||||||
Studenten = self.db.data['Studenten']
|
Studenten = self.db.data['Studenten']
|
||||||
Lehrender = self.db.data['Lehrender']
|
Lehrender = self.db.data['Lehrender']
|
||||||
|
13
Praktikum2/ppm1/data/Angebote/26.json
Normal file
13
Praktikum2/ppm1/data/Angebote/26.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"id": "26",
|
||||||
|
"ZeitraumVon": "02.02.2019",
|
||||||
|
"Firma": "Apple",
|
||||||
|
"Student": "10",
|
||||||
|
"Beschreibung": "Beschreibung",
|
||||||
|
"Name": "Name",
|
||||||
|
"Lehrender": "5",
|
||||||
|
"Firmenbetreuer": "Firmenbetreuer3",
|
||||||
|
"Voraussetzungen": "Kein",
|
||||||
|
"Status": "aktuell",
|
||||||
|
"ZeitraumBis": "02.02.2020"
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
25
|
26
|
@ -1 +1 @@
|
|||||||
8
|
13
|
Loading…
x
Reference in New Issue
Block a user