~divmod-dev/divmod.org/combinator-wants-user-site-packages-3002

« back to all changes in this revision

Viewing changes to Quotient/xquotient/test/historic/stub_inbox5to6.py

  • Committer: exarkun
  • Date: 2009-07-16 00:52:55 UTC
  • Revision ID: svn-v4:866e43f7-fbfc-0310-8f2a-ec88d1da2979:trunk:17773
Merge quotient-scheduler-2925

Author: exarkun
Reviewer: mithrandi
Fixes: #2925

Remove all code from Quotient which instantiates Schedulers or SubSchedulers and
upgrade away persistent attributes which refer to existing such items.  Replace
this with simple adaption of Stores to IScheduler where necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- test-case-name: xquotient.test.historic.test_inbox5to6 -*-
 
2
 
 
3
"""
 
4
Create a stub database for upgrade of L{xquotient.inbox.Inbox} from version 5
 
5
to version 6, which removes the C{scheduler} attribute.
 
6
"""
 
7
 
 
8
from axiom.test.historic.stubloader import saveStub
 
9
from axiom.dependency import installOn
 
10
 
 
11
from xquotient.inbox import Inbox
 
12
 
 
13
UI_COMPLEXITY = 2
 
14
SHOW_MORE_DETAIL = True
 
15
 
 
16
def createDatabase(store):
 
17
    installOn(
 
18
        Inbox(store=store, uiComplexity=UI_COMPLEXITY,
 
19
              showMoreDetail=SHOW_MORE_DETAIL),
 
20
        store)
 
21
 
 
22
if __name__ == '__main__':
 
23
    saveStub(createDatabase, 17729)