tested to work for most entities NEXT: add logs property to asset
This commit is contained in:
10
neofarm/orm/my_meta.py
Normal file
10
neofarm/orm/my_meta.py
Normal 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
|
||||
Reference in New Issue
Block a user