componentsDjangoType 2.0.11__tar.gz → 2.0.13__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-2.0.11/componentsDjangoType.egg-info → componentsdjangotype-2.0.13}/PKG-INFO +1 -1
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/authenticator_configurator.py +18 -11
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/setup.py +1 -1
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/LICENSE +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/MANIFEST.in +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/README.md +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/management/commands/createApp.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/__init__.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/authentication/__init__.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/authentication/auth.py +0 -0
- {componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/setup.cfg +0 -0
{componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/authenticator_configurator.py
RENAMED
@@ -118,24 +118,31 @@ urlpatterns = [
|
|
118
118
|
def creation_auth(self, stdout):
|
119
119
|
services_dir = os.path.join(self.app_name, 'services')
|
120
120
|
authentication_dir = os.path.join(services_dir, 'authentication')
|
121
|
-
os.makedirs(authentication_dir, exist_ok=True)
|
121
|
+
os.makedirs(authentication_dir, exist_ok=True)
|
122
122
|
|
123
|
-
authentication_path = os.path.join(authentication_dir, '
|
123
|
+
authentication_path = os.path.join(authentication_dir, 'authentication.py')
|
124
|
+
|
125
|
+
auth_source_path = os.path.abspath('authentication/auth.py')
|
126
|
+
|
127
|
+
if not os.path.exists(auth_source_path):
|
128
|
+
stdout.write(f"El archivo fuente '{auth_source_path}' no existe. Verifica la instalación del paquete.")
|
129
|
+
return
|
124
130
|
|
125
131
|
if not os.path.exists(authentication_path):
|
126
132
|
stdout.write(f"Creando el archivo '{authentication_path}'...")
|
127
133
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
auth_code = file.read()
|
134
|
+
# Leer el contenido de 'auth.py' del paquete
|
135
|
+
try:
|
136
|
+
with open(auth_source_path, 'r') as source_file:
|
137
|
+
auth_code = source_file.read()
|
133
138
|
|
134
|
-
|
135
|
-
|
136
|
-
|
139
|
+
# Escribir el contenido en el nuevo archivo 'authentication.py'
|
140
|
+
with open(authentication_path, 'w') as dest_file:
|
141
|
+
dest_file.write(auth_code)
|
137
142
|
|
138
|
-
|
143
|
+
stdout.write(f"El archivo '{authentication_path}' fue creado y el código fue copiado.")
|
144
|
+
except Exception as e:
|
145
|
+
stdout.write(f"Error al copiar el archivo: {e}")
|
139
146
|
else:
|
140
147
|
stdout.write(f"El archivo '{authentication_path}' ya existe.")
|
141
148
|
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/componentsDjangoType/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.11 → componentsdjangotype-2.0.13}/services/authentication/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|