changeset 786:f0ad3f62bae2

server_side (blog): pubsub item ID doesn't need to be an UUID
author souliane <souliane@mailoo.org>
date Tue, 01 Dec 2015 23:57:28 +0100
parents 103f0f01ba54
children b2a75a103aac
files src/server/blog.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Tue Dec 01 14:26:53 2015 +0100
+++ b/src/server/blog.py	Tue Dec 01 23:57:28 2015 +0100
@@ -169,11 +169,7 @@
             if request.postpath[1] == 'atom.xml':  # return the atom feed
                 request.atom = True
             else:
-                try:  # check if the given path is a valid UUID
-                    uuid.UUID(request.postpath[1])
-                    request.item_id = request.postpath[1]
-                except ValueError:
-                    pass
+                request.item_id = request.postpath[1]
 
         self.parseURLParamsRSM(request)
         request.display_single = (request.item_id is not None) or int(request.extra_dict['rsm_max']) == 1