Changeset 17:0b77281b458c in ralphm-patches for pubsub-subscription-options.patch


Ignore:
Timestamp:
Dec 28, 2009, 9:17:52 PM (11 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

More consistent naming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pubsub-subscription-options.patch

    r16 r17  
    1 diff -r 2919e60d3588 -r 6825608361d1 wokkel/data_form.py
     1diff -r 2919e60d3588 wokkel/data_form.py
    22--- a/wokkel/data_form.py       Mon Dec 28 12:13:34 2009 +0100
    3 +++ b/wokkel/data_form.py       Mon Dec 28 21:16:30 2009 +0100
     3+++ b/wokkel/data_form.py       Mon Dec 28 21:17:39 2009 +0100
    44@@ -76,6 +76,7 @@
    55             option['label'] = self.label
     
    9999+
    100100+            field.typeCheck()
    101 diff -r 2919e60d3588 -r 6825608361d1 wokkel/pubsub.py
     101diff -r 2919e60d3588 wokkel/pubsub.py
    102102--- a/wokkel/pubsub.py  Mon Dec 28 12:13:34 2009 +0100
    103 +++ b/wokkel/pubsub.py  Mon Dec 28 21:16:30 2009 +0100
     103+++ b/wokkel/pubsub.py  Mon Dec 28 21:17:39 2009 +0100
    104104@@ -228,7 +228,7 @@
    105105     # Map request verb to parameter handler names
     
    227227-
    228228     def _formFromConfiguration(self, resource, values):
    229          options = resource.getConfigurationOptions()
     229-        options = resource.getConfigurationOptions()
    230230-        fields = self._makeFields(options, values)
     231+        fieldDefs = resource.getConfigurationOptions()
    231232         form = data_form.Form(formType="form",
    232233-                              formNamespace=NS_PUBSUB_NODE_CONFIG,
     
    234235-
    235236+                              formNamespace=NS_PUBSUB_NODE_CONFIG)
    236 +        form.makeFields(values, options)
     237+        form.makeFields(values, fieldDefs)
    237238         return form
    238239 
    239240 
    240 diff -r 2919e60d3588 -r 6825608361d1 wokkel/test/test_pubsub.py
     241diff -r 2919e60d3588 wokkel/test/test_pubsub.py
    241242--- a/wokkel/test/test_pubsub.py        Mon Dec 28 12:13:34 2009 +0100
    242 +++ b/wokkel/test/test_pubsub.py        Mon Dec 28 21:16:30 2009 +0100
     243+++ b/wokkel/test/test_pubsub.py        Mon Dec 28 21:17:39 2009 +0100
    243244@@ -447,6 +447,37 @@
    244245         return d
Note: See TracChangeset for help on using the changeset viewer.