Commit b44cd332 authored by gijs's avatar gijs
Browse files

Removing content from debug page

parent f0cdddc5
......@@ -64,17 +64,18 @@ def make_index (models):
collection = collectionFor(contentType)
for obj in collection.models:
if obj.source_path:
buff += '<li><a href="https://ethertoff.caveat.be/w/{link}">{label}</a> ({type})'.format(
buff += '<li><strong><a href="https://ethertoff.caveat.be/w/{link}">{label}</a></strong> ({type})'.format(
label=str(obj),
type=obj.contentType,
link=obj.source_path.replace('#', '%23')
)
else:
buff += '<li>{label} ({type})'.format(
buff += '<li><strong>{label}</strong>({type})'.format(
label=str(obj),
type=obj.contentType
)
for attr in dir(obj):
if attr != 'content':
# Attributes noted in the metafields list, plus content,
# the link property and the sourcepath
buff += '<dt>{attr}</dt>'.format(attr=attr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment