Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
99 additions
and
13 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
ProdMaster/hu/minux/prodmaster/dba/AbstractEntityManager.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
''' | ||
Created on 2014.03.01. | ||
@author: fekete | ||
''' | ||
|
||
from hu.minux.prodmaster.tools.World import World | ||
|
||
|
||
class AbstractEntityManager(object): | ||
|
||
_db = None | ||
_cursor = None | ||
|
||
|
||
def __init__(self): | ||
World.LOG().info("AbstractEntityManager constructor called") | ||
self._db = World.DBA() | ||
self._cursor = self._db.cursor | ||
|
||
|
||
def execute(self, operation, params=None, multi=False): | ||
self._db.execute(operation, params, multi) | ||
|
||
|
||
def create(self): | ||
raise NotImplemented | ||
|
||
def read(self, id): | ||
raise NotImplemented | ||
|
||
def update(self, dbobject): | ||
raise NotImplemented | ||
|
||
def delete(self, id): | ||
raise NotImplemented | ||
|
||
def readAll(self): | ||
raise NotImplemented | ||
|
||
def readAllNameIdPairs(self): | ||
raise NotImplemented | ||
|
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
''' | ||
Created on 2014.03.05. | ||
@author: fekete | ||
''' | ||
|
||
from tkinter import Frame | ||
from builtins import NotImplemented | ||
|
||
from hu.minux.prodmaster.tools.World import World | ||
|
||
class AbstractFrame(Frame): | ||
|
||
_instance = None | ||
_myType = 'Not Implemented' | ||
|
||
|
||
def __init__(self, master): | ||
Frame.__init__(self, master) | ||
World().LOG().info("Frame called: " + self._myType) | ||
self._createWidgets() | ||
|
||
|
||
def _createWidgets(self): | ||
raise NotImplemented | ||
|
||
|
||
@staticmethod | ||
def getInstance(master): | ||
raise NotImplemented | ||
|
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
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