mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-18 03:32:08 +02:00
741 B
741 B
HTTP Layer
Request handling and routing.
Controllers
- Defined with
@http.routein Python files. - Support auth:
public,user,none. - Return types: HTML (QWeb), JSON, files.
Request Lifecycle
sequenceDiagram
participant C as Client
participant W as WSGI
participant R as Router
participant CTR as Controller
participant T as QWeb
C->>W: HTTP Request
W->>R: match route
R->>CTR: call method
CTR->>T: render template (optional)
T-->>C: HTML/JSON/Stream
Sessions & Security
- CSRF tokens for forms.
request.envandrequest.uidfor user context.- Access rules enforced by ORM.
Base Addon
- Provides base controllers for menus, actions, attachments APIs.