Changeset 1303


Ignore:
Timestamp:
01/22/07 14:31:10 (13 years ago)
Author:
jukka
Message:

Fixed #1104.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/resource_list_macro.pt

    r1297 r1303  
    210210<tal:condition define="object_list object_list | batch" condition="python:len(object_list) > 0"> 
    211211<ul id="resource_list" class="expanded"  
    212     tal:define="this_section python:context.getSectionFolder().absolute_url(); 
    213         community_section python:'/'.join((portal_url,'community')); 
    214         content_section python:'/'.join((portal_url,'content'))"> 
     212    tal:define="community_section python:'/'.join((portal_url,'community')); 
     213        content_section python:'/'.join((portal_url,'content')); 
     214        this_section context/getSectionFolder | nothing; 
     215        this_section this_section/absolute_url | content_section; 
     216        "> 
    215217    <li tal:repeat="obj object_list" class="resultobject"> 
    216218    <tal:block define="obj_url obj/getURL | obj/absolute_url; 
  • trunk/tests/testToolBoxSearchTool.py

    r505 r1303  
    6666        now=tool.get_remote_lemilles() 
    6767        self.failUnlessEqual(now.keys(), defkeys) 
     68 
     69 
     70 
     71    def testSearchResultsMacro(self): 
     72        self.loginAsPortalOwner() 
     73        TITLE='Testaa' 
     74        BODY='Test paragraph' 
     75        TAGS='Academic' 
     76        TAGS_later = TAGS.lower() 
     77         
     78        ob=self.construct('PresentationMaterial', 'TestMaterial2' ,self.portal.content) 
     79        ob.edit(title=TITLE, bodyText=BODY, tags=TAGS) 
     80        path=self.portal.absolute_url_path()+'/lemill_search_results?SearchableText=academic' 
     81        result=self.publish(path).getBody() 
     82        self.failUnless(re.search('Testaa',result), 
     83                "Results page not working, 'Testaa' object is not there: %s" % result) 
     84 
    6885     
    6986     
Note: See TracChangeset for help on using the changeset viewer.