This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
c47f090
commit d121d04
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
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,24 @@ | ||
from InitialLoading import Cache | ||
def get_other_instance(free_other_s_id): | ||
'''Get the other object from the cache instead of creating directly''' | ||
return Cache.GetCache(free_other_s_id).Pulling() | ||
def Pulling(parameters): | ||
other_instance = get_other_instance(parameters['free_other_s_id']) | ||
return other_instance.Pulling() | ||
|
||
def SubmitToDatabase(parameters): | ||
other_instance = get_other_instance(parameters['free_other_s_id']) | ||
return other_instance.SubmitToDatabase() | ||
|
||
def AdministratorVerification(parameters): | ||
other_instance = get_other_instance(parameters['free_other_s_id']) | ||
return other_instance.AdministratorVerification() | ||
|
||
def get_data(parameters): | ||
other_instance = get_other_instance(parameters['free_other_s_id']) | ||
return other_instance.data | ||
|
||
def change(parameters): | ||
other_instance = get_other_instance(parameters['free_other_s_id']) | ||
other_instance.data = parameters['data'] | ||
return other_instance.data |
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