projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fd7249
)
Empty string is false
author
Lukas Pohlreich
<pohlreichlukas@gmail.com>
Sat, 25 Oct 2014 12:39:39 +0000
(14:39 +0200)
committer
Lukas Pohlreich
<pohlreichlukas@gmail.com>
Sat, 25 Oct 2014 12:39:39 +0000
(14:39 +0200)
rainbowstream/util.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/util.py
b/rainbowstream/util.py
index 81dddfd855e7ea39b32fe8b3058ec27e52a171e4..8a33711ceb7efc98a954a48e4337e02b848bd474 100644
(file)
--- a/
rainbowstream/util.py
+++ b/
rainbowstream/util.py
@@
-28,11
+28,11
@@
def format_prefix(listname = '', keyword = ''):
formattedPrefix = c['PREFIX']
owner = '@' + c['original_name']
place = ''
- if keyword
!= ''
:
+ if keyword:
place = '/public'
keyword = '#' + keyword
- if listname
!= ''
:
+ if listname:
owner, place = listname.split('/')
place = "/" + place