[Zope-dev] Small ZMI enhancement

2001-10-19 Thread Casey Duncan

When working in versions, it is currently a pain to get to the current version you 
are working in. Since the ZMI displays the path to the current version at the top, 
I thought, why now make this a link to the version so that you can get there in 
one click and manage it?

Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

*** manage_tabs.dtml~   Fri Oct 19 11:34:11 2001
--- manage_tabs.dtmlFri Oct 19 11:37:48 2001
***
*** 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version dtml-var Zope-Version html_quote/em
  /div
  /dtml-if
  /dtml-unless
--- 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version a 
href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var Zope-Version 
html_quote/a/em
  /div
  /dtml-if
  /dtml-unless

Anyone object to putting this in the core?

Enjoy.

/---\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  [EMAIL PROTECTED]
\---/

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Small ZMI enhancement

2001-10-19 Thread Andreas Jung

It's in the CVS now.

Thanks,
Andreas
- Original Message -
From: Casey Duncan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 11:45
Subject: [Zope-dev] Small ZMI enhancement


 When working in versions, it is currently a pain to get to the current
version you
 are working in. Since the ZMI displays the path to the current version at
the top,
 I thought, why now make this a link to the version so that you can get
there in
 one click and manage it?

 Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

 *** manage_tabs.dtml~ Fri Oct 19 11:34:11 2001
 --- manage_tabs.dtml Fri Oct 19 11:37:48 2001
 ***
 *** 161,167 

   dtml-if Zope-Version
   div class=system-msg
 ! emYou are currently working in version dtml-var Zope-Version
html_quote/em
   /div
   /dtml-if
   /dtml-unless
 --- 161,167 

   dtml-if Zope-Version
   div class=system-msg
 ! emYou are currently working in version a
href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var
Zope-Version html_quote/a/em
   /div
   /dtml-if
   /dtml-unless

 Anyone object to putting this in the core?

 Enjoy.

 /---\
   Casey Duncan, Sr. Web Developer
   National Legal Aid and Defender Association
   [EMAIL PROTECTED]
 \---/

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Small ZMI enhancement

2001-10-19 Thread Chris McDonough

Is the change going to be documented anywhere?

Andreas Jung wrote:
 It's in the CVS now.
 
 Thanks,
 Andreas
 - Original Message -
 From: Casey Duncan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 19, 2001 11:45
 Subject: [Zope-dev] Small ZMI enhancement
 
 
 
When working in versions, it is currently a pain to get to the current

 version you
 
are working in. Since the ZMI displays the path to the current version at

 the top,
 
I thought, why now make this a link to the version so that you can get

 there in
 
one click and manage it?

Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

*** manage_tabs.dtml~ Fri Oct 19 11:34:11 2001
--- manage_tabs.dtml Fri Oct 19 11:37:48 2001
***
*** 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version dtml-var Zope-Version

 html_quote/em
 
  /div
  /dtml-if
  /dtml-unless
--- 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version a

 href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var
 Zope-Version html_quote/a/em
 
  /div
  /dtml-if
  /dtml-unless

Anyone object to putting this in the core?

Enjoy.

/---\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  [EMAIL PROTECTED]
\---/

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )
 


-- 
Chris McDonoughZope Corporation
http://www.zope.org http://www.zope.com
Killing hundreds of birds with thousands of stones


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )