Opened 14 years ago

Last modified 13 years ago

#46 new enhancement

Coherent purpose for asadb/util/

Reported by: adehnert Owned by:
Priority: normal Milestone: Sometime
Component: Infrastructure Version:
Keywords: Cc:
Size: medium

Description

At the moment, asadb/util/ seems to be used for two things:

  • random utility libraries for the DB
  • executable scripts for the DB

These two roles should be moved to different locations. util/ could continue to fulfill one of these, or they could both be moved.

Change History (6)

comment:1 Changed 14 years ago by adehnert

My current thinking is to make util/ be Django library stuff, and bin/ (which would be new) and the individual app directories be random executables.

The split would be:

util/db_form_utils.py -> stay
util/dump_group_perms.py -> groups/ (justification: groups/migrations/0016_create_auth_groups is based on it)
util/emailbackend.py -> stay
util/emails.py -> stay
util/export_website_groups.py -> groups/
util/import_db.py -> groups/
util/__init__.py -> stay
util/mailman.py -> stay
util/migrations.py -> stay
util/misc.py -> stay
util/previews.py -> stay? forms?
util/sync_moira_authz.py -> bin/, or possibly upstream it in snippets and move it to mit/...
util/update_old_previews.py -> forms

(And *.sh and static-data would move to bin/ as well. Though maybe not if dump_group_perms.py is moving to groups/, which suggests maybe I shouldn't do that move...)

Though, hmm, making bin/ empty and moving executables in util/ to the app directories doesn't require much of a stretch... That's awfully tempting...

comment:2 Changed 14 years ago by adehnert

  • Milestone changed from Initial Release to Near Release

comment:3 Changed 14 years ago by adehnert

  • Size set to medium

comment:4 Changed 14 years ago by adehnert

  • Component changed from Default to Core

comment:5 Changed 13 years ago by adehnert

  • Component changed from Core to Infrastructure

comment:6 Changed 13 years ago by adehnert

  • Milestone changed from Near Release to Sometime
Note: See TracTickets for help on using tickets.