Commit e002d7855c9070cde649c87d50689cb9261569aa

Authored by Василь Свідрик
1 parent 821570955a
Exists in master

add get menu-items

Showing 10 changed files with 17 additions and 2 deletions Side-by-side Diff

__pycache__/main.cpython-310.pyc
No preview for this file type
__pycache__/routes.cpython-310.pyc
No preview for this file type
components/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/views.cpython-310.pyc
No preview for this file type
components/k2test/setup.py
  1 +from setuptools import setup, find_packages
  2 +
  3 +setup(
  4 + name='k2test',
  5 + version='1.0.0',
  6 + description='Description of my project',
  7 + author='Your Name',
  8 + author_email='yourname@example.com',
  9 + keywords="k2test, k2",
  10 + python_requires=">=3.7, <=3.11.2",
  11 + packages=['k2test'],
  12 + package_data={ # Optional
  13 + },
  14 + install_requires=[""],
  15 +)
No preview for this file type
k2/__pycache__/k2cfg.cpython-310.pyc
No preview for this file type
... ... @@ -54,7 +54,7 @@
54 54 with open('languages/babel_translation_directories.yml', 'w') as f:
55 55 yaml.dump(data, f)
56 56 @classmethod
57   - def search_menu_elenents(cls):
  57 + def get_menu_elenents(cls):
58 58 with open('components/menu.yml', 'r') as f:
59 59 yaml_data = yaml.load(f, Loader=yaml.FullLoader)
60 60 cls.menu = yaml_data
... ... @@ -20,7 +20,7 @@
20 20 babel.init_app(app, locale_selector=k2.get_locale)
21 21  
22 22 #menu
23   -k2.search_menu_elenents()
  23 +k2.get_menu_elenents()
24 24  
25 25 # flask routing
26 26 from routes import *