[svn r37931] Made that the __init__ method is the first method displayed.

--HG--
branch : trunk
This commit is contained in:
guido 2007-02-04 22:49:44 +01:00
parent 27e05e257a
commit 0292420920
1 changed files with 3 additions and 0 deletions

View File

@ -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))