merged
This commit is contained in:
commit
4e5a42ac9a
|
@ -35,7 +35,7 @@ class BestPractice(ItfModel):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request=None):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
|
@ -134,7 +134,7 @@ class BestPracticeFAQ(ItfModel):
|
||||||
'answer': self.answer,
|
'answer': self.answer,
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request=None):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'question': self.question,
|
'question': self.question,
|
||||||
|
@ -211,7 +211,7 @@ class Guideline(ItfModel):
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request=None):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
|
@ -241,7 +241,7 @@ class Glossary(ItfModel):
|
||||||
'definition': self.definition
|
'definition': self.definition
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request=None):
|
||||||
return self.list_dict()
|
return self.list_dict()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
|
|
@ -91,7 +91,7 @@ class Event(ItfModel):
|
||||||
if self.groups.all():
|
if self.groups.all():
|
||||||
groups= {
|
groups= {
|
||||||
'venue': [ obj.group for obj in self.groupevent_set.filter(typ='venue')],
|
'venue': [ obj.group for obj in self.groupevent_set.filter(typ='venue')],
|
||||||
'performing': [ obj.group for obj in self.groupevent_set.filter(typ='performing')]
|
'performing': [ obj.group for obj in self.groupevent_set.filter(typ='performing')],
|
||||||
'organizers': [ obj.group for obj in self.groupevent_set.filter(typ='organizers')]
|
'organizers': [ obj.group for obj in self.groupevent_set.filter(typ='organizers')]
|
||||||
}
|
}
|
||||||
rdict['groups']= groups
|
rdict['groups']= groups
|
||||||
|
|
|
@ -60,7 +60,7 @@ class Meeting(ItfModel):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request):
|
||||||
meeting_data = {}
|
meeting_data = {}
|
||||||
meeting_data['meeting'] = self
|
meeting_data['meeting'] = self
|
||||||
meeting_id = self.id
|
meeting_id = self.id
|
||||||
|
@ -116,7 +116,7 @@ class Participant(ItfModel):
|
||||||
'title': self.name
|
'title': self.name
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
|
@ -276,7 +276,7 @@ class DocumentSubject(ItfModel):
|
||||||
'title': self.title
|
'title': self.title
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
|
@ -312,7 +312,7 @@ class Document(ItfModel):
|
||||||
'title': self.title
|
'title': self.title
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request):
|
||||||
return self.preview_dict()
|
return self.preview_dict()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
@ -341,7 +341,7 @@ class Project(ItfModel):
|
||||||
'intro': self.intro
|
'intro': self.intro
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request):
|
||||||
return self.preview_dict()
|
return self.preview_dict()
|
||||||
|
|
||||||
def list_dict(self):
|
def list_dict(self):
|
||||||
|
|
|
@ -40,7 +40,7 @@ def index(request):
|
||||||
statuses = tApi.GetUserTimeline(TWITTER_ID)[0:3]
|
statuses = tApi.GetUserTimeline(TWITTER_ID)[0:3]
|
||||||
except:
|
except:
|
||||||
statuses = []
|
statuses = []
|
||||||
boxes = SliderBox.objects.all()
|
boxes = SliderBox.objects.filter(is_displayed=True)
|
||||||
front_images = FrontImage.objects.filter(is_active=True)[0:3]
|
front_images = FrontImage.objects.filter(is_active=True)[0:3]
|
||||||
return render_to_response("noel/index.html", RequestContext(request, {
|
return render_to_response("noel/index.html", RequestContext(request, {
|
||||||
'tweets': [urlize(s.text) for s in statuses],
|
'tweets': [urlize(s.text) for s in statuses],
|
||||||
|
|
|
@ -138,7 +138,7 @@ class License(ItfModel):
|
||||||
'title': self.name
|
'title': self.name
|
||||||
}
|
}
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self, request=None):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'letter': self.letter,
|
'letter': self.letter,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user