Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lhagan/master
Improved wiki & theme modularity
- Loading branch information
Showing
15 changed files
with
84 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ yaki/var/log/* | |
yaki/var/index/* | ||
yaki/var/cache/* | ||
yaki/var/log/* | ||
yaki/var/Yaki* | ||
yaki/tmp/* | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from snakeserver.snakelet import Snakelet | ||
|
||
class Redirect(Snakelet): | ||
""" | ||
Redirect to wiki home page (start). | ||
TODO: achieve this in a more elegant way? | ||
""" | ||
def getDescription(self): | ||
return "Redirector" | ||
|
||
def allowCaching(self): | ||
return True | ||
|
||
def requiresSession(self): | ||
return self.SESSION_DONTCREATE | ||
|
||
def serve(self, request, response): | ||
request.setEncoding("UTF-8") | ||
response.setEncoding("UTF-8") | ||
a = request.getWebApp() | ||
ac = a.getContext() | ||
response.HTTPredirect("%s/start" % ac.siteinfo['siteroot']) | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.