Commit 4a45a468 authored by Daniel Stan's avatar Daniel Stan

Retrait des shabangs et exec bit inutiles

parent 1808d40e
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# ACCUEIL.PY
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import render
......
#!/usr/bin/env python
# -*- coding: utf-8 -*
import os
from subprocess import call
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __init__.py -- Classe impression
#
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# IMPRESSION -- Interface d'impression dans le nouvel intranet
......
#!/usr/bin/env python
# -*- coding: utf-8 -*
from django.db import models
......@@ -21,11 +20,16 @@ get_user = conn_pool.get_user
get_machine = conn_pool.get_machine
# odlyd
def trigger_generate(server):
# TODO: intégrer ceci dans generate
if not settings.BASE_LDAP_TEST:
import gestion.gen_confs.generate as generate
generate.trigger(server, background=True)
def create_machine(user, type, mac, host, club=None):
"""Crée une machine pour l'utilisateur ldap `user`, où `type` est
"wifi-adh", "wifi-adh-v6", "fil" etc.
Et `club` est un éventuel cid (int).
"""
ldif = {
'macAddress': [u'%s' % mac.encode('utf-8')],
'host': [u'%s' % host.encode('utf-8')]
......
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
import views
......
#!/usr/bin/env python
# -*- coding: utf-8 -*
from django.shortcuts import render, redirect
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FORMS.PY -- Formulaires Django pour les prises
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# MODELS.PY -- Modèles de base de données Django pour les prises
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# PRISES.PY -- Gestion du brassage des prises
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from django.conf.urls import include, patterns, url
......
# -*- coding: utf-8 -*-
from django.contrib import admin
from models import Profile, Call
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import messages
......@@ -9,6 +8,7 @@ class asterisk_reload_conf_debug:
def reload_config(self, fname):
pass
# TODO weird stuff here
import sys
sys.path.append('/usr/scripts/sip/')
try:
......
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
import views
......
# -*- coding: utf-8 -*-
from django.db import models
class VirtAP(models.Model):
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Daniel STAN
# Authors: Daniel STAN <daniel.stan@crans.org>
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Daniel STAN
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.forms import Form, PasswordInput, CharField, ValidationError
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO: déprécier ce fichier ?
"""Ce fichier donne les primitives de modification du compte WiKi
associé à un utilisateur, via Binding. """
import sys
if not '/usr/scripts/' in sys.path:
sys.path.append('/usr/scripts/')
if not '/usr/scripts' in sys.path:
sys.path.append('/usr/scripts')
from django.contrib.auth.models import User
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Ce fichier donne les primitives de modification du compte WiKi
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Daniel STAN
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import settings
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# LOGIN.PY -- Gère l'interface d'authentification à l'aide des modèles Django.
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DATABASE.PY -- Gestion des bases de données multiples dans l'intranet
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# LOGIN.PY -- Gère l'interface d'authentification à l'aide des modèles Django.
......
File mode changed from 100755 to 100644
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from django.conf.urls import include, patterns, url
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
if settings.LOCATION == "o2":
from django.contrib.sessions.models import Session
Session.objects.all().delete()
# This application object is used by the development server
# as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment