From 0292420920aab72a187fa8c054e2612726e89155 Mon Sep 17 00:00:00 2001 From: guido Date: Sun, 4 Feb 2007 22:49:44 +0100 Subject: [PATCH] [svn r37931] Made that the __init__ method is the first method displayed. --HG-- branch : trunk --- py/apigen/htmlgen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/apigen/htmlgen.py b/py/apigen/htmlgen.py index 4c1aedcb8..74fa25ac4 100644 --- a/py/apigen/htmlgen.py +++ b/py/apigen/htmlgen.py @@ -417,6 +417,9 @@ class ApiPageBuilder(AbstractPageBuilder): methods = self.dsa.get_class_methods(dotted_name) if methods: ret.append(H.h2('methods:')) + if '__init__' in methods: + methods.remove('__init__') + methods.insert(0, '__init__') for method in methods: ret += self.build_callable_view('%s.%s' % (dotted_name, method))