Single entry point for site-wide initialization needed

Bug #496705 reported by Brad Crittenden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Gary Poster

Bug Description

There are a few places site-wide initialization can be done, such as in lib/site.py or in the [scripts] portion of buildout.cfg. The former has been demonstrated to cause some undesirable (and as yet unexplained) behavior while the latter seems to work very well, though is non-standard and not very discoverable.

It would be best to have a single, well-known, discoverable initialization entry point. This entry point will likely be called by one of the other methods but will be a cleaner place for developers to put initialization code.

Related branches

Gary Poster (gary)
Changed in launchpad-foundations:
importance: Undecided → High
assignee: nobody → Gary Poster (gary)
status: New → In Progress
Brad Crittenden (bac)
description: updated
Revision history for this message
Brad Crittenden (bac) wrote :

The plot thickens: initialization done via lib/site.py works for the test environment but not the app servers. Initialization done via buildout.cfg works for app servers but not the test environment. The need for a single initialization entry point that works in both environments is ever more important.

Revision history for this message
Gary Poster (gary) wrote :

The linked branch intends to provide the single entry point: lp_sitecustomize.py. (Moreover, in that branch the initialization in buildout.cfg is now honored by the test environment.)

I'll land the branch after we make a release branch for the 10.02.

Changed in launchpad-foundations:
milestone: none → 10.03
Gary Poster (gary)
Changed in launchpad-foundations:
milestone: 10.03 → 10.04
Gary Poster (gary)
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.