Re: [Zope-dev] case insensitive sorts
Dieter Maurer wrote: Andy McKay writes: what does anyone else think I would not like it. Why not? ;-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Search Interface [was 'case insensitive sorts']
Rik Hoekstra wrote: Hm, reading this... just a loose comment. In light of the awkward search interface of ZCatalogs, would it be a good idea to make a search interface for ZCatalog ZPatterns based? T I'm starting to feel like a stuck record on this, but lots of people seem to be asking for it in their own way... ;-) If the ZSearch Interface was properly documented and fully featured (ie defined how you search an object that supports the interface, and how you would index objects using that interface) then we wouldn't be stuck with the ZCatalog. It would enable people to write SQLIndexers, ZPatterns-based Catalogs and anything else they want, all of which would be freely interchangeable with the ZCatalog. Comments? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] CVS emergency_user bug
z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] CVS emergency_user bug
Robin Becker wrote: z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? No, it is not ok. :-) Have you updated AccessControl/User.py as well? If you have, this exception should not occur. Are you using special user folders? What's your setup? Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] case insensitive sorts
Chris Withers wrote: Who thinks the default python sort should stay like it is? Who thinks it should change? (reasons of course would be helpful, particularly if you want it to stay like it is ;-) Python's sort() lets you sort based on not only strings but also tuples, lists, and numbers, which is a very useful feature. Thus sort() is intended to be a highly generalized method. It is useful but not ideal for sorting text strings. What you *really* want is a second method, perhaps in a new module (called "textops" or something similar) that would also include multilingual text splitters and other utilities for working with human-readable text. BTW have you ever tried this? data = [[], (), 0, '', {}] data.sort() print data The one thing I wonder is whether the sort order is consistent between different versions of Python. I get: [0, {}, [], '', ()] Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] case insensitive sorts
On Thu, 07 Dec 2000 10:54:06 -0500, Shane Hathaway [EMAIL PROTECTED] wrote: The one thing I wonder is whether the sort order is consistent between different versions of Python. I actually have a Collector bug report on exactly this question. http://classic.zope.org:8080/Collector/1219/view (Status: pending. and has been for 8 months :-( In reality, I think it is only a theoretical problem. The current implementation takes much more care than it is required to by the language reference. Indeed, extra effort was taken in Python 2.0's implementation of Unicode. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] file references
Dan Sashko wrote: ~~~sorry for double post if you get it twice... I think I sent it first from the wrong email address is there a way in zope to reference a document on a server without having it to be in the zope database??? if I want to display say a microsoft document, with content type of application/msword so that the Internet explorer displays it as formated word document and so that it can be saved back to server??? or is there other ways of accomplishing the same thing? thank you for any help Dan S. You can view access files in a local file system through Zope using the LocalFS product. You should also be able to access shares mounted from a remote server through this as well (nfs, smb, etc). However this will not let you save the document back once it is opened. For this you could perhaps use WebDAV ("Web Folders" in MS-speak), although I am unsure whether LocalFS supports this. My guess would be that it does. You will need IE5/Office 2000 for the WebDAV support on the client side, Zope already has the server-side support built in. Another perhaps better option would be to simply share the files via smb and link to them from the Zope pages via a "file://" link that opens them directly off the file server rather than through Zope. This would prevent you from having the jerry-rig Zope into being a file server. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] CVS emergency_user bug
In article [EMAIL PROTECTED], Shane Hathaway [EMAIL PROTECTED] writes Robin Becker wrote: z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? No, it is not ok. :-) Have you updated AccessControl/User.py as well? If you have, this exception should not occur. Are you using special user folders? What's your setup? Shane I have a global update process; it should be updating from the standard CVS Zope2, but I've been copying Extensions around so maybe that's bombing it. -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] CVS emergency_user bug
Robin Becker wrote: In article [EMAIL PROTECTED], Shane Hathaway [EMAIL PROTECTED] writes Robin Becker wrote: z2.py makes references to AccessControl.User.emergency_user which causes an exception. Is it ok to use SpecialUsers.super instead? No, it is not ok. :-) Have you updated AccessControl/User.py as well? If you have, this exception should not occur. Are you using special user folders? What's your setup? Shane I have a global update process; it should be updating from the standard CVS Zope2, but I've been copying Extensions around so maybe that's bombing it. Actually cvs.zope.org has been having some file corruption problems yesterday and today. You may want to perform a manual update to resolve any issues. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] virtual domains
Josh Zeidner wrote: Hello, Is it possible to configure zope for "virtual domains"? For instance, can I have one zope installation serve several domains? How do I configure this? http://www.zope.org/Members/4am/SiteAccess2 cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SQLAlias Memory Leak?
OK, I've put this into the Collector. I'm intrigued as to what the operating procedure is with the Collector though - there appear to be a large number of Pending jobs. Does that mean that Digital Creations haven't even looked at them, or that they just haven't done anything about them? http://classic.zope.org:8080/Collector/1772/view This is causing big problems with our site, and we need to resolve it pretty desperately. I guess the another solution would be to ensure that all calls to SQL columns are the same case as in the database, but with around 500 ZSQLMethods - that is a daunting task. -d On Wed, Dec 06, 2000 at 03:08:33PM -0800, Jon Prettyman wrote: I've seen this as well under DCOracle. -jon Dyon Balding [EMAIL PROTECTED] writes: OK, I've had more of a hack at this, and I've narrowed the problem down a little. It appears that any access to an SQLAlias object causes it to not be correctly released. The SQLAlias objects means that you can access column names using a different case to how they are stored in the database. For example, we store users in a users table in the database, with column names like USERNAME, but they are accessed with: dtml-var username, this causes the SQLAlias objects to stick around. One solution to our problem is to just do a dtml-var USERNAME instead. However that doesn't solve the problem with this "feature" of being able to call it with a different case. This is a fairly easy bug to reproduce, on my setup at least :). I have tested it with ZSQLRelay and ZODBDA both talking to SQLServer, and with ZPyGreSQLDA talking to PostgreSQL. I would appreciate it if someone else can reproduce the bug, and I'll put it in the Collector I guess. thanks -d -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] case insensitive sorts
But thats a result of the sorting... anyway I have in and tree patched, I'll post them tonight when I get home and let people do what they want. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 07, 2000 12:00 PM Subject: Re: [Zope-dev] case insensitive sorts Chris Withers writes: Dieter Maurer wrote: Andy McKay writes: what does anyone else think I would not like it. Why not? ;-) I would not like to see this sort order in the management screens, because I use capitalization to ensure that essential objects are at the top of the object list. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] case insensitive sorts
3. ZCatalog stores objects in a pre-sorted order. Changing the sort order of any object (not just strings) would break *all* existing ZCatalog instances that store mixed case strings. (and other applications too - the python language reference documents that this assmption is safe at least until python3k) Looking at this and other reasons I won't try to hack ZCatalog. I'll stick to making lower case string indexes Seems the safest all around. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Linux Zope - Win2K SQL Server?
I'm still trying to figure out what the missing pieces are... if anyone else has gotten a Linux Zope talking to a Win2K SQL Server 2000, I would appreciate some guidance. It seems I would have to write my own Product from scratch to do this, no matter what. None of the ODBC Products seem to be available for Unix, and ODBC from Unix - Windows will require additional software like EasySoft's ODBC Bridge anyway. Or I could just not use ODBC at all and make some Product customized to MS SQL Server. Some may suggest using ActiveState's Perl Methods for Zope and DBD::Proxy. :) It's a possibility, but I'd like to see if more conventional solutions exist. -- Neil Kandalgaonkar, ActiveState ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Linux Zope - Win2K SQL Server?
Use the Sybase client libraries, with ZSybaseDA. We do that here, and it works fine (but not for much longer, byebye sqlserver...) Or FreeTDS, but I don't think it's thread-safe, so you'll need to use a Thunked adaptor. "Neil K" wrote I'm still trying to figure out what the missing pieces are... if anyone else has gotten a Linux Zope talking to a Win2K SQL Server 2000, I would appreciate some guidance. It seems I would have to write my own Product from scratch to do this, no matter what. None of the ODBC Products seem to be available for Unix, and ODBC from Unix - Windows will require additional software like EasySoft's ODBC Bridge anyway. Or I could just not use ODBC at all and make some Product customized to MS SQL Server. Some may suggest using ActiveState's Perl Methods for Zope and DBD::Proxy. :) It's a possibility, but I'd like to see if more conventional solutions exist. -- Neil Kandalgaonkar, ActiveState ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Linux Zope - Win2K SQL Server?
I am currently running Zope - ZSQLRelayDA - SQLRelay+FreeTDS - SQLServer on NT. It works, but not particularly robustly it would seem. -d On Thu, Dec 07, 2000 at 02:57:28PM -0800, Neil K wrote: I'm still trying to figure out what the missing pieces are... if anyone else has gotten a Linux Zope talking to a Win2K SQL Server 2000, I would appreciate some guidance. It seems I would have to write my own Product from scratch to do this, no matter what. None of the ODBC Products seem to be available for Unix, and ODBC from Unix - Windows will require additional software like EasySoft's ODBC Bridge anyway. Or I could just not use ODBC at all and make some Product customized to MS SQL Server. Some may suggest using ActiveState's Perl Methods for Zope and DBD::Proxy. :) It's a possibility, but I'd like to see if more conventional solutions exist. -- Neil Kandalgaonkar, ActiveState ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Linux Zope - Win2K SQL Server?
I'm still trying to figure out what the missing pieces are... if anyone else has gotten a Linux Zope talking to a Win2K SQL Server 2000, I would appreciate some guidance. It seems I would have to write my own Product from scratch to do this, no matter what. None of the ODBC Products seem to be available for Unix, and ODBC from Unix - Windows will require additional software like EasySoft's ODBC Bridge anyway. Or I could just not use ODBC at all and make some Product customized to MS SQL Server. A while back I had to do a job where I needed ODBC from Windows - Linux. I tried a product called iODBC and some other open-source ODBC data manager. Never could get the data manager configured. I would suggest sticking with ODBC. Here is a earlier post on the subject that might help. http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/11309A0077896561 Some may suggest using ActiveState's Perl Methods for Zope and DBD::Proxy. :) It's a possibility, but I'd like to see if more conventional solutionsexist. Sounds painful :-0 -Jimbo ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Significance of the ZODB split?
On Fri, 8 Dec 2000, Robin Becker wrote: Anyone know why AM Kuchling needs to split off a Sourceforge project based on ZODB? I don't think it's a "split", but AMK is using ZODB internally at his job, and externally with his own projects, so I can see him wanting to have some control over the distribution that he uses. Other than that, there could be other reasons, we, for example, do not provide a mechanism for community checkin privledges, Sourceforge does. I don't think we have a ZODB specific mailing list, sourceforge offers this. That being said, I'm pretty sure we've allways kept up with Andrew's patches and suggestions, and we'd be happy to create a mailing list. Andrew has also extended any developer at DC checkin privledges at the sourceforge project; although I suspect we'll just continue to check into our CVS and he'll "sync" with us that which he wants. I am, in particular, barely not lazy enough to check stuff into branches, much less whole other repositories. ;) I really liked the ZEO examples, but where's this going? It's just open source. More power to him in my opinion. He's definatly taking Zope and ZEO to new levels and audiences. -Michel ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] FYI: calling doctest from ZUnit
I added some ZUnit tests which invoke Tim Peters' doctest testing framework in the zope environment. More at http://zwiki.org/DocTest regards, -Simon ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] (was Flat Database/ZPatterns api, performance ?)
Itamar Shtull-Trauring [EMAIL PROTECTED] writes: Simon Michael wrote: Flat Database (was ListMate) is just what I need to whip up an interface for non-technical administrators - thanks. So I migrated two data tables ("workshops" "registrations") from gadfly to flatdb instances using the CSV import feature, and the admin interface is working fine. I wrote flat database because I wanted some features ListMate didn't have and didn't want ZClasses. I basically copied the structure from ListMate, so it's probably not the best design possible for ZPatterns. So (1) may not be possible with the current code. Itamar, thanks for your suggestions on this. I never got it working. Frustrated by a period of intense Zope Developer Pain I fell back on.. you've guessed it.. my favorite hammer. For this application I found that a zwiki page containing a CSV table makes a micro-db that's relatively easy to administer work with (and it's almost editable with MS Excel). I made a support method for doing queries: http://zwiki.org/QueryCsv Question for the list: is this nuts ? I somehow doubt it would pass the ACID test, but zope's transactions help and at least for this app (small data, low load, mostly appending) it seems to have worked well. -Simon ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] A few corrupt files in Public CVS discovered and corrected
Recently (yesterday and today) we found a few files in the CVS repository to be corrupt - different than the internal CVS files from which they were mirrored. We've run a check to track down all such files, and have corrected them all. However, we don't know at this point whether or not the mirroring process, itself, is corrupt - we don't know whether this is a one-time or an ongoing problem. Here's a list of the files that have turned up - they should all be ok now, and an update of your checkouts should get the fixed versions - at least for the trunk. For branches, you should probably move aside your existing copies of these files (preserving changes) and do an update to refresh them from the rectified repository files. They are: zpasswd.py wo_pcgi.py z2.py inst/binary_install.py doc/FAQ.txt I've done a quick recursive diff of an internal and public checkout to determine that this is all of them, at least at the moment. Assuming my check was accurate, we'll know that we have a continuing problem if new ones show up - hopefully not, but keep a lookout, and let me know if you discover any more. (Thanks to shane and dyon balding for pointing out the problem.) Ken [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Significance of the ZODB split?
Michel Pelletier [EMAIL PROTECTED] writes: I am, in particular, barely not lazy enough to check stuff into branches, much less whole other repositories. ;) Nicely put. Posted on zwiki.org so I can use it later. :) -Simon ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )