Changeset 267

Show
Ignore:
Timestamp:
02/14/06 11:38:53
Author:
fenix
Message:

added documentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneEpydoc/trunk/HISTORY.txt

    r266 r267  
     10.1.3 2006-02-14 
     2================ 
     3 
     4  - documentation added 
     5 
    160.1.2 2006-02-10 
    27================ 
  • qPloneEpydoc/trunk/PloneEpydoc.py

    r266 r267  
    44# Copyright: quintagroup.com 
    55 
     6""" 
     7This tool lets you generate API documentation of any product in Products directory. 
     8It use epydoc for generating API documentation based on docstrings. 
     9This module defines the following classes: 
     10 
     11     - `PloneEpydoc`, this is the class that carries responsibility 
     12                      for generating product documentation. 
     13 
     14             Methods: 
     15 
     16                  - `PloneEpydoc.getProductModules`: return list of all documented modules in product package 
     17                  - `PloneEpydoc.createDocumentationDirectoryViews`: create file system directory views for generated documentation 
     18                  - `PloneEpydoc.generate`: generate documentation for product 
     19                  - `PloneEpydoc.write_object_type`: write pairs 'file':'type' for all generated files in directory contained in 'path' 
     20                  - `PloneEpydoc.write_content_file_types`: write file type for all files in subdirectories 
     21""" 
    622from Products.CMFCore.DirectoryView import DirectoryView, registerDirectory, createDirectoryView 
    723from Products.Archetypes.public import * 
     
    2844 
    2945    def getProductModules(self, path): 
    30         """""" 
     46        """ 
     47        return list of all documented modules in product package 
     48         Parameters: 
     49 
     50          - path: this is absolute path to product 
     51        """ 
    3152        modules = [] 
    3253        for root, dirs, files in walk(path): 
     
    4263 
    4364    def createDocumentationDirectoryViews(self, product): 
    44         """""" 
     65        """ 
     66        create file system directory views for generated documentation 
     67         Parameters: 
     68 
     69          - product: product that is documented 
     70        """ 
    4571        try: 
    4672            registerDirectory(DOCUMENTATION_DIR, GLOBALS) 
     
    5480 
    5581    def generate(self, product, **properties): 
    56         """""" 
     82        """ 
     83         generate documentation for product 
     84         Parameters: 
     85 
     86          - product: product that is documented 
     87          - properties: parameters for documentation (docformat, css ....) 
     88        """ 
    5789        sys.argv = [] 
    5890        modules = [] 
     
    72104 
    73105    def write_object_type(self, path, obj_name, obj_type): 
    74         """""" 
     106        """ 
     107        write pairs 'file':'type' for all generated files in directory contained in 'path' 
     108         Parameters: 
     109 
     110          - path: path to product directory 
     111          - obj_name: file name 
     112          - obj_type: type of file 
     113        """ 
    75114        file = open(path+'/.objects', 'a') 
    76115        data = obj_name+' : '+obj_type+'\n' 
     
    78117 
    79118    def write_content_file_types(self, path): 
    80         """""" 
     119        """ 
     120        write file type for all files in subdirectories 
     121         Parameters: 
     122 
     123          - path: path to product directory 
     124        """ 
    81125        for obj in listdir(path): 
    82126            if isdir(path+'/'+obj): 
  • qPloneEpydoc/trunk/epydoc_patch.py

    r266 r267  
    44# Copyright: quintagroup.com 
    55 
     6""" 
     7This module contain fixed functions from epydoc classes that have to replace original. 
     8""" 
    69from epydoc.uid import UID, Link, make_uid, findUID 
    710from epydoc.objdoc import ObjDoc, _find_base_order, _lookup_class_field, Var 
  • qPloneEpydoc/trunk/version.txt

    r266 r267  
    1 0.1.2 
     10.1.3