[Uludag-commits] r15269 - trunk/comar/mudur/bin
uludag-commits at pardus.org.tr
uludag-commits at pardus.org.tr
3 Eyl 2007 Pzt 15:03:06 EEST
Author: bahadir.kandemir
Date: Mon Sep 3 15:03:05 2007
New Revision: 15269
Modified:
trunk/comar/mudur/bin/network.py
Log:
kozmetik
Modified: trunk/comar/mudur/bin/network.py
=================================================================
--- trunk/comar/mudur/bin/network.py (original)
+++ trunk/comar/mudur/bin/network.py Mon Sep 3 15:03:05 2007
@@ -23,10 +23,10 @@
def input_number(max_no):
""" Checks limits of read input from command line -any excess will cause warning- """
- input = int(raw_input('->'))
+ input = int(raw_input('-> '))
while ( input >= max_no or input <= 0 ) :
print _("Limit excess, please enter a valid number: ( interval: 0 < entry < %s )") % max_no
- input = int(raw_input('->'))
+ input = int(raw_input('-> '))
return input
def collect(c):
@@ -171,11 +171,11 @@
self.encryption = value
def __str__(self):
- if self.encryption and self.encryption != "none":
- txt = ">-~"
- else:
- txt = " "
- txt += " %4s %s" % ("+" * (self.quality / 25), self.remote)
+ label = self.remote
+ quality = "+" * ((self.quality / 25) + 1)
+ txt = _("Found: %s [%s]") % (label.ljust(20), quality.ljust(5))
+ if self.encryption and self.encryption != "none":
+ txt += " " + _("[encrypted]")
return txt
def queryLinks(com):
@@ -362,7 +362,7 @@
if remotes:
for i, remote in enumerate(remotes):
print "%2d." % (i + 3), str(remote)
- s = int( raw_input('->') )
+ s = int( raw_input('-> ') )
if s == 1:
remote = raw_input('%s -> ' % link.remote_name)
break
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi