Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Benjamin Graillot
scripts
Commits
8e07916a
Commit
8e07916a
authored
Jan 31, 2017
by
Gabriel Detraz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete code moche
parent
5f345601
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
27 deletions
+2
-27
gestion/annuaires_pg.py
gestion/annuaires_pg.py
+2
-23
gestion/gest_crans.py
gestion/gest_crans.py
+0
-4
No files found.
gestion/annuaires_pg.py
View file @
8e07916a
...
...
@@ -347,28 +347,7 @@ def all_switchs(bat=None, hide=_SPECIAL_SWITCHES + _HIDDEN_SWITCHES):
# Locaux clubs : lecture dans chbre_prises et ajout des locaux dans les bats non
# manageables
def
locaux_clubs
()
:
def
locaux_clubs
():
""" Retourne le dictionaire des locaux club : {bat: [locaux]} """
# Corespondance chbre -> nom du local club
locaux_clubs
=
{
'Kcl0'
:
'Kfet'
,
'Bcl1'
:
'Med'
,
'Pcl0'
:
'Bds'
,
'Mcl0'
:
'Shape'
,
'Mcl1'
:
'Krobot'
,
'Mcl2'
:
'Pensil'
,
'EXT'
:
'EXT'
}
# Ajout des locaux d'étage A, B et C
for
b
in
'ABC'
:
for
i
in
range
(
2
,
7
)
:
locaux_clubs
[
'%scl%i'
%
(
b
,
i
)]
=
'%i@%s'
%
(
i
,
b
)
# Ajout de ceux des H, I et J
for
b
in
'HIJ'
:
for
i
in
range
(
1
,
5
)
:
locaux_clubs
[
'%scl%i'
%
(
b
,
i
)]
=
'%i@%s'
%
(
i
,
b
)
# Dédoubleur pour le 3H (digicode)
locaux_clubs
[
'Hcl3b'
]
=
"3@Hbis"
# Supression du 2@B et 4@J
locaux_clubs
.
pop
(
'Bcl2'
)
locaux_clubs
.
pop
(
'Jcl4'
)
locaux_clubs
=
{
key
:
key
for
key
in
lieux_public
()}
return
locaux_clubs
gestion/gest_crans.py
View file @
8e07916a
...
...
@@ -813,10 +813,6 @@ def set_local(club):
arg
+=
u
'--default-item "%s" '
%
club
.
chbre
()
arg
+=
u
'--menu "Choisissez le local du club :" 0 0 0 '
key
=
locaux
.
keys
()
# on tri par ordre alphébétique avec 'EXT' à la fin
key
.
pop
(
key
.
index
(
'EXT'
))
key
.
sort
()
key
.
append
(
'EXT'
)
for
k
in
key
:
arg
+=
u
'"%s" "%s" '
%
(
k
,
locaux
[
k
])
annul
,
result
=
dialog
(
arg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment