/[escript]/trunk/doc/sphinx_api/genrst.py
ViewVC logotype

Diff of /trunk/doc/sphinx_api/genrst.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4575 by jfenwick, Thu May 9 08:42:44 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 57  def dumpPackage(mname, ignorelist, modse Line 57  def dumpPackage(mname, ignorelist, modse
57                    print "About to dump "+name+"("+mem.__name__+")"                    print "About to dump "+name+"("+mem.__name__+")"
58                    dumpPackage(mem.__name__, [], modset, banset)                    dumpPackage(mem.__name__, [], modset, banset)
59                    print "Dump of "+mname+" complete"                    print "Dump of "+mname+" complete"
60      #pack.write('Module '+name+'\n')          #pack.write('Module '+name+'\n')
61        elif inspect.isclass(mem):        elif inspect.isclass(mem):
62      clist+=[(name, mem)]          clist+=[(name, mem)]
63        elif inspect.isfunction(mem):        elif inspect.isfunction(mem):
64      flist+=[(name, mem)]          flist+=[(name, mem)]
65        else:        else:
66      if type(mem).__module__+'.'+type(mem).__name__=='Boost.Python.function':          if type(mem).__module__+'.'+type(mem).__name__=='Boost.Python.function':
67        flist+=[(name, mem)]            flist+=[(name, mem)]
68      else:          else:
69        vlist+=[(name, mem)]            vlist+=[(name, mem)]
70    pack.write('Classes\n')    pack.write('Classes\n')
71    pack.write('-------\n')    pack.write('-------\n')
72    for (name, mem) in clist:    for (name, mem) in clist:
# Line 113  def listmods(): Line 113  def listmods():
113      dumpPackage(n, z[1], modset, banset)      dumpPackage(n, z[1], modset, banset)
114      print "-------------"+n      print "-------------"+n
115            
116      for m in z[2]:  #This will list the files      for m in z[2]:        #This will list the files
117        if m.split('.')[1]=='pyc' and m!='__init__.pyc':        if m.split('.')[1]=='pyc' and m!='__init__.pyc':
118      print ".."+n+"."+m          print ".."+n+"."+m
119      print ".."+(n+'.'+m)[:-4]          print ".."+(n+'.'+m)[:-4]
120      if not (n+'.'+m)[:-4] in banset:          if not (n+'.'+m)[:-4] in banset:
121        dumpPackage((n+'.'+m)[:-4],[],modset, banset)            dumpPackage((n+'.'+m)[:-4],[],modset, banset)
122    l=list(modset)    l=list(modset)
123    l.sort()    l.sort()
124    for n in l:    for n in l:
# Line 130  def listmods(): Line 130  def listmods():
130    main.write('* :ref:`genindex`\n')    main.write('* :ref:`genindex`\n')
131    main.write('* :ref:`modindex`\n')    main.write('* :ref:`modindex`\n')
132    main.write('\n')    main.write('\n')
133    main.close()      main.close()
134            
135            
136  listmods()      listmods()    

Legend:
Removed from v.4575  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26