core_view
"""
Copyright (C) 2020 New Entity Operations Inc.
ALL RIGHTS RESERVED
core_view allows you to view various objects in C.ORE
"""
## Imports: Custom
from core_middlelayer import (
COREES, DIRDATA, CONSTRUCTEDCOREES
)
from core_alerts import (
ALERT_LOGGING_INFO
)
## View types
def view_default():
"""
Read the CORE: Module 'core.es'
"""
with open(DIRDATA+COREES, 'rt') as filecorees:
data = filecorees.read()
print(data)
# LOGGER
view_default__LOGGER = "[view_default__LOGGER: "
view_default__helper = "view COREES]"
print(view_default__LOGGER+view_default__helper+\
ALERT_LOGGING_INFO(variable=view_default__LOGGER+\
view_default__helper)+"\n")
filecorees.close()
def view_constructed():
"""
Read the CORE: Module 'CONSTRUCTED_core.es'
"""
with open(DIRDATA+CONSTRUCTEDCOREES, 'rt') as serv:
data = serv.read()
print(data)
# LOGGER
view_constructed__LOGGER = "[view_constructed__LOGGER: "
view_constructed__helper = "view CONSTRUCTEDCOREES]"
print(view_constructed__LOGGER+view_constructed__helper+\
ALERT_LOGGING_INFO(variable=view_constructed__LOGGER+\
view_constructed__helper)+"\n")
serv.close()
## Runner: Run Action
def view():
"""
View your 'core.es'
"""
view_default()
def view_server():
"""
View your 'CONSTRUCTED_core.es' file
"""
view_constructed()
# Runner: Run on Import
view_default()
Return HOME