Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Oct 20, 2002
1 parent d3937f6 commit 52e615d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bin/pull-static
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class StaticWriter:
types = dms.type.get_all()
docs = dms.document.get_all()

for lang_key in languages.keys():
for lang_key in languages.sort_by('code'):
language = languages[lang_key]
lang_ext = '.' + language.code.lower()
for page_key in pages.keys():
for page_key in pages.sort_by('code'):
page = pages[page_key]

# Do not render pages that require privileges
Expand Down Expand Up @@ -86,7 +86,7 @@ class StaticWriter:
os.mkdir('type')

for type_key in types.keys():
type = types[key]
type = types[type_key]
url = 'type/' + type.code + lang_ext + '.html'
self.write_url(page, url)

Expand Down Expand Up @@ -139,7 +139,5 @@ def main():
staticwriter.write_site()
# profile_suite()

if __name__=="__main__":
global STATIC
STATIC = 1
main()
state.static = 1
main()

0 comments on commit 52e615d

Please sign in to comment.