← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 410: use the standard indentation in Gui.py

 

------------------------------------------------------------
revno: 410
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Tue 2012-10-30 19:03:50 +0100
message:
  use the standard indentation in Gui.py
modified:
  src/alfanous-desktop/Gui.py


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-desktop/Gui.py'
--- src/alfanous-desktop/Gui.py	2012-10-30 17:53:26 +0000
+++ src/alfanous-desktop/Gui.py	2012-10-30 18:03:50 +0000
@@ -236,10 +236,10 @@
                 }
         output = RAWoutput.do( suggest_flags )
         #print output     
-	suggestions = output["suggest"] if output.has_key( "suggest" ) else []
+        suggestions = output["suggest"] if output.has_key( "suggest" ) else []
         #print suggestions
-        if len( suggestions ):
-	    html += _( u"<h1> Suggestions (%(number)s) </h1>" ) % {"number":len( suggestions )}
+        if len( suggestions ): 
+            html += _( u"<h1> Suggestions (%(number)s) </h1>" ) % {"number":len( suggestions )}
             for key, value in suggestions:
                 html += _( u"<span class='green'>  %(word)s </span> : %(suggestions)s. <br />" ) % {"word": unicode( key ), "suggestions":u"،".join( value )}
 
@@ -280,7 +280,7 @@
         if self.o_word_stat.isChecked():
             html += u'<h1> Words ( %(nb_words)d words reported %(nb_matches)d times ): </h1>' % results["search"]["words"]["global"]
             
-	    print results["error"]["msg"]
+            print results["error"]["msg"]
             for cpt in xrange( results["search"]["words"]["global"]["nb_words"] ) :
                     this_word_info = results["search"]["words"][cpt + 1]
                     this_word_info["cpt"] = cpt + 1