projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b85ec13
)
Added #me for actual user's name
author
Lukas Pohlreich
<pohlreichlukas@gmail.com>
Fri, 24 Oct 2014 14:01:35 +0000
(16:01 +0200)
committer
Lukas Pohlreich
<pohlreichlukas@gmail.com>
Fri, 24 Oct 2014 14:01:35 +0000
(16:01 +0200)
rainbowstream/util.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/util.py
b/rainbowstream/util.py
index
1451aec
..
81dddfd
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