[Testbot] Plone 4.3 - Python 2.6 - Build # 2276 - Fixed! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Sat Aug 23 01:13:29 UTC 2014


-------------------------------------------------------------------------------
Plone 4.3 - Python 2.6 - Build # 2276 - Fixed!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-4.3-python-2.6/2276/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.formwidget.autocomplete
Branch: refs/heads/master
Date: 2014-08-23T01:21:00+02:00
Author: Gil Forcada (gforcada) <gforcada at gnome.org>
Commit: https://github.com/plone/plone.formwidget.autocomplete/commit/1eb1f4d88d08d086bac532ae6989462356e441b1

Whitespaces cleanup

Files changed:
M plone/formwidget/autocomplete/README.txt
M plone/formwidget/autocomplete/jquery-autocomplete/formwidget-autocomplete.js
M plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.css
M plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.js
M plone/formwidget/autocomplete/jquery-autocomplete/jquery.bgiframe.min.js
M plone/formwidget/autocomplete/profiles/default/jsregistry.xml
M plone/formwidget/autocomplete/testing.zcml
M plone/formwidget/autocomplete/widget.py

diff --git a/plone/formwidget/autocomplete/README.txt b/plone/formwidget/autocomplete/README.txt
index c5a2e16..b701b0f 100644
--- a/plone/formwidget/autocomplete/README.txt
+++ b/plone/formwidget/autocomplete/README.txt
@@ -10,7 +10,7 @@ jQuery Autocomplete widget.
 First, we need a vocabulary to search. This is shamelessly stolen from
 z3c.formwidget.query, which we extend.
 
-  
+
     >>> from zope.interface import implements
     >>> from z3c.formwidget.query.interfaces import IQuerySource
     >>> from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
@@ -41,7 +41,7 @@ z3c.formwidget.query, which we extend.
     ...     implements(IContextSourceBinder)
     ...
     ...     def __call__(self, context):
-    ...         return ItalianCities(context)    
+    ...         return ItalianCities(context)
 
 Then, we will set up a simple test form and context.
 
@@ -101,7 +101,7 @@ Then, we will set up a simple test form and context.
     >>> from OFS.SimpleItem import SimpleItem
     >>> class Bar(SimpleItem):
     ...     implements(ICities)
-    ...     
+    ...
     ...     def __init__(self, id):
     ...         self.id = id
     ...         self.favourite_city = None
@@ -136,11 +136,11 @@ Simulates partial rendering:
     <script type="text/javascript">
     ... $('#form-widgets-visited_cities-widgets-query').autocomplete('http://foo/bar/@@cities-form/++widget++form.widgets.visited_cities/@@autocomplete-search', {
     ...
-    
+
 Above, we can see that the rendered JavaScript is expecting to call a view
 @@autocomplete-search on the widget to get search results. This may work
 like this:
-    
+
     >>> widget = form.widgets['favourite_city']
     >>> context.REQUEST._script = 'bar/@@cities-form/++widget++form.widgets.visited_cities/@@autocomplete-search'.split('/')
     >>> context.REQUEST._resetURLS()
@@ -149,7 +149,7 @@ like this:
     >>> print search_view()
     sorrento|Sorrento
     torino|Torino
-    
+
 The results are a newline-delimited list of key-value pairs separated by
 pipes.
 
@@ -161,7 +161,7 @@ z3c.formwidget.query extract() method.
   - If the search button from the query subform was clicked, then assume
     that we are doing an intermediate request for a search in non-AJAX
     mode. This button is hidden when JavaScript is enabled.
-        
+
     >>> search_request = make_request('bar/@@cities-form',
     ...                               {'form.widgets.visited_cities.widgets.query': 'sorrento',
     ...                                'form.widgets.visited_cities': ['torino'],
@@ -171,11 +171,11 @@ z3c.formwidget.query extract() method.
     >>> form_view.form_instance.update()
     >>> form_view.form_instance.widgets['visited_cities'].extract() == ['torino'] # [u'torino'] in Zope 2.12
     True
-    
+
   - Otherwise, if the widget id and form submit button are in the request,
     the user must have selected a radio button (single select) or one or more
     checkboxes (multi-select).
-    
+
     >>> search_request = make_request('bar/@@cities-form',
     ...                               {'form.widgets.visited_cities.widgets.query': 'sorrento',
     ...                                'form.widgets.visited_cities': ['torino'],
@@ -186,9 +186,9 @@ z3c.formwidget.query extract() method.
     Submitted data: {'visited_cities': [u'Torino']}
     >>> form_view.form_instance.widgets['visited_cities'].extract() == ['torino'] # [u'torino'] in Zope 2.12
     True
-    
+
   - Finally, if there nothing was selected, we return an empty list
-  
+
     >>> search_request = make_request('bar/@@cities-form',
     ...                               {'form.widgets.visited_cities-empty-marker': '1',
     ...                                'form.buttons.apply': 'Apply'})
diff --git a/plone/formwidget/autocomplete/jquery-autocomplete/formwidget-autocomplete.js b/plone/formwidget/autocomplete/jquery-autocomplete/formwidget-autocomplete.js
index f01c115..1003883 100644
--- a/plone/formwidget/autocomplete/jquery-autocomplete/formwidget-autocomplete.js
+++ b/plone/formwidget/autocomplete/jquery-autocomplete/formwidget-autocomplete.js
@@ -1,22 +1,22 @@
 function formwidget_autocomplete_ready(event, data, formatted) {
-    (function($) { 
+    (function($) {
         var input_box = $(event.target);
         formwidget_autocomplete_new_value(input_box,data[0],data[1]);
     }(jQuery));
 }
 
 function formwidget_autocomplete_new_value(input_box,value,label) {
-    (function($) { 
+    (function($) {
         var base_id = input_box[0].id.replace(/-widgets-query$/,"");
         var base_name = input_box[0].name.replace(/\.widgets\.query$/,"");
         var widget_base = $('#'+base_id+"-input-fields");
 
         var all_fields = widget_base.find('input:radio, input:checkbox');
-        
+
         // Clear query box and uncheck any radio boxes
         input_box.val("");
         widget_base.find('input:radio').prop('checked', false);
-        
+
         // If a radio/check box for this value already exists, check it.
         var selected_field = widget_base.find('input[value="' + value + '"]');
         if(selected_field.length) {
diff --git a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.css b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.css
index c5c6527..b2c2999 100644
--- a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.css
+++ b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.css
@@ -19,15 +19,15 @@
 	padding: 2px 5px;
 	cursor: default;
 	display: block;
-	/* 
-	if width will be 100% horizontal scrollbar will apear 
+	/*
+	if width will be 100% horizontal scrollbar will apear
 	when scroll mode will be used
 	*/
 	/*width: 100%;*/
 	font: menu;
 	font-size: 12px;
-	/* 
-	it is very important, if line-height not setted or setted 
+	/*
+	it is very important, if line-height not setted or setted
 	in relative units scroll will be broken in firefox
 	*/
 	line-height: 16px;
diff --git a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.js b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.js
index 5ad9178..2409659 100644
--- a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.js
+++ b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.autocomplete.js
@@ -418,7 +418,7 @@ $.Autocompleter.Cache = function(options) {
 	var length = 0;
 	
 	function matchSubset(s, sub) {
-		if (!options.matchCase) 
+		if (!options.matchCase)
 			s = s.toLowerCase();
 		var i = s.indexOf(sub);
 		if (i == -1) return false;
@@ -429,7 +429,7 @@ $.Autocompleter.Cache = function(options) {
 		if (length > options.cacheLength){
 			flush();
 		}
-		if (!data[q]){ 
+		if (!data[q]){
 			length++;
 		}
 		data[q] = value;
@@ -459,7 +459,7 @@ $.Autocompleter.Cache = function(options) {
 				
 			var firstChar = value.charAt(0).toLowerCase();
 			// if no lookup array for this character exists, look it up now
-			if( !stMatchSets[firstChar] ) 
+			if( !stMatchSets[firstChar] )
 				stMatchSets[firstChar] = [];
 
 			// if the match is a string
@@ -502,7 +502,7 @@ $.Autocompleter.Cache = function(options) {
 		load: function(q) {
 			if (!options.cacheLength || !length)
 				return null;
-			/* 
+			/*
 			 * if dealing w/local data and matchContains than we must make sure
 			 * to loop through all the data collections looking for matches
 			 */
@@ -524,7 +524,7 @@ $.Autocompleter.Cache = function(options) {
 					}
 				}				
 				return csub;
-			} else 
+			} else
 			// if the exact item exists, use it
 			if (data[q]){
 				return data[q];
@@ -574,7 +574,7 @@ $.Autocompleter.Select = function (options, input, select, config) {
 		list = $("<ul/>").appendTo(element).mouseover( function(event) {
 			if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
 	            active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
-			    $(target(event)).addClass(CLASSES.ACTIVE);            
+			    $(target(event)).addClass(CLASSES.ACTIVE);
 	        }
 		}).click(function(event) {
 			$(target(event)).addClass(CLASSES.ACTIVE);
@@ -592,7 +592,7 @@ $.Autocompleter.Select = function (options, input, select, config) {
 			element.css("width", options.width);
 			
 		needsInit = false;
-	} 
+	}
 	
 	function target(event) {
 		var element = event.target;
@@ -722,7 +722,7 @@ $.Autocompleter.Select = function (options, input, select, config) {
 						listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );
 					}
                 }
-                
+
             }
 		},
 		selected: function() {
diff --git a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.bgiframe.min.js b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.bgiframe.min.js
index 7faef4b..e292b8d 100644
--- a/plone/formwidget/autocomplete/jquery-autocomplete/jquery.bgiframe.min.js
+++ b/plone/formwidget/autocomplete/jquery-autocomplete/jquery.bgiframe.min.js
@@ -1,5 +1,5 @@
 /* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
- * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
  * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
  *
  * $LastChangedDate: 2007-07-22 01:45:56 +0200 (Son, 22 Jul 2007) $
diff --git a/plone/formwidget/autocomplete/profiles/default/jsregistry.xml b/plone/formwidget/autocomplete/profiles/default/jsregistry.xml
index 64fc487..51b189d 100644
--- a/plone/formwidget/autocomplete/profiles/default/jsregistry.xml
+++ b/plone/formwidget/autocomplete/profiles/default/jsregistry.xml
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
 <object name="portal_javascripts">
 
-  <javascript id="++resource++plone.formwidget.autocomplete/jquery.autocomplete.min.js" 
+  <javascript id="++resource++plone.formwidget.autocomplete/jquery.autocomplete.min.js"
       cacheable="True" compression="none" cookable="True" enabled="True"
       expression="" inline="False" />
-  <javascript id="++resource++plone.formwidget.autocomplete/formwidget-autocomplete.js" 
+  <javascript id="++resource++plone.formwidget.autocomplete/formwidget-autocomplete.js"
       cacheable="True" compression="safe" cookable="True" enabled="True"
       expression="" inline="False" />
 
diff --git a/plone/formwidget/autocomplete/testing.zcml b/plone/formwidget/autocomplete/testing.zcml
index 0e33766..b884a14 100644
--- a/plone/formwidget/autocomplete/testing.zcml
+++ b/plone/formwidget/autocomplete/testing.zcml
@@ -8,5 +8,5 @@
 
     <include package="plone.z3cform" file="testing.zcml" />
     <include package="plone.formwidget.autocomplete" file="configure.zcml" />
-    
+
 </configure>
\ No newline at end of file
diff --git a/plone/formwidget/autocomplete/widget.py b/plone/formwidget/autocomplete/widget.py
index dbe0630..ad39a12 100644
--- a/plone/formwidget/autocomplete/widget.py
+++ b/plone/formwidget/autocomplete/widget.py
@@ -130,7 +130,7 @@ def autocomplete_url(self):
 
         return "%s/++widget++%s/@@autocomplete-search" % (
             form_url, self.name )
-    
+
     def js(self):
         # Use a template if it exists, in case anything overrode this interface
         js_callback = 'formwidget_autocomplete_ready'




-------------------------------------------------------------------------------


More information about the Testbot mailing list