Re: [Zope] ZMI in zope 2.10.5 broken

2008-01-30 Thread quizzical

I'm not sure how the rogue file got there but it was probably while I was
trying to install a non 2.5 version of python, I did have a lot of trouble
installing python with zlib included, I don't know if this is a common
problem. 

Anyway, I fixed the problem by removing and reinstalling python 2.4.4 with
zlib and that has solved the problem. Zope works perfectly now. Thanks
everyone for the help!

Alex
-- 
View this message in context: 
http://www.nabble.com/ZMI-in-zope-2.10.5-broken-tp15125493p15185129.html
Sent from the Zope - General mailing list archive at Nabble.com.

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


Re: [Zope] ZMI in zope 2.10.5 broken

2008-01-30 Thread Martijn Pieters
On Jan 28, 2008 4:54 PM, quizzical <[EMAIL PROTECTED]> wrote:
>   Module TreeDisplay.TreeTag, line 337, in tpRenderTABLE
>   Module zlib, line 38, in compress
> NameError: global name 'util' is not defined

The error occurs in the 'zlib' module, which is not part of Zope, but
a python library. Moreover, on my python installs, this is a C
extension library, not pure python.. From what I can tell from this
traceback, it appears you have a rogue zlib library on your path
somewhere, Zope 2.10.5 certainly doesn't include it.

-- 
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZMI in zope 2.10.5 broken

2008-01-28 Thread quizzical

Here it is:

/home/alex/playground/bin/runzope -X debug-mode=on
2008-01-28 15:53:17 INFO ZServer HTTP server started at Mon Jan 28 15:53:17
2008
Hostname: 0.0.0.0
Port: 8080
2008-01-28 15:53:20 INFO Zope Ready to handle requests
2008-01-28 15:53:20 ERROR Zope.SiteErrorLog
http://192.168.1.67:8080/manage_menu
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module TreeDisplay.TreeTag, line 88, in render
  Module TreeDisplay.TreeTag, line 209, in tpRender
  Module TreeDisplay.TreeTag, line 461, in tpRenderTABLE
   - __traceback_info__: (['AAE=', []], {'url': 'tpURL', 'nowrap':
'1', 'branches': 'tpValues', 'id': 'tpId', 'childless_decoration': ''},
(['AAE=', []],), (['AAE=', []],))
  Module TreeDisplay.TreeTag, line 337, in tpRenderTABLE
  Module zlib, line 38, in compress
NameError: global name 'util' is not defined


Andreas Jung-5 wrote:
> 
> 
> 
> --On 28. Januar 2008 07:14:36 -0800 quizzical <[EMAIL PROTECTED]> wrote:
> 
> 
>>
>> Error Type: NameError
>> Error Value: global name 'util' is not defined
>>
>>
> Please provide the full traceback - either from the error_log within the
> ZMI
> or from messages on your console (requires Zope running in the foreground 
> (zopectl fg)).
> 
> -aj
>  
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ZMI-in-zope-2.10.5-broken-tp15125493p15138278.html
Sent from the Zope - General mailing list archive at Nabble.com.

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


Re: [Zope] ZMI in zope 2.10.5 broken

2008-01-28 Thread Andreas Jung



--On 28. Januar 2008 07:14:36 -0800 quizzical <[EMAIL PROTECTED]> wrote:




Error Type: NameError
Error Value: global name 'util' is not defined



Please provide the full traceback - either from the error_log within the ZMI
or from messages on your console (requires Zope running in the foreground 
(zopectl fg)).


-aj

pgpKRtCBGBTU7.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZMI in zope 2.10.5 broken

2008-01-28 Thread quizzical

Hi everyone,

I'm new to Zope and have just installed Zope2.10.5. I have created a new
Zope instance in my home folder and then browsed to my servers ip address at
port 8080 and logged into the ZMI. 

This is the problem, the top and main frames of the ZMI render perfectly and
I can navigate to the links in the main window, however, the tree menu in
the left frame does not load. Instead I get this error:

Error Type: NameError
Error Value: global name 'util' is not defined

I have had a look through the mailing lists and googled for hhours and have
found no indication as to what could be causing this.

The only clue I have is that when I click on the 'help' link in the main
frame the left frame of the window fails to render, even though it is a
completely different url. I have tried this in both Mozilla and IE and on
several different computers, one on XP and one on Vista.  

Some information about my setup:

I am running an ubuntu 7.10 server, installed both Zope installations from
the .tgz files on Zope.org. Python version 2.4.4

please tell me what extra information I can provide, I have zero experience
with Zope and am finding it pretty tough to learn, so I know nothing about
standard log files or debugging.

Cheers for any help

Alex
-- 
View this message in context: 
http://www.nabble.com/ZMI-in-zope-2.10.5-broken-tp15125493p15125493.html
Sent from the Zope - General mailing list archive at Nabble.com.

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


Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tim Nash
Tom,
  My modification of the css has nothing to do with security. It is to
simplify the UI for general users. And I use the zmi not because it is
easy but because it is proven.

If you have any specific examples of the management nightmare created
by using zmi as a cms I would very much appreciate hearing about them.
I think all websites are a management nightmare! (but it doesn't stop
facebook from becoming a platform, eh?)
:)

Thanks,
Tim



On Jan 17, 2008 8:36 AM, Tom Von Lahndorff <[EMAIL PROTECTED]> wrote:
>
> There's nothing wrong with the ZMI. You're just try to hack into some
> kind of cms rather than just build one. Hiding a link with css is
> nasty hack and major security issue. While it may seem like what
> you're doing is an easy path to a quick cms, you're really just
> setting yourself up for a management nightmare. I'd recommend reading
> through (all of) this:
>
> http://www.zope.org/Documentation/Books/ZopeBook
>
>
>
> On Jan 17, 2008, at 10:17 AM, Tim Nash wrote:
>
> > Tom,
> >  Thanks but I think I am almost done. I have replaced the old 

Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tom Von Lahndorff


There's nothing wrong with the ZMI. You're just try to hack into some  
kind of cms rather than just build one. Hiding a link with css is  
nasty hack and major security issue. While it may seem like what  
you're doing is an easy path to a quick cms, you're really just  
setting yourself up for a management nightmare. I'd recommend reading  
through (all of) this:


http://www.zope.org/Documentation/Books/ZopeBook


On Jan 17, 2008, at 10:17 AM, Tim Nash wrote:


Tom,
 Thanks but I think I am almost done. I have replaced the old 

Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tim Nash
Tom,
  Thanks but I think I am almost done. I have replaced the old 

Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tom Von Lahndorff


You really should be writing a custom UI for this rather than hacking  
the ZMI. It will probably take less time, be much more manageable,  
flexible and secure.


On Jan 16, 2008, at 8:05 PM, Tim Nash wrote:


The other important difference between ajax loaded pages and iframes
is that when you click on a link within an iframe page, the returned
page is loaded into the same iframe.
If I am not being clear, please check out this png file.
http://medicinebrain.com/iframe.png";>
http://medicinebrain.com/iframe.png

In this png I did a search for DML Docs within a tab panel and the
search results are loaded into the same tab.

BTW, I would like to simplify the zmi even more for my users. I want
to hide various tabs (eg. security, find, etc) and I want to restrict
the number of products they are shown in the drop down box for adding
to a folder.
However, I still want to offer complete zmi functionality to the
overall administrator.
I can probably hide the security tabs using css (the overall admin
won't load the css sheet) but how can I control the products displayed
to a user in the folder view of the zmi?

Thanks,
Tim



On Jan 16, 2008 9:54 AM, Andreas Jung <[EMAIL PROTECTED]> wrote:



--On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain <[EMAIL PROTECTED] 
>

wrote:



Tim Nash wrote:

Jurian,
 While the ZMI is a bit geeky for the average user, it works quite
well inside an iframe.
iframes are used by many ajax/web2 (whatever you want to call it)
libraries. So in my application (for example) I currently make ajax
calls to load specific zmi pages inside tabs of a window layout.


IFRames. You should avoid those. With ajax or similar its easy to  
skip

such stuff and just replace any named container tag.


Iframes are still a valid choice in case asynchronous won't work  
e.g. when
you need to load resources from servers != your origin server. Due  
the
security model of asynchronous requests, a browser will only load  
stuff
from the origin server. Iframes are a way to work around this  
limitation -

ugly as you said, but sometimes a good workaround.

Ansdeas

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


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tino Wildenhain

Andreas Jung wrote:
...
Iframes are still a valid choice in case asynchronous won't work e.g. 
when you need to load resources from servers != your origin server. Due 
the security model of asynchronous requests, a browser will only load 
stuff from the origin server. Iframes are a way to work around this 
limitation - ugly as you said, but sometimes a good workaround.


Not only ugly but also a very security threat. Been there, seen a lot
important sites fell on their noses when it comes to CSS* and friends.
Better find another solution in such cases and allow users to disable
support for iframes for better security.

*) here: cross site scripting

Regards
Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-17 Thread Tino Wildenhain

Hi Tim,

Tim Nash wrote:

The other important difference between ajax loaded pages and iframes
is that when you click on a link within an iframe page, the returned
page is loaded into the same iframe.
If I am not being clear, please check out this png file.
http://medicinebrain.com/iframe.png";>
http://medicinebrain.com/iframe.png

In this png I did a search for DML Docs within a tab panel and the
search results are loaded into the same tab.

BTW, I would like to simplify the zmi even more for my users. I want
to hide various tabs (eg. security, find, etc) and I want to restrict
the number of products they are shown in the drop down box for adding
to a folder.
However, I still want to offer complete zmi functionality to the
overall administrator.
I can probably hide the security tabs using css (the overall admin
won't load the css sheet) but how can I control the products displayed
to a user in the folder view of the zmi?


You can either sub-class if you want to explicitely specify the products
you want an objectmanagerish class to add - this would also nicely solve
all your ZMI "problems" since you could just skin your new pages as you
want. Or for the easy way have a look at the Security Tab, specifically
at the "Add FooBar..." stuff there.

Regards
Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-16 Thread Tim Nash
The other important difference between ajax loaded pages and iframes
is that when you click on a link within an iframe page, the returned
page is loaded into the same iframe.
If I am not being clear, please check out this png file.
http://medicinebrain.com/iframe.png";>
http://medicinebrain.com/iframe.png

In this png I did a search for DML Docs within a tab panel and the
search results are loaded into the same tab.

BTW, I would like to simplify the zmi even more for my users. I want
to hide various tabs (eg. security, find, etc) and I want to restrict
the number of products they are shown in the drop down box for adding
to a folder.
However, I still want to offer complete zmi functionality to the
overall administrator.
I can probably hide the security tabs using css (the overall admin
won't load the css sheet) but how can I control the products displayed
to a user in the folder view of the zmi?

Thanks,
Tim



On Jan 16, 2008 9:54 AM, Andreas Jung <[EMAIL PROTECTED]> wrote:
>
>
> --On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain <[EMAIL PROTECTED]>
> wrote:
>
>
> > Tim Nash wrote:
> >> Jurian,
> >>   While the ZMI is a bit geeky for the average user, it works quite
> >> well inside an iframe.
> >> iframes are used by many ajax/web2 (whatever you want to call it)
> >> libraries. So in my application (for example) I currently make ajax
> >> calls to load specific zmi pages inside tabs of a window layout.
> >
> > IFRames. You should avoid those. With ajax or similar its easy to skip
> > such stuff and just replace any named container tag.
>
> Iframes are still a valid choice in case asynchronous won't work e.g. when
> you need to load resources from servers != your origin server. Due the
> security model of asynchronous requests, a browser will only load stuff
> from the origin server. Iframes are a way to work around this limitation -
> ugly as you said, but sometimes a good workaround.
>
> Ansdeas
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-16 Thread Andreas Jung



--On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain <[EMAIL PROTECTED]> 
wrote:



Tim Nash wrote:

Jurian,
  While the ZMI is a bit geeky for the average user, it works quite
well inside an iframe.
iframes are used by many ajax/web2 (whatever you want to call it)
libraries. So in my application (for example) I currently make ajax
calls to load specific zmi pages inside tabs of a window layout.


IFRames. You should avoid those. With ajax or similar its easy to skip
such stuff and just replace any named container tag.


Iframes are still a valid choice in case asynchronous won't work e.g. when 
you need to load resources from servers != your origin server. Due the 
security model of asynchronous requests, a browser will only load stuff 
from the origin server. Iframes are a way to work around this limitation - 
ugly as you said, but sometimes a good workaround.


Ansdeas

pgp1PnW8VAUXk.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-16 Thread Tino Wildenhain

Tim Nash wrote:

Jurian,
  While the ZMI is a bit geeky for the average user, it works quite
well inside an iframe.
iframes are used by many ajax/web2 (whatever you want to call it)
libraries. So in my application (for example) I currently make ajax
calls to load specific zmi pages inside tabs of a window layout.


IFRames. You should avoid those. With ajax or similar its easy to skip
such stuff and just replace any named container tag.

Regards
Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-15 Thread Tim Nash
Jurian,
  While the ZMI is a bit geeky for the average user, it works quite
well inside an iframe.
iframes are used by many ajax/web2 (whatever you want to call it)
libraries. So in my application (for example) I currently make ajax
calls to load specific zmi pages inside tabs of a window layout.

I agree with Peter that you are better off building your own interface
(if you are going to expose the manage_* methods) but I personally
hope the zmi stays around for a while!
Tim


On Jan 15, 2008 11:02 AM, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
> I would strongly advice against building on top of the ZMI. It's dated
> and as you say, in DTML. It's also too geeky to be acceptable by any
> client of mine.
> Personally I'd build something standalone that you have ultimate control
> over. You can still use things like manage_renameObjects() in your own
> mnagement interface; which you'd be able to replace once you move to zope 3.
>
> Jurian Botha wrote:
> > I'm currently developing some customized ZMI pages and I was hoping someone
> > could give me some insight into what the best way would be to do this.
> >
> > I see that Zope 2 uses dtml methods to build the standard ZMI pages but as
> > far as I know (Zope 3 wise) I should rather be using Zope Page Templates to
> > build the pages.
> >
> > I would also like the product to gracefully move on to Zope 3 in future, so
> > that should be taken into consideration as well.
> >
> > Are there perhaps some existsing templates for ZMI that can also be used
> > with Zope 3?
>
> --
> Peter Bengtsson,
> work www.fry-it.com
> home www.peterbe.com
> hobby www.issuetrackerproduct.com
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope ZMI Templates

2008-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
> Hi again, Tres!
> Can you point as where we can find this kind of help? Are there some
> reference manual or similar? (I'm using Zope2) Perhaps on Five manual?

I'm afraid I don't know the docs very well:  I tend to use the source
when memory fails me. ;)  Honestly, I typed those examples in off the
top of my head, and then created the product to test them:  except for a
single typo, it Just Worked (TM).



Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjRoC+gerLs4ltQ4RAsF9AJ9g5kghDMORCsHeD6bM391MuGpLKwCg0erV
+9TiFSIzjeSwRGpz720sDGQ=
=CytP
-END PGP SIGNATURE-

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


Re: [Zope] Re: Zope ZMI Templates

2008-01-15 Thread Garito
Hi again, Tres!
Can you point as where we can find this kind of help? Are there some
reference manual or similar? (I'm using Zope2) Perhaps on Five manual?

Thanks a lot!

2008/1/15, Tres Seaver <[EMAIL PROTECTED]>:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jurian Botha wrote:
> > I'm currently developing some customized ZMI pages and I was hoping
> someone
> > could give me some insight into what the best way would be to do this.
> >
> > I see that Zope 2 uses dtml methods to build the standard ZMI pages but
> as
> > far as I know (Zope 3 wise) I should rather be using Zope Page Templates
> to
> > build the pages.
> >
> > I would also like the product to gracefully move on to Zope 3 in future,
> so
> > that should be taken into consideration as well.
> >
> > Are there perhaps some existsing templates for ZMI that can also be used
> > with Zope 3?
>
> You could choose to use a 'zmi_master' template which looked like so::
>
> 
> 
> 
> 
>Non-boilerplate goes here.
> 
> 
> 
>
> If you registered that template as a view in your product's
> 'configure.zcml', e.g.:
>
> for="*"
>  name="zmi_master"
>  template="zmi_master.pt"
>  />
>
> you can then use it in your own ZMI templates, e.g.:
>
>   
>   
>   
> Test ZMI Macro 
>   
>   
>   
>
> I have attached a tarball of a simple Zope2 product which does this.
> After installation, you should be able to visit
> http://localhost:8080/zmi_test to see the results.
>
>
> Tres.
> - --
> ===
> Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
> Palladion Software   "Excellence by Design"http://palladion.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf
> YMSO8d3hiDf5eMyG31nn9Ng=
> =fh+F
> -END PGP SIGNATURE-
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope ZMI Templates

2008-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jurian Botha wrote:
> I'm currently developing some customized ZMI pages and I was hoping someone
> could give me some insight into what the best way would be to do this.
> 
> I see that Zope 2 uses dtml methods to build the standard ZMI pages but as
> far as I know (Zope 3 wise) I should rather be using Zope Page Templates to
> build the pages.
> 
> I would also like the product to gracefully move on to Zope 3 in future, so
> that should be taken into consideration as well.
> 
> Are there perhaps some existsing templates for ZMI that can also be used
> with Zope 3?

You could choose to use a 'zmi_master' template which looked like so::

 
 
 
 
   Non-boilerplate goes here.
 
 
 

If you registered that template as a view in your product's
'configure.zcml', e.g.:

  

you can then use it in your own ZMI templates, e.g.:

  
  
  
Test ZMI Macro 
  
  
  

I have attached a tarball of a simple Zope2 product which does this.
After installation, you should be able to visit
http://localhost:8080/zmi_test to see the results.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf
YMSO8d3hiDf5eMyG31nn9Ng=
=fh+F
-END PGP SIGNATURE-


zmi3.tar.gz
Description: application/gzip
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope ZMI Templates

2008-01-15 Thread Peter Bengtsson
I would strongly advice against building on top of the ZMI. It's dated 
and as you say, in DTML. It's also too geeky to be acceptable by any 
client of mine.
Personally I'd build something standalone that you have ultimate control 
over. You can still use things like manage_renameObjects() in your own 
mnagement interface; which you'd be able to replace once you move to zope 3.


Jurian Botha wrote:

I'm currently developing some customized ZMI pages and I was hoping someone
could give me some insight into what the best way would be to do this.

I see that Zope 2 uses dtml methods to build the standard ZMI pages but as
far as I know (Zope 3 wise) I should rather be using Zope Page Templates to
build the pages.

I would also like the product to gracefully move on to Zope 3 in future, so
that should be taken into consideration as well.

Are there perhaps some existsing templates for ZMI that can also be used
with Zope 3?


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope ZMI Templates

2008-01-15 Thread Jurian Botha

I'm currently developing some customized ZMI pages and I was hoping someone
could give me some insight into what the best way would be to do this.

I see that Zope 2 uses dtml methods to build the standard ZMI pages but as
far as I know (Zope 3 wise) I should rather be using Zope Page Templates to
build the pages.

I would also like the product to gracefully move on to Zope 3 in future, so
that should be taken into consideration as well.

Are there perhaps some existsing templates for ZMI that can also be used
with Zope 3?
-- 
View this message in context: 
http://www.nabble.com/Zope-ZMI-Templates-tp14734109p14734109.html
Sent from the Zope - General mailing list archive at Nabble.com.

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


Re: [Zope] ZMI

2005-11-28 Thread Rakotomandimby Mihamina
On Mon, 2005-11-28 at 17:08 +, Mark Smith wrote:
> I am using the correct user 
>   name and password.  I would be gratefu if anyone could suggest how
> to resolve this problem.

Reinitialize the zope admin password? or just create a zope admin user
with:

# /path/to/zopectl adduser a_name a_password

(Zope must be turned off first, you must have a shell acces to do that)

-- 
A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source & GPL).
Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
http://www.cps-project.org for downloads & documentation.
Free hosting of CPS groupware: http://www.objectis.org.

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


Re: [Zope] ZMI

2005-11-28 Thread José Henrique
Look at the "SECURITY.txt" file in your ZOPE/doc folder.  There you can find instructions to solve your problem.

José Henrique.2005/11/28, Mark Smith <[EMAIL PROTECTED]>:
I have had to reinstall Plone and Zope on my computer.  I now find that whenI try to log into ZMI and http://localhost:8080/manage comes up, it tells methat I am not authorised to view this resource.  I am using the correct user
  name and password.  I would be gratefu if anyone could suggest how toresolve this problem.Yours sincerelyMark Smith___Zope maillist  -  
Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope**   No cross posts or HTML encoding!  **(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev
 )
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZMI

2005-11-28 Thread Mark Smith
I have had to reinstall Plone and Zope on my computer.  I now find that when 
I try to log into ZMI and http://localhost:8080/manage comes up, it tells me 
that I am not authorised to view this resource.  I am using the correct user 
 name and password.  I would be gratefu if anyone could suggest how to 
resolve this problem.


Yours sincerely

Mark Smith


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZMI manage main and zpt to provide reasonable view of content type

2005-08-03 Thread David Pratt
Hi.  I have been working on a product in that works with filesystem 
content for CMF.  I have my content types developed and they are all 
registered and working fine but my hitch has to do with edit and views 
screens.  I want to emulate the way that the ZMI handles things because 
the manage_main screen is smart enough to display an edit area if 
content type is text/html etc. while it will display binary files 
without an edit area etc.


Where is manage_main for ZMI located to look at what it is doing so 
that I can potentially emulate its behavior in my edit and view ZPT?  I 
am not certain how many behaviors it has based on the type it gets - 
maybe there are really only a few.


Alternatively, if there are suggestions on what I could do in my ZPT to 
display the right view based on the object's content type, this would 
be quite welcome.  I don't want to resort to constructing a list of all 
content types (mime types)  and testing against these so am hoping I 
can hook into zope's functionality that is already doing this for ZMI.  
Many thanks.


David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zmi issues

2005-05-20 Thread Dieter Maurer
Yuri wrote at 2005-5-19 18:01 +0200:
> I'm doing an import of a large .zexp (from ZMI), and I see thay Zope is 
>first loading it all in memory, than doing the work of importing it!

How do you see this?

In fact, Zope does not work this way.
Instead it reads the zexp incrementally and as it reads builds
the Python object described by it.

But, it may not make that much of a difference.
Due to its persistency design, Zope must keep everything
in memory until a [sub-]transaction boundary.
As the Python object is likely to have a size in the order
of that of the "zexp", your memory requirement is in that order.

>I 
>mean, isn't it a little bit *inefficient? :)

What do you expect?

> Also, renaming a folder with a lot of zclasses in (40.000), takes a lot 
>of time. After 10 minutes, it was still there... and this is a 2,4 Ghz 
>P4 and 512 MB of Ram...

Zope objects are often identified by their paths.
Thus, if you rename some node, then the path of this node
and all its descendants is changed. To allow for the necessary
updates, Zope calls "manage_beforeDelete" followed by "manage_afterAdd"
for the renamed node and all its descendants.
This makes an operation expensive, you deem to be inexpensive...

> Can this be fixed/improved? :)

In principle, yes -- provided you do nowhere identify Zope objects
by their path. Especially, you do not use a (standard) catalog
(which does identify objects by their path).

When you know that nothing in your application depends on the path,
then you can override "manage_renameObject" to perform
the renaming without the call to "manage_beforeDelete" and
"manage_afterAdd".
Expect some minor non-trivialities...


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zmi issues

2005-05-19 Thread Hugo Ramos
Yellow,

Once I imported a zexp file bigger than 2GB... It took a while... :-)
Be sure to turn session timeout off!!! If you session expires or the
browser has some kind of problem it will give you a timeout error...

regards
hr


On 5/19/05, Yuri <[EMAIL PROTECTED]> wrote:
> Hi!
> 
>  I'm doing an import of a large .zexp (from ZMI), and I see thay Zope is
> first loading it all in memory, than doing the work of importing it! I
> mean, isn't it a little bit *inefficient? :)
> 
>  Also, renaming a folder with a lot of zclasses in (40.000), takes a lot
> of time. After 10 minutes, it was still there... and this is a 2,4 Ghz
> P4 and 512 MB of Ram...
> 
>  Can this be fixed/improved? :)
> 
>  TIA!
> *
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


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


[Zope] zmi issues

2005-05-19 Thread Yuri
Hi!
I'm doing an import of a large .zexp (from ZMI), and I see thay Zope is 
first loading it all in memory, than doing the work of importing it! I 
mean, isn't it a little bit *inefficient? :)

Also, renaming a folder with a lot of zclasses in (40.000), takes a lot 
of time. After 10 minutes, it was still there... and this is a 2,4 Ghz 
P4 and 512 MB of Ram...

Can this be fixed/improved? :)
TIA!
*
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )