Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit dc522315
authored
2020-06-29 19:13:55 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
adaptado al codigo 13 digitos tipo europeo
1 parent
9927479f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
ValidacionTelefonos.py
ValidacionTelefonos.py
View file @
dc52231
...
...
@@ -28,6 +28,9 @@ class ValidacionCorreo():
def
ValidarCorreo
(
self
,
correo
):
"""si cumpre devuelve el mail, sino devuelve False"""
Correo
=
str
(
correo
)
.
lower
()
Correo
=
Correo
.
replace
(
" "
,
""
)
Correo
=
Correo
.
replace
(
"
\t
"
,
""
)
Correo
=
Correo
.
replace
(
"
\n
"
,
""
)
if
self
.
validarcorreo
(
Correo
)
==
False
:
Correo
=
False
return
(
Correo
)
...
...
@@ -69,6 +72,7 @@ class ValidacionTelefonosArgentinos():
self
.
AreaDefault
=
"341"
self
.
Internacional
=
True
self
.
InternalCod
=
"54"
self
.
InternalCodLargo
=
"549"
def
ValidarTelefono
(
self
,
tel
,
area
=
""
,
internacional
=
""
,
CodigoInternacional
=
""
):
if
area
==
""
:
...
...
@@ -86,8 +90,14 @@ class ValidacionTelefonosArgentinos():
return
(
n
)
def
internacionalNumero
(
self
,
tel
):
if
tel
[
0
]
+
tel
[
1
]
+
tel
[
2
]
==
self
.
InternalCodLargo
:
#print("borro codigo internacional largo")
tel
=
tel
[
1
:]
tel
=
tel
[
1
:]
tel
=
tel
[
1
:]
return
(
tel
)
if
tel
[
0
]
+
tel
[
1
]
==
self
.
InternalCod
:
print
(
"borro codigo internacional"
)
#
print("borro codigo internacional")
tel
=
tel
[
1
:]
tel
=
tel
[
1
:]
return
(
tel
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment