[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Move to ZODB 3.4.1a5.
Log message for revision 33290: Move to ZODB 3.4.1a5. Changed: _U Zope/branches/Zope-2_8-branch/lib/python/ _U Zope/branches/Zope-2_8-branch/utilities/ -=- Property changes on: Zope/branches/Zope-2_8-branch/lib/python ___ Name: svn:externals - zope svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/BTrees Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/Persistence persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZopeUndo zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-1.1 + zope svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/BTrees Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/Persistence persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZopeUndo zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-1.1 Property changes on: Zope/branches/Zope-2_8-branch/utilities ___ Name: svn:externals - ZODBTools svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/scripts + ZODBTools svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/scripts ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/ Merge rev 33290 from 3.4 branch.
Log message for revision 33291: Merge rev 33290 from 3.4 branch. Move to ZODB 3.4.1a5. Changed: _U Zope/trunk/lib/python/ _U Zope/trunk/utilities/ -=- Property changes on: Zope/trunk/lib/python ___ Name: svn:externals - zope svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/BTrees Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/Persistence persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/ZopeUndo zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-1.1 + zope svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/BTrees Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/Persistence persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/ZopeUndo zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-1.1 Property changes on: Zope/trunk/utilities ___ Name: svn:externals - ZODBTools svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a4/src/scripts + ZODBTools svn://svn.zope.org/repos/main/ZODB/tags/3.4.1a5/src/scripts ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope] Re: undo many things
Rakotomandimby (R12y) Mihamina wrote: I made the update, then we saw that we had to undo it, because some documents behaved wrong. You can guess we made many test before deciding to undo the upgrade. So we have to get back far in the past... very far... Four pages. I dont know how to use script as Dieter suggested. Is there any tips to start? I actually found this recently myself :-) I found that once I hit the earlier transactions link once, having opened the main ZMI frame in it's own window/tab, I could see the URL being used to do the batching. From that, I tweaked the URL to show many more transactions per page and so was unable to undo a lot of transactions in a way very similar to that you describe. The hardest part was selecting all the right checkboxes ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] userFolder that holds user's email
Haim Ashkenazi wrote: I'm looking for a zope (not plone) userFolder that can hold the user's email and perhaps full name. It should be the same authentication method, but with additional fields. Do I have to write one myself or are there already products that have this feature? SimpleUserFolder from http://www.simplistix.co.uk does exactly this :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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: aggreagating and merging logs under Zope 2.7.X
Dennis Allison wrote: Well, I am not really ready to address the multiple concurrent writers problem across NFS and all the issues it entails. I'd somehow dismissed the SysLog solution, but I can certainly configure to use it. Thanks for the pointer. Failing that, just log to seperate files and have a periodic cron jop staple them all together. AWStats comes with a very efficient script for doing just this :-) (see stats.zope.org ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Versioned connectors from ZODB
Tim, . . . Versions solves this for me. Maybe like death would solve my problem with overdue taxes wink. I did get the versioned connections to work (so far), BUT, I will definately take your word on it and seek another solution :) snip Like, e.g., in the ZODB 3.2 line, otherdb = ZODB.DB(storage, cache_size=100, pool_size=2) Then connections obtained via otherdb.open() will hang if two threads already have connections from `otherdb` (that's the effect of `pool_size`), and will have ZODB memory caches that strive to keep no more than 100 objects in memory across transaction boundaries (the effect of `cache_size`). snip to double check: otherdb = ZODB.DB(existingdb._storage, cache_size=100, pool_size=2) is ok? It seems that you can create more than one DB instance that shares one storage object. I hit upon the idea of creating another DB instance and sharing the storage object myself yesterday, but wasn't sure what the repurcussions will be. Your post answers most of my questions. I have one left, though: if I do decide to share the storage object (and not go ZEO for whatever reason), will the caches between the two DB objects not get out of sync? In other words, will one DB object know to invalidate objects in it's caches should that object be changed through another DB instance? I know ZEO does this for you, but I'd like to know what the case would be for two DBs in one process. My other option is to create the connections by hand (that way I can control the cache size easily) and keep my own little pool of connections with a modified close method that does not put my connections back into the normal pool. But I'm afraid I may end up with a new can of worms that way. This answer assumes you're using ZODB directly. I don't know details of how to spell it from within a Zope application (if that's what you need -- unsure). I use the ZODB directly, but from within Zope. The connections are used in long-running processes that are not nescesarily browser-triggered. Some of them are scheduled events that are started up in their own thread. From there the need to get new connections to the ZODB. I have quite a bit of experience working safely with multiple threads and the ZODB, so I'm sure I have that part right. My problem had more to do with cache contamination and reserving special connections for specific processes. Thanks for the reply Etienne ___ 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] Customizing Zope FTP server
Hi, I'm currently working on a Zope site, providing FTP access to some of it's sub-folders. My questions are : - is it possible to customise Zope FTP server so that a specific banner and a specific message are displayed on login ? - is it possible to redirect a user to a specific folder after a successful connection ? Thanks for any help, Thierry ___ 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] LDAPUSerFolder permission problem
I'm trying to access the getProperty() method of the LDAPUser class in a Python script, in order to access the Active Directory email address of the user. There is no problem with this, if I use the method on the current active user. However, it doesn't work when I attempt to use the method on another property. The output of VerboseSecurity is: *Error Type: Unauthorized* *Error Value: Your user account does not have the required permission. Access to 'getProperty' of nwuser denied. Your user account, abuser, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous', 'Authenticated', 'User'].* It appears that the currently authenticated used has the 'View' permission (required to use getProperty) on itself, but not for other users. I'm not sure how to change this. In order to get around this problem, I've tried giving the script a Proxy role of Manager. However, when I do this, i get the following output from VerboseSecurity: *Error Type: Unauthorized* *Error Value: The owner of the executing script is defined outside the context of the object being accessed. The script has proxy roles, but they do not apply in this context.. Access to 'getProperty' of nwuser denied. Access requires one of the following roles: ['Manager']. The executing script is (PythonScript at /DCARF/Forms/initialContact/initialContact), owned by admin1. * ** I'm not sure why this is occurring. Giving the script a proxy role of Manager should get around the first problem, but I'm not sure why it doesn't. Any ideas what is causing this? ___ 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] Product logging to Postgres
I am wanting to log a product to postgres database. I want to write to the log from my Script Python methods (in skins) when certain actions occur. The product itself uses a number of zsql methods. Can I import existing zope logging classes in my Script Python to to this or will I need to rely on external methods. Any recommendations or pointers to anything similar would be appreciated. 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] LDAPUSerFolder permission problem
On 12 Jul 2005, at 14:03, Nicholas Watmough wrote: I'm trying to access the getProperty() method of the LDAPUser class in a Python script, in order to access the Active Directory email address of the user. There is no problem with this, if I use the method on the current active user. However, it doesn't work when I attempt to use the method on another property. The output of VerboseSecurity is: *Error Type: Unauthorized* *Error Value: Your user account does not have the required permission. Access to 'getProperty' of nwuser denied. Your user account, abuser, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous', 'Authenticated', 'User'].* It appears that the currently authenticated used has the 'View' permission (required to use getProperty) on itself, but not for other users. I'm not sure how to change this. I'm assuming that the other user is not wrapped. How are you getting that other user object? 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 )
[Zope] How to create Version Object
I'm using the book The Book of Zope: How to Build and Deliver Web Applications to learn Zope. I'm on the chapter on Versions. Neither the book nor Zope documentation explains exactly how to create a version. Thank you in advance for your help. ___ 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] How to create Version Object
On 12 Jul 2005, at 15:28, Charlene wrote: I'm using the book The Book of Zope: How to Build and Deliver Web Applications to learn Zope. I'm on the chapter on Versions. Neither the book nor Zope documentation explains exactly how to create a version. That's probably your luck. They are deprecated, unsupported, and carry the risk of data loss. So you should not be using them, anyway :) 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] How to create Version Object
On 7/12/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 12 Jul 2005, at 15:28, Charlene wrote: I'm using the book The Book of Zope: How to Build and Deliver Web Applications to learn Zope. I'm on the chapter on Versions. Neither the book nor Zope documentation explains exactly how to create a version. That's probably your luck. They are deprecated, unsupported, and carry the risk of data loss. So you should not be using them, anyway :) In fact, Charlene probably can't figure out how to sue them because newer versions of Zope have removed them completely. :) ___ 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] How to create Version Object
Except in the documentation. Which made it even more confusing. I guess I'll skip this chapter of the book. Thanks. Charlene Lennart Regebro wrote: On 7/12/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 12 Jul 2005, at 15:28, Charlene wrote: I'm using the book The Book of Zope: How to Build and Deliver Web Applications to learn Zope. I'm on the chapter on Versions. Neither the book nor Zope documentation explains exactly how to create a version. That's probably your luck. They are deprecated, unsupported, and carry the risk of data loss. So you should not be using them, anyway :) In fact, Charlene probably can't figure out how to sue them because newer versions of Zope have removed them completely. :) ___ 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] How to create Version Object
On 12 Jul 2005, at 19:57, Charlene wrote: Except in the documentation. Which made it even more confusing. I guess I'll skip this chapter of the book. Books about fast-evolving software always carry the big risk of becoming at least partially obsolete quickly. Not much one can do about that. 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 )
[Zope] Re: Customizing Zope FTP server
On Tue, Jul 12, 2005 at 12:54:21PM +0200, Thierry FLORAC wrote: | | Hi, | | I'm currently working on a Zope site, providing FTP access to some of | it's sub-folders. | My questions are : | - is it possible to customise Zope FTP server so that a specific banner | and a specific message are displayed on login ? Sure it is. For zope 2.7.5 look in lib/python/ZServer/FTPServer.py on line 484. Change the text to be whatever you want. No recompilation necessary (just restart zope)! (I just happen to have 2.7.5 handy on the machine I'm sitting at right now) | - is it possible to redirect a user to a specific folder after a | successful connection ? I don't know. Perhaps you can add a line in there to invoke a 'cwd' command. Most likely you can, if you read the code enough to understand what it is doing. (it's python code, it's not that hard to read :-)) HTH, -D PS. this is the approach I would use to achieve a goal like this, especially if a google search didn't give the information I need -- look at the source and figure out a) if there is a configuration for what I want and b) am I willing to make the modifications (hard-code it) if there isn't -- Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. Albert Einstein www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital 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] Re: ldap authentication with apache or LDAPUserFolder?
On Mon, Jul 11, 2005 at 01:01:13PM -0500, Tim Suter wrote: | Sorry Marco the reply to all button eluded me once again: | | I deleted the access file and recreated it so I could get ready to | delete all instances of the old LDAPUserFolder. This has to been done | prior to migration of Data.fs as the new Zope 2.8 isn't compatible with | the old LDAPUserFolder. | | Now, after commenting out the apache lines below: | | #location /Zope | #AuthName Knowledge Access | #AuthType Basic | #AuthLDAPURL ldap://X.X.org:389/o=X.org?uid?sub? | (objectClass=person) | #require group cn=caitstaff,ou=Groups,o=X.org | #/location | | I can type in the URL for the knowledge base and it takes me straight to | the index_html page without authentication unlike before. However, | after clicking the Manage Zope link, then you must enter in credentials, | in order to access the ZMI of which the root folder contains the | acl_users folder with the LDAPUserFolder configuration. | Does this tell me that LDAPUserFolder is being handed the | credentials via apache through some sort of redirect? No, it means that the index_html object has the View permission granted to Anonymous. Therefore zope didn't need you to authenticate because you already had enough privileges. The other option is that your browser remembered your credentials for that site and submitted them without asking you. -D -- ...the word HACK is used as a verb to indicate a massive amount of nerd-like effort. -Harley Hahn, A Student's Guide to Unix www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital 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] Reading lines from a Zope File object
J Cameron Cooper wrote: Yes, forgot that caveat. For large files, 'data' can return a Pdata, a list of strings. For small files, it returns a string. Always doing 'str' is a good idea. Well, there's a reason for PData ;-) str'ing a large file will use lots of memory... str'ing lots of large files in one transaction will topple your machine! Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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: Versioned connectors from ZODB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Peters wrote: [Etienne Labuschagne] I did get the versioned connections to work (so far), BUT, I will definately take your word on it and seek another solution :) If that works for you, don't let nay-sayers scare you away. I don't think there are any reports of version bugs open in the Zope collector at present -- but that could just mean that everyone stays away from them now. The community has grown averse to using versions because they interact poorly with content catalogs (by locking the individual BTree buckets in the catalog's indexes). If Etienne's need doesn't involve touching the catalog, or if he can affort to do catalog-munging updates only within a version, then versions will work as designed. They are still a nice way to experiment with customizing ZPT, etc. (which won't typically touch the catalog). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC1IRT+gerLs4ltQ4RAqSBAKCGAwmk5l1mCTIDGC1ld2VMDj1ePgCeJwcF BCsoIDBmP1jKKldsufDvR3c= =pyA/ -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 )