mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Change license from LGPLv3 to LGPLv2 after approval of all contributors
https://github.com/mindstorm38 approved license change https://github.com/nbuchwitz approved license change
This commit is contained in:
@@ -21,9 +21,9 @@ __all__ = [
|
||||
]
|
||||
__author__ = "Sven Sager <akira@revpimodio.org>"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
__package__ = "revpimodio2"
|
||||
__version__ = "2.6.0rc3"
|
||||
__version__ = "2.6.0rc4"
|
||||
|
||||
from ._internal import *
|
||||
from .helper import Cycletools, EventCallback
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""Internal functions and values for this package."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "GPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
# Global package values
|
||||
OFF = 0
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
"""Bildet die App Sektion von piCtory ab."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
from time import strptime
|
||||
from time import gmtime, strptime
|
||||
|
||||
|
||||
class App(object):
|
||||
class App:
|
||||
"""Bildet die App Sektion der config.rsc ab."""
|
||||
|
||||
__slots__ = "name", "version", "language", "layout", "savets"
|
||||
@@ -18,24 +18,23 @@ class App(object):
|
||||
|
||||
:param app: piCtory Appinformationen
|
||||
"""
|
||||
self.name = app["name"]
|
||||
self.name = app.get("name", "")
|
||||
"""Name of creating app"""
|
||||
|
||||
self.version = app["version"]
|
||||
self.version = app.get("version", "")
|
||||
"""Version of creating app"""
|
||||
|
||||
self.language = app["language"]
|
||||
self.language = app.get("language", "")
|
||||
"""Language of creating app"""
|
||||
|
||||
# Speicherungszeitpunkt laden, wenn vorhanden
|
||||
self.savets = app.get("saveTS", None)
|
||||
"""Timestamp of configuraiton"""
|
||||
|
||||
if self.savets is not None:
|
||||
try:
|
||||
self.savets = strptime(self.savets, "%Y%m%d%H%M%S")
|
||||
except ValueError:
|
||||
self.savets = None
|
||||
except Exception:
|
||||
self.savets = gmtime(0)
|
||||
|
||||
# TODO: Layout untersuchen und anders abbilden
|
||||
self.layout = app["layout"]
|
||||
self.layout = app.get("layout", {})
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""Modul fuer die Verwaltung der Devices."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
import warnings
|
||||
from threading import Event, Lock, Thread
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""Error classes of RevPiModIO."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
|
||||
class RevPiModIOError(Exception):
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""RevPiModIO Helperklassen und Tools."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
import queue
|
||||
import warnings
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""RevPiModIO Modul fuer die Verwaltung der IOs."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
import struct
|
||||
from re import match as rematch
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""RevPiModIO Hauptklasse fuer piControl0 Zugriff."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
import warnings
|
||||
from collections import namedtuple
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""RevPiModIO Hauptklasse fuer Netzwerkzugriff."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
import socket
|
||||
import warnings
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""Pictory aliases for IO values."""
|
||||
__author__ = "Théo Rozier"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
|
||||
# RAP files are located under "/var/www/pictory/resources/data/rap/".
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
"""Bildet die Summary-Sektion von piCtory ab."""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__license__ = "LGPLv2"
|
||||
|
||||
|
||||
class Summary(object):
|
||||
class Summary:
|
||||
"""Bildet die Summary-Sektion der config.rsc ab."""
|
||||
|
||||
__slots__ = "inptotal", "outtotal"
|
||||
@@ -16,5 +16,5 @@ class Summary(object):
|
||||
|
||||
:param summary: piCtory Summaryinformationen
|
||||
"""
|
||||
self.inptotal = summary["inpTotal"]
|
||||
self.outtotal = summary["outTotal"]
|
||||
self.inptotal = summary.get("inpTotal", -1)
|
||||
self.outtotal = summary.get("outTotal", -1)
|
||||
|
||||
Reference in New Issue
Block a user