[debian/*.py] remove trailing whitespaces
Ignore-this: f62e84c258c847013d307d12acdf489e darcs-hash:20090309212356-0445d-d8338d06f968f316fcd085446023123be87040f7.gz
This commit is contained in:
parent
cc31727b60
commit
eae0d21f83
18 changed files with 352 additions and 352 deletions
|
@ -23,7 +23,7 @@ def load(file) :
|
|||
except :
|
||||
print "Impossible d'ouvrir le fichier demandé."
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
obj = cPickle.load(fd)
|
||||
|
||||
try :
|
||||
|
@ -39,10 +39,10 @@ def load(file) :
|
|||
### Modifs pour permettre une restauration
|
||||
# On supprime les infos de aid, mid ou cid
|
||||
obj.dn = obj.dn.split(',',1)[1]
|
||||
|
||||
|
||||
# On supprime les infos du init_data
|
||||
obj._init_data={}
|
||||
|
||||
|
||||
return obj
|
||||
|
||||
if '-h' in sys.argv or '--help' in sys.argv or len(sys.argv) != 2 :
|
||||
|
@ -61,7 +61,7 @@ def restore_adher(adh) :
|
|||
prompt(u'Appuyez sur ENTREE pour continuer')
|
||||
adh._data['mail'] = []
|
||||
modif_adher(adh)
|
||||
|
||||
|
||||
def restore_machine(machine) :
|
||||
try :
|
||||
obj.proprio # crash si l'adhérent est encore dans la base
|
||||
|
@ -77,7 +77,7 @@ def restore_machine(machine) :
|
|||
|
||||
def restore_club(club) :
|
||||
modif_club(club)
|
||||
|
||||
|
||||
# Restauration ?
|
||||
q = prompt(u'Restaurer cette entrée ? [O/N]')
|
||||
if q not in 'oO' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue