[Zope-dev] Refresh bug revisited
Now I have a scenario in which I can't get the refresh of a Python Product to work. I have a Product that don't define any addable objects only base classes (EasyCore). I it I have a class EasyObjectLink which inherits from Persistence import Persistent. If I refresh EasyCore Persistent will be None. Because Persistent isn't a Product it self it can't be explicitly added to be refreshed? I will try to reproduce this in a smaller package (I have a refresh bug product I'm tryning to pin down this problem in). Best Regards, Johan Carlsson -- Easy Publisher Developers Team Johan Carlsson [EMAIL PROTECTED] Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] SSL Support
Does Zope support SSL? Is there a way I can enable/activate that support from a product? -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] ZPublisher.Client and encrypted passwords
Hi, I need to make an authenticated call from one Zope server to another. Although the two servers share most of their object trees (including the main user folder) through a common ZEO ClientStorage, I have to call the script on a _specific_ machine, since it will make changes to the local file system. So basically, I want to do something similar to calling http://currentUID:[EMAIL PROTECTED]/makeLocalChanges Now my problem(I'm using ZPublisher.Client): I have to make that call with the current (!) user's name and password (which are stored on both machines thanks to the ClientStorage) but the passwords in my user folder are encrypted - which I had thought was a (TM) good thing. :-) So calling _getPassword() on the user object gives me something that starts with {SHA}, which ZPublisher.Client.call() won't eat - it expects a plain password and then does the usual base64. How can I accomplish this? I figure I either need to - find a way to get the unencrypted password. I consider this the less elegant (and less secure) approach: I don't want to _know_ the current user's password, I just want to _use_ it... :-) - use a different approach to call the other server (like passing a copy of the current Auth header or something...) I'm not sure how to do either... Thank you very much for your help, Danny ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] ZPublisher.Client and encrypted passwords
On March 26, Danny W. Adair wrote: - use a different approach to call the other server (like passing a copy of the current Auth header or something...) BaseRequest._auth holds the original auth header, so you can just forward it along. a. -- Adrian van den Dries [EMAIL PROTECTED] Development team www.dev.flow.com.au FLOW Communications Pty. Ltd. www.flow.com.au ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] ZConfig 1.0 release
I've just released ZConfig 1.0 for people who'd like to try it out outside of Zope. Chris McDonough will be presenting our paper on ZConfig at PyCon DC on Thursday; be sure to catch it! ZConfig is a configuration library intended for general use. It supports a hierarchical schema-driven configuration model that allows a schema to specify data conversion routines written in Python. ZConfig's model is very different from the model support by the ConfigParser module found in Python's standard library, and is more suitable to configuration-intensive applications. ZConfig schema are written in an XML-based language and are able to import schema components provided by Python packages. Since components are able to bind to conversion functions provided by Python code in the package (or elsewhere), configuration objects can be arbitrarily complex, with values that have been verified against arbitrary constraints. This makes it easy for applications to separate configuration support from configuration loading even with configuration data being defined and consumed by a wide range of separate packages. ZConfig is licensed under the Zope Public License, version 2.0. See the file LICENSE.txt in the distribution for the full license text. Information on the latest released version of the ZConfig package is available at http://www.zope.org/Members/fdrake/zconfig/ Reference documentation is available in the ZConfig/doc/ directory of the distribution. -Fred -- Fred L. Drake, Jr. fred at zope.com PythonLabs at Zope Corporation ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] ZPublisher.Client and encrypted passwords
At 10:04 AM 3/26/2003 +1100, Adrian van den Dries wrote: On March 26, Danny W. Adair wrote: - use a different approach to call the other server (like passing a copy of the current Auth header or something...) BaseRequest._auth holds the original auth header, so you can just forward it along. Thanks. How would I do that? ZPublisher.Client.call() is very convenient but only takes url,username,pwd... Is there a workaround, maybe with urllib? Thanks you, Danny ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] ZPublisher.Client and encrypted passwords
On March 26, Danny W. Adair wrote: Thanks. How would I do that? ZPublisher.Client.call() is very convenient but only takes url,username,pwd... import base64 user, pass = base64.decodestring(req._auth.split(' ')[1]).split(':') a. -- Adrian van den Dries [EMAIL PROTECTED] Development team www.dev.flow.com.au FLOW Communications Pty. Ltd. www.flow.com.au ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] ZPublisher.Client and encrypted passwords
At 10:23 AM 3/26/2003 +1100, Adrian van den Dries wrote: On March 26, Danny W. Adair wrote: Thanks. How would I do that? ZPublisher.Client.call() is very convenient but only takes url,username,pwd... import base64 user, pass = base64.decodestring(req._auth.split(' ')[1]).split(':') Nice. Thank you! Btw, I changed pass to pwd :-) Danny ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] ZPublisher.Client and encrypted passwords
Danny W. Adair wrote: At 10:23 AM 3/26/2003 +1100, Adrian van den Dries wrote: On March 26, Danny W. Adair wrote: Thanks. How would I do that? ZPublisher.Client.call() is very convenient but only takes url,username,pwd... import base64 user, pass = base64.decodestring(req._auth.split(' ')[1]).split(':') Nice. and then when the users's password contains a ':' ... ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )