~ubuntu-branches/ubuntu/oneiric/python-boto/oneiric

« back to all changes in this revision

Viewing changes to boto/sdb/db/manager/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Moser
  • Date: 2010-01-05 15:12:37 UTC
  • mfrom: (4.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100105151237-skgxjkyogir1vl0k
Tags: 1.9b-1ubuntu1
* merge Loic's changes made in 1.8d-1ubuntu2
* Rename Vcs-* to XS-Debian-Vcs-*.
* Run testsuite during build but ignore failures since it currently doesn't
  pass.
* Add ${misc:Depends}.
* Add XB-Python-Version: ${python:Versions}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
def get_manager(cls):
24
24
    """
25
25
    Returns the appropriate Manager class for a given Model class.  It does this by
26
 
    looking in the boto config for a section like this:
 
26
    looking in the boto config for a section like this::
 
27
    
27
28
        [DB]
28
29
        db_type = SimpleDB
29
30
        db_user = <aws access key id>
35
36
        db_passwd = <another aws secret access key>
36
37
        db_name = basic_domain
37
38
        db_port = 1111
 
39
    
38
40
    The values in the DB section are "generic values" that will be used if nothing more
39
41
    specific is found.  You can also create a section for a specific Model class that
40
42
    gives the db info for that class.  In the example above, TestBasic is a Model subclass.