Trees | Index | Help |
|
---|
Module phonebook |
|
A widget for displaying/editting the phone information
The format for a phonebook entry is standardised. It is a dict with the following fields. Each field is a list, most important first, with each item in the list being a dict.
names:Classes | |
---|---|
ColumnSelectorDialog |
|
EntryMatcher |
|
ImportCellRenderer |
|
ImportDataTable |
|
ImportDialog |
|
ImportedEntryMatchDialog |
|
phonebookdataobject |
|
PhonebookPrintDialog |
|
PhoneDataTable |
|
PhoneEntryDetailsView |
|
PhoneWidget |
Function Summary | |
---|---|
Returns lowercase email | |
Returns num (a phone number) with all non-digits removed | |
Returns lowercase url with the "http://" prefix removed and in lower case | |
Like comparefields, but for source and against lists where multiple keys have values in each item | |
Compares the valuekey field in source and against lists returning a score for closeness of match | |
Give a score on two names | |
Give a score on two phone numbers | |
Compares two strings and returns the score using winkler routine from Febrl (stringcmp.py) | |
default_cleaner(x)
| |
dictintersection(one,
two)
| |
formataddress(address)
| |
formatcategories(cats)
| |
formatnumber(number)
| |
formatsecret(flag)
| |
formatstorage(flag)
| |
formattypenumber(number)
| |
Returns the value in a particular column. | |
Similar to getdata except returning higher level
information. | |
htmlify(string)
| |
Return the results of merging two lists of fields | |
Return the results of merging two lists of numbers | |
normalise_data(entries)
| |
workaroundyetanotherwxpythonbug(method,
*args)
|
Function Details |
---|
cleanemail(email, mode='compare')Returns lowercase email |
cleannumber(num)Returns num (a phone number) with all non-digits removed |
cleanurl(url, mode='compare')Returns lowercase url with the "http://" prefix removed and in lower case
|
compareallfields(s, a, fields, threshold=0.80000000000000004, lookat=3)Like comparefields, but for source and against lists where multiple keys have values in each item
|
comparefields(s, a, valuekey, threshold=0.80000000000000004, lookat=3)Compares the valuekey field in source and against lists returning a score for closeness of match |
comparenames(s, a)Give a score on two names |
comparenumbers(s, a)Give a score on two phone numbers |
comparestrings(origfield, impfield)Compares two strings and returns the score using winkler routine from Febrl (stringcmp.py) Return value is between 0.0 and 1.0, where 0.0 means no similarity whatsoever, and 1.0 means the strings match exactly. |
getdata(column, entry, default=None)Returns the value in a particular column. Note that the data is appropriately formatted.
|
getdatainfo(column, entry)Similar to
|
mergefields(orig, imp, field, threshold=0.88, cleaner=<function <lambda> at 0x02015BF0>)Return the results of merging two lists of fields We compare the fields. If they are the same, then the original is kept (since the name is the same, and the original most likely has the correct punctuation). Otherwise the imported entries overwrite the originals |
mergenumberlists(orig, imp)Return the results of merging two lists of numbers We compare the sanitised numbers (ie after punctuation etc is stripped out). If they are the same, then the original is kept (since the number is the same, and the original most likely has the correct punctuation). Otherwise the imported entries overwrite the originals |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Aug 15 18:58:26 2008 | http://epydoc.sf.net |