Changeset 28 for storage

Show
Ignore:
Timestamp:
07/08/06 21:03:17 (3 years ago)
Author:
ploum
Message:

Big big big refactorization.

The really nasty description_in_the_widget_name hack is now in page.py only,
allowing an easy change

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • storage/bookmarks_store.py

    r27 r28  
    4343                #the stored bookmarks. (sync with storage) 
    4444                self.listing.remove(to_delete) 
    45  
    46         # this function returns two strings in a tuple : 
    47         # [0] is the "nice" title of the displayed bug. 
    48         # [1] is the hacky name with all needed informations 
    49         def makeTitle(self, search_type, args) : 
    50                 zename='' 
    51                 title='' 
    52                 if search_type == 1 : 
    53                         title = "bug #%s"%args 
    54                         zename= "%s\n\n1\n\n%s" %(title,args) 
    55                 elif search_type == 2 : 
    56                         title = "%s" %args 
    57                         zename = "%s\n\n2\n\n%s"%(title,args) 
    58                 elif search_type == 3 : 
    59                         array= args.split("\n",1) 
    60                         title = "(%s) %s"%(array[0],array[1]) 
    61                         zename = "%s\n\n3\n\n%s"%(title,args) 
    62                 return [title, zename]