debian/0000775000000000000000000000000011637044624007177 5ustar debian/source/0000775000000000000000000000000011637044624010477 5ustar debian/source/format0000664000000000000000000000001411545100550011672 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000005611566345501010257 0ustar #!/usr/bin/make -f %: dh $@ --with python2 debian/compat0000664000000000000000000000000211545100551010363 0ustar 7 debian/copyright0000664000000000000000000000336011545100551011122 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: python-django-websocket Source: http://pypi.python.org/pypi/django-websocket Files: * Copyright: Gregor Müllegger License: BSD-3-Clause Files: debian/* Copyright: 2011 TANIGUCHI Takaki License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/docs0000664000000000000000000000000711545100551010035 0ustar README debian/changelog0000664000000000000000000000114511637044560011051 0ustar python-django-websocket (0.3.0-3) unstable; urgency=low [ Jakub Wilk ] * Add Vcs-* fields. [ TANIGUCHI Takaki ] * Add versioned Python dependency. (Closes: #642462) -- TANIGUCHI Takaki Fri, 23 Sep 2011 17:55:11 +0900 python-django-websocket (0.3.0-2) unstable; urgency=low * Change Maintainer to DPMT. * Swtich to dh_python2. -- TANIGUCHI Takaki Mon, 23 May 2011 11:50:18 +0900 python-django-websocket (0.3.0-1) unstable; urgency=low * Initial release (Closes: #611429) -- TANIGUCHI Takaki Sat, 29 Jan 2011 17:52:00 +0900 debian/patches/0000775000000000000000000000000011637044624010626 5ustar debian/patches/debian-changes-0.3.0-10000664000000000000000000001324211545100551014163 0ustar Description: Upstream changes introduced in version 0.3.0-1 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . python-django-websocket (0.3.0-1) unstable; urgency=low . * Initial release (Closes: #611429) . The person named in the Author field signed this changelog entry. Author: TANIGUCHI Takaki Bug-Debian: http://bugs.debian.org/611429 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- python-django-websocket-0.3.0.orig/django_websocket.egg-info/PKG-INFO +++ python-django-websocket-0.3.0/django_websocket.egg-info/PKG-INFO @@ -105,32 +105,32 @@ Description: ================ Receive one message from the client, send that message back to the client and close the connection (by returning from the view):: - from django_websocket import require_websocket + from django_websocket import require_websocket - @require_websocket - def echo_once(request): - message = request.websocket.wait() - request.websocket.send(message) + @require_websocket + def echo_once(request): + message = request.websocket.wait() + request.websocket.send(message) Send websocket messages from the client as lowercase and provide same functionallity for normal GET requests:: - from django.http import HttpResponse - from django_websocket import accept_websocket + from django.http import HttpResponse + from django_websocket import accept_websocket - def modify_message(message): - return message.lower() + def modify_message(message): + return message.lower() - @accept_websocket - def lower_case(request): - if not request.is_websocket(): - message = request.GET['message'] - message = modify_message(message) - return HttpResponse(message) - else: - for message in request.websocket: - message = modify_message(message) - request.websocket.send(message) + @accept_websocket + def lower_case(request): + if not request.is_websocket(): + message = request.GET['message'] + message = modify_message(message) + return HttpResponse(message) + else: + for message in request.websocket: + message = modify_message(message) + request.websocket.send(message) Disclaimer (what you should know when using django-websocket) ============================================================= @@ -151,7 +151,7 @@ Description: ================ settings to install it. Use your development server like you did before and provide the ``--multithreaded`` option to enable multithreaded behaviour:: - python manage.py runserver --multithreaded + python manage.py runserver --multithreaded Using in production ------------------- @@ -210,27 +210,27 @@ Description: ================ ------------- - Changed name of attribute ``WebSocket.websocket_closed`` to - ``WebSocket.closed``. + ``WebSocket.closed``. - Changed behaviour of ``WebSocket.close()`` method. Doesn't close system - socket - it's still needed by django! + socket - it's still needed by django! - You can run tests now with ``python setup.py test``. - Refactoring ``WebSocket`` class. - Adding ``WebSocket.read()`` which returns ``None`` if no new messages are - available instead of blocking like ``WebSocket.wait()``. + available instead of blocking like ``WebSocket.wait()``. - Adding example project to play around with. - Adding ``WebSocket.has_messages()``. You can use it to check if new messages - are ready to be processed. + are ready to be processed. - Adding ``WebSocket.count_messages()``. - Removing ``BaseWebSocketMiddleware`` - is replaced by - ``WebSocketMiddleware``. Don't need for a base middleware anymore. We can - integrate everything in one now. + ``WebSocketMiddleware``. Don't need for a base middleware anymore. We can + integrate everything in one now. Release 0.1.1 ------------- - Fixed a bug in ``BaseWebSocketMiddleware`` that caused an exception in - ``process_response`` if ``setup_websocket`` failed. Thanks to cedric salaun - for the report. + ``process_response`` if ``setup_websocket`` failed. Thanks to cedric salaun + for the report. Release 0.1.0 ------------- --- python-django-websocket-0.3.0.orig/django_websocket.egg-info/SOURCES.txt +++ python-django-websocket-0.3.0/django_websocket.egg-info/SOURCES.txt @@ -2,6 +2,7 @@ CHANGES LICENSE MANIFEST.in README +setup.cfg setup.py django_websocket/__init__.py django_websocket/decorators.py debian/patches/series0000664000000000000000000000002711545100551012030 0ustar debian-changes-0.3.0-1 debian/watch0000664000000000000000000000021711633032526010222 0ustar version=3 opts="uversionmangle=s/(rc|a|b|c)/~$1/" \ http://pypi.python.org/packages/source/d/django-websocket/django-websocket-(.+)\.tar\.gz debian/control0000664000000000000000000000213611637044220010574 0ustar Source: python-django-websocket Section: python Priority: extra Maintainer: Debian Python Modules Team Uploaders: TANIGUCHI Takaki Build-Depends: debhelper (>= 7.0.50~), python-all, python-setuptools, Standards-Version: 3.9.2 Homepage: http://pypi.python.org/pypi/django-websocket Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-django-websocket/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-django-websocket/trunk/ Package: python-django-websocket Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-django, Description: Websocket support for django The django-websocket module provides an implementation of the WebSocket Protocol for django. It handles all the low-level details like establishing the connection through sending handshake reply, parsing messages from the browser etc... . It integrates well into django since it provides easy hooks to receive WebSocket requests either for single views through decorators or for the whole site through a custom middleware.