This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def login_required(self,fn): | |
def wrapped(): | |
session = request.environ.get('beaker.session') | |
if session.get("user",0): | |
return fn() | |
else: | |
return redirect("/login") | |
return wrapped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp = [] | |
for row in map_data.iter("row"): | |
i = 0 | |
fgroup = 0 | |
group = 0 | |
for value in row.iter("value"): | |
if(i == 0): | |
fgroup = int(value.text) | |
if(i == 1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for row in map_data.iter("row"): | |
i = 0 | |
fgroup = 0 | |
group = 0 | |
for value in row.iter("value"): | |
if(i == 0): | |
fgroup = int(value.text) | |
if(i == 1): | |
group = int(value.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (bla) | |
{ | |
foobar; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (bla){ | |
if (wup){ | |
foo; | |
} | |
} | |
if (bla) | |
{ | |
if (wup) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"ecc_error": "", "short_id": "0004a33538ff", "ecc_id": "00:04:a3:35:38:ff", "devices": [{"dev_id": "804436"}, {"dev_id": "804431"}, {"dev_id": | |
1}, {"dev_id": 2}, {"dev_id": 3}, {"dev_id": 4}, {"dev_id": 1}, {"dev_id": 2}, {"dev_id": 3}, {"dev_id": 4}], "fgroups": [{"fg_id": | |
"00:04:a3:35:38:ff_1", "groups": [{"g_id": "00:04:a3:35:38:ff_1_1", "device_list": [{"dev_id": "804436"}], "g_num": 1}, {"g_id": | |
"00:04:a3:35:38:ff_1_2", "device_list": [{"dev_id": "804431"}], "g_num": 2}, {"g_id": "00:04:a3:35:38:ff_1_3", "device_list": [{"dev_id": | |
"804436"}], "g_num": 3}, {"g_id": "00:04:a3:35:38:ff_1_4", "device_list": [], "g_num": 4}, {"g_id": "00:04:a3:35:38:ff_1_5", "device_list": [], | |
"g_num": 5}, {"g_id": "00:04:a3:35:38:ff_1_6", "device_list": [{"dev_id": "804436"}], "g_num": 6}, {"g_id": "00:04:a3:35:38:ff_1_7", "device_list": | |
[{"dev_id": "804436"}], "g_num": 7}, {"g_id": "00:04:a3:35:38:ff_1_8", "device_list": [{"dev_id": "804436"}], "g_num": 8}], "fg_num": 1}, {"fg_id": | |
"00:04:a3:35:38:ff_2", "groups": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM | |
(SELECT grd_aufnr , | |
grd_konto , | |
grd_name_1 , | |
grd_kd_grp , | |
grd_aufpos , | |
grd_datneu , | |
grd_identnr , | |
grd_ben , |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<result><columns><col>CN_CONFID</col><col>CN_LANGUAGE</col><col>CN_TEXT</col></columns><row><value>38270</value><value>DE</value><value>Sanitärmodul Seife
Projekt: VW Autostadt, Waschmodule¯unktion: Bei Reflektion am Sensor1 wird die Pumpe gestartet, danach öffnet das MV für eingestellte Zeit (s),
Magnetventil als Folgesteuerung von Sensor 1
Sensoren: 1 Optosensor SM3 an S1ªktoren: 1 Magnetventil an A1 ¡ Pumpe an A2®instellungen :
- Fließzeit Pumpe 0,7 sec. , Rücklauf 0,3 sec. 
- Fließzeit MV 1,5 sec. 
- Sicherheitsabschaltung MV 300 sec.
- Reflektionsalarm Pumpe 120 sec.
- Reinigungsabschaltung 3 min
- power-on entfällt
- thermische Desinfektion entfällt
- dynamische Hygienespülung entfällt
- Temperatursensor ohne
- Set "A" und "B" unterschiedlich઺sis ID38260
</value></row></result> | |
def send_request_to_host(self,host,request): | |