# 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:


import string
import gobject
import gtk
import pango
from gettext import gettext as _
from Pyblio import Fields
        self.text.set_right_margin (5)
        
        # currently, nothing to display
        self.entry = None
        return

    def display (self, entry):
        self.entry = entry

        if not self.entry:
            self.buff.set_text ('')
            return
        
        # Display this entry
        self.buff.delete (self.buff.get_start_iter (),
                          self.buff.get_end_iter ())
        
        iter = self.buff.get_start_iter ()
        
        self.buff.insert_with_tags (iter, entry.type.name,
                                    self.tag ['title'])
        self.buff.insert_with_tags (iter, ' {'+ str (entry.key.key) + '}\n\n',
                                    self.tag ['title'])

        dico = entry.keys ()


        def maybe_insert_button (field):
            """ Create a button that opens the URL if the field is of type URL """
            

# 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/GnomeUI/Entry.py
import string
import gobject
import gtk
import pango
from gettext import gettext as _
from Pyblio import Fields

        self.text.set_right_margin (5)
        
        # currently, nothing to display
        self.entry = None
        return

    def display (self, entry):
        self.entry = entry

        if not self.entry:
            self.buff.set_text ('')
            return
        
        # Display this entry
        self.buff.delete (self.buff.get_start_iter (),
                          self.buff.get_end_iter ())
        
        iter = self.buff.get_start_iter ()
        
        self.buff.insert_with_tags (iter, entry.type.name,
                                    self.tag ['title'])
        self.buff.insert_with_tags (iter, ' {'+ str (entry.key.key) + '}\n\n',
                                    self.tag ['title'])

        dico = entry.keys ()


        def maybe_insert_button (field):
            """ Create a button that opens the URL if the field is of type URL """
            

            if not isinstance (field, Fields.URL): return