Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reorganized files into a better MVC directory structure that also sup…

…ports extending for other apps.
  • Loading branch information...
commit f5f78f4a7a3ed10b0ab800ea3e99949fd04d1449 1 parent ac1e3a7
@DocSavage authored
View
1  config.py
@@ -10,6 +10,7 @@
# Do change blog or page dictionaries at the bottom of this config module.
DEFAULT_BLOG = {
+ "bloog_version": "0.8",
"html_type": "text/html",
"charset": "iso-8859-1",
"title": "Bloog",
View
0  handlers/__init__.py
No changes.
View
0  blog.py → handlers/bloog/blog.py
File renamed without changes
View
0  contact.py → handlers/bloog/contact.py
File renamed without changes
View
0  cache_stats.py → handlers/cache_stats.py
File renamed without changes
View
0  restful.py → handlers/restful.py
File renamed without changes
View
0  shell.py → handlers/shell.py
File renamed without changes
View
0  timings.py → handlers/timings.py
File renamed without changes
View
3  legacy_aliases.py
@@ -1,3 +1,6 @@
+# Site-specific legacy url mapping.
+#
+# The data is imported and used by the Bloog blog handler.
# This file can be (1) set manually or (2) created automatically
# by utilities/drupal_uploader.
# Place below a "redirects" dictionary with aliases as the key
View
0  models/__init__.py
No changes.
View
7 model.py → models/article.py
@@ -20,14 +20,15 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
-import config
-from counter import Counter
-
import logging
from google.appengine.api import memcache
from google.appengine.ext import db
+import config
+from models import search
+from models.counter import Counter
+
# Handle generation of thread strings
def get_thread_string(article, cur_thread_string):
min_str = cur_thread_string + '000'
View
0  counter.py → models/counter.py
File renamed without changes
View
0  search.py → models/search.py
File renamed without changes
View
0  authorized.py → utils/authorized.py
File renamed without changes
View
2  template.py → utils/template.py
@@ -19,7 +19,7 @@
Note: This code is slightly altered from google.appengine.ext.webapp.
Changes by Bill Katz on original:
- - Allow setting of template directory hierarchy.
+ - Allow setting of template directory hierarchy in render() and load()
The main purpose of this module is to hide all of the package import pain
you normally have to go through to get Django to work. We expose the Django
View
4 view.py
@@ -37,8 +37,6 @@
import template
import config
-bloog_version = "0.8" # Constant should be in upgradable code files.
-
NUM_FULL_RENDERS = {} # Cached data for some timings.
def invalidate_cache():
@@ -138,7 +136,7 @@ def full_render(self, handler, template_file, more_params):
# Define some parameters it'd be nice to have in views by default.
template_params = {
"current_url": url,
- "bloog_version": bloog_version,
+ "bloog_version": config.BLOG.bloog_version,
"user": users.get_current_user(),
"user_is_admin": users.is_current_user_admin(),
"login_url": users.create_login_url(handler.request.uri),
View
2  views/default/blog/atom.xml
@@ -9,7 +9,7 @@
<link rel="self" type="application/atom+xml" href="{{ blog.root_url }}{{ blog.master_atom_url }}" />
<rights>Copyright (c) 2008, {{ blog.author }}</rights>
- <generator uri="{{ blog.root_url }}" version="{{ bloog_version }}">
+ <generator uri="{{ blog.root_url }}" version="{{ blog.bloog_version }}">
Bloog for AppEngine
</generator>
Please sign in to comment.
Something went wrong with that request. Please try again.