Changeset 26:59ace4d1df68 in ralphm-patches for findform.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
  • findform.patch

    r21 r26  
    1 diff -r 031a0ad83156 -r fda6b92d81a1 wokkel/data_form.py
    2 --- a/wokkel/data_form.py       Wed Dec 30 21:37:33 2009 +0100
    3 +++ b/wokkel/data_form.py       Wed Dec 30 21:39:55 2009 +0100
    4 @@ -616,3 +616,24 @@
     1Move findForm to wokkel.data_form
     2
     3diff -r ff70bda5117e wokkel/data_form.py
     4--- a/wokkel/data_form.py       Fri Jan 01 16:03:51 2010 +0100
     5+++ b/wokkel/data_form.py       Fri Jan 01 16:16:09 2010 +0100
     6@@ -657,3 +657,24 @@
    57 
    68         for field in filtered:
     
    2729+
    2830+    return None
    29 diff -r 031a0ad83156 -r fda6b92d81a1 wokkel/pubsub.py
    30 --- a/wokkel/pubsub.py  Wed Dec 30 21:37:33 2009 +0100
    31 +++ b/wokkel/pubsub.py  Wed Dec 30 21:39:55 2009 +0100
     31diff -r ff70bda5117e wokkel/pubsub.py
     32--- a/wokkel/pubsub.py  Fri Jan 01 16:03:51 2010 +0100
     33+++ b/wokkel/pubsub.py  Fri Jan 01 16:16:09 2010 +0100
    3234@@ -252,30 +252,6 @@
    3335         self.verb = verb
     
    7779+        form = data_form.findForm(verbElement, NS_PUBSUB_NODE_CONFIG)
    7880         if form:
    79              if form.formType in ('submit', 'cancel'):
    80                  self.options = form
    81 @@ -435,7 +411,7 @@
     81             if form.formType == 'submit':
     82                 self.options = form.getValues()
     83@@ -437,7 +413,7 @@
    8284 
    8385 
     
    8688+        form = data_form.findForm(verbElement, NS_PUBSUB_SUBSCRIBE_OPTIONS)
    8789         if form:
    88              if form.formType not in ('submit', 'cancel'):
    89                  raise BadRequest(text="Unexpected form type %r" % form.formType)
     90             if form.formType == 'submit':
     91                 self.options = form.getValues()
Note: See TracChangeset for help on using the changeset viewer.