projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added #me for actual user's name
[rainbowstream.git]
/
rainbowstream
/
util.py
diff --git
a/rainbowstream/util.py
b/rainbowstream/util.py
index 1451aecdae4b441c6e13cf95ed010d5d50bd630f..81dddfd855e7ea39b32fe8b3058ec27e52a171e4 100644
(file)
--- a/
rainbowstream/util.py
+++ b/
rainbowstream/util.py
@@
-26,18
+26,19
@@
def format_prefix(listname = '', keyword = ''):
Format the custom prefix
"""
formattedPrefix = c['PREFIX']
Format the custom prefix
"""
formattedPrefix = c['PREFIX']
-
username
= '@' + c['original_name']
+
owner
= '@' + c['original_name']
place = ''
if keyword != '':
place = '/public'
keyword = '#' + keyword
if listname != '':
place = ''
if keyword != '':
place = '/public'
keyword = '#' + keyword
if listname != '':
-
username
, place = listname.split('/')
+
owner
, place = listname.split('/')
place = "/" + place
place = "/" + place
- formattedPrefix = formattedPrefix.replace("#
username", username
)
+ formattedPrefix = formattedPrefix.replace("#
owner", owner
)
formattedPrefix = formattedPrefix.replace("#place", place)
formattedPrefix = formattedPrefix.replace("#keyword", keyword)
formattedPrefix = formattedPrefix.replace("#place", place)
formattedPrefix = formattedPrefix.replace("#keyword", keyword)
+ formattedPrefix = formattedPrefix.replace("#me", '@' + c['original_name'])
return formattedPrefix
return formattedPrefix