EntityScript

Draft 1.01:
Index







Sections: Status -> Approved

1.) EntityScript™ Overview - Overview of the project

2.) .entity/.ds Lookups - Overview of basic .entity and .ds file relationships. An overview of each file.

3.) Special File Types - Overview of special types of methods, files, and types in C.ORE™

4.) Log File Types - Overview of Logging within C.ORE™

5.) Using OpenPackager™ - Overview of the OpenPackager™ project and details regarding using the sub-system for organizing the base system and addons.

6.) Locations - Overview of various parts of the IPDVC™ file system

7.) System Audits - Overview of various audit mechanisms present in C.ORE™ and how to use them.

8.) C.ORE™ Scripts - Overview of scripts that run in C.ORE™, the purpose they have, overview of some scripting philosophy, and some usage examples.

9.) Startup - Step-by-step process of startup routines and how to extend them

10.) C.ORE™: AirEP™ file system (Access Identity Ring Entertainment Platform: AirEP™ - Understand more about the Access, Identity, Ring

11.) Keys: Each of the built-in keys that can be used to retrieve meta-information in C.ORE™

12.) How-to: Additional Notes

13.) Moderation: Basic moderation principles

14.) Social Pledge: Basic social-pledge for your interface and who you interact with

15.) Disclaimers: Basic recommendations for your interface and dealing with various types of commerce

16.) Additional Resources: Dig deeper into the technical stack, program methods, variables, and other happenings within CORE.HOST™

ingest_commands




"""
Copyright (C) 2020 New Entity Operations Inc.

ALL RIGHTS RESERVED

ingest_commands translates 'DeductionObject' class code into object code

In this POOL-> _DEDUCTION_OBJECT

"""
## Imports: Custom
from core_middlelayer import (
 DIRDATA,
 OUTPUT_ENTITY,
 OVD
)

## Import: Resource Pool
from .ResourcePool import POOL_DEDUCTION_OBJECT

## Establish Values
R_VALUE = \
POOL_DEDUCTION_OBJECT.R_VALUE
RETURN_START_FUNC = \
POOL_DEDUCTION_OBJECT.RETURN_START_FUNC
RETURN_VALUE_SLED = \
POOL_DEDUCTION_OBJECT.RETURN_VALUE_SLED
VALUE_a = \
POOL_DEDUCTION_OBJECT.VALUE_a
VALUE_b = \
POOL_DEDUCTION_OBJECT.VALUE_b
VALUE_c = \
POOL_DEDUCTION_OBJECT.VALUE_c
VALUE_d = \
POOL_DEDUCTION_OBJECT.VALUE_d
VALUE_e = \
POOL_DEDUCTION_OBJECT.VALUE_e
VALUE_f = \
POOL_DEDUCTION_OBJECT.VALUE_f
VALUE_g = \
POOL_DEDUCTION_OBJECT.VALUE_g

## Vectorize output data
class Vectorize:
    # retrieval by key
    def data(by_key):
        with open(DIRDATA+OVD, 'r') as file:
            line_by_line = file.readlines()
            return(line_by_line[by_key+8])
        file.close()

## Quick test, uncomment to use
# Vectorize: 
# print(vectorize_data(1))

# Specific Field: Sanity Test
# print(vectorize_data(2[0]))

class DeductionObject:
    def __init__(self, id, code, card, type, amount, date, to):
     self.id = id
     self.code = code
     self.card = card
     self.type = type
     self.amount = amount
     self.date = date
     self.to = to
    def __str__(self):
     return RETURN_START_FUNC+RETURN_VALUE_SLED.format(self=self,
      a=VALUE_a,
      b=VALUE_b,
      c=VALUE_c,
      d=VALUE_d,
      e=VALUE_e,
      f=VALUE_f,
      g=VALUE_g
     )

    def __repr__(self):
     return RETURN_START_FUNC+RETURN_VALUE_SLED.format(self=self,
      a=VALUE_a,
      b=VALUE_b,
      c=VALUE_c,
      d=VALUE_d,
      e=VALUE_e,
      f=VALUE_f,
      g=VALUE_g
    )




Return HOME