From 324a11f69fb10819ba7cf6b722ef817070ed2785 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Sat, 1 Nov 2014 19:47:08 +0100 Subject: [PATCH] todo notes --- aeromancer/db/migrations.py | 2 ++ aeromancer/project.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/aeromancer/db/migrations.py b/aeromancer/db/migrations.py index eb4f755..870b2d6 100644 --- a/aeromancer/db/migrations.py +++ b/aeromancer/db/migrations.py @@ -17,6 +17,8 @@ def run_migrations(): url = connect.get_url() config.set_main_option("sqlalchemy.url", url) command.upgrade(config, 'head') + # NOTE(dhellmann): Load migration settings from the plugins for + # processing special types of files, and run them. if __name__ == '__main__': diff --git a/aeromancer/project.py b/aeromancer/project.py index 4957131..19f7ed0 100644 --- a/aeromancer/project.py +++ b/aeromancer/project.py @@ -103,6 +103,10 @@ def _update_project_files(session, proj_obj): for num, content in enumerate(lines, 1): session.add(Line(file=new_file, number=num, content=content)) + # NOTE(dhellmann): Use stevedore to invoke plugins based on + # fnmatch of filename being read (use the filename, not the + # fullname. + def discover(repo_root): """Discover project-like directories under the repository root"""