Re: [Zope] Tweaking the management interface

2000-05-31 Thread Kevin Dangoor

- Original Message -
From: "peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 31, 2000 3:18 PM
Subject: [Zope] Tweaking the management interface


> So I can change this simply in zoperoot\lib\python\App\manage.dtml
> I save a file called extramenu.dtml in the same location as menu.dtml and
> main.dtml, zoperoot\lib\python\App\ and zoperoot\lib\python\Ofs
respectivly.
>
> All I get is an 'Resource not found' error in frame 3.
>
> So, where should I save my extramenu.dtml and should at all call it
> extramenu.dtml or manage_extramenu.dtml?
> And do I have to change any Python code?

One way to do this would be to just create the DTML method in the root of
your ZODB. That would probably be more convenient for you to experiment with
anyway. Otherwise, you'll need to make a change to Management.py... here's a
grep:

Management.py:manage_menu =HTMLFile('menu', globals())
Management.py:('View management screens', ('manage',
'manage_menu',)),

Just do
manage_extramenu=HTMLFile('extramenu', globals())

and add 'manage_extramenu' to the tuple for View management screens to set
up the permissions...

Kevin


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Tweaking the management interface

2000-05-31 Thread peter

I'm not a Python genious, but I do know some Python and a lot of HTML.

I would like to experiment with changing the way the management interface is
built up.
The management interface of Zope is basically built up in two-column frames
like this:
--
| |  |
| |  |
|  1  | 2|
| |  |
| |  |
| |  |
--

Which is in HTML code:

 http://url/manage_menu>
 http://url/manage_main>


But I want something like this:
--
| |  |
|  1  |  |
| | 2|
|-|  |
| |  |
|  3  |  |
--

Which is in HTML code:

 
  http://url/manage_menu>
  http://url/manage_extramenu>
 http://url/manage_main>


In frame 3 I want to load a DTML Method, DTML Document, Python module, .dtml
file or whatever is possible to load there.

So I can change this simply in zoperoot\lib\python\App\manage.dtml
I save a file called extramenu.dtml in the same location as menu.dtml and
main.dtml, zoperoot\lib\python\App\ and zoperoot\lib\python\Ofs respectivly.

All I get is an 'Resource not found' error in frame 3.

So, where should I save my extramenu.dtml and should at all call it
extramenu.dtml or manage_extramenu.dtml?
And do I have to change any Python code?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )