Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New features for show_instance()

  • Loading branch information...
commit 98613a76a3ddb585b2d930cbe556eca895f37bfa 1 parent aa603fe
Nikita Karetnikov authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 gstudio/xmlrpc/metaweblog.py
View
14 gstudio/xmlrpc/metaweblog.py
@@ -906,6 +906,20 @@ def show_instance(module=None, instance=None, id=None):
instance and id):
return instance_checker(gstmodels, instance, "get", id)
+ if ((module == "objectapp.models" or module == objmodels) and
+ instance):
+ res = []
+ for i in show_id(objmodels, instance):
+ res.append(instance_checker(objmodels, instance, "get", i))
+ return res
+
+ if ((module == "gstudio.models" or module == gstmodels) and
+ instance):
+ res = []
+ for i in show_id(gstmodels, instance):
+ res.append(instance_checker(gstmodels, instance, "get", i))
+ return res
+
if module == None and instance == None and id == None:
def show_all(m, index):
res = []
Please sign in to comment.
Something went wrong with that request. Please try again.