Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
cc1fc3ed
Commit
cc1fc3ed
authored
Mar 23, 2012
by
Sofia Papagiannaki
Browse files
changes in user event queue messages
Refs: #1824
parent
fc2e00ef
Changes
1
Show whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/queue/userevent.py
View file @
cc1fc3ed
...
...
@@ -39,7 +39,7 @@ from random import random
class
UserEvent
(
object
):
def
__init__
(
self
,
client
,
user
,
eventType
,
details
=
{}):
self
.
eventVersion
=
'1
.0
'
self
.
eventVersion
=
'1'
self
.
occurredMillis
=
int
(
time
()
*
1000
)
self
.
receivedMillis
=
self
.
occurredMillis
self
.
clientID
=
client
...
...
@@ -50,7 +50,7 @@ class UserEvent(object):
self
.
details
=
details
hash
=
sha1
()
hash
.
update
(
json
.
dumps
([
client
,
self
.
userID
,
self
.
is_active
,
self
.
role
,
self
.
eventType
,
self
.
details
,
random
()
]))
self
.
eventType
,
self
.
details
,
self
.
occurredMillis
]))
self
.
id
=
hash
.
hexdigest
()
def
format
(
self
):
...
...
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