Mercurial > hg > ChinaGisRestApi
annotate __init__.py @ 46:3ea606bae008
starting JSON store
author | casties |
---|---|
date | Fri, 03 Sep 2010 12:38:22 +0200 |
parents | 562717546168 |
children | 29c822d15bc1 |
rev | line source |
---|---|
1 | 1 |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
2 import RestDbInterface |
43 | 3 import RestDbJsonStore |
4 import RestDbGisApi | |
1 | 5 |
6 #class RESTinterface(DefaultPublishTraverse): | |
7 # """VLP spezifische Erweiterung der Collection""" | |
8 # | |
9 # meta_type="RESTinterface" | |
10 # | |
11 # implements(IPublishTraverse) | |
12 # | |
13 # def publishTraverse(self,request,name): | |
14 # """change the traversal if literature object""" | |
15 # | |
16 # actual_url=request['ACTUAL_URL'] | |
17 # lastActual=actual_url.split("/")[-1] | |
18 # | |
19 # | |
20 # tr=DefaultPublishTraverse(self, request) | |
21 # ob= tr.publishTraverse(request, name) | |
22 # | |
23 # return ob | |
24 | |
25 def initialize(context): | |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
26 |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
27 context.registerClass( |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
28 RestDbInterface.RestDbInterface, |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
29 constructors = ( |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
30 RestDbInterface.manage_addRestDbInterfaceForm, |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
31 RestDbInterface.manage_addRestDbInterface |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
32 ) |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
33 ) |
43 | 34 |
35 # context.registerClass( | |
36 # RestDbJsonStore.RestDbJsonStore, | |
37 # constructors = ( | |
38 # RestDbJsonStore.manage_addRestDbJsonStoreForm, | |
39 # RestDbJsonStore.manage_addRestDbJsonStore | |
40 # ) | |
41 # ) | |
42 | |
43 context.registerClass( | |
44 RestDbGisApi.RestDbGisApi, | |
45 constructors = ( | |
46 RestDbGisApi.manage_addRestDbGisApiForm, | |
47 RestDbGisApi.manage_addRestDbGisApi | |
48 ) | |
49 ) |