changeset 2973:9937afa7f093 beta

whitespace cleanup
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 29 Oct 2012 21:27:05 +0100
parents 8f5e2206e326
children b7db20657e35
files rhodecode/controllers/admin/repos_groups.py rhodecode/controllers/files.py rhodecode/lib/middleware/errormator.py rhodecode/lib/middleware/sentry.py rhodecode/templates/changelog/changelog.html rhodecode/templates/changeset/changeset_range.html rhodecode/templates/followers/followers_data.html rhodecode/templates/forks/forks_data.html rhodecode/templates/index_base.html rhodecode/templates/journal/journal.html rhodecode/templates/journal/journal_page_repos.html rhodecode/templates/pullrequests/pullrequest_show.html rhodecode/templates/summary/summary.html rhodecode/tests/functional/test_home.py
diffstat 14 files changed, 40 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos_groups.py	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/controllers/admin/repos_groups.py	Mon Oct 29 21:27:05 2012 +0100
@@ -342,8 +342,8 @@
                 "sort": "name",
                 "dir": "asc",
                 "records": repos_data
-            })        
-        
+            })
+
         return render('admin/repos_groups/repos_groups.html')
 
     @HasPermissionAnyDecorator('hg.admin')
--- a/rhodecode/controllers/files.py	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/controllers/files.py	Mon Oct 29 21:27:05 2012 +0100
@@ -157,7 +157,7 @@
                 _hist = c.rhodecode_repo.get_changeset().get_file_history(f_path)
                 c.file_changeset = c.changeset
                 if _hist:
-                    c.file_changeset = (c.changeset 
+                    c.file_changeset = (c.changeset
                                         if c.changeset.revision < _hist[0].revision
                                         else _hist[0])
                 c.file_history = self._get_node_history(None, f_path, _hist)
--- a/rhodecode/lib/middleware/errormator.py	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/lib/middleware/errormator.py	Mon Oct 29 21:27:05 2012 +0100
@@ -28,4 +28,4 @@
 except ImportError:
     Errormator = None
 else:
-    Errormator = make_errormator_middleware
\ No newline at end of file
+    Errormator = make_errormator_middleware
--- a/rhodecode/lib/middleware/sentry.py	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/lib/middleware/sentry.py	Mon Oct 29 21:27:05 2012 +0100
@@ -44,4 +44,4 @@
                 include_paths=list_from_setting(config, 'sentry.include_paths'),
                 exclude_paths=list_from_setting(config, 'sentry.exclude_paths'),
             )
-            super(Sentry, self).__init__(app, client)
\ No newline at end of file
+            super(Sentry, self).__init__(app, client)
--- a/rhodecode/templates/changelog/changelog.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/changelog/changelog.html	Mon Oct 29 21:27:05 2012 +0100
@@ -35,7 +35,7 @@
                     <div class="info_box" style="clear: both;padding: 10px 6px;vertical-align: right;text-align: right;">
                     <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a>
                     <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a>
-                    
+
                     %if c.rhodecode_db_repo.fork:
                         <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name)}" class="ui-btn small">${_('Compare fork')}</a>
                     %endif
@@ -161,11 +161,11 @@
                         if(checked_checkboxes.length>0){
                           // modify open pull request to show we have selected cs
                           YUD.get('open_new_pr').innerHTML = _TM['Open new pull request for selected changesets'];
-                                                  	
+
                         }else{
-                          YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];                        	
+                          YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];
                         }
-                        
+
                         if(checked_checkboxes.length>1){
                         	var rev_end = checked_checkboxes[0].name;
                         	var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
@@ -188,9 +188,9 @@
                         		if (rev == rev_start){
                                     checked = false;
                                 }
- 
+
                         	}
-                        	
+
                             var url = url_tmpl.replace('__REVRANGE__',
                             		rev_start+'...'+rev_end);
 
@@ -201,7 +201,7 @@
                             YUD.get('rev_range_container').innerHTML = link;
                             YUD.setStyle('rev_range_container','display','');
                             YUD.setStyle('rev_range_clear','display','');
-                        
+
                         }
                         else{
                         	YUD.setStyle('rev_range_container','display','none');
--- a/rhodecode/templates/changeset/changeset_range.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/changeset/changeset_range.html	Mon Oct 29 21:27:05 2012 +0100
@@ -94,8 +94,8 @@
                     <span class="tagtag"  title="${'%s %s' % (_('tag'),tag)}">
                     ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
                 %endfor
-              </span>        
-            </div>   
+              </span>
+            </div>
            </div>
           ${diff_block.diff_block(c.changes[cs.raw_id])}
           ##${comment.comments(cs)}
--- a/rhodecode/templates/followers/followers_data.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/followers/followers_data.html	Mon Oct 29 21:27:05 2012 +0100
@@ -22,7 +22,7 @@
         ypjax(e.target.href,"followers",function(){
         	show_more_event();
         	tooltip_activate();
-        	show_changeset_tooltip();	
+        	show_changeset_tooltip();
         });
         YUE.preventDefault(e);
     },'.pager_link');
--- a/rhodecode/templates/forks/forks_data.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/forks/forks_data.html	Mon Oct 29 21:27:05 2012 +0100
@@ -30,7 +30,7 @@
           ypjax(e.target.href,"forks",function(){
         	  show_more_event();
         	  tooltip_activate();
-        	  show_changeset_tooltip(); 
+        	  show_changeset_tooltip();
           });
           YUE.preventDefault(e);
       },'.pager_link');
--- a/rhodecode/templates/index_base.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/index_base.html	Mon Oct 29 21:27:05 2012 +0100
@@ -163,7 +163,7 @@
               firstPageLinkLabel: '&lt;&lt;',
               lastPageLinkLabel: '&gt;&gt;',
               containers:['user-paginator']
-          }),          
+          }),
           MSG_SORTASC:"${_('Click to sort ascending')}",
           MSG_SORTDESC:"${_('Click to sort descending')}"
       });
@@ -224,7 +224,7 @@
         var data = ${c.data|n};
         var myDataSource = new YAHOO.util.DataSource(data);
         myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
-      
+
         myDataSource.responseSchema = {
             resultsList: "records",
             fields: [
@@ -243,7 +243,7 @@
             var data     = res.results || [],
                 filtered = [],
                 i,l;
-      
+
             if (req) {
                 req = req.toLowerCase();
                 for (i = 0; i<data.length; i++) {
@@ -257,7 +257,7 @@
             YUD.get('repo_count').innerHTML = res.results.length;
             return res;
         }
-      
+
         // main table sorting
         var myColumnDefs = [
             {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
@@ -270,7 +270,7 @@
             {key:"rss",label:"",sortable:false},
             {key:"atom",label:"",sortable:false},
         ];
-      
+
         var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
           sortedBy:{key:"name",dir:"asc"},
           paginator: new YAHOO.widget.Paginator({
@@ -287,7 +287,7 @@
               lastPageLinkLabel: '&gt;&gt;',
               containers:['user-paginator']
           }),
-      
+
           MSG_SORTASC:"${_('Click to sort ascending')}",
           MSG_SORTDESC:"${_('Click to sort descending')}",
           MSG_EMPTY:"${_('No records found.')}",
@@ -299,17 +299,17 @@
             tooltip_activate();
             quick_repo_menu();
         });
-      
+
         var filterTimeout = null;
-      
+
         updateFilter  = function () {
             // Reset timeout
             filterTimeout = null;
-      
+
             // Reset sort
             var state = myDataTable.getState();
                 state.sortedBy = {key:'name', dir:YAHOO.widget.DataTable.CLASS_ASC};
-      
+
             // Get filtered data
             myDataSource.sendRequest(YUD.get('q_filter').value,{
                 success : myDataTable.onDataReturnInitializeTable,
@@ -317,16 +317,15 @@
                 scope   : myDataTable,
                 argument: state
             });
-      
+
         };
         YUE.on('q_filter','click',function(){
             YUD.get('q_filter').value = '';
          });
-      
+
         YUE.on('q_filter','keyup',function (e) {
             clearTimeout(filterTimeout);
             filterTimeout = setTimeout(updateFilter,600);
         });
       </script>
     % endif
-    
\ No newline at end of file
--- a/rhodecode/templates/journal/journal.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/journal/journal.html	Mon Oct 29 21:27:05 2012 +0100
@@ -38,7 +38,7 @@
         <div class="title">
             <h5>
             <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
-            <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a> / <a id="show_my" class="link-white" href="#my">${_('My repos')}</a> 
+            <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a> / <a id="show_my" class="link-white" href="#my">${_('My repos')}</a>
             </h5>
              %if h.HasPermissionAny('hg.admin','hg.create.repository')():
              <ul class="links">
@@ -117,10 +117,10 @@
             var nodes = YUQ('#my tr td a.repo_name');
             var func = function(node){
                 return node.parentNode.parentNode.parentNode;
-            }            
+            }
             q_filter('q_filter',nodes,func);
-        });        
-        
+        });
+
     }
     YUE.on('show_my','click',function(e){
         show_my(e);
@@ -140,7 +140,7 @@
     })
     //init watched
     show_watched();
-    
+
     var tabs = {
         'watched': show_watched,
         'my': show_my,
@@ -150,8 +150,8 @@
         //We have a hash
         var tabHash = url[1];
         tabs[tabHash]();
-    }    
-    
+    }
+
     YUE.on('refresh','click',function(e){
         ypjax(e.currentTarget.href,"journal",function(){
         	show_more_event();
--- a/rhodecode/templates/journal/journal_page_repos.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/journal/journal_page_repos.html	Mon Oct 29 21:27:05 2012 +0100
@@ -44,4 +44,4 @@
         ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
     %endif
     </div>
- %endif
\ No newline at end of file
+ %endif
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Mon Oct 29 21:27:05 2012 +0100
@@ -73,7 +73,7 @@
               <div id="affected_files">
               % if c.files:
                 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div>
-                <div class="cs_files">              
+                <div class="cs_files">
                 %for fid, change, f, stat in c.files:
                     <div class="cs_${change}">
                       <div class="node">${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid))}</div>
--- a/rhodecode/templates/summary/summary.html	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/templates/summary/summary.html	Mon Oct 29 21:27:05 2012 +0100
@@ -63,15 +63,15 @@
                       </span>
                       %endif
                   %endif:
-                 
+
                    ## locking icon
                     %if c.rhodecode_db_repo.enable_locking:
                       %if c.rhodecode_db_repo.locked[0]:
-                        <span class="locking_locked tooltip" title="${_('Repository locked by %s') % h.person_by_id(c.rhodecode_db_repo.locked[0])}"></span>                     
+                        <span class="locking_locked tooltip" title="${_('Repository locked by %s') % h.person_by_id(c.rhodecode_db_repo.locked[0])}"></span>
                       %else:
                         <span class="locking_unlocked tooltip" title="${_('Repository unlocked')}"></span>
                       %endif
-                    %endif                   
+                    %endif
                  ##REPO TYPE
 		         %if h.is_hg(c.dbrepo):
 		           <img style="margin-bottom:2px" class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
--- a/rhodecode/tests/functional/test_home.py	Mon Oct 29 21:26:34 2012 +0100
+++ b/rhodecode/tests/functional/test_home.py	Mon Oct 29 21:27:05 2012 +0100
@@ -76,4 +76,3 @@
             response.mustcontain("""var data = {"totalRecords": %s""" % len(Repository.getAll()))
         finally:
             set_l_dash(False)
-