Show
Ignore:
Timestamp:
04/12/07 17:38:04 (15 months ago)
Author:
Tarek Ziad?? <tarek@…>
Message:

rupy slides, starting up

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pycommunity/pycommunity/utils.py

    r68 r78  
    8989        return None 
    9090 
    91 def _grabContent(type, name): 
     91def _grabContent(type, name, tutorial_folders, recipe_folders): 
    9292    """gets a recipe or a turotial content""" 
    9393    return """<b>Soon</b>""" 
    9494 
    95 def linkChecker(content, glossaryfile): 
     95def linkChecker(content, glossaryfile, tutorial_folders, recipe_folders): 
    9696    """changes links on the fly""" 
    9797    glossary = GlossaryReader(glossaryfile) 
     
    112112        if 'recipe' in match.group(): 
    113113            link = '../recipes/%s.html' % name 
    114             content = _grabContent('recipes', name) 
     114            content = _grabContent('recipes', name, tutorial_folders, 
     115                                   recipe_folders) 
    115116        else: 
    116117            link = '../tutorials/%s.html' % name 
    117             content = _grabContent('tutorials', name) 
     118            content = _grabContent('tutorials', name, tutorial_folders, 
     119                                   recipe_folders) 
    118120 
    119121        url = re_docs[1]