Mercurial > hg > ChinaGisRestApi
annotate __init__.py @ 37:b356b86773a1
Merge with falks stuff b915bce653725bd0690605119fc9b3123253e560
author | casties |
---|---|
date | Wed, 01 Sep 2010 18:47:06 +0200 |
parents | 61a3764cd5fb |
children | 562717546168 |
rev | line source |
---|---|
1 | 1 |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
2 import REST_test |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
3 import RestDbInterface |
1 | 4 |
5 #class RESTinterface(DefaultPublishTraverse): | |
6 # """VLP spezifische Erweiterung der Collection""" | |
7 # | |
8 # meta_type="RESTinterface" | |
9 # | |
10 # implements(IPublishTraverse) | |
11 # | |
12 # def publishTraverse(self,request,name): | |
13 # """change the traversal if literature object""" | |
14 # | |
15 # actual_url=request['ACTUAL_URL'] | |
16 # lastActual=actual_url.split("/")[-1] | |
17 # | |
18 # | |
19 # tr=DefaultPublishTraverse(self, request) | |
20 # ob= tr.publishTraverse(request, name) | |
21 # | |
22 # return ob | |
23 | |
24 def initialize(context): | |
25 context.registerClass( | |
26 REST_test.RESTclass, | |
27 constructors = ( | |
28 REST_test.manage_addRESTclassForm, | |
29 REST_test.manage_addRESTclass | |
30 ) | |
31 ) | |
2
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 context.registerClass( |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
34 RestDbInterface.RestDbInterface, |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
35 constructors = ( |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
36 RestDbInterface.manage_addRestDbInterfaceForm, |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
37 RestDbInterface.manage_addRestDbInterface |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
38 ) |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
1
diff
changeset
|
39 ) |