Changeset 78:b5dabe9762d1 for pycommunity/pycommunity/utils.py
- Timestamp:
- 04/12/07 17:38:04 (15 months ago)
- Files:
-
- 1 modified
-
pycommunity/pycommunity/utils.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pycommunity/pycommunity/utils.py
r68 r78 89 89 return None 90 90 91 def _grabContent(type, name ):91 def _grabContent(type, name, tutorial_folders, recipe_folders): 92 92 """gets a recipe or a turotial content""" 93 93 return """<b>Soon</b>""" 94 94 95 def linkChecker(content, glossaryfile ):95 def linkChecker(content, glossaryfile, tutorial_folders, recipe_folders): 96 96 """changes links on the fly""" 97 97 glossary = GlossaryReader(glossaryfile) … … 112 112 if 'recipe' in match.group(): 113 113 link = '../recipes/%s.html' % name 114 content = _grabContent('recipes', name) 114 content = _grabContent('recipes', name, tutorial_folders, 115 recipe_folders) 115 116 else: 116 117 link = '../tutorials/%s.html' % name 117 content = _grabContent('tutorials', name) 118 content = _grabContent('tutorials', name, tutorial_folders, 119 recipe_folders) 118 120 119 121 url = re_docs[1]
