/[papo]/papo/forms/client.gfd
ViewVC logotype

Diff of /papo/forms/client.gfd

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

revision 1.48 by mhepp, Thu Apr 3 19:37:30 2003 UTC revision 1.49 by charlie, Fri Apr 4 16:27:10 2003 UTC
# Line 663  Line 663 
663        line += "-"        line += "-"
664    table.append(line)    table.append(line)
665    
666      if str(clientSearchBlock.searchCodeEntry) or str(clientSearchBlock.searchNameEntry):
667          clientCondition = GConditions.GConditions()
668          tmpAnd = GConditions.GCand(clientCondition)
669          if str(clientSearchBlock.searchCodeEntry):
670              eq1 = GConditions.GClike(tmpAnd)
671              GConditions.GCField(eq1,"_entity_uid_data.uid")
672              GConditions.GCConst(eq1,str(clientSearchBlock.searchCodeEntry)+'%')
673          if str(clientSearchBlock.searchNameEntry):
674              eq2 = GConditions.GClike(tmpAnd)
675              GConditions.GCField(eq2,"_entity_data.name")
676              GConditions.GCConst(eq2,str(clientSearchBlock.searchNameEntry)+'%')
677          clientResulSet = printClientDataSource.createResultSet(clientCondition)
678      else:
679          clientResulSet = printClientDataSource.createResultSet()
680    
   clientResulSet = printClientDataSource.createResultSet()  
681    more = clientResulSet.firstRecord();    more = clientResulSet.firstRecord();
682    
683    while more:    while more:
# Line 721  Line 734 
734    
735        line = "| " +printField(clientResulSet.current.getField("_entity_uid_data.uid"),14)+ " | "        line = "| " +printField(clientResulSet.current.getField("_entity_uid_data.uid"),14)+ " | "
736        line += printField(clientResulSet.current.getField("_entity_data.name"),20) + " | "        line += printField(clientResulSet.current.getField("_entity_data.name"),20) + " | "
737          
738        if addresses:        if addresses:
739            line += printField(addresses.pop(),20) + " | "            line += printField(addresses.pop(),20) + " | "
740        else:        else:

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

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