Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
erp5
Commits
7117abf0
Commit
7117abf0
authored
Feb 07, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web: Do not go through catalog to find document owner's user_id.
parent
da8a240a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py
...ns/erp5_web_widget_library/WebSite_calculateStatistics.py
+1
-2
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py
View file @
7117abf0
...
@@ -46,8 +46,7 @@ def calculateStatistics():
...
@@ -46,8 +46,7 @@ def calculateStatistics():
if
group
is
not
None
:
if
group
is
not
None
:
documents_groups
[
group
]
=
documents_groups
.
get
(
group
,
0
)
+
1
documents_groups
[
group
]
=
documents_groups
.
get
(
group
,
0
)
+
1
# XXX: count owner
# XXX: count owner
doc_metadata
=
portal_catalog
.
getMetadataForUid
(
doc
.
getUid
())
doc_owner
=
doc
.
Base_getOwnerId
()
doc_owner
=
doc_metadata
.
get
(
'owner'
,
None
)
if
doc_owner
is
not
None
and
doc_owner
.
find
(
'@'
)
!=-
1
:
if
doc_owner
is
not
None
and
doc_owner
.
find
(
'@'
)
!=-
1
:
# we have a website user. we wanted to filter Zope users
# we have a website user. we wanted to filter Zope users
documents_owners
[
doc_owner
]
=
documents_owners
.
get
(
doc_owner
,
0
)
+
1
documents_owners
[
doc_owner
]
=
documents_owners
.
get
(
doc_owner
,
0
)
+
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment