Package Pyblio :: Module Registry
[show private | hide private]
[frames | no frames]

Module Pyblio.Registry

Support for RIP files.

RIP files are files containing registering information for schemas, and extension classes customized for these schemas (like importers, exporters, citation formatters,...)

First, you need to parse a few RIP repositories with parse, then you can browse the results with schemas, getSchema and get.
Classes
RIP A RIP object represents a dynamic class that can be loaded on demand, and that has been registered via the Registry system.
_RIPCategory  

Function Summary
  get(schema, category)
Return the extensions in a given category, for a given schema.
  getSchema(schema)
Return the Pyblio.Schema.Schema corresponding to an identifier returned by schemas.
  parse(directory)
Parse the specified directory, and load all the .rip files it contains.
  parse_default()
  reset()
Forget all the schemas and extensions previously parsed with parse.
  schemas()
Return the list of known schemas.

Variable Summary
dict RIP_dirs = {'system-rips': '/home/fred/devel/infoscience...
str _base = '/home/fred/devel/infoscience/src/dependencies/p...
dict _schema = {}
str _user = '/home/fred/.pyblio'

Function Details

get(schema, category)

Return the extensions in a given category, for a given schema.

getSchema(schema)

Return the Pyblio.Schema.Schema corresponding to an identifier returned by schemas.

parse(directory)

Parse the specified directory, and load all the .rip files it contains.

reset()

Forget all the schemas and extensions previously parsed with parse.

schemas()

Return the list of known schemas.

Variable Details

RIP_dirs

Type:
dict
Value:
{'system-rips': '/home/fred/devel/infoscience/src/dependencies/pybliog\
rapher/pyblio/Pyblio/RIP',
 'user-rips': '/home/fred/.pyblio'}                                    

_base

Type:
str
Value:
'/home/fred/devel/infoscience/src/dependencies/pybliographer/pyblio/Py\
blio'                                                                  

_schema

Type:
dict
Value:
{}                                                                     

_user

Type:
str
Value:
'/home/fred/.pyblio'                                                   

Generated by Epydoc 2.1 on Wed Feb 15 23:19:37 2006 http://epydoc.sf.net