Closed Bug 1878767 Opened 1 year ago Closed 10 months ago

Translate legacy imports

Categories

(Conduit :: Lando, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zeid, Assigned: zeid)

References

Details

Attachments

(1 file)

The following imports, among others, should be modified to accommodate the new project structure:

  • from landoapi import ... should be changed to from lando.api.legacy import ....
  • from landoui import ... should be changed to from lando.ui.legacy import ....
  • from flask import current_app should be changed to from lando import settings (in most cases, when current_app.config is needed).
  • from flask import g should be reimplemented to not use g.
  • from connexion.lifecycle import ConnexionResponse should be changed to from django.http import HttpResponse and reimplemented accordingly.
  • from connexion import ProblemException should be reimplemented to accommodate Django responses/exceptions.
Assignee: nobody → zeid
Depends on: 1887013
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: