PEATDB/Meta.py
def add(self, fieldname, data):
        """Add a new field, if no key name is provided, the field
           is global to all keys"""
        d=self.data
        if fieldname==None or data==None:
            print 'error, provide field name and data'
            return
        if not self.data.has_key(fieldname):
            d[fieldname] = {}
        d[fieldname] = data
        return
Add a new field, if no key name is provided, the field
           is global to all keys
Add a new field, if no key name is provided, the field
is global to all keys
Add a new field if no key name is provided the field is global to all keys
def add(self, fieldname, data):
        d=self.data
        if fieldname==None or data==None:
            print 'error, provide field name and data'
            return
        if not self.data.has_key(fieldname):
            d[fieldname] = {}
        d[fieldname] = data
        return
def add ( self , fieldname , data ) : d = self . data if fieldname == None or data == None : print 'error, provide field name and data' return if not self . data . has_key ( fieldname ) : d [ fieldname ] = { } d [ fieldname ] = data return
Add a new field, if no key name is provided, the field
is global to all keys
Add a new field if no key name is provided the field is global to all keys
"""Add a new field, if no key name is provided, the field
           is global to all keys"""
self
fieldname
data