/[navidoc]/navidoc/config.py
ViewVC logotype

Diff of /navidoc/config.py

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

revision 1.35 by humppake, Mon May 26 10:58:02 2003 UTC revision 1.36 by humppake, Wed Jun 4 12:19:18 2003 UTC
# Line 25  __docformat__ = 'reStructuredText' Line 25  __docformat__ = 'reStructuredText'
25    
26  dbg = None  dbg = None
27    
28  import os, navidoc.util.debug  import os, navidoc.util.debug, ConfigParser
29    
30  #Environmental variable MPINPUTS should be relative to tmpdir,  # general debug filter
31  #or be an absolute path.  dbg = navidoc.util.debug.DebugFilter()
 os.putenv("MPINPUTS", "../navidoc/mp/")  
   
 # base_url  
 base_rul = 'http://fenfire.org/'  
   
 # midfix for generated files  
 # don't change this, if you don't know what you are doing :)  
 midfix = ".gen"  
32    
33  # global settings needed all around  # system calls
34  mp_directory = 'diagrams'  metapost = 'mpost'
35  mp_generate = 1  pnmscale = 'pnmscale'
36  mp_eps_only = 0  pstopnm = 'pstopnm'
37  mp_context_menu = 1  pnmtopng = 'pnmtopng'
38    stderr = '/dev/null'
39    
40  # initializing dynamic settings  # initializing dynamic settings
41  # should be kept up-to-date in code  # should be kept up-to-date in code
# Line 52  input_filename = '' Line 45  input_filename = ''
45  output_filename = ''  output_filename = ''
46  link_base_directory = None # if different than working_directory  link_base_directory = None # if different than working_directory
47    
48  # settings for linking javadoc  # set the default docutils.conf
49  # the search order is ascending, sudden death  docutils_conf = "./docutils.conf"
 linkpackages = {} # holder of packagenames, will members will be cleaned after every diagram  
 javadoc_directories = ['../libvob/doc/javadoc',  
                        '../storm/doc/javadoc',  
                        '../alph/doc/javadoc',  
                        '../fenfire/docs/javadoc',  
                        '../loom/doc/javadoc',  
                        '../navidoc/doc/javadoc'  
                        ]  
 link_redirection = {'navidoc': '../navidoc/doc',  
                     'libvob': '../libvob/doc',  
                     'storm': '../storm/doc',  
                     'alph': '../alph/doc',  
                     'fenfire': '../fenfire/docs',  
                     'loom': '../loom/doc',  
                     }  
 docxx_directories = ['../libvob/doc/docxx',  
                      '../storm/doc/docxx',  
                      '../alph/doc/docxx',  
                      '../fenfire/docs/docxx',  
                      '../loom/doc/docxx',  
                      '../navidoc/doc/docxx',  
                      ]  
50    
51  # general debug filter  # set the default navidoc.conf
52  dbg = navidoc.util.debug.DebugFilter()  navidoc_conf = "./navidoc.conf"
53    
54  # set the default docutils.conf  # holder of packagenames when linking diagrams
55  docutils = "./docutils.conf"  # will be cleaned after every diagram
56    linkpackages = {}
57    
58    # should linked parts of the diagram be emphasized
59    # using colors and rough edge
60    link_emphasize = 0
61    
62    # should diagrams be generated at all
63    # this is altered to halt image generation
64    # temporarily
65    mp_generate = 1
66    
67  # pegs will be sorted after their priority  # generate only eps-versions of diagrams
68  pegboard_priorities = {'Current': 1,  # usable, when compiling reSTs into LaTeX
69                         'Revising': 2,  mp_eps_only = 0
                        'Incomplete': 3,  
                        'Undefined': 4,  
                        'Accepted': 5,  
                        'Implemented': 6,  
                        'Rejected': 7,  
                        'Irrelevant': 8,  
                        }  
   
 # authors and stakeholders to replace with nicknames  
 pegboard_authors = {'Tuomas Lukka': 'tjl',  
                     'Tuomas J. Lukka': 'tjl',  
                     'Benja Fallenstein': 'benja',  
                     'Benja': 'benja',  
                     'Asko Soukka': 'humppake',  
                     'Matti Katila': 'mudyc',  
                     'Anton Feldmann': 'anton',  
                     'Tero Mäyränen': 'deetsay',  
                     'Marc Schiereck': 'dreevich',  
                     'Hermanni Hyytiälä': 'hemppah',  
                     'Antti_Juhani Kaijanaho': 'ibid',  
                     'Janne V. Kujala': 'jvk',  
                     'Janne Kujala': 'jvk',  
                     'Tuukka Hastrup': 'tuukkah',  
                     'Vesa Kaihlavirta': 'vegai',  
                     }  
70    
71  # status for pegs without rst or with failing rst  # should context menu be added into diagrams
72  pegboard_undefined = 'Undefined'  # this is latered as UML diagram option
73    mp_context_menu = 0
74    
75    def read_config(module, filepath):
76        cp = ConfigParser.ConfigParser()
77        cp.read(filepath)
78        for section in cp.sections():
79            for option in cp.options(section):
80                setattr(module, option, eval(cp.get(section, option)))

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26