Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Blanc
scripts
Commits
f1efc54d
Commit
f1efc54d
authored
Sep 15, 2014
by
Daniel STAN
Browse files
mail: si ipython, ne peut pas remplir le mailer
parent
b98ff1f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
gestion/mail/mail.py
View file @
f1efc54d
...
...
@@ -88,7 +88,10 @@ def generate(mail, params, lang=default_language, lang_fallback=default_language
# Retrouve le nom du fichire ayant fait l'appel à la fonction
frm
=
inspect
.
stack
()[
1
]
mod
=
inspect
.
getmodule
(
frm
[
0
])
params
[
'mailer'
]
=
os
.
path
.
abspath
(
mod
.
__file__
)
if
mod
:
params
[
'mailer'
]
=
os
.
path
.
abspath
(
mod
.
__file__
)
else
:
params
[
'mailer'
]
=
'unknown file (%s)'
%
os
.
getlogin
()
msg
=
MIMEMultipart
(
'alternative'
)
if
os
.
path
.
isdir
(
template_path
+
mail
):
...
...
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