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/attribute.py

    rcad7502 rb828a96  
    7070        self.name = name
    7171        self.values = values
     72
     73    def __cmp__(self, other):
     74        eq = self.name == other.name
     75        for v1, v2 in zip(self.values, other.values):
     76            eq = eq and (v1 == v2)
     77        return 0 if eq else 1
    7278
    7379    @property
Note: See TracChangeset for help on using the changeset viewer.