Removed some debug statements.
- Legacy-Id: 6290
This commit is contained in:
parent
b685a68a72
commit
254d6f70dd
|
@ -12,11 +12,8 @@ class DBTemplateForm(forms.ModelForm):
|
||||||
def clean_content(self):
|
def clean_content(self):
|
||||||
try:
|
try:
|
||||||
content = self.cleaned_data['content']
|
content = self.cleaned_data['content']
|
||||||
debug.show('type(content)')
|
|
||||||
debug.show('content')
|
|
||||||
if self.instance.type.slug == 'rst':
|
if self.instance.type.slug == 'rst':
|
||||||
return_code = RSTTemplate(content).render(Context({}))
|
return_code = RSTTemplate(content).render(Context({}))
|
||||||
debug.show('return_code')
|
|
||||||
elif self.instance.type.slug == 'django':
|
elif self.instance.type.slug == 'django':
|
||||||
DjangoTemplate(content).render(Context({}))
|
DjangoTemplate(content).render(Context({}))
|
||||||
elif self.instance.type.slug == 'plain':
|
elif self.instance.type.slug == 'plain':
|
||||||
|
|
|
@ -25,7 +25,6 @@ def index(request):
|
||||||
|
|
||||||
def state(request, doc, type=None):
|
def state(request, doc, type=None):
|
||||||
slug = "%s-%s" % (doc,type) if type else doc
|
slug = "%s-%s" % (doc,type) if type else doc
|
||||||
debug.show('slug')
|
|
||||||
statetype = get_object_or_404(StateType, slug=slug)
|
statetype = get_object_or_404(StateType, slug=slug)
|
||||||
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
||||||
return render_to_response('help/states.html', {"doc": doc, "type": statetype, "states":states},
|
return render_to_response('help/states.html', {"doc": doc, "type": statetype, "states":states},
|
||||||
|
|
|
@ -40,12 +40,10 @@ def index(request):
|
||||||
nomcom_list = Group.objects.filter(type__slug='nomcom').order_by('acronym')
|
nomcom_list = Group.objects.filter(type__slug='nomcom').order_by('acronym')
|
||||||
for nomcom in nomcom_list:
|
for nomcom in nomcom_list:
|
||||||
year = nomcom.acronym[6:]
|
year = nomcom.acronym[6:]
|
||||||
debug.show('year')
|
|
||||||
try:
|
try:
|
||||||
year = int(year)
|
year = int(year)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
year = None
|
year = None
|
||||||
debug.show('year')
|
|
||||||
nomcom.year = year
|
nomcom.year = year
|
||||||
nomcom.label = "%s/%s" % (year, year+1)
|
nomcom.label = "%s/%s" % (year, year+1)
|
||||||
if year in [ 2005, 2006, 2007, 2008, 2009, 2010 ]:
|
if year in [ 2005, 2006, 2007, 2008, 2009, 2010 ]:
|
||||||
|
@ -60,7 +58,6 @@ def index(request):
|
||||||
nomcom.ann_url = "/ann/nomcom/#%4d" % year
|
nomcom.ann_url = "/ann/nomcom/#%4d" % year
|
||||||
else:
|
else:
|
||||||
nomcom.ann_url = None
|
nomcom.ann_url = None
|
||||||
debug.show('nomcom.url')
|
|
||||||
return render_to_response('nomcom/index.html',
|
return render_to_response('nomcom/index.html',
|
||||||
{'nomcom_list': nomcom_list,}, RequestContext(request))
|
{'nomcom_list': nomcom_list,}, RequestContext(request))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue