20120405

lino.apps.pcsw.models was too big, so I split two new modules out of it:

  • lino.modlib.cv.models : LanguageKnowlege and PersonProperty

  • lino.modlib.courses.models : CourseEnding, Course, CourseOffer, CourseProvider

Bemerkung: cv steht in modlib, denn man könnte es theoretisch auch für andere Anwendungen als pcsw verwenden. Für courses gilt das leider nicht. CourseProvider und dessen Tabellen erben von Company bzw. Companies. Und die sind ja in pcsw verändert. Und leider sehe ich momentan noch keine Methode, wie ich all diese Veränderungen einkapseln kann.

Optimized the migration process: a lino.Lino.migration_module attribute and a separate module for migrations is no longer required. Application developers can write their migration methods directly as methods of their Lino site class:

def migrate_from_1_0_0(self,globals_dict):
    ...

dpy dumps now no longer do:

from <settings.LINO.migration_module> import install
install(globals())

they just do:

settings.LINO.install_migrations(globals())