LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
lsst.daf.butlerUtils.registries.Registry Class Reference
Inheritance diagram for lsst.daf.butlerUtils.registries.Registry:
lsst.daf.butlerUtils.registries.SqliteRegistry

Public Member Functions

def __init__
 

Static Public Member Functions

def create
 

Detailed Description

The registry base class.

Definition at line 45 of file registries.py.

Constructor & Destructor Documentation

def lsst.daf.butlerUtils.registries.Registry.__init__ (   self)

Definition at line 48 of file registries.py.

48 
49  def __init__(self):
50  pass

Member Function Documentation

def lsst.daf.butlerUtils.registries.Registry.create (   location)
static
Create a registry object of an appropriate type.
@param location (string) Path or URL for registry, or None if
                 unavailable

Definition at line 52 of file registries.py.

52 
53  def create(location):
54  """Create a registry object of an appropriate type.
55  @param location (string) Path or URL for registry, or None if
56  unavailable"""
57 
58  # if re.match(r'.*\.registry', location):
59  # return FileRegistry(location)
60  # if re.match(r'.*\.paf', location):
61  # return CalibRegistry(location)
62  if haveSqlite3 and re.match(r'.*\.sqlite3', location):
63  registry = SqliteRegistry(location)
64  if registry.conn is None:
65  return None
66  return registry
67  # if re.match(r'mysql:', location):
68  # return DbRegistry(location)
69  # return FsRegistry(location)
70  raise RuntimeError, \
71  "Unable to create registry using location: " + location

The documentation for this class was generated from the following file: