diff src/server/blog.py @ 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 78caef6ed8e7
children f8a7a046ff9c
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