Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 9 and Version 10 of Search_Pagination


Ignore:
Timestamp:
03/23/06 02:47:24 (13 years ago)
Author:
fredlin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Search_Pagination

    v9 v10  
    182182    offset = 20 
    183183    start = int(start)*10 
    184     return dict(context = a[start:(start+offset)], start = start, offset = offset, query_size = a.count()) 
     184    end = start+offset 
     185    return dict(context = a[start:end], start = start, offset = offset, query_size = a.count()) 
    185186}}} 
    186187 
     188the "context" will return less sets because we constrain it with [start:end] directly. 
     189 
    187190Then you can remove the <?python ...?> section in "pagesearch.kid", becausse those params are already returned by "controller.py".