Permalink
Browse files

New features for show_instance()

  • Loading branch information...
1 parent aa603fe commit 98613a76a3ddb585b2d930cbe556eca895f37bfa Nikita Karetnikov committed Aug 12, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 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 = []

0 comments on commit 98613a7

Please sign in to comment.