# Path: Pyblio/Config.py
# class ConfigItem:
# class Storage:
# class PrimaryType:
# class String (PrimaryType):
# class Boolean (PrimaryType):
# class Integer (PrimaryType):
# class Element:
# class Tuple:
# class List:
# class Dict:
#     def __init__ (self, name, description, vtype = None, hook = None, user = None):
#     def set (self, value):
#     def get (self):
#     def __init__ (self):
#     def eventually_resolve (self, key):
#     def domains (self):
#         def fill_hash (key, hsht = hsht): hsht [key] = 1
#     def keys_in_domain (self, domain):
#         def test_dom (key, dom = domain):
#     def keys (self):
#     def has_key (self, key):
#     def __getitem__ (self, key):
#     def __setitem__ (self, key, value):
#     def parse_dir (self, dir):
# def define (key, description, vtype = None, hook = None, user = None):
# def set(key, value):
# def set_and_save  (key, value):
# def forget_changes ():
# def get (key):
# def keys ():
# def has_key (key):
# def domains ():
# def keys_in_domain (domain):
# def parse_directory (dir):
#     def match (self, value):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self, min = None, max = None):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, elements):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtypes):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtype):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, key, value):
#     def match (self, value):
#     def __str__ (self):
# def load_user ():
# def save_user (changed):
# 
# Path: Pyblio/Types.py
# def get_entry (entry, has_default = 1):
# def get_field (field):
#     def __init__ (self, name, type = Fields.Text):
#     def __deepcopy__ (self, memo):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def __repr__ (self):
#     def __init__ (self, name):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def __repr__ (self):
#     def __getattr__ (self, attr):
#     def __setattr__ (self, attr, value):
# class FieldDescription:
# class EntryDescription:
# 
# Path: Pyblio/Fields.py
# def get_formatter (format):
#     def __init__ (self, copy = None, strict = 0):
#                 def clean_entry (f):
#     def format (self, fmt = 'latin1'):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def initials (self, format = None):
#     def __cmp__ (self, other):
#     def __init__ (self, text = ''):
#     def __getitem__ (self, pos):
#     def __setitem__ (self, pos, val):
#     def __len__ (self):
#     def append (self, value):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __init__ (self, arg = (None, None, None)):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def format (self, fmt = 'latin1'):
#     def __repr__ (self):
#     def match (self, regex):
#     def asInt (self):
#     def __init__ (self, text):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
#     def __str__  (self):
#     def __repr__ (self):
#     def __len__  (self):
#     def __getitem__ (self, key):
#     def __init__ (self, url, invalid=False,
# 		  inexact=False, date='', note=''):
#     def set (self, other):
#     def full (self):
#     def parse_full (self, s):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __hash__ (self):
#     def __str__ (self):
#     def __repr__ (self):
#     def get_url (self):
#     def __init__ (self, keylist, database = None):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
# class Author:
# class AuthorGroup:
# class Date:
# class Text:
# class LongText (Text) :
# class URL:
# class Reference:
# 
# Path: Pyblio/Autoload.py
# class Loader:
#     def __init__ (self, name, regexp, module,
#                   info = None, data = None):
#     def load (self, key = None):
#     def is_loaded (self):
# def preregister (group, name, module, regexp = None, info = None):
# def register (group, name, data = None):
# def get_by_regexp (group, key):
# def get_by_name (group, name, load = 1):
# def available (group):
# def groups ():


import string
from Pyblio import Config, Types, Fields, Autoload
    
    'MastersThesis' : (('author', 'title', 'school', 'date',),
                       ('type', 'address', 'note',)),
    
    'Misc' : ((),
              ('author', 'title', 'howpublished', 'date', 'note',)),
    
    'PhdThesis' : (('author', 'title', 'school', 'date',),
                       ('type', 'address', 'note',)),
    
    'Proceedings' : (('title', 'date',),
                     ('editor', 'volume', 'number', 'series',
                     'address', 'publisher', 'note',
                      'organization',)),
    
    'TechReport' : (('author', 'title', 'institution', 'date',),
                    ('type', 'number', 'address', 'note',)),
    
    'Unpublished' : (('author', 'title', 'note',),
                     ('date',)),
    }


Config.set ('base/lyxpipe', '~/.lyx/lyxpipe')

# --------------------------------------------------

desc = {}
# create the hash table
for f in fields:

# Path: Pyblio/Config.py
# class ConfigItem:
# class Storage:
# class PrimaryType:
# class String (PrimaryType):
# class Boolean (PrimaryType):
# class Integer (PrimaryType):
# class Element:
# class Tuple:
# class List:
# class Dict:
#     def __init__ (self, name, description, vtype = None, hook = None, user = None):
#     def set (self, value):
#     def get (self):
#     def __init__ (self):
#     def eventually_resolve (self, key):
#     def domains (self):
#         def fill_hash (key, hsht = hsht): hsht [key] = 1
#     def keys_in_domain (self, domain):
#         def test_dom (key, dom = domain):
#     def keys (self):
#     def has_key (self, key):
#     def __getitem__ (self, key):
#     def __setitem__ (self, key, value):
#     def parse_dir (self, dir):
# def define (key, description, vtype = None, hook = None, user = None):
# def set(key, value):
# def set_and_save  (key, value):
# def forget_changes ():
# def get (key):
# def keys ():
# def has_key (key):
# def domains ():
# def keys_in_domain (domain):
# def parse_directory (dir):
#     def match (self, value):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self, min = None, max = None):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, elements):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtypes):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtype):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, key, value):
#     def match (self, value):
#     def __str__ (self):
# def load_user ():
# def save_user (changed):
# 
# Path: Pyblio/Types.py
# def get_entry (entry, has_default = 1):
# def get_field (field):
#     def __init__ (self, name, type = Fields.Text):
#     def __deepcopy__ (self, memo):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def __repr__ (self):
#     def __init__ (self, name):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def __repr__ (self):
#     def __getattr__ (self, attr):
#     def __setattr__ (self, attr, value):
# class FieldDescription:
# class EntryDescription:
# 
# Path: Pyblio/Fields.py
# def get_formatter (format):
#     def __init__ (self, copy = None, strict = 0):
#                 def clean_entry (f):
#     def format (self, fmt = 'latin1'):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def initials (self, format = None):
#     def __cmp__ (self, other):
#     def __init__ (self, text = ''):
#     def __getitem__ (self, pos):
#     def __setitem__ (self, pos, val):
#     def __len__ (self):
#     def append (self, value):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __init__ (self, arg = (None, None, None)):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def format (self, fmt = 'latin1'):
#     def __repr__ (self):
#     def match (self, regex):
#     def asInt (self):
#     def __init__ (self, text):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
#     def __str__  (self):
#     def __repr__ (self):
#     def __len__  (self):
#     def __getitem__ (self, key):
#     def __init__ (self, url, invalid=False,
# 		  inexact=False, date='', note=''):
#     def set (self, other):
#     def full (self):
#     def parse_full (self, s):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __hash__ (self):
#     def __str__ (self):
#     def __repr__ (self):
#     def get_url (self):
#     def __init__ (self, keylist, database = None):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
# class Author:
# class AuthorGroup:
# class Date:
# class Text:
# class LongText (Text) :
# class URL:
# class Reference:
# 
# Path: Pyblio/Autoload.py
# class Loader:
#     def __init__ (self, name, regexp, module,
#                   info = None, data = None):
#     def load (self, key = None):
#     def is_loaded (self):
# def preregister (group, name, module, regexp = None, info = None):
# def register (group, name, data = None):
# def get_by_regexp (group, key):
# def get_by_name (group, name, load = 1):
# def available (group):
# def groups ():


# Path: Pyblio/ConfDir/Base.py
import string
from Pyblio import Config, Types, Fields, Autoload

    
    'MastersThesis' : (('author', 'title', 'school', 'date',),
                       ('type', 'address', 'note',)),
    
    'Misc' : ((),
              ('author', 'title', 'howpublished', 'date', 'note',)),
    
    'PhdThesis' : (('author', 'title', 'school', 'date',),
                       ('type', 'address', 'note',)),
    
    'Proceedings' : (('title', 'date',),
                     ('editor', 'volume', 'number', 'series',
                     'address', 'publisher', 'note',
                      'organization',)),
    
    'TechReport' : (('author', 'title', 'institution', 'date',),
                    ('type', 'number', 'address', 'note',)),
    
    'Unpublished' : (('author', 'title', 'note',),
                     ('date',)),
    }


Config.set ('base/lyxpipe', '~/.lyx/lyxpipe')

# --------------------------------------------------

desc = {}
# create the hash table
for f in fields:

    desc [string.lower (f)] = Types.FieldDescription (f)