~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_grabberconfiguration2to3.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_grabberconfiguration2to3 -*-
 
2
 
 
3
"""
 
4
Stub database generator for version 2 of L{GrabberConfiguration}.
 
5
"""
 
6
 
 
7
from axiom.test.historic.stubloader import saveStub
 
8
from axiom.dependency import installOn
 
9
 
 
10
from xquotient.grabber import GrabberConfiguration
 
11
 
 
12
PAUSED = True
 
13
 
 
14
def createDatabase(store):
 
15
    installOn(
 
16
        GrabberConfiguration(store=store, paused=PAUSED),
 
17
        store)
 
18
 
 
19
 
 
20
if __name__ == '__main__':
 
21
    saveStub(createDatabase, 17729)