-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.py
More file actions
44 lines (35 loc) · 1.1 KB
/
App.py
File metadata and controls
44 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: UTF-8 -*-
# Interstitial Error Detector
# Version 0.2, 2013-08-28
# Copyright (c) 2013 AudioVisual Preservation Solutions
# All rights reserved.
# Released under the Apache license, v. 2.0
# Created on May 14, 2014
# @author: Furqan Wasi <furqan@avpreserve.com>
from Config import Configuration, Setup, Laguage
from Core import SharedApp
class App(object):
"""
Application Interstitial Class
"""
_instance = None
@staticmethod
def getInstance():
"""
Get Instance of the Application
@return: Interstitial Instance
"""
if not isinstance(App._instance, App):
App._instance = object.__new__(App)
SharedApp.SharedApp.App = App._instance
App._instance.setUp()
return App._instance
def setUp(self):
"""
Set Up Application Static Contents
@return: None
"""
self.Configuration = Configuration.Configuration()
self.Setup = Setup.Setup()
self.messages = Laguage.message
self.label = Laguage.label