]> git.aero2k.de Git - sirius.git/commitdiff
reorganising to show what the core is
authorMatt Webb <matt@interconnected.org>
Wed, 24 Sep 2014 17:20:44 +0000 (18:20 +0100)
committerMatt Webb <matt@interconnected.org>
Wed, 24 Sep 2014 17:20:44 +0000 (18:20 +0100)
app/__init__.py
app/core/__init__.py [new file with mode: 0644]
app/core/claiming.py [moved from app/claiming.py with 99% similarity]
app/core/commands.py [moved from app/commands.py with 96% similarity]
app/core/crc16.py [moved from app/crc16.py with 100% similarity]
app/core/events.py [moved from app/events.py with 100% similarity]
app/core/payload.py [moved from app/payload.py with 100% similarity]
app/models/__init__.py [new file with mode: 0644]
app/models/core.py [moved from app/models.py with 99% similarity]

index 05ab4fb139eec498e9a512e66693478e2b7ef99b..e074577d8c9378bac3e49bd708536f8334eb09e9 100755 (executable)
@@ -12,8 +12,8 @@ bootstrap = Bootstrap()
 db = SQLAlchemy()
 sockets = Sockets()
 
-from . import commands
-from events import process_event
+from core import commands
+from core.events import process_event
 
 
 # @TODO
diff --git a/app/core/__init__.py b/app/core/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 99%
rename from app/claiming.py
rename to app/core/claiming.py
index a2a18a19a17f3d4cffdc8e4936f1f6901ee4c590..7c0680e2097714f4d55c329646bbc6bcfaccbebf 100755 (executable)
@@ -1,4 +1,4 @@
-from crc16 import crc16
+from .crc16 import crc16
 from Crypto.Cipher import AES, XOR
 
 import struct
similarity index 96%
rename from app/commands.py
rename to app/core/commands.py
index 8e14ded557faceaaa6a4199bdbfa4a51b6de4f60..f7403cedec359ee263b1d4d0e47126d1d797d0f1 100644 (file)
@@ -1,6 +1,6 @@
-from .models import BridgeCommand
-from .models import DeviceCommand
-from .image_encoding import rle_image
+from ..models.core import BridgeCommand
+from ..models.core import DeviceCommand
+from ..image_encoding import rle_image
 
 from .claiming import process_claim_code
 
similarity index 100%
rename from app/crc16.py
rename to app/core/crc16.py
similarity index 100%
rename from app/events.py
rename to app/core/events.py
similarity index 100%
rename from app/payload.py
rename to app/core/payload.py
diff --git a/app/models/__init__.py b/app/models/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 99%
rename from app/models.py
rename to app/models/core.py
index df3ed849b8652d0e0bbd5f3d38c035a5d58ec9fa..a11a7fbc0624985d644af65cb9537a083d7d0394 100755 (executable)
@@ -1,4 +1,4 @@
-from . import db
+from .. import db
 
 import json