Skip to content

Commit e282b48

Browse files
author
Daniela Butano
committed
fix checkstyle
1 parent 7288589 commit e282b48

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

intermine/webservice.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def get_template_by_user(self, name, username):
521521
t = templates[name]
522522
except KeyError:
523523
raise ServiceError("There is no template called '"
524-
+ name + "' at this service belonging to '" + username + "'")
524+
+ name + "' at this service belonging to '" + username + "'")
525525
if not isinstance(t, Template):
526526
t = Template.from_xml(t, self.model, self)
527527
t.user_name = username
@@ -701,10 +701,10 @@ def all_templates(self):
701701
strings. It is recommended that in most cases you would want
702702
to use L{Service.get_template}.
703703
704-
You can use this property however to test for template existence though::
704+
You can use this property however to test for template existence::
705705
706706
if name in service.templates:
707-
template = service.get_template(name)
707+
template = service.get_template(name)
708708
709709
@rtype: dict
710710
@@ -735,11 +735,12 @@ def all_templates_names(self):
735735
736736
You need to be authenticated as admin.
737737
738-
allTemplatesNames = service.all_templates_names
739-
for user in allTemplatesNames:
740-
userTemplatesNames = allTemplatesNames[user]
741-
for templateName in userTemplatesNames:
742-
template = service.get_template_by_user(templateName, user)
738+
Example::
739+
allTemplatesNames = service.all_templates_names
740+
for user in allTemplatesNames:
741+
userTemplatesNames = allTemplatesNames[user]
742+
for templateName in userTemplatesNames:
743+
template = service.get_template_by_user(templateName, user)
743744
744745
@rtype: dict
745746

0 commit comments

Comments
 (0)