summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/hosting/server/composites.py
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2013-01-03 08:10:25 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2013-01-03 08:10:25 +0000
commit2853156a2bce535bcaa440c37cf872916f76c03b (patch)
tree8e161033a9bac8274dcaca05940964b91cdb2bfc /sca-cpp/trunk/hosting/server/composites.py
parent55607ea78e10832838d52fdb17cbdfe4355c3265 (diff)
Refactoring, rename isNil to isNull.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/hosting/server/composites.py')
-rw-r--r--sca-cpp/trunk/hosting/server/composites.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-cpp/trunk/hosting/server/composites.py b/sca-cpp/trunk/hosting/server/composites.py
index 9e4b40b669..d0276ab5ee 100644
--- a/sca-cpp/trunk/hosting/server/composites.py
+++ b/sca-cpp/trunk/hosting/server/composites.py
@@ -31,7 +31,7 @@ def put(id, comp, user, cache, apps):
# Get the requested app
app = apps.get(id)
- if isNil(app):
+ if isNull(app):
debug('composites.py::put', 'app not found', id)
return False
@@ -48,12 +48,12 @@ def put(id, comp, user, cache, apps):
# Get a composite from the composite db
def get(id, user, cache, apps):
debug('composites.py::get::id', id)
- if isNil(id):
+ if isNull(id):
return (("'feed", ("'title", "Composites"), ("'id", "composites")),)
# Get the requested app
app = apps.get(id)
- if isNil(app):
+ if isNull(app):
debug('composites.py::get', 'app not found', id)
# Return a default new composite
@@ -61,7 +61,7 @@ def get(id, user, cache, apps):
# Get the requested composite
comp = cache.get(compid(id))
- if isNil(comp):
+ if isNull(comp):
debug('composites.py::get', 'composite not found', id)
# Return a default new composite
@@ -78,7 +78,7 @@ def delete(id, user, cache, apps):
# Get the requested app
app = apps.get(id)
- if isNil(app):
+ if isNull(app):
debug('composites.py::delete', 'app not found', id)
return False