Skip to content

Commit

Permalink
Pep8 exportimport.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Dec 31, 2014
1 parent 6b26a34 commit 275fa9f
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions src/collective/solr/exportimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ def _extractProperties(self):
param = self._doc.createElement('parameter')
param.setAttribute('name', name)
filter_queries.appendChild(param)
append(create('slow-query-threshold',
str(self.context.slow_query_threshold)))
append(
create(
'slow-query-threshold',
str(self.context.slow_query_threshold)
)
)
append(create('effective-steps', str(self.context.effective_steps)))
append(create('exclude-user', str(bool(self.context.exclude_user))))
highlight_fields = self._doc.createElement('highlight_fields')
Expand All @@ -191,13 +195,32 @@ def _extractProperties(self):
param = self._doc.createElement('parameter')
param.setAttribute('name', name)
highlight_fields.appendChild(param)
append(create('highlight_formatter_pre', self.context.highlight_formatter_pre))
append(create('highlight_formatter_post', self.context.highlight_formatter_post))
append(create('highlight_fragsize', str(self.context.highlight_fragsize)))
append(
create(
'highlight_formatter_pre',
self.context.highlight_formatter_pre
)
)
append(
create(
'highlight_formatter_post',
self.context.highlight_formatter_post
)
)
append(
create(
'highlight_fragsize',
str(self.context.highlight_fragsize)
)
)
field_list = self._doc.createElement('field-list')
append(field_list)
append(create('levenshtein_distance',
str(self.context.levenshtein_distance)))
append(
create(
'levenshtein_distance',
str(self.context.levenshtein_distance)
)
)
for name in self.context.field_list:
param = self._doc.createElement('parameter')
param.setAttribute('name', name)
Expand Down

0 comments on commit 275fa9f

Please sign in to comment.