forked from DocSavage/bloog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·123 lines (115 loc) · 4.9 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Don't change default_blog or default_page to prevent conflicts when merging # Bloog source code updates.
# Do change blog or page dictionaries at the bottom of this config module.
default_blog = {
"html_type": "text/html",
"charset": "iso-8859-1",
"title": "Bloog",
"author": "Bill Katz",
# This must be the email address of a registered administrator for the
# application due to mail api restrictions.
"email": "you@foo.com",
"description": "A RESTful Blog/Homepage for Google AppEngine.",
"root_url": "http://bloog.billkatz.com",
"master_atom_url": "/feeds/atom.xml",
# You can override this default for each page through a handler's call to
# view.ViewPage(cache_time=...)
"cache_time": 3600,
# If you want to use legacy ID mapping for your former blog platform,
# define it here and insert the necessary mapping code in the
# legacy_id_mapping() function in ArticleHandler (blog.py).
# Currently only "Drupal" is supported.
"legacy_blog_software": None
#"legacy_blog_software": "Drupal"
}
default_page = {
"title": default_blog["title"],
"navlinks": [
{ "title": "Link", "description": "Short description", "url": "#"},
{ "title": "Link", "description": "Short description", "url": "#"},
{ "title": "Contact", "description": "Send me a note",
"url": "/contact"},
],
# Currently tags are hardwired to prevent datastore access.
# Might shift to lookup + cache.
"tags": [
'AppEngine', 'Bloog', 'Google', 'GData API', 'Another Unused Tag'
],
"featuredMyPages": {
"title": "Bloog Development",
"description": "Get involved",
"entries": [
{ "title": "Announcement",
"url": "http://billkatz-test.appspot.com",
"description": "Author's Bloog" },
{ "title": "Source Code",
"url": "http://github.com/DocSavage/bloog",
"description": "GitHub repository" },
{ "title": "Tarball",
"url": "http://github.com/DocSavage/bloog/tarball/master",
"description": "Most recent snapshot" },
{ "title": "Group",
"url": "http://groups.google.com/group/bloog/topics",
"description": "Developer discussion" },
{ "title": "Architecture Diagram",
"url": "/static/images/architecture2.png",
"description":
"How Bloog interacts with clients through REST HTTP" }
]
},
"featuredOthersPages": {
"title": "Google App Engine",
"description": "Developer Resources",
"entries": [
{ "title": "Google App Engine",
"url": "http://code.google.com/appengine/",
"description": "The mothership" },
{ "title": "AppEngine Group",
"url": "http://groups.google.com/group/google-appengine",
"description": "Google Group for App Engine developers" },
{ "title": "GAE SWF Project",
"url": "http://gaeswf.appspot.com/",
"description": "Flash and Flex on Google AppEngine" },
{ "title": "Dev Console",
"url": "http://localhost:8080/_ah/admin/datastore",
"description":
"Your datastore viewer and console if running locally" }
]
},
}
# Customize the following two dictionaries to tailor this Bloog to your taste.
# The view will preferentially use 'blog' and 'page' dictionaries.
codeslower_blog = {
"html_type": "text/html",
"charset": "iso-8859-1",
"title": "codeslower.com",
"author": "Justin Bailey",
# This must be the email address of a registered administrator for the
# application due to mail api restrictions.
"email": "jgbailey+blog@codeslower.com",
"description": "Savor Your Code",
"root_url": "http://blog.codeslower.com",
"master_atom_url": "/feeds/atom.xml",
# You can override this default for each page through a handler's call to
# view.ViewPage(cache_time=...)
"cache_time": 0,
# We allow a mapping from some old url pattern to the current query
# using a regex's matched string. (See PageHandler in blog.py)
# The example below is for Drupal and should be uncommented if you
# are converting from Drupal
# "legacy_id_mapping": { 'regex': 'node/(\d+)',
# 'query': lambda match_str:
# db.Query(model.Article).filter('legacy_id =', match_str) }
}
codeslower_page = {
"title": codeslower_blog["title"],
"navlinks": [{ "title": "Contact", "description": "Send me a note", "url": "/contact"},],
# Currently tags are hardwired to prevent datastore access.
# Might shift to lookup + cache.
"tags": [],
"featuredMyPages": { },
"featuredOthersPages": { },
}
blog = codeslower_blog
page = codeslower_page
# Set to true if we want to have our webapp print stack traces, etc
DEBUG = True