/usr/share/pyshared/jsb/utils/id.py is in jsonbot 0.84.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # jsb/utils/id.py
#
#
""" id related functions. """
## jsb imports
from jsb.utils.generic import toenc
## basic imports
import uuid
## getrssid function
def getrssid(url, time):
""" get an id based on url and time. """
key = unicode(url) + unicode(time)
return str(uuid.uuid3(uuid.NAMESPACE_DNS, toenc(key)))
|