Changeset 26:59ace4d1df68 in ralphm-patches for pubsub-item.patch


Ignore:
Timestamp:
Jan 1, 2010, 4:18:52 PM (11 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Clean up patches, more tests, adjust copyright statements to new year.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pubsub-item.patch

    r18 r26  
    1 diff -r 2919e60d3588 -r 90bd422b8ac6 wokkel/pubsub.py
    2 --- a/wokkel/pubsub.py  Mon Dec 28 12:13:34 2009 +0100
    3 +++ b/wokkel/pubsub.py  Mon Dec 28 21:19:34 2009 +0100
     1diff -r e58b9f2cf8a3 wokkel/pubsub.py
     2--- a/wokkel/pubsub.py  Fri Jan 01 01:34:14 2010 +0100
     3+++ b/wokkel/pubsub.py  Fri Jan 01 11:12:36 2010 +0100
    44@@ -119,33 +119,47 @@
    55 
     
    4141+        L{Item} is usable in all contexts involving items.
    4242+
    43 +        @param namespace: The namespace of the item. Usually L{'NS_PUBSUB'} or
    44 +            L{'NS_PUBSUB_EVENT'}.
    45 +        @type: C{unicode}.
    46 +        @rtype: L{domish.Element}.
     43+        @param namespace: The namespace of the item. Usually L{NS_PUBSUB} or
     44+            L{NS_PUBSUB_EVENT}.
     45+        @type: C{unicode}
     46+        @rtype: L{domish.Element}
    4747         """
    4848+        element = domish.Element((namespace, 'item'))
     
    6868 
    6969 
    70 @@ -333,7 +347,13 @@
     70@@ -309,7 +323,13 @@
    7171         self.items = []
    7272         for element in verbElement.elements():
     
    8383 
    8484     def _render_items(self, verbElement):
    85 @@ -342,7 +362,7 @@
     85@@ -318,7 +338,7 @@
    8686         """
    8787         if self.items:
     
    9292 
    9393     def _parse_jid(self, verbElement):
    94 @@ -1105,7 +1125,7 @@
     94@@ -1124,7 +1144,7 @@
    9595         items["node"] = request.nodeIdentifier
    9696 
     
    101101         return response
    102102 
    103 diff -r 2919e60d3588 -r 90bd422b8ac6 wokkel/test/test_pubsub.py
    104 --- a/wokkel/test/test_pubsub.py        Mon Dec 28 12:13:34 2009 +0100
    105 +++ b/wokkel/test/test_pubsub.py        Mon Dec 28 21:19:34 2009 +0100
    106 @@ -331,7 +331,6 @@
     103diff -r e58b9f2cf8a3 wokkel/test/test_pubsub.py
     104--- a/wokkel/test/test_pubsub.py        Fri Jan 01 01:34:14 2010 +0100
     105+++ b/wokkel/test/test_pubsub.py        Fri Jan 01 11:12:36 2010 +0100
     106@@ -365,7 +365,6 @@
    107107         items = list(domish.generateElementsQNamed(child.children,
    108108                                                    'item', NS_PUBSUB))
     
    112112         response = toResponse(iq, 'result')
    113113         self.stub.send(response)
    114 @@ -634,8 +633,8 @@
     114@@ -699,8 +698,8 @@
    115115 
    116116         request = pubsub.PubSubRequest.fromElement(parseXml(xml))
Note: See TracChangeset for help on using the changeset viewer.