Skip to content

Commit

Permalink
Added handling for function-only classes
Browse files Browse the repository at this point in the history
  • Loading branch information
workergnome committed Nov 15, 2013
1 parent 08c4462 commit 53cc165
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _controllers/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def run():
classes_simple_name = markdown_file.getclass_list(False)
addon_classes = markdown_file.list_all_addons()


module_lookup = dict()
core_index = dict()
addons_index = dict()
Expand Down Expand Up @@ -82,6 +81,7 @@ def run():
"classes_list": classes,
"is_addon": (clazz.name in addon_classes)
}

bf.template.materialize_template("documentation_class.mako", ('documentation',clazz.module+"/"+clazz.name+".html"), env )

if not clazz.module in addon_classes:
Expand Down Expand Up @@ -121,7 +121,8 @@ def run():
env = {
"modulename": functions_file.name,
"clazz": None,
"functions": functions_file
"functions": functions_file,
"is_addon": (functions_file.name in addon_classes)
}
bf.template.materialize_template("documentation_class.mako", ('documentation',functions_file.module+"/"+functions_file.name+".html"), env )

Expand Down

0 comments on commit 53cc165

Please sign in to comment.