[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Wed Jan 16 12:00:00 2008 UTC to Thu Jan 17 12:00:00 2008 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Jan 16 21:22:38 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-January/008961.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Jan 16 21:24:08 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-January/008962.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Jan 16 21:25:39 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-January/008963.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Jan 16 21:27:09 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-January/008964.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Jan 16 21:28:39 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-January/008965.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Request typing (to get the xmlrpc layer discussion finished)
On Thursday 20 December 2007, Ignas Mikalajunas wrote: In SchoolTool we used to start another server for REST to have a different Publication for REST calls. I like that approach best too. I decided to use it in z3c.rest. A custom publication object allows you to implement an API that makes most sense for a RESTive API. I am still playing around to see what the best API is though. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] Zope ZMI Templates
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. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a 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
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] Plone middle aligns all colums
If you've introduced tables into the overall layout tds will not align the content to the top by default. You'd need to add td {vertical- align: top} to your css. I doubt the problem has to do with a setting in Plone or Zope. It would be easier to trouble shoot this if there were a link to the page in question. On Jan 16, 2008, at 9:40 PM, Lars Hohmuth wrote: I have a weird problem with our Plone 2.5.3 test site after a new designer took over. Plone now middle aligns the content column and the portlets in the slot on the center line, instead of on top. --- | Left-slots| ||center || --- - We can sort of fix this by manually adding vertical-align: top; in the css. But my designer claims that he caused this by “changing a setting in Plone or the ZMI” and doesn’t remember which one. Since it’s not on the production site, it’s not a life and death situation, but any suggestions what might cause this are gratefully accepted. Google and the Plone site search yielded pretty much nothing. Thanks, Lars Hohmuth ___ 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
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. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a 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 )
[Zope] problem authenticating, even with emergency user
Hello A Zope site which is running fine, is refusing all authentication with the error below. I have tried the emergency user and restarted Zope, but the emergency user gets the same error: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 188, in publish_module_standard Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish Module ZPublisher.Publish, line 145, in publish Module Zope2.App.startup, line 222, in zpublisher_exception_hook Module ZPublisher.Publish, line 105, in publish Module ZPublisher.BaseRequest, line 446, in traverse Module ZPublisher.BaseRequest, line 550, in old_validation AttributeError: __getitem__ (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: getUserById) Receive Notifications of Incoming Messages Easily monitor multiple email accounts access them with a click. Visit http://www.inbox.com/notifier and check it out! ___ 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
Tom, Thanks but I think I am almost done. I have replaced the old style calls with id=Find id=Properties etc. by access the sequence. Then I added css code at the top of that same file (I think it is manage_tabs.dtml, I'm not on that computer right now). So now I can format the tabs anyway I want. There is also a little bit of javascript that checks window.parent.location and applies changes to the tabs if the user hasn't logged into the base directory.(only available to the admin). My thinking is that the zmi is battle tested. I'd rather use something that many people have already been using. Plus, from my perspective, it looks to me like the zmi just needs a little updating. Incorporating style sheets, etc. and it can have a new life. zope 3 people: zope zmi, dtml are fast and really useful, please don't toss these valuable tools! On Jan 17, 2008 6:25 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: 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. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a 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] problem authenticating, even with emergency user
On Jan 17, 2008, at 14:39 , Ben Bartrum wrote: Hello A Zope site which is running fine, is refusing all authentication with the error below. I have tried the emergency user and restarted Zope, but the emergency user gets the same error: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 188, in publish_module_standard Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish Module ZPublisher.Publish, line 145, in publish Module Zope2.App.startup, line 222, in zpublisher_exception_hook Module ZPublisher.Publish, line 105, in publish Module ZPublisher.BaseRequest, line 446, in traverse Module ZPublisher.BaseRequest, line 550, in old_validation AttributeError: __getitem__ (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: getUserById) I bet you're running a non-standard user folder, and for some reason the user folder instance is broken. If you can't find why it is broken and the broken user folder is at the root of your Zope instance then fixing it would involve work in the debugger to delete the old one and create a new standard user folder. jens ___ 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
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 style calls with id=Find id=Properties etc. by access the sequence. Then I added css code at the top of that same file (I think it is manage_tabs.dtml, I'm not on that computer right now). So now I can format the tabs anyway I want. There is also a little bit of javascript that checks window.parent.location and applies changes to the tabs if the user hasn't logged into the base directory.(only available to the admin). My thinking is that the zmi is battle tested. I'd rather use something that many people have already been using. Plus, from my perspective, it looks to me like the zmi just needs a little updating. Incorporating style sheets, etc. and it can have a new life. zope 3 people: zope zmi, dtml are fast and really useful, please don't toss these valuable tools! On Jan 17, 2008 6:25 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: 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. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a 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] BTreeFolder2 related
--On 17. Januar 2008 19:15:47 +0200 Dragos Chirila [EMAIL PROTECTED] wrote: Hi, What is the best way to delete all the objects inside an object derived from BTreeFolder2? manage_delObjects() -aj pgpRpbPgsoMgW.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] BTreeFolder2 related
Hi, What is the best way to delete all the objects inside an object derived from BTreeFolder2? Thank you very much, Dragos -- Dragos Chirila [EMAIL PROTECTED] (+4) 0722 395375 ___ 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
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 style calls with id=Find id=Properties etc. by access the sequence. Then I added css code at the top of that same file (I think it is manage_tabs.dtml, I'm not on that computer right now). So now I can format the tabs anyway I want. There is also a little bit of javascript that checks window.parent.location and applies changes to the tabs if the user hasn't logged into the base directory.(only available to the admin). My thinking is that the zmi is battle tested. I'd rather use something that many people have already been using. Plus, from my perspective, it looks to me like the zmi just needs a little updating. Incorporating style sheets, etc. and it can have a new life. zope 3 people: zope zmi, dtml are fast and really useful, please don't toss these valuable tools! On Jan 17, 2008 6:25 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: 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. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a 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 )