Skip to content

Commit

Permalink
Merge branch 'github-main' of github.com:jean/Plomino into github-main
Browse files Browse the repository at this point in the history
Conflicts:
	Products/CMFPlomino/index/PlominoIndex.py
	README.rst
  • Loading branch information
jean committed Nov 17, 2014
2 parents 3c4e002 + 9199515 commit fd42781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Products/CMFPlomino/index/PlominoIndex.py
Expand Up @@ -156,7 +156,7 @@ def indexDocument(self, doc, idxs=None, update_metadata=1):
except Exception, e:
_logger.info(
'indexDocument> %s\non %s' % (repr(e), doc.id),
exc_info=True)
exc_info=True)
raise

security.declareProtected(READ_PERMISSION, 'unindexDocument')
Expand Down Expand Up @@ -184,8 +184,8 @@ def dbsearch(self, request, sortindex=None, reverse=0,
user_id = self.getCurrentMember().getUserName()
if user_id != "Anonymous User":
user_groups_roles += (
[user_id] +
self.getCurrentUserGroups() +
[user_id] +
self.getCurrentUserGroups() +
self.getCurrentUserRoles())
request['getPlominoReaders'] = user_groups_roles
try:
Expand All @@ -198,7 +198,7 @@ def dbsearch(self, request, sortindex=None, reverse=0,
"The %s index does not allow sorting" % sortindex,
self.REQUEST,
error=True)
results = self.search(request, None, reverse, limit)
results = self.search(request, None, reverse, limit)
return results

security.declareProtected(READ_PERMISSION, 'getKeyUniqueValues')
Expand Down Expand Up @@ -233,13 +233,12 @@ def convertFileToText(self, doc, field):
except TransformException:
_logger.info(
'convertFileToText> Transform failed',
exc_info=True)
exc_info=True)
except MissingBinary:
_logger.info(
'convertFileToText> Transform failed',
exc_info=True)
exc_info=True)
if textstream:
result = textstream.getData()

return result

1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -119,6 +119,7 @@ The complete list is available `here <http://www.plomino.net/credits>`.

Companies
---------

|makinacom|_

* `Planet Makina Corpus <http://www.makina-corpus.org>`_
Expand Down

0 comments on commit fd42781

Please sign in to comment.