ka-lite icon indicating copy to clipboard operation
ka-lite copied to clipboard

Clean interaction between facility and control_panel apps

Open bcipolli opened this issue 10 years ago • 4 comments

Currently I'm a bit unclear on the interactions. In general, I hope we could have the follow app and inter-app structures:

  • Apps can stand alone. In this case, Facility app should be able to create/edit users, create/edit groups, create/edit facilities.
  • Apps that want to modify other apps behavior import the other app, then override behaviors:
    • Import view functions and override things like redirects.
    • Override templates by adding a template with the same name to the overriding app's templates directory, then strategically setting the order of INSTALLED_APPS so the override is selected.

For the facility / control_panel interaction, I am most looking at the use of add/edit forms across the two apps.

bcipolli avatar Mar 31 '14 18:03 bcipolli

@rtibbles your feedback on this one would be appreciated. I'm happy to do refactoring, but don't want to refactor things in ways that wind up being confusing.

bcipolli avatar Apr 01 '14 13:04 bcipolli

I think it makes sense to have view code in facility that allows for the adding/editing of all facility models. Any additional functionality can then be added after being imported into control_panel for enhancement.

rtibbles avatar Apr 01 '14 14:04 rtibbles

Refactoring = @bcipolli

bcipolli avatar Apr 17 '14 14:04 bcipolli

0.13.

aronasorman avatar May 27 '14 21:05 aronasorman