summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/hosting/server/apps.py
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-02-20 07:20:38 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-02-20 07:20:38 +0000
commit1a01ce4fe5882fcc5b312172d7fdf409e0cb9765 (patch)
treea01683ba47a8cc7137700b3c33b5a7a14c153e2c /sca-cpp/trunk/hosting/server/apps.py
parent3479cfa1585b752df58873b941b5bfd06a879b04 (diff)
Fixes to the hosting module to correctly store ATOM feeds instead of raw collections and work with the sqldb component.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/hosting/server/apps.py')
-rw-r--r--sca-cpp/trunk/hosting/server/apps.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/sca-cpp/trunk/hosting/server/apps.py b/sca-cpp/trunk/hosting/server/apps.py
index cc84544dd5..40d1da7dce 100644
--- a/sca-cpp/trunk/hosting/server/apps.py
+++ b/sca-cpp/trunk/hosting/server/apps.py
@@ -21,17 +21,7 @@ from util import *
# Convert an id to an app id
def appid(id):
- return ("'apps", "'" + car(id), "'app.stats")
-
-# Link implementation resources into an app
-def mkapplink(id):
- try:
- os.symlink('../../../../../../nuvem/nuvem-parallel/nuvem', 'data/apps/' + car(id) + '/nuvem')
- os.symlink('../../../../../components', 'data/apps/' + car(id) + '/lib')
- os.mkdir('data/apps/' + car(id) + '/htdocs')
- except:
- pass
- return True
+ return ("apps", car(id), "app.stats")
# Put an app into the apps db
def put(id, app, cache, store, composites, pages):
@@ -41,12 +31,10 @@ def put(id, app, cache, store, composites, pages):
# Update app in apps db
if car(id) == eid:
cache.put(appid(id), appentry)
- mkapplink(id)
return True
# Clone an app's composite and page
cache.put(appid(id), appentry)
- mkapplink(id)
composites.put(id, composites.get((eid,)))
pages.put(id, pages.get((eid,)))
return True