/[straw]/straw/src/lib/SummaryItem.py
ViewVC logotype

Diff of /straw/src/lib/SummaryItem.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by juri, Thu Oct 16 20:56:34 2003 UTC revision 1.13 by jmalonzo, Mon Oct 20 07:30:28 2003 UTC
# Line 101  class SummaryItem(object, straw.SignalEm Line 101  class SummaryItem(object, straw.SignalEm
101      def match(self, text):      def match(self, text):
102          def try_field(field):          def try_field(field):
103              return type(field) in (              return type(field) in (
104                  type(''), type(u'')) and field.lower().find(text) > -1                  type(''), type(u'')) and field.lower().find(text.lower()) > -1
105          for f in self._searchable_fields:          for f in self._searchable_fields:
106              try:              try:
107                  if try_field(self.__getattribute__(f)):                  if try_field(self.__getattribute__(f)):

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26