Ejemplo n.º 1
0
 def wrapper(type):
     print("Route %s registered by %s" % (name, type))
     Controller.registerController(name, type)
     pass
Ejemplo n.º 2
0
from controllers.confirm import Confirm
from controllers.costs import Costs
from controllers.dashboard import Dashboard
from controllers.reportController import ReportController
from controllers.sales import Sales
from controllers.testDev import TestDev
from common.report import Report
from controllers.reports.cost import CostReport
from controllers.reports.installment import InstallmentReport
from controllers.reports.order import OrderReport
from controllers.reports.sale import SaleReport
from controllers.reports.saleList import SaleListReport
from controllers.reports.storage import StorageReport


Controller.registerController('auth',Authentication)
Controller.registerController('info',BasicInfo)
Controller.registerController('confirm',Confirm)
Controller.registerController('sale',Sales)
Controller.registerController('test',TestDev)
Controller.registerController('costs',Costs)
Controller.registerController('dashboard',Dashboard)

Controller.registerController('viewer',Viewer)
Controller.registerController('report',Report)
Controller.registerController('template',ReportController)



Report.registerReport('cost',CostReport)
Report.registerReport('instullment',InstallmentReport)