fast fertig
This commit is contained in:
Binary file not shown.
@ -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']
|
||||
|
Reference in New Issue
Block a user