fast fertig

This commit is contained in:
darthsandmann 2016-11-17 13:55:22 +01:00
parent ee136000cb
commit a572a80cae
5 changed files with 20 additions and 5 deletions

View File

@ -32,7 +32,6 @@ class Application_cl(object):
def category(self, cat=None):
#-------------------------------------------------------
print("Category: ", cat, "\n")
self.db.ReadAll()
if(cat==None):
return self.GenerateIndex()
else:
@ -43,7 +42,6 @@ class Application_cl(object):
def choice(self):
#-------------------------------------------------------
print("Choice \n")
self.db.ReadAll()
return self.GenerateListChoice()
@cherrypy.expose
@ -51,7 +49,6 @@ class Application_cl(object):
def eval(self, cat):
#-------------------------------------------------------
print("Eval \n")
self.db.ReadAll()
self.db.CheckDates()
return self.GenerateListEval(cat)
@cherrypy.expose
@ -123,6 +120,7 @@ class Application_cl(object):
#-------------------------------------------------------
def GenerateList(self, category):
#-------------------------------------------------------
self.db.ReadAll()
data = {}
data['content'] = {}
data['headings'] = {}
@ -138,6 +136,7 @@ class Application_cl(object):
#-------------------------------------------------------
def GenerateListChoice(self):
#-------------------------------------------------------
self.db.ReadAll()
data = {}
data['content'] = {}
offerings = self.db.data['Angebote']
@ -153,6 +152,7 @@ class Application_cl(object):
#-------------------------------------------------------
def GenerateDetail(self, category, id=None):
#-------------------------------------------------------
self.db.ReadAll()
data = {}
data['category'] = category
print("Detail",category,id)
@ -172,6 +172,7 @@ class Application_cl(object):
#-------------------------------------------------------
def GenerateDetailChoice(self, id):
#-------------------------------------------------------
self.db.ReadAll()
data = {}
data['id'] = id
data = self.db.data['Angebote'][id]
@ -183,6 +184,7 @@ class Application_cl(object):
#-------------------------------------------------------
def GenerateListEval(self, cat):
#-------------------------------------------------------
self.db.ReadAll()
data = {}
Studenten = self.db.data['Studenten']
Lehrender = self.db.data['Lehrender']

View 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"
}

View File

@ -1 +1 @@
25
26

View File

@ -1 +1 @@
8
13