tested to work for most entities NEXT: add logs property to asset

This commit is contained in:
2024-11-01 16:52:40 +01:00
parent ae1156bd6c
commit 772acff4e8
7 changed files with 84 additions and 57 deletions

10
neofarm/orm/my_meta.py Normal file
View File

@@ -0,0 +1,10 @@
api_path_separator = '/'
api_type_separator = '--'
class MyMeta:
@classmethod
def get_type_and_path(cls, name):
return (f"{cls.type}{api_type_separator}{name}", f"{cls.type}{api_path_separator}{name}")
@classmethod
def set_api(cls, api):
cls.api = api