Exemple #1
0
    def config(cls):
        """Config

		Returns the configuration data associated with the record type

		Returns:
			dict
		"""

        # If we haven loaded the config yet
        if not cls._conf:
            cls._conf = Record_MySQL.Record.generateConfig(
                Tree.fromFile('definitions/company.json'))

        # Return the config
        return cls._conf
Exemple #2
0
"""

__author__ = "Chris Nasr"
__copyright__ = "OuroborosCoding"
__version__ = "1.0.0"
__maintainer__ = "Chris Nasr"
__email__ = "*****@*****.**"
__created__ = "2019-04-18"

# Pip imports
from FormatOC import Tree
from RestOC import Conf, Record_ReDB

# Match structure and config
_mdMatchConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/watl/match.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))

# MatchStats structure and config
_mdMatchStatsConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/watl/match_stats.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))

# Practice structure and config
_mdPracticeConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/watl/practice.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))

# PracticePattern structure and config
_mdPracticePatternConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/watl/practice_pattern.json'),
Exemple #3
0
__created__ = "2018-09-09"

# Python imports
from hashlib import sha1
import re

# Pip imports
from FormatOC import Tree
from RestOC import Conf, StrHelper, Record_ReDB

# Valid mime types
validMimes = ['image/jpeg', 'image/png']

# Favourites structure and config
_mdFavouritesConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/auth/favourites.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))

# Match Request structure and config
_mdMatchRequestConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/auth/match_request.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))

# Thrower structure and config
_mdThrowerConf = Record_ReDB.Record.generateConfig(
    Tree.fromFile('../json/definitions/auth/thrower.json'), 'rethinkdb',
    Conf.get(("rethinkdb", "axegains")))


# Favourites class
class Favourites(Record_ReDB.Record):
Exemple #4
0
"""

__author__		= "Chris Nasr"
__copyright__	= "OuroborosCoding"
__version__		= "1.0.0"
__maintainer__	= "Chris Nasr"
__email__		= "*****@*****.**"
__created__		= "2019-03-24"

# Pip imports
from FormatOC import Tree
from RestOC import Conf, Record_ReDB

# Match structure and config
_mdMatchConf = Record_ReDB.Record.generateConfig(
	Tree.fromFile('../json/definitions/natf/match.json'),
	'rethinkdb', Conf.get(("rethinkdb", "axegains"))
)

# MatchStats structure and config
_mdMatchStatsConf = Record_ReDB.Record.generateConfig(
	Tree.fromFile('../json/definitions/natf/match_stats.json'),
	'rethinkdb', Conf.get(("rethinkdb", "axegains"))
)

# Practice structure and config
_mdPracticeConf = Record_ReDB.Record.generateConfig(
	Tree.fromFile('../json/definitions/natf/practice.json'),
	'rethinkdb', Conf.get(("rethinkdb", "axegains"))
)