[Zope-CVS] CVS: Products/ExternalEditor - manage_tabs.dtml:1.1 CHANGES.txt:1.54 __init__.py:1.5

Casey Duncan casey at zope.com
Tue Jul 13 10:36:13 EDT 2004


Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv28897

Modified Files:
	CHANGES.txt __init__.py 
Added Files:
	manage_tabs.dtml 
Log Message:
Add EE icon to ZMI breadcrumbs by patching manage_tabs


=== Added File Products/ExternalEditor/manage_tabs.dtml ===
<dtml-with "_(manage_options=filtered_manage_options())">
<dtml-if manage_options>
<dtml-call "REQUEST.set('n_', _.len(manage_options)-1)">
<dtml-call "REQUEST.set('a_', 0)">
<dtml-in manage_options mapping>
<dtml-if expr="REQUEST.URL[-(_.len(action)):]==action or
                REQUEST.URL[-17:]=='/manage_workspace' and _['sequence-start']">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
<dtml-if "_.has_key('management_view') and management_view==label">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
</dtml-in>


<table cellpadding="0" cellspacing="0" width="100%" border="0">

<tr>
  <td bgcolor="#000000" rowspan="5" width="10%" valign="bottom" 
   align="left">&nbsp;&nbsp;<img src="&dtml-BASEPATH1;/p_/sp" 
   width="2" height="1" alt="" />
  </td>
  <td bgcolor="#000000" colspan="<dtml-var "4 * (n_ + 1)">"><img 
   src="&dtml-BASEPATH1;/p_/sp" width="1" height="5" alt="" /></td>
</tr>

<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td bgcolor="#ffffff" rowspan="2" valign="top" 
   align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
   width="1" height="2" alt="" /></td>
  <td bgcolor="#ffffff" rowspan="2" valign="top" 
   align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td bgcolor="#efefef" rowspan="2" valign="top" 
   align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp"
 width="1" height="2" alt="" /></td>
  <td bgcolor="#efefef" rowspan="2" valign="top" 
   align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options mapping>
<dtml-let s_item=sequence-item s_index=sequence-index>
<dtml-if "s_index==a_">
  <td bgcolor="#ffffff" valign="bottom" class="tab-small" 
   align="center"><font face="Verdana, Arial, Helvetica" 
   size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
   >href="&dtml-action;"<dtml-else
   >href="&dtml-URL1;"</dtml-if
   ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
   >><span style="color: #000000;"><strong><dtml-var "s_item['label']"
   ></strong></span></a>&nbsp;</font></td>
<dtml-else>
  <td bgcolor="#efefef" valign="bottom" class="tab-small" 
   align="center"><font face="Verdana, Arial, Helvetica" 
   size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
   >href="&dtml-action;"<dtml-else
   >href="&dtml-URL1;"</dtml-if
   ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
   >><span style="color: #000000;"><strong><dtml-var "s_item['label']"
   ></strong></span></a>&nbsp;</font></td>
</dtml-if>
</dtml-let>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td colspan="3" bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td colspan="3" bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td colspan="3" bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td colspan="3" bgcolor="#c0c0c0"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
</table>
</dtml-if>

<dtml-unless MANAGE_TABS_NO_BANNER>
  <br />
  <table width="100%" cellspacing="0" cellpadding="2" border="0">
  <tr class="location-bar">
    <td align="left" valign="top">
    <div class="std-text">
    <dtml-if icon>
    <img src="&dtml-BASEPATH1;/&dtml-icon;" 
         alt="&dtml-meta_type;" border="0" />
    </dtml-if>
    <strong>
    <dtml-if meta_type>
      <dtml-if class_manage_path>
    <a href="&dtml-BASEPATH1;&dtml-class_manage_path;"
       title="Manage the ZClass of this object">&dtml-meta_type;</a>
      <dtml-else>
    &dtml-meta_type;
      </dtml-if>
    <dtml-else>
    Object
    </dtml-if> 
    at <dtml-var expr="tabs_path_default(REQUEST)">
    </strong>
    <dtml-if locked_in_version>
      <dtml-if modified_in_version>
        <img src="&dtml-BASEPATH1;/p_/locked"
         alt="This item has been modified in this version" />
      <dtml-else>
        <img src="&dtml-BASEPATH1;/p_/lockedo"
         alt="This item has been modified in another version" />
              (<em>&dtml-locked_in_version;</em>)
      </dtml-if>
    </dtml-if>
    <dtml-var expr="externalEditLink_(this())">
    <dtml-if wl_isLocked>
     <img src="&dtml-BASEPATH1;/p_/davlocked"
      alt="This item has been locked by WebDAV"
      title="This item has been locked by WebDAV" />
    </dtml-if wl_isLocked>
    </div>
    </td>
  <dtml-if "_.has_key('help_topic') and _.has_key('help_product')">
  <td align="right" valign="top">
  <div class="std-text">
  <dtml-var "HelpSys.helpLink(help_product, help_topic)">
  </div>
  </td>
  <dtml-else>
  <dtml-if manage_options>
  <dtml-with "_(option=manage_options[a_])">
  <dtml-if "option.has_key('help')">
  <td align="right" valign="top">
  <div class="std-text">
  <dtml-var "HelpSys.helpLink(option['help'][0], option['help'][1])">
  </div>
  </td>
  </dtml-if>
  </dtml-with>
  </dtml-if>
  </dtml-if>
  </tr>
  </table>

<dtml-if Zope-Version>
<div class="system-msg">
<em>You are currently working in version <a href="&dtml-SERVER_URL;&dtml-Zope-Version;/manage_main">&dtml-Zope-Version;</a></em>
</div>
</dtml-if>
</dtml-unless>

<dtml-if manage_tabs_message>
<div class="system-msg">
<dtml-var manage_tabs_message newline_to_br> 
(<dtml-var ZopeTime fmt="%Y-%m-%d %H:%M">)
</div>
</dtml-if>

</dtml-with>


=== Products/ExternalEditor/CHANGES.txt 1.53 => 1.54 ===
--- Products/ExternalEditor/CHANGES.txt:1.53	Mon Jul 12 17:50:00 2004
+++ Products/ExternalEditor/CHANGES.txt	Tue Jul 13 10:36:13 2004
@@ -1,6 +1,8 @@
 External Editor Change Log
 
-  0.8 release
+  7/13/04 - 0.8 release
+  
+    - Add external editor icon to ZMI breadcrumbs for editable objects.
 
     - Compiled windows helper app binary using Python 2.3.4, Pythonwin build
       163 and py2exe 0.5.


=== Products/ExternalEditor/__init__.py 1.4 => 1.5 ===
--- Products/ExternalEditor/__init__.py:1.4	Tue Aug 20 23:12:46 2002
+++ Products/ExternalEditor/__init__.py	Tue Jul 13 10:36:13 2004
@@ -17,6 +17,7 @@
 from Globals import ImageFile, DTMLFile
 from OFS.ObjectManager import ObjectManager
 from OFS.FindSupport import FindSupport
+from App.Management import Tabs
 from ExternalEditor import ExternalEditor, EditLink
 
 # Add the icon and the edit method to the misc_ namespace
@@ -33,3 +34,6 @@
 # Add our patch for the find results template
 FindSupport.manage_findResult=DTMLFile('findResult', globals(),
                                        management_view='Find')
+
+# Add external editor icon in breadcrumbs under tabs
+Tabs.manage_tabs = DTMLFile('manage_tabs', globals())



More information about the Zope-CVS mailing list