<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>admin.py</filename>
    </added>
    <added>
      <filename>templates/admin.html</filename>
    </added>
    <added>
      <filename>templates/entry_edit.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # encoding: utf-8
 &quot;&quot;&quot;
-webapp.py
+blog.py
 
 Created by Pradeep Gowda on 2008-04-23.
 Copyright (c) 2008 Yashotech. All rights reserved.
@@ -16,7 +16,7 @@ import functools
 import os
 from lib import utils, markdown2, BeautifulSoup,textile
 from utils import TehRequestHandler, administrator
-import shooin
+
 
 class Entry(db.Model):
     author = db.UserProperty()
@@ -119,8 +119,8 @@ class NewEntryHandler(TehRequestHandler):
             entry = db.Query(Entry).filter(&quot;slug =&quot;, slug).get()
             if not entry:
                 raise webapp.Error(404)
-            self.render(&quot;templates/new.html&quot;, entry=entry)
-        else: self.render(&quot;templates/new.html&quot;)
+            self.render(&quot;templates/entry_edit.html&quot;, entry=entry)
+        else: self.render(&quot;templates/entry_edit.html&quot;)
         
     @administrator
     def post(self,slug=None):</diff>
      <filename>blog.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,10 @@
 {% extends &quot;formbase.html&quot; %}
 
 {% block title %}
-	Blog configurations
+	Site configuration
 {% endblock %}
 
 {% block content %}
-&lt;h1 id=&quot;logo&quot;&gt;&lt;a&gt;TEH&lt;/a&gt;&lt;/h1&gt;
-
 &lt;form id=&quot;form5&quot; class=&quot;wufoo topLabel&quot; autocomplete=&quot;off&quot;
 enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;&quot;&gt;
 </diff>
      <filename>templates/config.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,9 @@
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
 &lt;head&gt;
 
-&lt;title&gt;
+&lt;title&gt;TEH Admin | 
 	{% block title %}
-	New Entry
+	 
 	{% endblock %}
 &lt;/title&gt;
 
@@ -25,6 +25,7 @@
 
 &lt;img id=&quot;top&quot; src=&quot;/static/images/top.png&quot; alt=&quot;&quot; /&gt;
 &lt;div id=&quot;container&quot;&gt;
+&lt;h1&gt;&lt;a href=&quot;/admin&quot; title=&quot;Admin home&quot;&gt;Admin Home&lt;/a&gt;&lt;/h1&gt;
 {% block content %}
 
 {% endblock %}</diff>
      <filename>templates/formbase.html</filename>
    </modified>
    <modified>
      <diff>@@ -16,8 +16,9 @@ from google.appengine.api import users
 import os
 from lib import utils, markdown2, BeautifulSoup
 from utils import TehRequestHandler, administrator, Config
-import shooin
 import blog
+import admin
+
 
 class LoginHandler(TehRequestHandler):
     def get(self):
@@ -42,25 +43,12 @@ class HomePageHandler(TehRequestHandler):
         entries.order('-published').fetch(limit=5)
         self.render(&quot;templates/home.html&quot;, entries=entries)
 
-class ConfigHandler(TehRequestHandler):
-    @administrator
-    def get(self):
-        self.render(&quot;templates/config.html&quot;)
-    @administrator    
-    def post(self):
-        config = Config.all()
-        config = config.fetch(1)[0]
-        config.title = self.request.get(&quot;title&quot;)
-        config.disqus = self.request.get(&quot;disqus&quot;)
-        config.put()
-        self.redirect('/')
         
 def main():
     application = webapp.WSGIApplication([
         (r&quot;/&quot;, HomePageHandler),
         (r&quot;/login&quot;, LoginHandler),
         (r&quot;/logout&quot;, LogoutHandler),
-        (r&quot;/config&quot;, ConfigHandler),
 
         (r&quot;/entries&quot;, blog.EntryIndexHandler),
         (r&quot;/feed&quot;, blog.FeedHandler),
@@ -69,9 +57,14 @@ def main():
         (r&quot;/entry/([^/]+)/del&quot;, blog.EntryDeleteHandler),
         (r&quot;/([^/]+)/edit&quot;, blog.NewEntryHandler),
         (r&quot;/([^/]+)/del&quot;, blog.EntryDeleteHandler),
-        (r&quot;/new&quot;, blog.NewEntryHandler),
         (r&quot;/topic/([^/]+)&quot;, blog.TagHandler),
-        (r&quot;/shooin/([^/]+)&quot;, shooin.ShooinHandler),
+        
+        (r&quot;/admin&quot;, admin.AdminHandler),
+        (r&quot;/admin/new&quot;, blog.NewEntryHandler),
+        (r&quot;/admin/config&quot;, admin.ConfigHandler),
+        (r&quot;/admin/entrylist&quot;, admin.EntryListHandler),
+
+       # (r&quot;/shooin/([^/]+)&quot;, shooin.ShooinHandler),
         (r&quot;/([^/]+)&quot;, blog.PageHandler),
         ], debug=True)
     
@@ -85,4 +78,4 @@ def main():
     wsgiref.handlers.CGIHandler().run(application)
 
 if __name__ == &quot;__main__&quot;:
-    main()
\ No newline at end of file
+    main()</diff>
      <filename>webapp.py</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>templates/new.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>982bf5a0c041ff9447a4574284a9b231db04d5b6</id>
    </parent>
  </parents>
  <author>
    <name>btbytes</name>
    <email>pradeep@btbytes.com</email>
  </author>
  <url>http://github.com/btbytes/teh/commit/93c8f1bf2c93bdf52b1d131541f32d1f28171763</url>
  <id>93c8f1bf2c93bdf52b1d131541f32d1f28171763</id>
  <committed-date>2008-05-04T19:18:59-07:00</committed-date>
  <authored-date>2008-05-04T19:18:59-07:00</authored-date>
  <message>added new admin page; streamlined urls; config goes to admin.py</message>
  <tree>f35ec923d5b09b8e95ebb7a6fce2daf8f4379e5b</tree>
  <committer>
    <name>btbytes</name>
    <email>pradeep@btbytes.com</email>
  </committer>
</commit>
