Ignore:
Timestamp:
Dec 23, 2011, 9:04:31 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
793432f
Parents:
aded2d1
git-author:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
Message:

Use classes for standard IPP attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/gutenbach/ipp/attributegroup.py

    rb2e077a rb828a96  
    4040        self.attributes = []
    4141        self.extend(attributes)
     42
     43    def __cmp__(self, other):
     44        eq = self.tag == other.tag
     45        for a1, a2 in zip(self.attributes, other.attributes):
     46            eq = eq and (a1 == a2)
     47        return 0 if eq else 1
    4248
    4349    def __getitem__(self, name):
Note: See TracChangeset for help on using the changeset viewer.