Ignore:
Timestamp:
08/08/07 01:48:48 (12 years ago)
Author:
jukka
Message:

Refactored groups to not use portal_groups. Things should be faster and users from weird sources shouldn't cause so much problems. Not much tested yet, but archetype update and quickinstaller reinstall works fine.

File:
1 edited

Legend:

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

    r1693 r1919  
    2121<tal:block tal:condition="not:isAnon"> 
    2222 
     23<tal:defs define="homefolder mtool/getHomeFolder; 
     24    groups homefolder/getGroups; 
     25    contacts homefolder/giveSortedListOfContacts"> 
     26 
    2327<div class="tb-portlet"> 
    2428    <div class="portlet-title"> 
     
    2731    </div> 
    2832 
    29     <span tal:define="groups python:context.lemill_usertool.getGroupsList(user.getId())"> 
    30         <ul tal:condition="groups" tal:repeat="groupish groups"> 
    31              <li tal:define="groupid groupish/getGroupId; 
    32                              grouparea python:context.portal_groups.getGroupareaFolder(groupid)"> 
    33                              <a href="#"  tal:attributes="href grouparea/absolute_url"  
    34                  tal:content="grouparea/TitleOrId">  
     33        <ul tal:condition="groups" tal:repeat="group groups"> 
     34             <li> 
     35                 <a href="#"  tal:attributes="href group/getURL"  
     36                 tal:content="group/Title">  
    3537                    PLACEHOLDER 
    3638               </a>  
     
    4244        </span> 
    4345     
    44     </span> 
    4546</div> 
    4647 
     
    5051    <tal:block i18n:translate="heading_my_contacts">My contacts</tal:block> 
    5152    </div> 
    52  
    53     <span tal:define="memfolder member/getHomeFolder; 
    54                       contacts python:memfolder.giveSortedListOfContacts();"> 
    5553        <ul tal:condition="contacts" tal:repeat="contact contacts"> 
    5654            <li> 
     
    6462            Has no contacts 
    6563        </span> 
    66     </span> 
    6764</div> 
     65 
     66</tal:defs> 
    6867 
    6968</tal:block> 
Note: See TracChangeset for help on using the changeset viewer.