From d82972501583a39e99954c665991214427b338ac Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 9 Feb 2024 15:52:43 +0100 Subject: [PATCH] [MIG] ps_project (preliminary commit) --- ps_project/controllers/__init__.py | 3 --- ps_project/controllers/controllers.py | 23 ----------------------- 2 files changed, 26 deletions(-) delete mode 100755 ps_project/controllers/__init__.py delete mode 100755 ps_project/controllers/controllers.py diff --git a/ps_project/controllers/__init__.py b/ps_project/controllers/__init__.py deleted file mode 100755 index 457bae27..00000000 --- a/ps_project/controllers/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import controllers \ No newline at end of file diff --git a/ps_project/controllers/controllers.py b/ps_project/controllers/controllers.py deleted file mode 100755 index bb0fb867..00000000 --- a/ps_project/controllers/controllers.py +++ /dev/null @@ -1,23 +0,0 @@ -{%- set mod = name|snake -%} -{%- set model = "%s.%s"|format(mod, mod) -%} -{%- set root = "/%s/%s"|format(mod, mod) -%} -# -*- coding: utf-8 -*- -from odoo import http - -# class {{ mod|pascal }}(http.Controller): -# @http.route('{{ root }}/', auth='public') -# def index(self, **kw): -# return "Hello, world" - -# @http.route('{{ root }}/objects/', auth='public') -# def list(self, **kw): -# return http.request.render('{{ mod }}.listing', { -# 'root': '{{ root }}', -# 'objects': http.request.env['{{ model }}'].search([]), -# }) - -# @http.route('{{ root }}/objects//', auth='public') -# def object(self, obj, **kw): -# return http.request.render('{{ mod }}.object', { -# 'object': obj -# }) \ No newline at end of file