Commit 4a45a468 authored by Daniel STAN's avatar Daniel STAN
Browse files

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:
......
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