diff options
author | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-08-20 09:26:32 +0400 |
---|---|---|
committer | Nikita Karetnikov <nikita.karetnikov@gmail.com> | 2012-08-20 09:26:32 +0400 |
commit | dd1452672d65fdc3f52d8efef6d86e42abb9d95e (patch) | |
tree | 0cfd2b51663ba493a2772808e2fac37289049ac7 /gstudio | |
parent | 3180e360c3eff8f6bf02d3c5fffeb22644a98704 (diff) | |
download | gnowsys-dd1452672d65fdc3f52d8efef6d86e42abb9d95e.tar.gz |
Errors according to the GNU Coding Standards
Diffstat (limited to 'gstudio')
-rw-r--r-- | gstudio/xmlrpc/metaweblog.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gstudio/xmlrpc/metaweblog.py b/gstudio/xmlrpc/metaweblog.py index 91d9eda..2e5e03d 100644 --- a/gstudio/xmlrpc/metaweblog.py +++ b/gstudio/xmlrpc/metaweblog.py @@ -837,7 +837,7 @@ def set_relation(d,obj1,obj2) : except Relationtype.DoesNotExist : return "Relationtype Does Not Exist" -# Previous version of the following methods +# Previous version of ``show_id`` and ``show_instance`` # @xmlrpc_func(returns='list') # def list_id(): @@ -870,8 +870,7 @@ def instance_checker(m, instance, option, id=None): if option == "all": return [id.id for id in cc[i].objects.all()] else: - # http://www.gnu.org/prep/standards/html_node/Errors.html#Errors - sys.stderr.write("metaweblog.py:line872: Wrong arguments\n") + sys.stderr.write("metaweblog.py:865-871: Wrong arguments\n") @xmlrpc_func(returns="struct", args=["string", "string"]) def show_id(module=None, instance=None): @@ -893,7 +892,7 @@ def show_id(module=None, instance=None): return gstres, objres else: - sys.stderr.write("metaweblog.py:line870: Wrong arguments\n") + sys.stderr.write("metaweblog.py:877-892: Wrong arguments\n") @xmlrpc_func(returns="struct", args=["string", "string", "string"]) def show_instance(module=None, instance=None, id=None): @@ -934,8 +933,8 @@ def show_instance(module=None, instance=None, id=None): return res else: - sys.stderr.write("metaweblog.py:line898: Wrong arguments\n") + sys.stderr.write("metaweblog.py:900-933: Wrong arguments\n") except ObjectDoesNotExist: - sys.stderr.write("metaweblog.py:line901: " + + sys.stderr.write("metaweblog.py:900-933: " "Object matching query does not exist\n") |