Changeset 391

Show
Ignore:
Timestamp:
07/12/06 06:26:23
Author:
crchemist
Message:

SmartFolder? settings are avaliable for all ZCatalogs in portal.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qTopic/branches/plone2.1/patch.py

    r390 r391  
    372372    if REQUEST==None: 
    373373        return  'Nothing saved.' 
     374 
    374375    catalog_name=REQUEST.get('catalog', CatalogTool.id) 
     376 
    375377    data = REQUEST.get('index', []) 
    376378    for index in data: 
  • qTopic/branches/plone2.1/qTopic.py

    r390 r391  
    7777        catalogs = at_tool.getCatalogsInSite() 
    7878        return  DisplayList(zip(catalogs, catalogs)) 
    79     
     79 
    8080    def getFieldsList(self): 
    8181        """ return DisplayList of fields 
  • qTopic/branches/plone2.1/skins/qtopic/atct_manageTopicIndex.cpt

    r390 r391  
    6969          tal:attributes="action python:here.absolute_url()+'/'+template.id"> 
    7070 
    71           <input type="hidden" name="form.submitted" value="1" /> 
    7271          <input type="hidden" name="sub" value="1" /> 
    73           <input type="hidden" name="catalog" value="portal_catalog" 
    74                  tal:attributes="value python:catalog" /> 
    7572 
    7673          <tal:indices tal:define="enabledOnly python:request.get('showEnabledOnly',True); 
     
    8178              Indices (fields for searching) 
    8279          </h3> 
    83           <div> 
    84             <tal:block condition="python:catalog=='member_catalog'"> 
    85             <a href="" 
    86                tal:attributes="href python:here.absolute_url() +'/'+ template.id +'?catalog=portal_catalog'"> 
    87                portal_catalog</a> 
    88             <span>member_catalog</span> 
    89             </tal:block> 
    90             <tal:block condition="python:not catalog=='member_catalog'"> 
    91             <span>portal_catalog</span> 
    92             <a href="" 
    93                tal:attributes="href python:here.absolute_url() +'/'+ template.id +'?catalog=member_catalog'"> 
    94                member_catalog</a> 
    95            </tal:block> 
    96           </div> 
     80 
     81          <select name="catalog"> 
     82            <option tal:repeat="c here/archetype_tool/getCatalogsInSite" 
     83                    tal:attributes="value c; 
     84                                    selected python:c == catalog" 
     85                    tal:content="c"/> 
     86 
     87          </select> 
     88 
     89          <input class="context" 
     90                 tabindex="" 
     91                 type="submit" 
     92                 name="form.button.Go" 
     93                 value="Go" 
     94                 i18n:domain="plone" 
     95                 i18n:attributes="value label_go" 
     96                 tal:attributes="tabindex tabindex/next;"/> 
     97 
    9798          <div style="text-align:right"> 
    9899              <a href="" 
     
    213214                   tal:attributes="tabindex tabindex/next;" 
    214215                   /> 
     216            <input type="hidden" name="form.submitted" value="1" /> 
    215217       </tal:indices> 
    216218 
  • qTopic/branches/plone2.1/skins/qtopic/atct_manageTopicIndex.cpt.metadata

    r390 r391  
    11[actions] 
    2 action.success=traverse_to:string:atct_saveTopicSetup 
     2action.success..index_save=traverse_to:string:atct_saveTopicSetup 
     3action.success..Go=traverse_to:string:atct_manageTopicIndex 
  • qTopic/branches/plone2.1/skins/qtopic/atct_manageTopicMetadata.cpt

    r390 r391  
    7171          <input type="hidden" name="form.submitted" value="1" /> 
    7272          <input type="hidden" name="sub" value="1" /> 
    73           <input type="hidden" name="catalog" value="portal_catalog" 
    74                  tal:attributes="value python:catalog" /> 
     73          <!--<input type="hidden" name="catalog" value="portal_catalog" 
     74                 tal:attributes="value python:catalog" />--> 
    7575 
    7676          <tal:indices tal:define="enabledOnly python:request.get('showEnabledOnly',True); 
     
    8282          </h3> 
    8383          <div> 
    84             <tal:block condition="python:catalog=='member_catalog'"> 
    85             <a href="" 
    86                tal:attributes="href python:here.absolute_url() +'/'+ template.id +'?catalog=portal_catalog'"> 
    87                portal_catalog</a> 
    88             <span>member_catalog</span> 
    89             </tal:block> 
    90             <tal:block condition="python:not catalog=='member_catalog'"> 
    91             <span>portal_catalog</span> 
    92             <a href="" 
    93                tal:attributes="href python:here.absolute_url() +'/'+ template.id +'?catalog=member_catalog'"> 
    94                member_catalog</a> 
    95            </tal:block> 
     84            <select name="catalog"> 
     85            <option tal:repeat="c here/archetype_tool/getCatalogsInSite" 
     86                    tal:attributes="value c; 
     87                                    selected python:c == catalog" 
     88                    tal:content="c"/> 
     89 
     90          </select> 
     91 
     92          <input class="context" 
     93                 tabindex="" 
     94                 type="submit" 
     95                 name="form.button.Go" 
     96                 value="Go" 
     97                 i18n:domain="plone" 
     98                 i18n:attributes="value label_go" 
     99                 tal:attributes="tabindex tabindex/next;"/> 
    96100          </div> 
    97101          <div style="text-align:right"> 
  • qTopic/branches/plone2.1/skins/qtopic/atct_manageTopicMetadata.cpt.metadata

    r390 r391  
    11[actions] 
    2 action.success=traverse_to:string:atct_saveTopicSetup 
     2action.success..metadata_save=traverse_to:string:atct_saveTopicSetup 
     3action.success..Go=traverse_to:string:atct_manageTopicMetadata