Re: [Zope-PAS] plonePAS and JAX-WS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25 Aug 2006, at 05:47, Serge Zagorac wrote: Hi All Is there any way or example how to configure plonePAS to consume a web service (in my case JAX-WS via SOAP ) in order to get user details? This won't be a configuration issue, it will be a coding issue. You don't mention specifically what consume a web service means, but you might be able to put together a Scriptable Multiplugin or write your own filesystem-based plugin to do the job. However, there is one big caveat. Making HTTP calls (or almost any other network request) out of Zope code during the execution of a web request is risky. The executing thread will wait until the external request has been answered, and if for whatever reason no answer is received it will hang forever. There are four threads available in a normal Zope configuration, the fourth time this happens your website will be unavailable and Zope must be restarted. A lot of care needs to be taken to ensure there are sensible timeouts on these external calls to prevent hangs. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFE7sWDRAx5nvEhZLIRAlG6AJ9sSjNcg2aeMpAkFjVEFyX/ACoTEACfRTh+ fJ8VKl3cXDKf7L+o0xCcqBs= =LwGy -END PGP SIGNATURE- ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
[Zope-PAS] Re: plonePAS and JAX-WS
On Aug 25, 2006, at 10:17 AM, Tres Seaver wrote: Zachery Bir wrote: On Aug 25, 2006, at 5:40 AM, Jens Vagelpohl wrote: On 25 Aug 2006, at 05:47, Serge Zagorac wrote: Hi All Is there any way or example how to configure plonePAS to consume a web service (in my case JAX-WS via SOAP ) in order to get user details? This won't be a configuration issue, it will be a coding issue. You don't mention specifically what consume a web service means, but you might be able to put together a Scriptable Multiplugin or write your own filesystem-based plugin to do the job. However, there is one big caveat. Making HTTP calls (or almost any other network request) out of Zope code during the execution of a web request is risky. The executing thread will wait until the external request has been answered, and if for whatever reason no answer is received it will hang forever. There are four threads available in a normal Zope configuration, the fourth time this happens your website will be unavailable and Zope must be restarted. A lot of care needs to be taken to ensure there are sensible timeouts on these external calls to prevent hangs. You can get around it, though, if you use something like Zasync. A bit heavy-handed, but it's there for ya. :^) You can't authenticate asynchronously -- the original request is stalled untill the out-of-process call returns, and there is no way to release the thread / connection pool it is using. Well, fine. Bring you reality into it. ;^) Zac ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
[ZWeb] Re: rough draft of site
This is concering the new zope foundation site draft we are focusing only structure NOT content. we are using properties to store memberships and will complete the list based on what jim gave us sometime ago (so its not a complete list) we are not going to create any software . If you all have any feedback on structure please let us know. regards sathya Martijn Faassen wrote: Hi there, In a somewhat parallel effort Zeomega has been helping us on getting a basic site up and running. I'm anxious to integrate this parallel effort into the main effort. The rough draft version of the foundation side made by Zeomega is based on the Apache Foundation site. It's here: http://www.zope.org/foundation/newfoundation I think to look at another foundation's site structure is a great idea. This should be helpful in fleshing out the structure of the foundation site. Obviously a lot of work needs to be done, both on the layout and content. The plans for those efforts I've already sketched out to the list. I think of the main things we can take home from this is the structure. Sathya, Zeomega's contact, also got the membership lists, which should prove useful. :) I've asked Sathya to join this list so we can have discuss matters here. Sathya's looking for feedback, so please go ahead! Regards, Martijn ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: volunteers wanted! zope foundation website as guinea pig
On 8/25/06, Tom Von Lahndorff [EMAIL PROTECTED] wrote: Yeah, thats the problem. Because IE6 doesnt fully support the hover function in CSS you need a javascript 'hack' to get a flyout to work. Nono, we don't WANT it to flyout. On-hover menus is a pain in the ass. We want it to flyout when we klick. That's the problem. ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: rough draft of site
foundation web team wrote: This is concering the new zope foundation site draft we are focusing only structure NOT content. Obviously structure and content (as well as good presentation) are all important. We can't really set up a good structure if we don't think about the content, too, right? we are using properties to store memberships and will complete the list based on what jim gave us sometime ago (so its not a complete list) we are not going to create any software . I think this is responding to my earlier, private feedback, where I was worried that a property on a page template was used to maintain the membership list, along with a python script in the ZODB. My suggestion is not to worry too much about the presentation of this list right now, and not worrying about the way it's stored. I don't think it's the most important problem we need to solve in the construction of the foundation website. If you all have any feedback on structure please let us know. Did you read my structure mail that I sent to this list previously? It's not feedback directly, but it discusses structure. I've just forwarded it to you; I'm not sure I did before. Regards, Martijn ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: volunteers wanted! zope foundation website as guinea pig
Tom Von Lahndorff wrote: Yeah, thats the problem. Because IE6 doesnt fully support the hover function in CSS you need a javascript 'hack' to get a flyout to work. It actually a very small and clean script, but an IE hack nonetheless. More info here: http://www.htmldog.com/articles/suckerfish/dropdowns/ I think we could have submenus display under the menu item once a section is clicked, but until IE gets it together (Im not reading too many promising reviews of IE7) we should probably avoid any 'IE hacks'. Instead of worrying about the drop-downs too much, I'd really like to see a template that uses a fairly standard left-hand-side navigation (perhaps with major categories on the top). www.plone.org uses this pattern, for instance. Regards, Martijn ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [ZWeb] Re: volunteers wanted! zope foundation website as guinea pig
Working on it. :) On Aug 25, 2006, at 6:59 AM, Martijn Faassen wrote: Tom Von Lahndorff wrote: Yeah, thats the problem. Because IE6 doesnt fully support the hover function in CSS you need a javascript 'hack' to get a flyout to work. It actually a very small and clean script, but an IE hack nonetheless. More info here: http://www.htmldog.com/articles/suckerfish/dropdowns/ I think we could have submenus display under the menu item once a section is clicked, but until IE gets it together (Im not reading too many promising reviews of IE7) we should probably avoid any 'IE hacks'. Instead of worrying about the drop-downs too much, I'd really like to see a template that uses a fairly standard left-hand-side navigation (perhaps with major categories on the top). www.plone.org uses this pattern, for instance. Regards, Martijn ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
RE: [Zope] Multiple conditions inside tales
Ok, so it was the tal inside this condition that contained the error, you were right, it was correct. Sorry for wasting your time. Thanks to Andreas and Dieter for their help anyway. J -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: 22 August 2006 17:49 To: [EMAIL PROTECTED]; 'Andreas Jung'; zope@zope.org Subject: RE: [Zope] Multiple conditions inside tales --On 22. August 2006 17:37:40 +0100 Jonathan Bowlas [EMAIL PROTECTED] wrote: So what if the first part evaluates to false? Which is what would happen in my case, it doesn't then test for the 2nd condition? J Did I say said? No, I didn't. And of course the second part will be evaluated if the first one evals to False. If you can provide a reproducable testcase that provides evidence, I'll believe in your original statement. Currently I don't :-) -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 )
Re: [Zope] asp in zope
On 8/23/06, Siddharth Sethi [EMAIL PROTECTED] wrote: Hi, hopefully someone can help me out, I have a html form that calls an asp file stored in the root of my plone site. When i click on the submit button which calls this asp file, it returns back the asp file in text format on my ie. Is there a plugin that i need to get in order to have asp run in zope? Why on earth would you wnat to do that? ASP is a nightmare of suckyness! -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.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 )
[Zope] Weird paths in the filesystem using Photo and ExtFile
Hi all, I am experimenting some problems with Photo/Photo Folder (or ExtFile) products in a fresh Zope instance. I have two different sites that share a very similar structure. Their virtual roots are sibling folders in the ZODB. Both have a Photo Folder called images, that are storing in the filesystem via ExtFile. The problem is that when a photo with a non-yet generated display is being called through the virtual url, the corresponding image is created in the filesystem as if the topmost folder was the virtual root of the site (namely $INSTANCE_HOME/var/photos/). If I call this photo through the real (non virtual) url, this topmost folder matches the ZODB root. For example, if I call these real urls: - http://zopeserver.com:8080/sites/site1/images/image.jpg?display=whatever - http://zopeserver.com:8080/sites/site2/images/image.jpg?display=whatever in the filesystem I would have something like: - $INSTANCE_HOME/var/photos/sites/site1/images/image.jpg/image_whatever.jpg - $INSTANCE_HOME/var/photos/sites/site1/images/image.jpg/image_whatever.jpg but if I call the same via the virtual url: - http://www.virtualsite1.com/images/image.jpg?display=whatever - http://www.virtualsite2.com/images/image.jpg?display=whatever I only get: $INSTANCE_HOME/var/photos/images/image.jpg/image_whatever.jpg both paths point to the same file! I think you understand why this worries me. Any hint would be greatly appreciated. Thanks, Pablo Relevant software installed: Linux Fedora Core 3 Zope: 2.9.4 Python: 2.4.3 ExtFile: 1.5.0-beta1 Photo: 1.3.1 PS: and BTW, the Zipupload feature in Photo Folder fails miserably for some reason. ___ 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] VerboseSecurity not working
HiI couldn't install VerboseSecurity on Zope 2.8.7 and Plone 2.1.3URL: file:ResourceRegistries/skins/ResourceRegistries/renderAllTheScripts.pt Line 10, Column 16 _expression_: not:'script/getInline' Names:{'container': PloneSite at /test, 'context': PloneSite at /test, 'default': Products.PageTemplates.TALES.Default instance at 0x0110BAF8, 'here': PloneSite at /test, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x010F6D28, 'nothing': None, 'options': {'args': (), 'state': Products.CMFFormController.ControllerState.ControllerState object at 0x04F2F150}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'request': HTTPRequest, URL= "">http://localhost:8080/test/login_form, 'root': Application at , 'template': FSControllerPageTemplate at /test/login_form, 'traverse_subpath': [], 'user': trip} Module Products.PageTemplates.Expressions, line 246, in __call__ Module Products.PageTemplates.TALES, line 221, in evaluate URL: file:ResourceRegistries/skins/ResourceRegistries/renderAllTheScripts.pt Line 10, Column 16 _expression_: standard:'script/getInline' Names:{'container': PloneSite at /test, 'context': PloneSite at /test, 'default': Products.PageTemplates.TALES.Default instance at 0x0110BAF8, 'here': PloneSite at /test, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x010F6D28, 'nothing': None, 'options': {'args': (), 'state': Products.CMFFormController.ControllerState.ControllerState object at 0x04F2F150}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'request': HTTPRequest, URL= "">http://localhost:8080/test/login_form, 'root': Application at , 'template': FSControllerPageTemplate at /test/login_form, 'traverse_subpath': [], 'user': trip} Module Products.PageTemplates.Expressions, line 185, in __call__ Module Products.PageTemplates.Expressions, line 173, in _eval Module Products.PageTemplates.Expressions , line 127, in _eval __traceback_info__: script Module Products.PageTemplates.Expressions, line 313, in restrictedTraverse __traceback_info__: {'path': ['getInline'], 'TraversalRequestNameStack': []} Module Products.VerboseSecurity.VerboseSecurityPolicy, line 151, in validate On 8/16/06, Sylvain Thénault [EMAIL PROTECTED] wrote: On Thursday 27 July à 20:10, Dieter Maurer wrote: Peter Bengtsson wrote at 2006-7-27 10:51 +0100: Why am I getting this on my zope 2.8.5?? 2006-07-27 10:34:07 ERROR Zope.SiteErrorLog http://localhost:8080/test/Real/MoreStatistics/index_html Traceback (most recent call last): File /usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/Publish.py, line 104, in publish object=request.traverse(path, validated_hook=validated_hook) File /usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/BaseRequest.py, line 461, in traverse response.unauthorized() File /usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/HTTPResponse.py, line 685, in unauthorized raise Unauthorized, m Unauthorized: strongYou are not authorized to access this resource./strongp Username and password are not correct. This Unauthorized is not generated by Zope security mechanism but by the ZPublisher. Apparently, VerboseSecurity does not hook in the ZPublisher.VerboseSecurity is included in zope 2.8.x and it seems like having the zope 2.7 VerboseSecurityproduct into a zope 2.8 instance break the security machinery.--Sylvain Thénault LOGILAB, Paris (France)Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formationsDéveloppement logiciel sur mesure: http://www.logilab.fr/servicesPython et calcul scientifique: http://www.logilab.fr/science___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 )-- michael ___ 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] VerboseSecurity not working
As Sylvain already mentioned (see the end of your message below)Verbose Security is already included in Zope 2.8x. I imagine that trying to install it again would cause some problems. Jonathan - Original Message - From: michael nt milne To: zope list user Sent: Friday, August 25, 2006 4:54 PM Subject: Re: [Zope] VerboseSecurity not working HiI couldn't install VerboseSecurity on Zope 2.8.7 and Plone 2.1.3 URL: file:ResourceRegistries/skins/ResourceRegistries/renderAllTheScripts.ptLine 10, Column 16_expression_: not:'script/getInline'Names:{'container': PloneSite at /test, 'context': PloneSite at /test, 'default': Products.PageTemplates.TALES.Default instance at 0x0110BAF8, 'here': PloneSite at /test, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x010F6D28, 'nothing': None, 'options': {'args': (), 'state': Products.CMFFormController.ControllerState.ControllerState object at 0x04F2F150}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'request': HTTPRequest, URL= "">http://localhost:8080/test/login_form, 'root': Application at , 'template': FSControllerPageTemplate at /test/login_form, 'traverse_subpath': [], 'user': trip} Module Products.PageTemplates.Expressions, line 246, in __call__ Module Products.PageTemplates.TALES, line 221, in evaluateURL: file:ResourceRegistries/skins/ResourceRegistries/renderAllTheScripts.ptLine 10, Column 16_expression_: standard:'script/getInline'Names:{'container': PloneSite at /test, 'context': PloneSite at /test, 'default': Products.PageTemplates.TALES.Default instance at 0x0110BAF8, 'here': PloneSite at /test, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x010F6D28, 'nothing': None, 'options': {'args': (), 'state': Products.CMFFormController.ControllerState.ControllerState object at 0x04F2F150}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x04F2CB98, 'request': HTTPRequest, URL= "">http://localhost:8080/test/login_form, 'root': Application at , 'template': FSControllerPageTemplate at /test/login_form, 'traverse_subpath': [], 'user': trip} Module Products.PageTemplates.Expressions, line 185, in __call__ Module Products.PageTemplates.Expressions, line 173, in _eval Module Products.PageTemplates.Expressions , line 127, in _eval__traceback_info__: script Module Products.PageTemplates.Expressions, line 313, in restrictedTraverse__traceback_info__: {'path': ['getInline'], 'TraversalRequestNameStack': []} Module Products.VerboseSecurity.VerboseSecurityPolicy, line 151, in validate On 8/16/06, Sylvain Thénault [EMAIL PROTECTED] wrote: On Thursday 27 July à 20:10, Dieter Maurer wrote: Peter Bengtsson wrote at 2006-7-27 10:51 +0100: Why am I getting this on my zope 2.8.5?? 2006-07-27 10:34:07 ERROR Zope.SiteErrorLog http://localhost:8080/test/Real/MoreStatistics/index_html Traceback (most recent call last): File "/usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/Publish.py", line 104, in publish object=request.traverse(path, validated_hook=validated_hook) File "/usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/BaseRequest.py", line 461, in traverse response.unauthorized() File "/usr/HOME/peterbe/zope/zope285/lib/python/ZPublisher/HTTPResponse.py", line 685, in unauthorized raise Unauthorized, m Unauthorized: strongYou are not authorized to access this resource./strongp Username and password are not correct. This "Unauthorized" is not generated by Zope security mechanism but by the ZPublisher. Apparently, "VerboseSecurity" does not hook in the ZPublisher.VerboseSecurity is included in zope 2.8.x and it seems like having the zope 2.7 VerboseSecurityproduct into a zope 2.8 instance break the security machinery.--Sylvain Thénault LOGILAB, Paris (France)Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formationsDéveloppement logiciel sur mesure: http://www.logilab.fr/servicesPython et calcul scientifique: http://www.logilab.fr/science___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 )-- michael ___Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! **(Related lists -
[Zope] Re: VerboseSecurity not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michael nt milne wrote: Hi I couldn't install VerboseSecurity on Zope 2.8.7 and Plone 2.1.3 You don't need it. The functionality is folded into Zope 2.8.x. See the 'verbose-security' option in the skeleton zope.conf. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE73CO+gerLs4ltQ4RAqo7AKCjuPcG1oY1+7bsjM2aJjiYAlOaTwCgs30Y N+TitNEuqXWS7UIBH4o1R94= =3K33 -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: VerboseSecurity not working
--On 25. August 2006 17:50:06 -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michael nt milne wrote: Hi I couldn't install VerboseSecurity on Zope 2.8.7 and Plone 2.1.3 You don't need it. The functionality is folded into Zope 2.8.x. ..which is clearly documented on the VS homepage :-) http://hathawaymix.org/Software/VerboseSecurity -aj pgpuhNrlUcn3V.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 )