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):
|
||||
try:
|
||||
content = self.cleaned_data['content']
|
||||
debug.show('type(content)')
|
||||
debug.show('content')
|
||||
if self.instance.type.slug == 'rst':
|
||||
return_code = RSTTemplate(content).render(Context({}))
|
||||
debug.show('return_code')
|
||||
elif self.instance.type.slug == 'django':
|
||||
DjangoTemplate(content).render(Context({}))
|
||||
elif self.instance.type.slug == 'plain':
|
||||
|
|
|
@ -25,7 +25,6 @@ def index(request):
|
|||
|
||||
def state(request, doc, type=None):
|
||||
slug = "%s-%s" % (doc,type) if type else doc
|
||||
debug.show('slug')
|
||||
statetype = get_object_or_404(StateType, slug=slug)
|
||||
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
||||
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')
|
||||
for nomcom in nomcom_list:
|
||||
year = nomcom.acronym[6:]
|
||||
debug.show('year')
|
||||
try:
|
||||
year = int(year)
|
||||
except ValueError:
|
||||
year = None
|
||||
debug.show('year')
|
||||
nomcom.year = year
|
||||
nomcom.label = "%s/%s" % (year, year+1)
|
||||
if year in [ 2005, 2006, 2007, 2008, 2009, 2010 ]:
|
||||
|
@ -60,7 +58,6 @@ def index(request):
|
|||
nomcom.ann_url = "/ann/nomcom/#%4d" % year
|
||||
else:
|
||||
nomcom.ann_url = None
|
||||
debug.show('nomcom.url')
|
||||
return render_to_response('nomcom/index.html',
|
||||
{'nomcom_list': nomcom_list,}, RequestContext(request))
|
||||
|
||||
|
|
Loading…
Reference in a new issue