faide / turbogears.org (http://beta.turbogears.org/)
this is the code that runs beta.turbogears.org It is based on TurboGears2 and tgext.pages
Clone this repository (size: 181.6 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/faide/turbogearsorg/
| commit 2: | 39cfdf476915 |
| parent 1: | b430f6f79df9 |
| branch: | default |
fixed bootstrap for menuparent handling
Changed (Δ4 bytes):
raw changeset »
tgsite/websetup/bootstrap.py (1 lines added, 1 lines removed)
Up to file-list tgsite/websetup/bootstrap.py:
| … | … | @@ -105,7 +105,7 @@ def _add_default_pages(template): |
105 |
105 |
of an error when visiting the / of our site :) |
106 |
106 |
""" |
107 |
107 |
print "Adding Default Pages..." |
108 |
welcome = Page(pagetemplate=template, name="welcome", inmenu=True, menuindex=0, menuparent= |
|
108 |
welcome = Page(pagetemplate=template, name="welcome", inmenu=True, menuindex=0, menuparent=None) |
|
109 |
109 |
DBSession.add(welcome) |
110 |
110 |
DBSession.flush() |
111 |
111 |
