Skip to content
Browse files

added empty db

  • Loading branch information...
1 parent 9888b5f commit 7cff088b2820ee6bc0736e8645bcfef57d018910 @oscarfroberg committed Mar 16, 2012
Showing with 6 additions and 6 deletions.
  1. +0 −1 .gitignore
  2. +1 −1 server.py
  3. BIN sqlitedb
  4. +4 −3 themes/default/editor.html
  5. +1 −1 themes/default/post.html
View
1 .gitignore
@@ -4,4 +4,3 @@ robots.txt
templates/.*.swp
sessions/
sessions/*
-sqlitedb
View
2 server.py
@@ -232,7 +232,7 @@ def authenticate():
if web.ctx.session.email in admins:
print "current email found in admins"
web.ctx.session.name = admins[web.ctx.session.email]
- print "session.name set to", web.ctx.session.name
+ print "post author set to", web.ctx.session.name
web.ctx.session.admin = True
print "admin set to", web.ctx.session.admin
print "all rise, his majesty just popped in!"
View
BIN sqlitedb
Binary file not shown.
View
7 themes/default/editor.html
@@ -8,11 +8,12 @@
$if msg:
<p>$msg<p>
-<form method="post">
+<form method="post"><p>
<label for="title">Title</label><br><input type="textbox" name="title" value="$posttitle"><br>
<label for="content">Post</label><br><textarea rows="20" cols="70" name="content">$content</textarea><br>
<label for="url">URL</url><br><input type="textbox" name="url" value="$url"> (you have to type some random whatever crap here)<br>
<label for="datetime">Date/time</label><br><input type="textbox" name="datetime" value="$datetime"> (here too)<br>
<br>
-<input type="submit" name="save" value="Save"><input type="submit" name="publish" value="Publish">
-</form>
+<input type="submit" name="save" value="Save"><input type="submit" name="publish" value="Publish"><br>
+<i>For now, saving an already published post will un-publish it and save it as a draft. This will be changed eventually.</i>
+</p></form>
View
2 themes/default/post.html
@@ -11,7 +11,7 @@
</header>
<p class="postdate"><b>$post.date[0:16]</b></p>
<p>$:post.content</p>
-<p>Posted by <b>$session.adminname</b></p>
+<p>Posted by <b>$post.author</b></p>
$if session.admin == True:
<p class="small"><b><a href="/admin/editor?type=edit&id=$post.id">Edit post</a></b> --

0 comments on commit 7cff088

Please sign in to comment.
Something went wrong with that request. Please try again.