Changeset 1320


Ignore:
Timestamp:
01/31/07 16:25:55 (13 years ago)
Author:
vahur
Message:

closes #849 spent 1h
going to collections from material keeps user in green area

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Collection.py

    r1264 r1320  
    287287        return 'community' 
    288288                 
    289     def redirect(self, REQUEST): 
     289    def redirect(self, REQUEST, url=''): 
    290290        """ redirect to collections (self) """ 
    291291        prev = self.getPreviousSection(REQUEST) 
    292292        REQUEST.SESSION.set('keep_in_section', prev) 
     293        if url: 
     294            return REQUEST.RESPONSE.redirect(url) 
    293295        return REQUEST.RESPONSE.redirect(self.absolute_url()) 
    294296 
  • trunk/skins/lemill/portlet_material_actions.pt

    r1309 r1320  
    5050        <li tal:condition="colls"> 
    5151            <a href=""  i18n:translate="label_view_collections" 
    52                 tal:attributes="href string:${context/community/absolute_url}/collections_list?obj_id=${context/UID}"> 
     52                tal:attributes="href string:${membersfolder/absolute_url}/${member}/collections/redirect?url=${membersfolder/absolute_url}/${member}/collections/collections_list?obj_id=${context/UID}"> 
    5353                View collections</a>  
    5454            <span tal:replace="python:'('+str(len(colls))+')'">(1)</span> 
  • trunk/skins/lemill_tables/main_template.pt

    r1312 r1320  
    77      lang="en" 
    88      i18n:domain="lemill" 
    9       tal:attributes="lang python:test(language(),language(),'en'); 
    10                       xml:lang python:test(language(),language(),'en')"> 
     9      tal:attributes="lang language|string:en;  
     10                      xml:lang language|string:en">  
    1111 
    1212  <head metal:use-macro="here/header/macros/html_header"> 
Note: See TracChangeset for help on using the changeset viewer.