~divmod-dev/divmod.org/uneditable-contact-type-2513

« back to all changes in this revision

Viewing changes to Mantissa/xmantissa/ixmantissa.py

  • Committer: moe
  • Date: 2008-01-17 15:03:33 UTC
  • Revision ID: svn-v4:866e43f7-fbfc-0310-8f2a-ec88d1da2979:trunk:14761
merge people-tags-2446-3.  introduces an API for filtering lists of people, and some UI for doing this with your address book.  author: moe, reviewer: glyph.  closes #2446

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
 
685
685
 
686
686
 
 
687
class IPeopleFilter(Interface):
 
688
    """
 
689
    Object which collects L{Person} items into a logical group.
 
690
    """
 
691
    filterName = Attribute("""
 
692
    The name of this filter; something which describes the type of people
 
693
    included in its group.""")
 
694
 
 
695
 
 
696
    def getPeopleQueryComparison(store):
 
697
        """
 
698
        Return a query comparison describing the subset of people in the given
 
699
        store which are included in this group.
 
700
 
 
701
        @type store: L{axiom.store.Store}
 
702
 
 
703
        @rtype: L{axiom.iaxiom.IComparison}
 
704
        """
 
705
 
 
706
 
 
707
 
687
708
class IOrganizerPlugin(Interface):
688
709
    """
689
710
    Powerup which provides additional functionality to Mantissa
701
722
        """
702
723
 
703
724
 
 
725
    def getPeopleFilters():
 
726
        """
 
727
        Return an iterator of L{IPeopleFilter} providers supplied by this
 
728
        plugin.
 
729
        """
 
730
 
 
731
 
704
732
    def personCreated(person):
705
733
        """
706
734
        Called when a new L{Person} is created.