diff options
author | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-08-12 06:33:51 +0400 |
---|---|---|
committer | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-08-12 06:33:51 +0400 |
commit | 98613a76a3ddb585b2d930cbe556eca895f37bfa (patch) | |
tree | edc1439fcb14d977df09e4fb2edde1781841bbac /gstudio/xmlrpc | |
parent | aa603fe30758c821162a2201d70e079c7a59db07 (diff) | |
download | gnowsys-98613a76a3ddb585b2d930cbe556eca895f37bfa.tar.gz |
New features for show_instance()
Diffstat (limited to 'gstudio/xmlrpc')
-rw-r--r-- | gstudio/xmlrpc/metaweblog.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gstudio/xmlrpc/metaweblog.py b/gstudio/xmlrpc/metaweblog.py index b583b4a..91d9eda 100644 --- a/gstudio/xmlrpc/metaweblog.py +++ b/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 = [] |