projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
the beginnings of user-art relations. You can add relations, and it makes sure they...
[zzz-floof.git]
/
floof
/
lib
/
helpers.py
diff --git
a/floof/lib/helpers.py
b/floof/lib/helpers.py
index
1c2f0c1
..
b4cac1f
100644
(file)
--- a/
floof/lib/helpers.py
+++ b/
floof/lib/helpers.py
@@
-35,5
+35,9
@@
def get_comment_owner_url(**route):
"""Given a view route, returns the owner_url route parameter for generating
comment URLs.
"""
"""Given a view route, returns the owner_url route parameter for generating
comment URLs.
"""
+ if 'owner_url' in route:
+ # We're already in a comments page. Reuse the existing owner URL
+ return route['owner_url']
+
# url() returns URLs beginning with a slash. We just need to strip it.
return url(**route)[1:]
# url() returns URLs beginning with a slash. We just need to strip it.
return url(**route)[1:]