SV: [Zope-dev] manage_tabs

Magnus Heino (Rivermen) magnus.heino@rivermen.se
Fri, 4 May 2001 14:44:14 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0D497.ECEA6B70
Content-Type: text/plain;
	charset="iso-8859-1"

Well, right now I'm doing it like this...
 
security = ClassSecurityInfo()
 
security.declarePublic('manage_editForm')
manage_editForm = DTMLFile('dtml/editForm', globals())
 
security.declarePublic('manage_main')
manage_main = manage_editForm
 
 
 
Browser doesn't change anything.
 
/Magnus

 
 

Could this be an "Internet Explorer failing to pass the AUTH info" problem? 

It sounds as though you are getting access to the edit tab via Anonymous
permissions (Have you restricted access to the manage_main method using the
__permissions__ settings)? In that case, Zope will not show you the other
tabs because the Anonymous User is not allow to see them.

(Does it show that this one got me too???) 

What version of which browser are you using? 

Adrian... 
-- 
Adrian Hungate 
Manager, European I.S. 
Acucorp UK Limited 


-----Original Message----- 
From: Magnus Heino (Rivermen) [ mailto:magnus.heino@rivermen.se
<mailto:magnus.heino@rivermen.se> ] 
Sent: Friday, 04 May 2001 13:09 
To: 'zope-dev@zope.org' 
Subject: [Zope-dev] manage_tabs 



Hi. 

In my Zope product, I've got this; 

 manage_options = SimpleItem.manage_options+( 
        {'label':'Edit', 'action':'manage_main'}, 
    ) 

If I view the management sceen of this product, I get four tabs (Undo, 
Ownership, Security and Edit). 

But If I click on "Edit", all tabs but the edit tab is removed. Why? 

My "Edit" dtml looks like this; 

<dtml-var manage_page_header> 
<dtml-var manage_tabs> 
  
<p class="form-help"> 
This is the edit form. 
</p> 
  
<dtml-var manage_page_footer> 

Thanks, 

/Magnus 

_______________________________________________ 
Zope-Dev maillist  -  Zope-Dev@zope.org 
http://lists.zope.org/mailman/listinfo/zope-dev
<http://lists.zope.org/mailman/listinfo/zope-dev>  
**  No cross posts or HTML encoding!  ** 
(Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
<http://lists.zope.org/mailman/listinfo/zope-announce>  
  http://lists.zope.org/mailman/listinfo/zope
<http://lists.zope.org/mailman/listinfo/zope>  ) 


------_=_NextPart_001_01C0D497.ECEA6B70
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Zope-dev] manage_tabs</TITLE>

<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=369124212-04052001>Well, 
right now I'm doing it like this...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>security = 
ClassSecurityInfo()</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff 
size=2>security.declarePublic('manage_editForm')<BR>manage_editForm = 
DTMLFile('dtm<SPAN class=369124212-04052001>l</SPAN>/editForm', 
globals())<BR>&nbsp;<BR>security.declarePublic('manage_main')<BR>manage_main = 
manage_editForm</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=369124212-04052001><FONT face=Arial color=#0000ff 
size=2>Browser doesn't change anything.</FONT></SPAN></DIV>
<DIV><SPAN class=369124212-04052001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=369124212-04052001><FONT face=Arial color=#0000ff 
size=2>/Magnus</FONT></SPAN></DIV>
<DIV><FONT face=Tahoma><BR><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=369124212-04052001><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <P><FONT size=2>Could this be an "Internet Explorer failing to pass the AUTH 
  info" problem?</FONT> </P>
  <P><FONT size=2>It sounds as though you are getting access to the edit tab via 
  Anonymous permissions (Have you restricted access to the manage_main method 
  using the __permissions__ settings)? In that case, Zope will not show you the 
  other tabs because the Anonymous User is not allow to see them.</FONT></P>
  <P><FONT size=2>(Does it show that this one got me too???)</FONT> </P>
  <P><FONT size=2>What version of which browser are you using?</FONT> </P>
  <P><FONT size=2>Adrian...</FONT> <BR><FONT size=2>--</FONT> <BR><FONT 
  size=2>Adrian Hungate</FONT> <BR><FONT size=2>Manager, European I.S.</FONT> 
  <BR><FONT size=2>Acucorp UK Limited</FONT> </P><BR>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
  Magnus Heino (Rivermen) [<A 
  href="mailto:magnus.heino@rivermen.se">mailto:magnus.heino@rivermen.se</A>]</FONT> 
  <BR><FONT size=2>Sent: Friday, 04 May 2001 13:09</FONT> <BR><FONT size=2>To: 
  'zope-dev@zope.org'</FONT> <BR><FONT size=2>Subject: [Zope-dev] 
  manage_tabs</FONT> </P><BR><BR>
  <P><FONT size=2>Hi.</FONT> </P>
  <P><FONT size=2>In my Zope product, I've got this;</FONT> </P>
  <P><FONT size=2>&nbsp;manage_options = SimpleItem.manage_options+(</FONT> 
  <BR><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {'label':'Edit', 
  'action':'manage_main'},</FONT> <BR><FONT size=2>&nbsp;&nbsp;&nbsp; )</FONT> 
  </P>
  <P><FONT size=2>If I view the management sceen of this product, I get four 
  tabs (Undo,</FONT> <BR><FONT size=2>Ownership, Security and Edit).</FONT> </P>
  <P><FONT size=2>But If I click on "Edit", all tabs but the edit tab is 
  removed. Why?</FONT> </P>
  <P><FONT size=2>My "Edit" dtml looks like this;</FONT> </P>
  <P><FONT size=2>&lt;dtml-var manage_page_header&gt;</FONT> <BR><FONT 
  size=2>&lt;dtml-var manage_tabs&gt;</FONT> <BR><FONT size=2>&nbsp;</FONT> 
  <BR><FONT size=2>&lt;p class="form-help"&gt;</FONT> <BR><FONT size=2>This is 
  the edit form.</FONT> <BR><FONT size=2>&lt;/p&gt;</FONT> <BR><FONT 
  size=2>&nbsp;</FONT> <BR><FONT size=2>&lt;dtml-var 
  manage_page_footer&gt;</FONT> </P>
  <P><FONT size=2>Thanks,</FONT> </P>
  <P><FONT size=2>/Magnus</FONT> </P>
  <P><FONT size=2>_______________________________________________</FONT> 
  <BR><FONT size=2>Zope-Dev maillist&nbsp; -&nbsp; Zope-Dev@zope.org</FONT> 
  <BR><FONT size=2><A target=_blank 
  href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</A></FONT> 
  <BR><FONT size=2>**&nbsp; No cross posts or HTML encoding!&nbsp; **</FONT> 
  <BR><FONT size=2>(Related lists - </FONT><BR><FONT size=2>&nbsp;<A 
  target=_blank 
  href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</A></FONT> 
  <BR><FONT size=2>&nbsp;<A target=_blank 
  href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</A> 
  )</FONT> </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C0D497.ECEA6B70--