Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-01-14 19:38:29 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-01-14 19:38:29 (GMT)
commit745f38cfd5bbe82de191e49b9ff1a66651f96542 (patch)
tree0623015a5803b8db8f318315cb4aa32beaab1502
parenta04cc2ed342a0eaa59221332c94979a7ab54e9c3 (diff)
Polish log messages
-rw-r--r--restful_document/metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/restful_document/metadata.py b/restful_document/metadata.py
index 066d32c..9fa0669 100644
--- a/restful_document/metadata.py
+++ b/restful_document/metadata.py
@@ -39,12 +39,12 @@ class Metadata(object):
methods = self._methods[meth.scope].setdefault(meth.document, {})
if meth.cmd:
enforce(meth.cmd not in methods,
- _('Method %s already exists in %s'),
+ _('Method "%s" already exists in "%s"'),
meth.cmd, methods.get(meth.cmd))
methods[meth.cmd] = meth
else:
enforce(meth.method not in methods,
- _('%s method already exists in %s'),
+ _('"%s" method already exists in "%s"'),
meth.method, methods.get(meth.method))
methods[meth.method] = meth
@@ -60,7 +60,7 @@ class Metadata(object):
else:
document = env.request.path[0]
enforce(document in self._methods[scope], env.BadRequest,
- _('Unknown document type, %s'), document)
+ _('Unknown document type, "%s"'), document)
if 'cmd' in env.request.query:
method_name = env.request.query.pop('cmd')