/
config.py
49 lines (41 loc) · 915 Bytes
/
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
'''
Configuration File
Setup this file according to your application Models as to map their
attributes to the equivalent atom elements.
'''
'''
gae-rest needs to import the files containing your Models since it is
unable to dynamic infer what are all the available entity kinds
(content types) in your application
'''
models = ['entries.py']
'''
which attribute on each Entity can be used as atom <author> element
Example: author = {'Entry': 'author'}
'''
author = {'Entry': 'user'}
'''
<title>
Example: title = {'Entry': 'title'}
'''
title = {}
'''
<content>
Example: content = {'Entry': 'body_html'}
'''
content = {}
'''
<summary>
Example: summary = {'Entry': 'excerpt'}
'''
summary = {}
'''
<published>
Example: published = {'Entry': 'published'}
'''
published = {'Entry': 'published'}
'''
<updated>
Example: updated = {'Entry': 'updated'}
'''
updated = {}