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 )
[Zope] ZClass report
Hello, I have some scripts for describing and generating a report about Zclass, but only partial and method foucused (nothing on permissions, property sheets, subobjects, etc ...). Strangely i found nothing on the list ot on the products. Did i missed something about existing scripts, or should i upgrade mine ? Thanks for any tip. -- Didier Georgieff DDAF du Bas-Rhin - Cellule SIG 2, rue des Mineurs 67070 Strasbourg Cedex tél : 03.88.25.20.33 - fax : 03.88.25.20.01 email : [EMAIL PROTECTED] SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr GéoWeb http://sertit10.u-strasbg.fr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online
Brad Clements wrote: Just announcing this new e-commerce zope based site. http://www.adirondackcraft.com Hmm. I get: Zope has encountered an error while publishing this resource. Error Type: TransactionError Error Value: A serious error, which was probably a system error, occurred in a previous database transaction. This application may be in an invalid state and must be restarted before database updates can be allowed. Beware though that if the error was due to a serious system problem, such as a disk full condition, then the application may not come up until you deal with the system problem. See your application log for information on the error that lead to this problem. -- http://www.mk.w.pl / Marcin.Kasperski | Sztuczki i kruczki w C++: @softax.com.pl | http://www.mk.w.pl/porady/porady_cplusplus @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online:which database ??
Hello, What is the database used on this site? I never had this error myself :-) Gilles Lavaux -Original Message- From: Marcin Kasperski [EMAIL PROTECTED] To: Zope List Submission [EMAIL PROTECTED] Date: Thursday, December 07, 2000 10:38 AM Subject: Re: [Zope] Another Zope E-Commerce Site Online Brad Clements wrote: Just announcing this new e-commerce zope based site. http://www.adirondackcraft.com Hmm. I get: Zope has encountered an error while publishing this resource. Error Type: TransactionError Error Value: A serious error, which was probably a system error, occurred in a previous database transaction. This application may be in an invalid state and must be restarted before database updates can be allowed. Beware though that if the error was due to a serious system problem, such as a disk full condition, then the application may not come up until you deal with the system problem. See your application log for information on the error that lead to this problem. -- http://www.mk.w.pl / Marcin.Kasperski | Sztuczki i kruczki w C++: @softax.com.pl | http://www.mk.w.pl/porady/porady_cplusplus @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Disabling Services : WebDAV
Dieter Maurer wrote: Chris Withers writes: ZServer Medusa (V1.16.4.3) ... Which of those handles WebDAV requests? WebDAV runs on top of HTTP. You must disable ZServer Medusa. Maybe, you accept WebDAV? Great :-( Any other way to turn WebDAV off? Not sure about Zopes supprot and not sure if I like the protocol on production servers anyway ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to find items to catalog from a dtml method ???
If you're searching the catalog, you probably don't want to be using that method... try: dtml-let setup your search terms here dtml-in yourCatalog do your row display stuff here /dtml-in /dtml-let good luck, Chris Frederic Quin wrote: Hi all, I tried to use the manage_catalogFoundItems( REQUEST, RESPONSE, URL2, URL1, [] ) method of Catalog objects, from a dtml method. But it didn't work... There is still some parameters that I don't understand like URL2 and URL1. Which values do we have to pass ? Is it why it didn't work for me ? Thanks Fred ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] IMAP UserSource?
marc lindahl wrote: Does anyone know if or how you can create, destroy, change passwords, and possibly other things, to sendmail (IMAP) accounts remotely? I want to use WorldPilot, but it uses sendmail's usernames and passwords, not Zope's. So I'm interested in something that can synchronize those two things. LoginManager with a UserSource taking its users from the IMAP server might provide the functionality you want... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Comment elimination...
On Thu, 7 Dec 2000, Curtis Maloney wrote: On Thursday 07 December 2000 08:05, Dieter Maurer wrote: Curtis Maloney writes: ... finding objects with "comment" in them You can use the "Find" tab and fill the "containing" field with "comment". slaps forehead duh! I've been ignoring that tab for so long I don't even see it any more. (o8 Yep, this does exactly what I want... thanks. So I take it all the other people want is a 'replace' option added to this ? This might be it then: http://www.zope.org/Members/shh/ReplaceSupport Regards, Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cut/copy/paste problems
Dieter Maurer wrote: Oleg Broytmann writes: Cut/copy/paste problems in Zope behind Apache To help me to resolve the problem I want to ask the helpful community provide me some information. Of those who run Zope behind Apache please tell me: 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi) 2) any problem? We run Zope behind Apache using "ProxyPass". We have no problems. I've been having problems with copy/paste/rename with my site, which is apache proxypassing (mod_rewrite [p] actually) onto a siterooted subdir of zserver. I haven't had time to set up a clean environment to evaluate exactly what goes on when it fails but intend to over the next fortnight. I appear to have 2 separate issues: 1 Trying to copy objects from outside the siteroot'd hierarchy into it. The object will appear in the wrong place [folder above] zope will deny it exists if I try to access it until I restart zope. Temporary solution is to restart zope with SUPPRESS_SITEROOT make the changes. This breaks my production site and so isn't ideal. My long term hack will probably to maintain a mirrored readonly site which I switch to whilst I update the main site so access isn't disrupted. There's so much path jiggerypokery going on with SiteAccess/SiteRoot I don't expect a clean solution! 2. Can't do anything with my ZClasses. I've tried applying the reindex patch I found somewhere. I think my problems might be to do with the fact that I have catalogaware zclasses that inherit from catalogaware base classes and something isn't quite working there. All my problems are consistent (always happen!) I'm running latest of everything: Zope 2.2.4 apache 1.3.14, Regards, Ivan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online
Transaction Error too Are you trying to do session management and/or database querys in two different frames? On Qua 06 Dez 2000 16:16, you wrote: Just announcing this new e-commerce zope based site. http://www.adirondackcraft.com Come buy something, but don't whack it too hard, this site is still a work in progress (aren't they all?) -- This site was "thrown together" in about 5 days for a disorganized customer, came online just 30 minutes before it's first sale. They had a big ad in the New York Times which pushed the deadline. - Zope 2.2.4 with Interbase, gvibDA and Wampum Generator running behind Apache with mod_proxy and mod_ssl, on RH Linux 7. I'm thinking of writing a white paper on this entire experience, from a consulting point of view and a programmer's viewpoint. Not sure how useful that would be to anyone. There were 2 graphics/layout designers and myself working directly with the customer to go from concept to completion in an extremely short timeframe. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Diego Rodrigo Neufert Webmaster / Web Developer - Magic Web Design --- [EMAIL PROTECTED] www.magicwebdesign.com.br Curitiba - PR - Brasil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to find items to catalog from a dtml method ???
Hi Chris, No, I don't want to just search the catalog... I want to find items to catalog from a dtml method... Regards Fred Chris Withers wrote: If you're searching the catalog, you probably don't want to be using that method... try: dtml-let setup your search terms here dtml-in yourCatalog do your row display stuff here /dtml-in /dtml-let good luck, Chris Frederic Quin wrote: Hi all, I tried to use the manage_catalogFoundItems( REQUEST, RESPONSE, URL2, URL1, [] ) method of Catalog objects, from a dtml method. But it didn't work... There is still some parameters that I don't understand like URL2 and URL1. Which values do we have to pass ? Is it why it didn't work for me ? Thanks Fred ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] next value
hi, thanks for your help i found the mistake: i work with postgreSQL 7.0.2, ZPyGreSQL and zope 2.2 on suse 7.0 linux for a identifier field adr_id:serial i want to automatically insert a new number max(adr_id)+1 how can this be done in an insert into sql statement? i tried nextval('adr_adr_id_seq') but get an error message i create the database and load it then with the command: copy adr from stdin using delimiters ',' with this command i also load my serial field. even that i load 14 rows the currval stays on 1 so the two lines insert into adr (id) values (setval('adr_adr_id_seq',15)); select currval('adr_adr_id_seq'); get the value to the right level. olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
[Zope] duplicate column name
i there, i work with postgreSQL 7.0.2, ZPyGreSQLDA-0-0-3 and zope 2.2.2 on suse 7.0 linux when i try the line - select adr.id,fac.id from fac, adr in the database connection test field i get an error as follows: -error type: value error -error value: duplicate column name,id it worked for me until now, because i used different names everywhere. on psql it's no problem did i just screw up some settings or is it ZPyGreSQL? olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
Re: [Zope] Cut/copy/paste problems
On Thu, 7 Dec 2000, Ivan Cornell wrote: I've been having problems with copy/paste/rename with my site, which is apache proxypassing (mod_rewrite [p] actually) onto a siterooted subdir of zserver. I Aha, SiteRoot! I thought is is a part of the problem. Thanks! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Indirect addressing
Howdy Zopistas! I have a directory structure like this: + myfolder index_html my_external_method dtml_method_1 dtml_method_2 ... In index_html I want to include either dtml_method_1 or dtml_method_2, ... (one method for every week of year). my_external_method tells me which dtml_method to include. This would logically be handled with "dtml-var dtml-var my_external_method" in index_html but this doesn't work. How could I get this working? Any ideas? Ragnar ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] duplicate column name
On Thursday 7 December 2000, at 13 h 15, the keyboard of Olaf Zanger [EMAIL PROTECTED] wrote: - select adr.id,fac.id from fac, adr It is legal SQL but -error type: value error -error value: duplicate column name,id I believe Zope (not PostgreSQL) needs different names for columns. Otherwise, how would it choose the name of DTML variables? Try renaming the columns with AS in the ZSQL method. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] duplicate column name
Olaf Zanger wrote: i work with postgreSQL 7.0.2, ZPyGreSQLDA-0-0-3 and zope 2.2.2 on suse 7.0 linux when i try the line - select adr.id,fac.id from fac, adr You probably need to alias the columns: select adr.id as adr_id, fac.id as fac_id from fac, adr and then refer to adr_id fac_id from zope. [can't remember why, but think it is due to the way columns are addressed in libpq] Ivan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Is it posible?
Statement: ZOPE RULEZ! Q1: Is it possible to get the current users IP#, like it is possible to get his/herbrowserversion..? Q2: If so = How..? ( = Stoons = )
RE: [Zope] Indirect addressing
From: Ragnar Beer [mailto:[EMAIL PROTECTED]] + myfolder index_html my_external_method dtml_method_1 dtml_method_2 ... In index_html I want to include either dtml_method_1 or dtml_method_2, ... (one method for every week of year). my_external_method tells me which dtml_method to include. This would logically be handled with "dtml-var dtml-var my_external_method" in index_html but this doesn't work. Something like this ought to work: dtml-var "objectValues('DTML Method')[my_external_method()]" This is a no-no, as you cannot have nested dtml: dtml-var dtml-varmy_external_method Regards Max M ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Indirect addressing
On Thu, 7 Dec 2000, Ragnar Beer wrote: This would logically be handled with "dtml-var dtml-var my_external_method" in index_html but this doesn't work. Don't write DTML inside DTML. Inside DTML tag use Python: dtml-var "_[my_external_method()]" Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is it posible?
On Thu, 7 Dec 2000, Stoonsdesign wrote: Statement: ZOPE RULEZ! Sure! :) Q1: Is it possible to get the current users IP Yez. Q2: If so = How..? dtml-var REMOTE_ADDR Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] duplicate column name
I believe Zope (not PostgreSQL) needs different names for columns. Otherwise, how would it choose the name of DTML variables? Try renaming the columns with AS in the ZSQL method. well zope uses the "name" option and a "column" option for the dtml-sqltest. that works quite well, if your variable name is different from your database-column name. thanks anyway olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
Re: [Zope] duplicate column name
Ivan Cornell schrieb: Olaf Zanger wrote: i work with postgreSQL 7.0.2, ZPyGreSQLDA-0-0-3 and zope 2.2.2 on suse 7.0 linux when i try the line - select adr.id,fac.id from fac, adr You probably need to alias the columns: select adr.id as adr_id, fac.id as fac_id from fac, adr and then refer to adr_id fac_id from zope. [can't remember why, but think it is due to the way columns are addressed in libpq] thanks, worked out fine, gets a bit tricky though :-) as visible further down it is not needed in "where" and "order by" clauses *ç%?! select fac.id as fac_id, adr.id as adr_id, fac.name as fac_name, adr.id as adr_id, owner_adr_id, from fac,adr where fac.name like '%' and adr.id=owner_adr_id and fac.mod_id=mod.id order by fac.name -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
[Zope] Re: [Zope-ZEO] ZEO_CLIENT
ZEO_CLIENT is a parameter of z2.py to let a zope instance know it's a client of a central ZEO and to not try to install products. Add to you invocation of z2.py Did you change the custom_zodb.py of the instance to connect a ClientStorage at the host and port that you started ZEO on? Bill. On Thu, 7 Dec 2000, Kaeidinejad, Shahram wrote: Hi Monty, I have a stupid question. Where and how can i define the ZEO_CLIENT? I installed on the same mashine zope-2.2.4 and zeo-0.4.0. I read the README.txt from ZEO and make it but I think I don't understand at all. There isn't any interaction between ZEO and zope. can you help me, Please? bye Shahram ___ Bug reports, feature requests, etc. go in the ZEO Tracker: http://www.zope.org/Products/ZEO/Tracker Conversations etc. can take place in the Wiki: http://www.zope.org/Products/ZEO/Wiki Zope-ZEO maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-zeo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Calendar and zwiki
Hi, I'm fairly new to Zope and I'm using Zwiki on top of it to run a website that provides a central place for discussions on our products. I've discovered the calendar tag and what I'd like to do is to use the calendar tag on zwiki page that shows signficant customer events with links to zwiki pages that allow discussion of those events. I added some dtml-calendar code, changed my page type to htmldtml. Now I'm stumped. I have to put in code to post/edit and link to wiki pages. Has anyone done something like this? Hints? Frank McGeough ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope's default icons not displayed
Hi, Yikes, can someone help me out? My browser isn't rendering Zope's default icons on its management screens. I'm running Zope version: Zope 2.2.4b1 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 I get an attribute error. Here's the traceback: !-- Traceback (innermost last): File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/pmonta/Zope-2.2.0-linux2-x86/lib/python/App/ImageFile.py, line 140, in index_html (Object: ControlPanel_icon.gif) AttributeError: _p_mtime -- _p_mtime? Any guidance would be greatly appreciated. Cheers, Anthony Dr. A. B. Monta Coordinator of Curricular Assessment Academic Reporting Louisiana Board of Regents 150 Third Street, Suite 129 Baton Rouge, LA 70801-1389 225.342.4253, ext. 143 [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Patch to avoid hypenation variables and more
Michel Pelletier schrieb: The second problem is if you put one in-tag into another. You have to use dtml-let oder REQUEST.set() with variables of the outher in-tag to be able to reference them in the inner loop. The code becomes very ugly this way. So my idea was to give the in-tag an optional argument, called "prefix" to prefix all the sequence-variables with a custom identifier. So you can write: dtml-in some_sequence prefix="outer_" dtml-in some_other_sequence dtml-var outer_sequence_item:dtml-var sequence_item /dtml-in the inner sequence /dtml-in the outer sequence What do you think about this? It's cool. Your patches are big and therefore, naturally, are a bit worrisome to us in terms of checking them into the core. Do you have a set of test DTML scripts that verify your patch? Say, a set of scripts that verifies backwards compatibity, and a set of scripts that verifies the new functionality? I would suggest even investigating "ZUnit" and creating DTML unit tests. Then we would *really* love you. ;) Have to find this ZUnit... ;) Ok, I made some further tests and improvements. There was a mistake (ok, it comes from variables spilled randomly over DT_In.py and DT_InSV.py ;) with the prefix. In some cases it wasnt there as supposed. Now all the prefix-handling should be ok. I've made an yet simple test-suite, all available thru http://www.zope.org/Members/tino/ (See "Patch for dtml-in" there) Note: the prefix prepends only the in-tags own variables. Any attribute coming from the sequence is untouched. This is also true for statistic variables and the magic "mapping" symbol. While it could easy be implemented, I think prefixing all attributes is not such a good idea. If you are ilterating over database queries you can rename the attributes there. Regards Tino ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] data.fs
Hi, I'm experiencing a strange problem here. I followed the how-to of 4am : Make your life easier with INSTANCE_HOME. Now, when I start zope in debug mode, everything works fine. However! When I start zope in normal mode, I get an error : InstallError : No access file found at cd $ reldir; pwd - see INSTALL.txt Why do I get this error in normal mode? What check does normal mode more than debug mode? I checked the permissions on the access file and they seem ok to me : -rw-rw nobody root Anybody an idea what's wrong with this? Thanks, Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] uploading Files when using GUF
i try to allow users uploading files through a web-interface on zope2.2.1. this works fine unless i try this in a GenericUserFolder-controlled folder ... i always get Error Type: AttributeError Error Value: getUserById any ideas? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] data.fs
Arg, Forget previous message. Sometimes, you've to get away from the error to find it out. ´ ` are not the same that was the mistake I made in the start script Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PythonScripts and ExternalMethods
Argh... I'm writing all my code that's not presentation code as Externals Methods and Python classes. I hope that there will be an easy path to move the code in future versions of Python. Jim and I expect to make External Methods obsolete, rather than upgrading them. In the near future, you will be able to get most of the functionality of External Methods from Python Scripts' import capability. In the longer term, we expect Zope 3 to completely change the way you write Zope code. Cyril Elkaim ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope's default icons not displayed
Yikes, can someone help me out? My browser isn't rendering Zope's default icons on its management screens. I'm running Zope version: Zope 2.2.4b1 This is fixed in 2.2.4 final... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Random choice in dtml-in?
Ok.. so I can get a random item out of a folder with. dtml-var expr="_.whrandom.choice(folder_name.objectValues())" And I can iterate through a folder with dtml-in "folder_name.objectValues()" size="1" dtml-var id, dtml-var title, dtml-var other_attribute /dtml-in But I want to include the random statement within the dtml-in so I can get more of the object values back. I know this must be some little ._."_.. or other such mix but I am getting frustrated trying. Thanks, J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn'twant to add Products
Bill Anderson wrote: Shane Hathaway wrote: On Tue, 5 Dec 2000, Bill Anderson wrote: So, what would you suggest for the following scenario? o Site distirbuted via ZEO o Using SiteAccess2 for virtual hosting sites under /vhosts/thissite /vhosts/thatsite o each site is actually it's own full Data.fs Under non-zeo, it's simple, use a mounted filestorage, and it works quite well. Unfortunately, it doesn't work under zeo, for obvious reasons. If I had time, I'd do a mountedZEOstorage, but time is too much a precious commodity for the next few weeks/months. :/ What do you mean it doesn't work under ZEO? Set it up just like zope.org. Simple: I have a site running on it's own right now. It is based right of of the root of the data.fs, not under a folder (like a wiki is). If I try the externalmount you tarred up for us (thank you, btw), it insist on having a path inside said data.fs. If I give it a folder in said data.fs it works for that folder, as expected. MountedFileStorage lets you mount the root of the database through a very "iffy" scheme that I don't think could be made reliable. I'm sure there's a right way to do it, but I think for now your best option is to create a folder in the database you intend to mount, then move all content into that folder. That's how Wikis.fs is mounted. Either create two storage servers or one that provides access to both FileStorages. Then write an external method for each storage, each of which creates a ClientStorage and wraps a DB around it. How do I do this part? I made one for FileStorage (the example given), which works fine. Substituting ClientStorage for FileStorage didn;t work. ;) Here's our external method: --- 8- - # Define the Wiki database mounted database import ZServer, ZODB, ZEO.ClientStorage def wikidb(): Storage=ZEO.ClientStorage.ClientStorage( ('10.0.11.1',), cache_size=50*1000*1000, max_disconnect_poll=40, min_disconnect_poll=1, storage='Wikis', ) return ZODB.DB(Storage) --- 8- - ...mebbe I've just been too deep in scsi code lately to think properly ... ugh. Been hacking kernels lately? There's no hacking like kernel hacking. Bare metal. Oh yeah. :-) Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope Internationalization Project
Hello ! The EuroZope project ( http://zdp.zope.org/projects/eurozope ) is searching for Zope enthusiasts that are interested in Zope Internationalization, and would like to join us in our effort to translate the Zope management interface into other languages. The translation has already started, and you may look at the following page for further information: http://zdp.zope.org/projects/zi18n We need translators, reviewers, and once we have finished that, we also need people to test the zzlocale product with the translated templates. Best regards, Maik Röder ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: Random choice in dtml-in?
I just love answering my own questions (maybe it is from the embarrassment of having to ask them). Here is the code that works like a charm: dtml-with expr="_.whrandom.choice(folder_name.objectValues())" dtml-var "folder_name.attribute_name" and dtml-var id /dtml-with Thanks to Andy McKay for posting this in November. I added a tip to Zope.org at http://www.zope.org/Members/BwanaZulia/random_items J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zpdf
hi everybody, i just imported some dtml structures into a zpdf_0-0-1 document and figure out that it does ignore the dtml alltogether. is that how it is meant to be? thanks for help -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
Re: [Zope] Is it posible?
This is all in the REQUEST object it always useful to have a dtml method document lying around containing nothing but: dtml-var REQUEST -- Andy McKay, Developer. ActiveState. - Original Message - From: "Oleg Broytmann" [EMAIL PROTECTED] To: "Stoonsdesign" [EMAIL PROTECTED] Cc: "zopeQ" [EMAIL PROTECTED] Sent: Thursday, December 07, 2000 5:20 AM Subject: Re: [Zope] Is it posible? On Thu, 7 Dec 2000, Stoonsdesign wrote: Statement: ZOPE RULEZ! Sure! :) Q1: Is it possible to get the current users IP Yez. Q2: If so = How..? dtml-var REMOTE_ADDR Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] FTP for ZClass hierarchies
In the past few days I have been working on a patch that will let you edit ZClasses via FTP without the need for typing in actual pathnames to get to the methods (mainly so I can edit ZClasses with HTML-Kit). Strangely enough, even with the modifications, I see this same thing. I've included this patch in case anyone wants to play around with it. It's not the greatest, and definitely needs to be modified (some of the security mechanisms are bound to be broken). But it is a start anyway. ;) Interestingly, but perhaps merely coincidental, I notice that the URLs of contained ZClasses as generated by the Zope management interface have a "%20" immediately following the name of each contained ZClass (but not the top-level ZClasss) - e.g, ZClassFTP.patch
Re: [Zope] duplicate column name
On Thu, 7 Dec 2000, Olaf Zanger wrote: Ivan Cornell schrieb: Olaf Zanger wrote: i work with postgreSQL 7.0.2, ZPyGreSQLDA-0-0-3 and zope 2.2.2 on suse 7.0 linux when i try the line - select adr.id,fac.id from fac, adr You probably need to alias the columns: select adr.id as adr_id, fac.id as fac_id from fac, adr and then refer to adr_id fac_id from zope. [can't remember why, but think it is due to the way columns are addressed in libpq] thanks, worked out fine, gets a bit tricky though :-) as visible further down it is not needed in "where" and "order by" clauses *ç%?! select fac.id as fac_id, adr.id as adr_id, fac.name as fac_name, adr.id as adr_id, owner_adr_id, from fac,adr where fac.name like '%' and adr.id=owner_adr_id and fac.mod_id=mod.id order by fac.name I suspect a lot of databases are like this, and it depends on implementation of the DA. As an example, the original ZMySQLDA (circa 1.1.3), using MySQLmodule-1.4, probably returned all column names as table.column. Versions of ZMySQLDA that use MySQLdb (i.e. the patched 1.1.3, 1.2, and 2.0.x) use just the column name. adr.id and fac.id have the same column name, of course. I'm a little surprised that some DAs would return column names with periods in them, since this would require using the special namespace object to get at them, i.e. _['adr.id']. The WHERE and ORDER BY clauses can use table.column references without any problem. The issue is the names of the columns returned by a SELECT. -- andy dustman | programmer | comstar.net is part of the Globix network telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Authentication Problem : External method returning object :Zope 2.2.4 Zope 2.2.4
All, I'm just a country boy raised on mashed potatoes and Zope 2.1.6. The new security model up here in the bright lights/big city world of Zope 2.2.4 has me all confused:-) I have an external method that returns an object. I have a dtml method that tries to reference an attribute of that object. The attempted attribute reference causes the HTTP authenticate dialog to appear. No username/password seems to appease it. Here is the relevant part of the DTML: dtml-call "REQUEST.set('foo',testexternal(REQUEST,RESPONSE))" dtml-var "foo.X" Here is the external method "testexternal": class AClass: def __init__(self): self.X = 1 self.Y = 2 def testexternal (self,REQUEST,RESPONSE): A = AClass() return A Thanks in advance, Sean McGrath ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using aquisition inside a dtml method of a product ?
Inside a product my index_html is set to "index_html=HTMLFile('index_html',globals())" The index_html.dtml calls dtml-var standard_html_header. This DTML method is available in the top-level hierarchy. However When I call index_html Zope complains with a KeyError/standard_html_header. When I remove the "dtml-var standard_html_header" call everything works fine. Any idea why aquisition won't work in this case ? Andreas ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] version 2.2.4 just blew up!
Chris, The Dr. Watson log won't help us at this stage. Can you turn on debug logging by inserting the following to the beginning of your Zope's start.bat file: set STUPID_FILE_LOG=var\debug.log did it. Then report back what comes up in the var\debug.log file when you click on the link that crashes Zope, if anything. nothing. debug.log is never created. Python is dying? That's a little rude even given your frustration, dontcha think? what the hell is so rude about that? my problem is caused by Python going tits up each time i hit the link. a bit oversensitive dontcha think? - Original Message - From: "michael angelo ruberto" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 5:16 PM Subject: [Zope] version 2.2.4 just blew up! hi, i just performed the upgrade from 2.2.2 to 2.2.4 and it blew up after running for a few minutes. it happened as i clicked the link to Debug Information from the control panel. Zope does start up again and the same thing occurs each time i click this link. i can send you the Dr. Watson error log if you think it will help you but i prefer not to send it to a public list. please send me a personal email address for this. i can also send a screen shot of the error message. Python is dying. -mike- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Another Zope E-Commerce Site Online
On 6 Dec 2000, at 19:51, Lee Hunter wrote: Site looks beautiful but I would *never* have guessed that it was an ecom site unless you told me. Even then it was just by accident that I clicked an image and came to a price and description. Maybe that's the part you were refering to as being in progress. Otherwise the site works great. Thanks for your comments. I mentioned this to the site owner a few weeks ago.. It takes too many clicks to get to buy something. We're just now adding a "browse by products" page, which itself is still a weak concept in my mind. This is an object lesson.. leave plenty of time for usability testing. The result of rushing the project to meet an ad publication date really shows in many areas of the site, including transaction errors mentioned by others. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online
On 6 Dec 2000, at 22:48, Jason C. Leach wrote: hi, How long did it take? And what level of Zope(xpertese) where you at whe you started? Did you have to do that shopping cart from scratch? This site was "thrown together" in about 5 days for a disorganized customer, came online just 30 minutes before it's first sale. Zope expertise? Based on the crass errors I've made putting this site together I'd say I'm a new-bee. See my other post about what makes "the cart". Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] just curious
what i meant was, is there a way to remove my files in Zope back to the filesystem? i'm having serious concerns about the stability of this product and need to know if i can gracefully revert back. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris McDonough Sent: Wednesday, December 06, 2000 12:05 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] just curious What? - Original Message - From: "michael angelo ruberto" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 7:33 PM Subject: [Zope] just curious hi, how do i remove all of the 7000 + company documents from Zope? -mike- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Cannot create Primary Key
See this question from the gadfly faq: http://www.chordate.com/kwParsing/gffaq.html#key -Original Message- From: Angietel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 10:17 PM To: [EMAIL PROTECTED] Subject: [Zope] Cannot create Primary Key I'm using the Z Gadfly Database as my database adapter, and i using Z SQL Method to create my table, but it is not allow for me to create Primary Key for the my sequence integer field, beside that it also not allow me to create a 'date' data type field. my SQL will be:- CREATE TABLE customer (custno SERIAL PRIMARY KEY, custactdate DATE) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online
On 6 Dec 2000, at 23:54, Bill Welch wrote: Maybe you just looked at the catalog and didn't notice what's in the checkout. Having spent the past month setting up a site with Etailer, I would have to completely disagree with you. If Brad started with Etailer (I suspect he did, the checkout sequence has an Etailer look), it would have taken a lot of hard core programming, not graphical work, to get to where he is in 5 days. I haven't looked at Etailer. I did download zCommerce for a look, but was concerned about using ZPatterns. I've used LoginManager and it works well, but the terminology used in ZPatterns always gives me a headache. Clearly a shortcoming on my part - if I could understand what it does I'd probably use it. In the end, I already had the product database and the "shopping cart", so all I needed was the checkout sequence and cybercash charging. The checkout sequence is based on pages that the web designer gave me, and she copied the design from someone else's site. The nice thing about the checkout sequence is that you can move backwards at any time without losing the entered data. Also you can jump out to shop more, jump to the privacy, shipping and returns policy and your entered data isn't lost. We of course don't keep the CC number info if you leave page 3 by any means other than "Purchase". But everything else is kept. 1) Etailer doesn't support separate billing and shipping addresses 2) ETailer doesn't support a shipping fee, much less shipping alternatives Oih, shipping is a total headache with this site. The current shipping charge is based on a table by total purchase price. We really need to support actual charging by carrier/service/destination. That's simple to do but I ran out of time. The big headache is that each product is likely shipped from a different "artisan", so the site owner encounters multiple shipping charges, but the customer really can only be charged once for shipping. 3) Etailer doesn't do taxes. We have to charge tax for ship-to Zips in New York State. We use a tax table by Zip to get the tax rate. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online
On 6 Dec 2000, at 21:57, Bill Welch wrote: I found the shopping cart interesting. Did you start with an existing package or write it from scratch? Are you willing to share it? There are four major parts to this system. 1. product inventory and descriptions - kept in Interbase, images in Zope 2. Shopping cart - track qty of each item put in basket, this is just a dict stored in an SQLSession object 3. The checkout sequence - Interbase tables with Python code to populate them as each checkout step is completed 4. Charging the card - Wampum generator calling Cybercash. Item 1 is very specific to this site, so there's nothing really worth sharing there. Item 2 is trivial easy Item 3 A lot of this is from my "toolbox" built on SQLDict. I'm hoping someday I can give it away, but my current customers have paid for it and aren't willing to give it up. Maybe next quarter when the current contracts are complete. Item 4 Not mine, but I have some fixes to give back when I get my brain working again to do a decent job. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online:which database ??
On 7 Dec 2000, at 11:05, Gilles Lavaux wrote: What is the database used on this site? I never had this error myself :-) Interbase on Linux. Please see my other post that explains the entire problem in detail. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Zope E-Commerce Site Online - Transaction Errors
On 7 Dec 2000, at 9:41, Diego Rodrigo Neufert wrote: Transaction Error too Are you trying to do session management and/or database querys in two different frames? Thanks to everyone who emailed me about transaction errors, here's what was happening so you can avoid it too. First, we're using Interbase on Linux. Apparently there's a bug in the Linux Interbase client that causes the client connection to dropped if no DB requests are made within .. (5 minutes?) There's a fix in gvibDA that works around this by generating a dummy select before any query() is executed. If an exception is raised in the dummy select, the db-api connection is deleted and a new one opened. This fix seems to work pretty well. But I'm also using a gvib db-api connection from within Python code called through external methods. This second connection is used with SQLDict. I've wrapped it up with THUNK Zope code so SQLDict can participate in Zope's transaction machinery. Unfortunately I did not have the Linux-broken-pipe-fix in my SQLDict code, so that second connection could fail. The second connection is only activated when a person selects "Checkout". SQLDict registers itself with the transaction manager, then creates a cursor and executes an sql request. This causes an exception to be raised (broken pipe). The Zope transaction manager does a rollback, which causes this second interbase connection to try to call rollback(), which raises another broken pipe exception. This second exception within the transaction rollback causes a system- wide failure and Zope disables all further transactions, which then kills the entire site. -- The solution was to add the broken-pipe handling code to the external method before making calls into SQLDict. Unfortunately my first fix was wrong, so it didn't work, but I think I have it right now. This brings up a good issue. How do you work on a live Zope site without causing serious problems? Versions only go just so far. Fortunately, because I'm using SQLSession to hold the shopping cart contents, I can restart Zope at any time without killing off active shopping carts. -- Hopefully there will be a fix for this interbase client bug from the firebird group soon. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope 2.2.4 dying under Solaris 2.6
I have had Zope 2.0.1, Zope 2.1.6 and Zope 2.2.4 running on Solaris 2.6 and inexplicably, every so often (no definiate amount of time) the Zope dies. Any ideas? -- A typical entry from STUPID_LOG is: 2000-12-07T18:23:22 ERROR(200) zdaemon zdaemon: Thu Dec 7 11:23:22 2000: Aiieee! 17564 exited with error code: 11 -- Summarized: Mon Dec 4 13:56:22 2000: 5527 exited with error code: 11 Mon Dec 4 16:40:13 2000: 10558 exited with error code: 11 Mon Dec 4 17:21:22 2000: 10806 exited with error code: 11 Mon Dec 4 18:08:26 2000: 10876 exited with error code: 11 Mon Dec 4 19:15:57 2000: 10927 exited with error code: 11 Mon Dec 4 19:57:14 2000: 11001 exited with error code: 11 Mon Dec 4 20:34:32 2000: 11034 exited with error code: 11 Mon Dec 4 22:30:00 2000: 11085 exited with error code: 11 Tue Dec 5 01:17:39 2000: 11193 exited with error code: 11 Tue Dec 5 04:07:23 2000: 11384 exited with error code: 11 Tue Dec 5 08:16:33 2000: 11613 exited with error code: 11 Tue Dec 5 11:22:32 2000: 11864 exited with error code: 11 Tue Dec 5 15:00:00 2000: 12375 exited with error code: 11 Tue Dec 5 19:17:21 2000: 12527 exited with error code: 11 Tue Dec 5 20:42:58 2000: 12927 exited with error code: 11 Tue Dec 5 21:37:00 2000: 13077 exited with error code: 11 Tue Dec 5 23:59:01 2000: 13152 exited with error code: 11 Wed Dec 6 12:01:03 2000: 14226 exited with error code: 11 Wed Dec 6 13:51:26 2000: 14277 exited with error code: 11 Wed Dec 6 14:39:57 2000: 14436 exited with error code: 11 Wed Dec 6 14:48:08 2000: 14561 exited with error code: 11 Wed Dec 6 18:02:12 2000: 14596 exited with error code: 11 Wed Dec 6 18:42:59 2000: 14844 exited with error code: 11 Wed Dec 6 22:53:53 2000: 14879 exited with error code: 11 Thu Dec 7 03:25:20 2000: 15187 exited with error code: 11 Thu Dec 7 06:59:31 2000: 15505 exited with error code: 11 Thu Dec 7 09:16:11 2000: 15786 exited with error code: 11 Thu Dec 7 10:06:05 2000: 17377 exited with error code: 11 Thu Dec 7 10:51:56 2000: 17462 exited with error code: 11 Thu Dec 7 11:23:22 2000: 17564 exited with error code: 11 -- Michael Best Systems Administrator ph 780-413-6397 x230 Emergence By Designfax 780-433-7548 #200, 11209 Jasper Avenue toll 866-860-2666 Edmonton, Alberta, T5K 0L5 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Help! publishing Images from a Database
Can anyone help me to I want to know how I can publish images stored in a SQL database. I am trying to create an online photo album that stores images in a database. The features I want to implement are: RetrieveImage, UpdateImage, InsertImage I am running zope on linux mandrake and use ZSever The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary dist.) Mo. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FieldDocument
hi there, FieldDocument.zexp (downloadable from www.zope.org) does everything fine except of creating the actual input field. a second error is that dtml-call "REQUEST.set('field_debug')" does not work, even if i add a third operand as requested dtml-call "REQUEST.set('field_debug',_)" what's the trouble, does anybody use it? unfortunately i have no clue of python and am therefore lost in space for debugging thanks olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
Re: [Zope] Help! publishing Images from a Database
This works with mysql: 1. make mysql table with a LONGBLOB field for holding the image, suppose you make it a field called "imageData" 2. in your DTML, do this (assume getImage gets the image you want) dtml-in getImage dtml-call "RESPONSE.setHeader('content-type','image/png')" dtml-return imageData /dtml-in The retrieve, etc. things you mentioned are just sql, displaying it is the tricky part! Regards, JJ Mohan Baro wrote: Can anyone help me to I want to know how I can publish images stored in a SQL database. I am trying to create an online photo album that stores images in a database. The features I want to implement are: RetrieveImage, UpdateImage, InsertImage I am running zope on linux mandrake and use ZSever The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary dist.) Mo. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FTP for ZClass hierarchies
In article [EMAIL PROTECTED], M. Adam Kendall [EMAIL PROTECTED] writes In the past few days I have been working on a patch that will let you edit ZClasses via FTP without the need for typing in actual pathnames to get to the methods (mainly so I can edit ZClasses with HTML-Kit). Strangely enough, even with the modifications, I see this same thing. I've included this patch in case anyone wants to play around with it. It's not the greatest, and definitely needs to be modified (some of the security mechanisms are bound to be broken). But it is a start anyway. ;) Interestingly, but perhaps merely coincidental, I notice that the URLs of contained ZClasses as generated by the Zope management interface have a "%20" immediately following the name of each contained ZClass (but not the top-level ZClasss) - e.g, [ A MIME application / octet-stream part was included here. ] Does this let you write the methods back? -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FW: [Zope] FTP for ZClass hierarchies
ARGH.. Spoke too soon.. just figured out how to override it so it actually WILL let you get to methods of inner Zclasses. And yes, I have tried to save back to the methods and they save fine.. The next thing to try to tackle is how to make FTP create a DTML Method instead of DTML Document as the default when creating new files. Hope this helps. In the past few days I have been working on a patch that will let you edit ZClasses via FTP without the need for typing in actual pathnames to get to the methods (mainly so I can edit ZClasses with HTML-Kit). Strangely enough, even with the modifications, I see this same thing. ZClassFTP.patch
Re: [Zope] REQUEST.set doesn't set in 2.2.4
Brad Clements writes: This code: dtml-call "REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))" !-- charge result is dtml-verrormessage;-- Prints out _.None as the result. However a print statement in my ordeobject.chargeCard method shows that the return value isn't None. Are you sure that you do not have a "verrormessage" variable or object attribute/property around? The definitions in REQUEST have quite a low priority. They are usually at the bottom of the namespace stack and there at the bottom of the acquisition context. This implies: If you have any variable on the namespace stack, it will hide a REQUEST value bound to the same name. Same is true, for acquired names. You may use dtml-var "REQUEST['verrormessage']" html_quote or: dtml-with REQUEST dtml-verrormessage; /dtml-with Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] uploading Files when using GUF
urs.beyeler writes: i try to allow users uploading files through a web-interface on zope2.2.1. this works fine unless i try this in a GenericUserFolder-controlled folder ... i always get Error Type: AttributeError Error Value: getUserById I do not have the GenericUserFolder sources around, therefore I cannot look: Apparently, your upload code uses "getUserById" and "GenericUserFolder" does not define it (while the normal UserFolder does). Look at the upload code and check whether you need the "getUserById". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Indirect addressing
Ragnar Beer writes: Howdy Zopistas! I have a directory structure like this: + myfolder index_html my_external_method dtml_method_1 dtml_method_2 ... In index_html I want to include either dtml_method_1 or dtml_method_2, ... (one method for every week of year). my_external_method tells me which dtml_method to include. This would logically be handled with "dtml-var dtml-var my_external_method" in index_html but this doesn't work. If your external method returns the object itself (and not its name), then you can use: dtml-let method=my_external_method dtml-var method /dtml-let or, if your method needs parameters dtml-let method="my_external_method(parameters...)" dtml-var method /dtml-let Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] the day of zope headaches
thanks Kevin, that seems to have did the trick. the deal on my server is that tmp, /var/tmp, and /usr/tmp are all linked to one directory. this required me to create /home/httpd/tmp and point tempfile.py to it because the disk for all the other tmp stuff is quite full. time for bigger drives. -mike- ps: in the process of following your suggestion i found another problem and fixed it, so thanks again! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 11:00 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] the day of zope headaches Zope has encountered an error while publishing this resource. IOError Sorry, a Zope error occurred. such a very helpful message. this happened while reindexing the ZCatalog View the HTML source for the error page - the Python traceback contained in there will be more helpful. However, the last time I had an IOError while re-indexing a ZCatalog was when Python was ran out of space in the /tmp dir (4600 objects, 100 MB /tmp partition). What I did was edit Python's tempfile.py file (contained at /usr/lib/python1.5/tempfile.py on Debian systems) from: attempdirs = ['/usr/tmp', '/tmp', pwd] To: attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd] -- Kevin Teague, Zopista http://www.stormix.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Security problem?
Might be a security problem... Are you allowed to access that header from inside your index_html? cheers, Chris Andreas Jung wrote: Inside a product my index_html is set to "index_html=HTMLFile('index_html',globals())" The index_html.dtml calls dtml-var standard_html_header. This DTML method is available in the top-level hierarchy. However When I call index_html Zope complains with a KeyError/standard_html_header. When I remove the "dtml-var standard_html_header" call everything works fine. Any idea why aquisition won't work in this case ? Andreas ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] just curious
michael angelo ruberto wrote: what i meant was, is there a way to remove my files in Zope back to the filesystem? i'm having serious concerns about the stability of this product and need to know if i can gracefully revert back. Yeah, just ftp into your Zope server on port 8021 and suck the lot out. I wouldn't be worried about stability if I were you ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZPatterns
Brad Clements wrote: On 6 Dec 2000, at 23:54, Bill Welch wrote: works well, but the terminology used in ZPatterns always gives me a headache. Clearly a shortcoming on my part ...I disagree, ZPatterns only major flaw is that its totally immersed in its own jargon which very few people understand :-( That said, my impression is that if you can wade through the b/s, it's more than worth the effort... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Authentication Problem : External method returning object :Zope 2.2.4Zope 2.2.4
Hi Sean Sean McGrath writes: ... I have an external method that returns an object. I have a dtml method that tries to reference an attribute of that object. The attempted attribute reference causes the HTTP authenticate dialog to appear. No username/password seems to appease it. Have you read Byan's "Upgrading to Zope 2.2"? Here is the external method "testexternal": class AClass: You will need (or something like this): __access_to_unprotected_subobjects__= 1 def __init__(self): Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.4 dying under Solaris 2.6
Michael Best writes: I have had Zope 2.0.1, Zope 2.1.6 and Zope 2.2.4 running on Solaris 2.6 and inexplicably, every so often (no definiate amount of time) the Zope dies. A typical entry from STUPID_LOG is: 2000-12-07T18:23:22 ERROR(200) zdaemon zdaemon: Thu Dec 7 11:23:22 2000: Aiieee! 17564 exited with error code: 11 Error code 11 means "Segmentation violation", i.e. a severe program error. You should get a core file (unless you have disabled it; you can use "limit", "limits" or "ulimit" (depending on your shell) to control core file generation). Use "debugger zope/bin/python core" to analyse the core. If you are lucky, you will get a hint where the problem lies. We have had a similar problem some month before. It turned out to be a memory corruption problem in the Oracle client library triggered by the DCOracle module. An upgrade of DCOracle worked around the memory corruption. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] just curious
michael angelo ruberto writes: what i meant was, is there a way to remove my files in Zope back to the filesystem? i'm having serious concerns about the stability of this product and need to know if i can gracefully revert back. If they are stored in "DTML Documents/Methods" you can simple connect with FTP and run an "mget" (there are also FTP clients available for recursive operations). It might be a bit more difficult, when they are in ZInstances. You can use XML-RPC or ZClient in this case. If they are in a relational database, then, there is no problem, is it? Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using aquisition inside a dtml method of a product ?
Hi Andreas, Andreas Jung writes: Inside a product my index_html is set to "index_html=HTMLFile('index_html',globals())" The index_html.dtml calls dtml-var standard_html_header. This DTML method is available in the top-level hierarchy. However When I call index_html Zope complains with a KeyError/standard_html_header. When I remove the "dtml-var standard_html_header" call everything works fine. Any idea why aquisition won't work in this case ? HTMLFile does not inherit from "Acquisition.Implicit". Therefore, HTMLFile objects do not have an acquisition context. On the other hand, they should not need one, provided they get a correct "client" parameter (i.e. first parameter). Probably, that is your real problem: "index_html" is probably called with "client=None". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] just curious
wget? -steve "michael" == michael angelo ruberto [EMAIL PROTECTED] writes: michael what i meant was, is there a way to remove my files in michael Zope back to the filesystem? i'm having serious concerns michael about the stability of this product and need to know if i michael can gracefully revert back. michael -Original Message- From: [EMAIL PROTECTED] michael [mailto:[EMAIL PROTECTED]]On Behalf Of Chris McDonough michael Sent: Wednesday, December 06, 2000 12:05 AM To: michael [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: michael [Zope] just curious michael What? michael - Original Message - From: "michael angelo michael ruberto" [EMAIL PROTECTED] To: [EMAIL PROTECTED] michael Sent: Tuesday, December 05, 2000 7:33 PM Subject: [Zope] michael just curious hi, how do i remove all of the 7000 + company documents from Zope? -mike- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) michael ___ Zope michael maillist - [EMAIL PROTECTED] michael http://lists.zope.org/mailman/listinfo/zope ** No cross michael posts or HTML encoding! ** (Related lists - michael http://lists.zope.org/mailman/listinfo/zope-announce michael http://lists.zope.org/mailman/listinfo/zope-dev ) michael ___ Zope michael maillist - [EMAIL PROTECTED] michael http://lists.zope.org/mailman/listinfo/zope ** No cross michael posts or HTML encoding! ** (Related lists - michael http://lists.zope.org/mailman/listinfo/zope-announce michael http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.4 dying under Solaris 2.6
It might be interesting to turn on the -M option of z2.py and see if there is any pattern to the crash. This can happen for a number of reasons (e.g., a buggy Python extension, an infinite recursive loop, ). -steve "Michael" == Michael Best [EMAIL PROTECTED] writes: Michael I have had Zope 2.0.1, Zope 2.1.6 and Zope 2.2.4 running Michael on Solaris 2.6 and inexplicably, every so often (no Michael definiate amount of time) the Zope dies. Michael Any ideas? Michael -- A typical entry from STUPID_LOG is: Michael 2000-12-07T18:23:22 ERROR(200) zdaemon zdaemon: Thu Dec 7 Michael 11:23:22 2000: Aiieee! 17564 exited with error code: 11 Michael -- Summarized: Michael Mon Dec 4 13:56:22 2000: 5527 exited with error code: 11 Michael Mon Dec 4 16:40:13 2000: 10558 exited with error code: 11 Michael Mon Dec 4 17:21:22 2000: 10806 exited with error code: 11 Michael Mon Dec 4 18:08:26 2000: 10876 exited with error code: 11 Michael Mon Dec 4 19:15:57 2000: 10927 exited with error code: 11 Michael Mon Dec 4 19:57:14 2000: 11001 exited with error code: 11 Michael Mon Dec 4 20:34:32 2000: 11034 exited with error code: 11 Michael Mon Dec 4 22:30:00 2000: 11085 exited with error code: 11 Michael Tue Dec 5 01:17:39 2000: 11193 exited with error code: 11 Michael Tue Dec 5 04:07:23 2000: 11384 exited with error code: 11 Michael Tue Dec 5 08:16:33 2000: 11613 exited with error code: 11 Michael Tue Dec 5 11:22:32 2000: 11864 exited with error code: 11 Michael Tue Dec 5 15:00:00 2000: 12375 exited with error code: 11 Michael Tue Dec 5 19:17:21 2000: 12527 exited with error code: 11 Michael Tue Dec 5 20:42:58 2000: 12927 exited with error code: 11 Michael Tue Dec 5 21:37:00 2000: 13077 exited with error code: 11 Michael Tue Dec 5 23:59:01 2000: 13152 exited with error code: 11 Michael Wed Dec 6 12:01:03 2000: 14226 exited with error code: 11 Michael Wed Dec 6 13:51:26 2000: 14277 exited with error code: 11 Michael Wed Dec 6 14:39:57 2000: 14436 exited with error code: 11 Michael Wed Dec 6 14:48:08 2000: 14561 exited with error code: 11 Michael Wed Dec 6 18:02:12 2000: 14596 exited with error code: 11 Michael Wed Dec 6 18:42:59 2000: 14844 exited with error code: 11 Michael Wed Dec 6 22:53:53 2000: 14879 exited with error code: 11 Michael Thu Dec 7 03:25:20 2000: 15187 exited with error code: 11 Michael Thu Dec 7 06:59:31 2000: 15505 exited with error code: 11 Michael Thu Dec 7 09:16:11 2000: 15786 exited with error code: 11 Michael Thu Dec 7 10:06:05 2000: 17377 exited with error code: 11 Michael Thu Dec 7 10:51:56 2000: 17462 exited with error code: 11 Michael Thu Dec 7 11:23:22 2000: 17564 exited with error code: 11 Michael -- Michael Best Systems Administrator ph 780-413-6397 Michael x230 Emergence By Design fax 780-433-7548 #200, 11209 Michael Jasper Avenue toll 866-860-2666 Edmonton, Alberta, T5K Michael 0L5 Michael ___ Zope Michael maillist - [EMAIL PROTECTED] Michael http://lists.zope.org/mailman/listinfo/zope ** No cross Michael posts or HTML encoding! ** (Related lists - Michael http://lists.zope.org/mailman/listinfo/zope-announce Michael http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.4 dying under Solaris 2.6
Steve Spicklemire wrote: It might be interesting to turn on the -M option of z2.py and see if there is any pattern to the crash. This can happen for a number of reasons (e.g., a buggy Python extension, an infinite recursive loop, ). I wrote a script recently which is able to track a segfault down to the last successful Python call. I used sys.settrace(). I've been considering adding such a thing as a z2.py command-line option with two levels: --trace-calls: log all method calls to a file. --trace-everything: log every Python instruction. To narrow down a segfault, you would first invoke with --trace-calls, and if that doesn't give you enough info, you would invoke with --trace-everything. To eliminate huge log files, the "Houston, I just forked off a kid" daemon could set up a socket to which the main Zope process sends the information. When the segfault occurs, the main process would copy the last 50 calls to the log file. Shane "Michael" == Michael Best [EMAIL PROTECTED] writes: Michael I have had Zope 2.0.1, Zope 2.1.6 and Zope 2.2.4 running Michael on Solaris 2.6 and inexplicably, every so often (no Michael definiate amount of time) the Zope dies. Michael Any ideas? Michael -- A typical entry from STUPID_LOG is: Michael 2000-12-07T18:23:22 ERROR(200) zdaemon zdaemon: Thu Dec 7 Michael 11:23:22 2000: Aiieee! 17564 exited with error code: 11 Michael -- Summarized: Michael Mon Dec 4 13:56:22 2000: 5527 exited with error code: 11 Michael Mon Dec 4 16:40:13 2000: 10558 exited with error code: 11 Michael Mon Dec 4 17:21:22 2000: 10806 exited with error code: 11 Michael Mon Dec 4 18:08:26 2000: 10876 exited with error code: 11 Michael Mon Dec 4 19:15:57 2000: 10927 exited with error code: 11 Michael Mon Dec 4 19:57:14 2000: 11001 exited with error code: 11 Michael Mon Dec 4 20:34:32 2000: 11034 exited with error code: 11 Michael Mon Dec 4 22:30:00 2000: 11085 exited with error code: 11 Michael Tue Dec 5 01:17:39 2000: 11193 exited with error code: 11 Michael Tue Dec 5 04:07:23 2000: 11384 exited with error code: 11 Michael Tue Dec 5 08:16:33 2000: 11613 exited with error code: 11 Michael Tue Dec 5 11:22:32 2000: 11864 exited with error code: 11 Michael Tue Dec 5 15:00:00 2000: 12375 exited with error code: 11 Michael Tue Dec 5 19:17:21 2000: 12527 exited with error code: 11 Michael Tue Dec 5 20:42:58 2000: 12927 exited with error code: 11 Michael Tue Dec 5 21:37:00 2000: 13077 exited with error code: 11 Michael Tue Dec 5 23:59:01 2000: 13152 exited with error code: 11 Michael Wed Dec 6 12:01:03 2000: 14226 exited with error code: 11 Michael Wed Dec 6 13:51:26 2000: 14277 exited with error code: 11 Michael Wed Dec 6 14:39:57 2000: 14436 exited with error code: 11 Michael Wed Dec 6 14:48:08 2000: 14561 exited with error code: 11 Michael Wed Dec 6 18:02:12 2000: 14596 exited with error code: 11 Michael Wed Dec 6 18:42:59 2000: 14844 exited with error code: 11 Michael Wed Dec 6 22:53:53 2000: 14879 exited with error code: 11 Michael Thu Dec 7 03:25:20 2000: 15187 exited with error code: 11 Michael Thu Dec 7 06:59:31 2000: 15505 exited with error code: 11 Michael Thu Dec 7 09:16:11 2000: 15786 exited with error code: 11 Michael Thu Dec 7 10:06:05 2000: 17377 exited with error code: 11 Michael Thu Dec 7 10:51:56 2000: 17462 exited with error code: 11 Michael Thu Dec 7 11:23:22 2000: 17564 exited with error code: 11 Michael -- Michael Best Systems Administrator ph 780-413-6397 Michael x230 Emergence By Design fax 780-433-7548 #200, 11209 Michael Jasper Avenue toll 866-860-2666 Edmonton, Alberta, T5K Michael 0L5 Michael ___ Zope Michael maillist - [EMAIL PROTECTED] Michael http://lists.zope.org/mailman/listinfo/zope ** No cross Michael posts or HTML encoding! ** (Related lists - Michael http://lists.zope.org/mailman/listinfo/zope-announce Michael http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] New version of book uploaded
Greetings, Read this carefully, you may end up with a free, signed copy of the Zope book. That's right, Amos and I have just gotten done adding all kinds of new stuff to the book, and in particular we made quite a few changed from "Python Method" to "Python Script". This was a task more subtle than a simple search and replace, many changes needed to be done. Also, sometime really soon, we will be making a 2.3 alpha release. This will be the first release of Zope that will be "in sync" with the book. Lots of milestones to reach there. So, instead of reading the book over again for the N to the Nth time in preparation, we have decided to run a fun little contest. The *first* person to point out an incorrect usage of the term "method" when it should be "script" will get a free copy of the Zope book signed by Amos and myself. If you are the second person to point out the same error, sorry, you're out of luck, but *keep reading* because you may find another! For each unique "method" error found in the book, someone will get a free signed copy! And don't just stick to Chapter 8 (although that's probably the best place to start!) because Python Meth...er Scripts are used all over the book. To keep everything fair, you must report your findings to the community reviewer list at [EMAIL PROTECTED] They will be the "judges", and will decide who does and who does and does not get a book. Here are some sample right and wrong sentences to give you an idea, just because a sentence contains the word "method", doesn't make it wrong: "DTML Methods are smelly." (Right) "By using DTML, Python, Perl or other kinds of methods, you can script the web." (Wrong) "Python Methods rock!" (Wrong) "You can call *fooBar* through the web like any other kind of method". (Wrong, should be "object", tricky! The judgest make the call on these kinds of errors) "The Python code in your External Method must be in the Foo module." (Right, External Methods still exist) Get the idea? The O'Reilly community reviewers (the "judges") and employees of Digital Creations are not elligible in this contest, sorry guys, you already get free books. ;) So without further a-do here's the URL. Have fun! http://www.zope.org/Members/michel/ZB/ -Michel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] pickled data in traceback
Hi all, This is the message I get when I try to import a product in the control_panel/products folder. Some of these porducts where removed but I still get reference to them eg/ 'Products.PTKBase.MemberFolder'. Have I done something wrong? Is there a fix? Thanks, cheers Fordy. Could not load oid Traceback (innermost last): File /wa/intranet/lib/python/ZODB/Connection.py, line 447, in setstate File /wa/intranet/lib/python/ZODB/Connection.py, line 213, in _persistent_load(Info: !4) File /wa/intranet/lib/python/ZODB/Connection.py, line 154, in __getitem__ (Info: ('\000\000\000\000\000\000!4', '(cExtensionClass\012ExtensionClass\012q\001(U\017SQLMemberFolderq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.PTKDemo.SQLMember\012DemoSQLMemberFolderBase\012q\004cProducts.PTKBase.MemberFolder\012MemberFolderBase\012q\005cOFS.SimpleItem\012SimpleItem\012q\006tq\007}q\010(U\004iconq\011U\036misc_/OFSP/UserFolder_icon.gifq\012U\012_p_changedq\013K\001U\007__doc__q\014U\017SQLMemberFolderq\015U\011loginFormq\016(U\010\000\000\000\000\000\000!Zq\017(U\017ZClasses.Methodq\020U\003MWpq\021tq\022tq\023QU\006_p_oidq\024U\010\000\000\000\000\000\000\016\231q\025U\011meta_typeq\026U\021SQL Member Folderq\027U\016propertysheetsq\030U\010\000\000\000\000\000\000![q\031QU\016manage_optionsq\032(}q\033(U\005labelq\034U\010Contentsq\035U\006actionq\036U\013manage_mainq\037u}q (h\034U\010Securityq!h\036U\015manage_accessq"u}q#(h\034U\004Undoq$h\036U\017manage_UndoFormq%utqU\013MemberClassq\'(U\010\000\000\000\000\000\000!\\q((h\020U\003MWpq)tq*tq+QU\011_p_serialq,U\010\0032%\223\212\307\367q-U\022__ac_permissions__q.)U\012__module__q/U\031*MasmkcELwiQX3XivS3mUQw==q0U\017mange_usersFormq1(U\010\000\000\000\000\000\000!]q2(h\020U\003MWpq3tq4tq5Qutq6t.N.')) Could not load oid !4, pickled data in traceback info may contain clues ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pickled data in traceback
THis looks like you have an object in your database that still wants the Zclass definition (or base class definitions) for SQLMemberFolder, which is evidently part of the PTK. You'll need to determine which object(s)in your object database still needs this class. This can be hard, especially if you don't know the answer already. :-) The first step is probably to reinstall the Product it's complaining about. In your case, this would probably be the revision of the PTK that used this class. Then track down the offending objects basically through trial and error (remove any instances which obviously depend on the product). If that doesn't work, it's time to bring in the big guns, which means looking up oids in the debugger, which isn't something for the faint of heart. Sorry I don't have better news, nor the time to explain how to do it (because I'd need to puzzle it out myself). This problem really needs to be addressed in a better way, as it's very common. - Original Message - From: "fotios pylarinos" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 07, 2000 8:14 PM Subject: [Zope] pickled data in traceback Hi all, This is the message I get when I try to import a product in the control_panel/products folder. Some of these porducts where removed but I still get reference to them eg/ 'Products.PTKBase.MemberFolder'. Have I done something wrong? Is there a fix? Thanks, cheers Fordy. Could not load oid Traceback (innermost last): File /wa/intranet/lib/python/ZODB/Connection.py, line 447, in setstate File /wa/intranet/lib/python/ZODB/Connection.py, line 213, in _persistent_load(Info: !4) File /wa/intranet/lib/python/ZODB/Connection.py, line 154, in __getitem__ (Info: ('\000\000\000\000\000\000!4', '(cExtensionClass\012ExtensionClass\012q\001(U\017SQLMemberFolderq\002(cZCla sses.ZClass\012PersistentClass\012q\003cProducts.PTKDemo.SQLMember\012DemoSQ LMemberFolderBase\012q\004cProducts.PTKBase.MemberFolder\012MemberFolderBase \012q\005cOFS.SimpleItem\012SimpleItem\012q\006tq\007}q\010(U\004iconq\011U\ 036misc_/OFSP/UserFolder_icon.gifq\012U\012_p_changedq\013K\001U\007__doc__q \014U\017SQLMemberFolderq\015U\011loginFormq\016(U\010\000\000\000\000\000\0 00!Zq\017(U\017ZClasses.Methodq\020U\003MWpq\021tq\022tq\023QU\006_p_oidq\02 4U\010\000\000\000\000\000\000\016\231q\025U\011meta_typeq\026U\021SQL Member Folderq\027U\016propertysheetsq\030U\010\000\000\000\000\000\000![q\031QU\01 6manage_optionsq\032(}q\033(U\005labelq\034U\010Contentsq\035U\006actionq\03 6U\013manage_mainq\037u}q (h\034U\010Securityq!h\036U\015manage_accessq"u}q#(h\034U\004Undoq$h\036U\01 7manage_UndoFormq%utqU\013MemberClassq\'(U\010\000\000\000\000\000\000!\\q( (h\020U\003MWpq)tq*tq+QU\011_p_serialq,U\010\0032%\223\212\307\367q-U\022__ ac_permissions__q.)U\012__module__q/U\031*MasmkcELwiQX3XivS3mUQw==q0U\017man ge_usersFormq1(U\010\000\000\000\000\000\000!]q2(h\020U\003MWpq3tq4tq5Qutq6t .N.')) Could not load oid !4, pickled data in traceback info may contain clues ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FWD: Python Scripts
-- Original Message -- From: "jimbo" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 7 Dec 2000 18:06:51 -0800 From the e-mail "By using DTML, Python, Perl or other kinds of methods, you can script the web." (Wrong) From the book Chap.12 4 paragraphs down from fig 12-2 "Also in the Product folder create a DTML Method named addForm, and Python Script named add. These methods will create new exhibit instances." Should'nt it be.. This method and script will create a new exhibit. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New version of book uploaded
I meant to paste this link in the last posting. I had the wrong title. http://lists.zope.org/pipermail/zope/2000-December/036772.html And when do I get my book? And can I get the likes of Guido, and Jim to sign the book also? Just making sure this thing is on. -Jimbo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New version of book uploaded
Just making sure this thing is on. -- Original Message -- From: Michel Pelletier [EMAIL PROTECTED] Date: Thu, 7 Dec 2000 17:07:32 -0800 (PST) Greetings, Read this carefully, you may end up with a free, signed copy of the Zope book. That's right, Amos and I have just gotten done adding all kinds of new stuff to the book, and in particular we made quite a few changed from "Python Method" to "Python Script". This was a task more subtle than a simple search and replace, many changes needed to be done. Also, sometime really soon, we will be making a 2.3 alpha release. This will be the first release of Zope that will be "in sync" with the book. Lots of milestones to reach there. So, instead of reading the book over again for the N to the Nth time in preparation, we have decided to run a fun little contest. The *first* person to point out an incorrect usage of the term "method" when it should be "script" will get a free copy of the Zope book signed by Amos and myself. If you are the second person to point out the same error, sorry, you're out of luck, but *keep reading* because you may find another! For each unique "method" error found in the book, someone will get a free signed copy! And don't just stick to Chapter 8 (although that's probably the best place to start!) because Python Meth...er Scripts are used all over the book. To keep everything fair, you must report your findings to the community reviewer list at [EMAIL PROTECTED] They will be the "judges", and will decide who does and who does and does not get a book. Here are some sample right and wrong sentences to give you an idea, just because a sentence contains the word "method", doesn't make it wrong: "DTML Methods are smelly." (Right) "By using DTML, Python, Perl or other kinds of methods, you can script the web." (Wrong) "Python Methods rock!" (Wrong) "You can call *fooBar* through the web like any other kind of method". (Wrong, should be "object", tricky! The judgest make the call on these kinds of errors) "The Python code in your External Method must be in the Foo module." (Right, External Methods still exist) Get the idea? The O'Reilly community reviewers (the "judges") and employees of Digital Creations are not elligible in this contest, sorry guys, you already get free books. ;) So without further a-do here's the URL. Have fun! http://www.zope.org/Members/michel/ZB/ -Michel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Authentication Problem : External method returning object : Zope 2.2.4
Sean McGrath [EMAIL PROTECTED] wrote: All, I'm just a country boy raised on mashed potatoes and Zope 2.1.6. The new security model up here in the bright lights/big city world of Zope 2.2.4 has me all confused:-) I have an external method that returns an object. I have a dtml method that tries to reference an attribute of that object. The attempted attribute reference causes the HTTP authenticate dialog to appear. No username/password seems to appease it. Here is the relevant part of the DTML: dtml-call "REQUEST.set('foo',testexternal(REQUEST,RESPONSE))" dtml-var "foo.X" Here is the external method "testexternal": You need to tell Zope's security policy that untrusted code can read the attributes of instances of AClass, like so: class AClass: __allow_access_to_unprotected_subobjects__ = 1 def __init__(self): self.X = 1 self.Y = 2 def testexternal (self,REQUEST,RESPONSE): A = AClass() return A Thanks in advance, Sean McGrath Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] While I'm at it. What is the SIGNOFF posting?
Hi, Am I suppose to click it or something? It's always the last posting. I've never clicked it. What is it for? -Jimbo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )