Spaces:
Running
Running
k0880k commited on
Commit ·
461f2ac
1
Parent(s): 693ff29
fix: complete PostMeet route registration
Browse files- editor/__init__.py +4 -3
editor/__init__.py
CHANGED
|
@@ -30,18 +30,19 @@ def build():
|
|
| 30 |
|
| 31 |
try:
|
| 32 |
import postmeet_routes
|
|
|
|
| 33 |
postmeet_routes.install(module.app, module)
|
| 34 |
-
except Exception as e:
|
| 35 |
print(f"[editor] PostMeet route seam unavailable: {type(e).__name__}: {e}",
|
| 36 |
flush=True)
|
| 37 |
|
| 38 |
try:
|
| 39 |
import bridge
|
| 40 |
bridge.install(module.app)
|
| 41 |
-
except Exception as e:
|
| 42 |
print(f"[editor] Joomla bridge unavailable: {type(e).__name__}: {e}",
|
| 43 |
flush=True)
|
| 44 |
return module.app
|
| 45 |
-
except Exception as e:
|
| 46 |
print(f"[editor] unavailable: {type(e).__name__}: {e}", flush=True)
|
| 47 |
return None
|
|
|
|
| 30 |
|
| 31 |
try:
|
| 32 |
import postmeet_routes
|
| 33 |
+
setattr(postmeet_routes, "editor", module)
|
| 34 |
postmeet_routes.install(module.app, module)
|
| 35 |
+
except Exception as e:
|
| 36 |
print(f"[editor] PostMeet route seam unavailable: {type(e).__name__}: {e}",
|
| 37 |
flush=True)
|
| 38 |
|
| 39 |
try:
|
| 40 |
import bridge
|
| 41 |
bridge.install(module.app)
|
| 42 |
+
except Exception as e:
|
| 43 |
print(f"[editor] Joomla bridge unavailable: {type(e).__name__}: {e}",
|
| 44 |
flush=True)
|
| 45 |
return module.app
|
| 46 |
+
except Exception as e:
|
| 47 |
print(f"[editor] unavailable: {type(e).__name__}: {e}", flush=True)
|
| 48 |
return None
|