Django

Code

Ticket #6066 (assigned)

Opened 9 months ago

Last modified 6 months ago

Post-syncdb signal should include a list of done/to-be-done apps.

Reported by: jacob Assigned to: floguy (accepted)
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 1 Patch needs improvement: 0

Description

See #2453 -- sometimes you need to run code/SQL at a particular point during initialization. I'd think two params: done and {{todo}}}, each of which contains a list of apps that have/have not yet been processed.

(Of course, other implementation ideas are welcome; that's just the first that comes to my mind.)

Attachments

6066.diff (0.9 kB) - added by floguy on 12/01/07 18:58:55.
Added done and todo as kwargs to the post_syncdb signal
6066-2.diff (0.9 kB) - added by floguy on 03/17/08 09:59:33.
Updated patch to newest qs-rf revision 7260, and (potentially) fixed speed a bit. All tests pass.

Change History

12/01/07 18:58:37 changed by floguy

  • needs_tests set to 1.

Added done and todo as kwargs to the post_syncdb signal.

todo is a set containing the apps which need to be signalled, including the current app.

done is a set containing the apps which have already been signalled, excluding the current app.

12/01/07 18:58:55 changed by floguy

  • attachment 6066.diff added.

Added done and todo as kwargs to the post_syncdb signal

12/01/07 19:04:41 changed by floguy

  • owner changed from nobody to floguy.
  • status changed from new to assigned.

12/01/07 20:35:10 changed by floguy

  • has_patch set to 1.

03/17/08 09:59:33 changed by floguy

  • attachment 6066-2.diff added.

Updated patch to newest qs-rf revision 7260, and (potentially) fixed speed a bit. All tests pass.

03/17/08 10:02:49 changed by mtredinnick

This doesn't have anything to do with qs-rf does it? I can't see any dependency there. So it should just be applied directly to trunk (although I suspect the existing patch will apply to trunk as well, since I've only made minimal changes in that file on the branch).

03/17/08 10:15:24 changed by floguy

Yeah, I just applied it to qs-rf since there were > 0 changes in sql.py in that branch. I just checked and it does in fact apply cleanly to trunk.


Add/Change #6066 (Post-syncdb signal should include a list of done/to-be-done apps.)




Change Properties
Action