mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
rename globals to globalVars
to prevent to redifine an builtin function
This commit is contained in:
parent
e8e870849d
commit
f8fcda94b6
30 changed files with 115 additions and 115 deletions
|
|
@ -17,7 +17,7 @@ import httplib #for the HTTP request
|
|||
import urllib #for the HTTP request with parameters
|
||||
import base64 #for the HTTP request with User/Password
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import configHandler
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import hmac, hashlib
|
|||
import json, requests
|
||||
import string
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import timeHandler
|
||||
from includes.helper import configHandler
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import logging # Global logger
|
|||
import mysql
|
||||
import mysql.connector
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import configHandler
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import time
|
|||
import logging # Global logger
|
||||
import httplib #for the HTTP request
|
||||
import urllib
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import timeHandler
|
||||
from includes.helper import configHandler
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ test2 = 123456
|
|||
#### 3.2 Read data from config.ini
|
||||
To read yout configuration data you must import the `globals.py` where the global config-object is located:
|
||||
```python
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
```
|
||||
|
||||
Now you can get your configuration data with:
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ config.ini
|
|||
# Imports
|
||||
#
|
||||
import logging # Global logger
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
# Helper function, uncomment to use
|
||||
#from includes.helper import timeHandler
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import time
|
|||
import logging # Global logger
|
||||
import httplib #for the HTTP request
|
||||
import urllib
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import timeHandler
|
||||
from includes.helper import configHandler
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Plugin to send FMS-, ZVEI- and POCSAG-messages via Telegram
|
|||
#
|
||||
import logging # Global logger
|
||||
import httplib, urllib, telegram, googlemaps
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
# Helper function, uncomment to use
|
||||
from includes.helper import configHandler
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ from email.mime.text import MIMEText # Import the email modules we'll need
|
|||
from email.utils import formatdate # need for confirm to RFC2822 standard
|
||||
from email.utils import make_msgid # need for confirm to RFC2822 standard
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import timeHandler # helper function
|
||||
from includes.helper import configHandler # helper function
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ firEmergency configuration:
|
|||
import logging # Global logger
|
||||
import socket
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import configHandler
|
||||
from includes.helper import stringConverter
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import logging # Global logger
|
|||
import httplib #for the HTTP request
|
||||
from urlparse import urlparse #for split the URL into url and path
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import wildcardHandler
|
||||
from includes.helper import configHandler
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import logging # Global logger
|
|||
import socket # for connection
|
||||
import json # for data-transfer
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import configHandler
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import json # for data-transfer
|
|||
import csv # for loading the APIKeys
|
||||
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
from includes.helper import configHandler
|
||||
from includes.helper import timeHandler
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ For more information take a look into the other plugins
|
|||
# Imports
|
||||
#
|
||||
import logging # Global logger
|
||||
from includes import globals # Global variables
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
# Helper function, uncomment to use
|
||||
#from includes.helper import timeHandler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue