Mercurial > hg > TagInTheMiddle
comparison taginthemiddle/handlers.py @ 14:86118cd8912e
display what tags we are talking about
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 05 May 2010 22:45:25 -0700 |
parents | 1ae2f98f9675 |
children | 5f492a6fbdd1 |
comparison
equal
deleted
inserted
replaced
13:af87537031b0 | 14:86118cd8912e |
---|---|
97 except ValueError: | 97 except ValueError: |
98 raise HandlerMatchException | 98 raise HandlerMatchException |
99 self.tags = path[index+1:] | 99 self.tags = path[index+1:] |
100 if not self.tags: | 100 if not self.tags: |
101 raise HandlerMatchException | 101 raise HandlerMatchException |
102 self.data['tags'] = self.tags | |
102 | 103 |
103 @classmethod | 104 @classmethod |
104 def match(cls, app, request): | 105 def match(cls, app, request): |
105 # check the method | 106 # check the method |
106 if request.method not in cls.methods: | 107 if request.method not in cls.methods: |