Mercurial > libervia-backend
comparison src/tmp/wokkel/pubsub.py @ 1424:2d8fccec84e8
core (tests): test fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 23 Apr 2015 14:19:43 +0200 |
parents | be1fccf4854d |
children | 2e43eb9d8167 |
comparison
equal
deleted
inserted
replaced
1423:882e5fabf68c | 1424:2d8fccec84e8 |
---|---|
1 # -*- coding: utf-8 -*- | |
1 # -*- test-case-name: wokkel.test.test_pubsub -*- | 2 # -*- test-case-name: wokkel.test.test_pubsub -*- |
2 # | 3 # |
3 # SàT adaptation for wokkel.pubsub | 4 # SàT adaptation for wokkel.pubsub |
4 # Copyright (C) 2015 Adien Cossa (souliane@mailoo.org) | 5 # Copyright (C) 2015 Adien Cossa (souliane@mailoo.org) |
5 # Copyright (c) 2003-2012 Ralph Meijer. | 6 # Copyright (c) 2003-2012 Ralph Meijer. |
1254 else: | 1255 else: |
1255 request = preProcessor(resource, request) | 1256 request = preProcessor(resource, request) |
1256 if request is None: | 1257 if request is None: |
1257 return defer.succeed(None) | 1258 return defer.succeed(None) |
1258 | 1259 |
1259 # Process the request itself, | 1260 # Process the request itself, |
1260 if resource is not self: | 1261 if resource is not self: |
1261 try: | 1262 try: |
1262 handler = getattr(resource, request.verb) | 1263 handler = getattr(resource, request.verb) |
1263 except AttributeError: | 1264 except AttributeError: |
1264 text = "Request verb: %s" % request.verb | 1265 text = "Request verb: %s" % request.verb |