[Zope-dev] 2.3.0. Unindex_object Tried To Unindex Nonexistent
I'm having some more problems with the ZCatalog in Zope 2.3.0 I've got a name error in the file UnTextIndex.py Error Type: NameError Error Value: i I believe this is occuring when the catalog tries to unindex an object that isn't currently indexed. The traceback reports line 332: File /usr/zope/zope-2_3_0/lib/python/SearchIndex/UnTextIndex.py, line 332, in removeForwardEntry The line in question reads: LOG('UnTextIndex', ERROR, 'Unindex_objects tried to unindex nonexistent' ' document %s' % str(i)) The function never uses or declares i, however it does use documentId. I think perhaps the i should have been documentId but I thought i would check with you guys first. What do you think? -Andy ___ 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] Zope on OpenBSD 2.8 problem solved
Hi, For those of you wishing to run Zope on OpenBSD 2.8, here is a solution. The reason it doesn't work in the first place is a thread bug in the OpenBSD 2.8 release version. The solution is to use the libc_r from OpenBSD 2.7 for the Zope instance. Thanks to Jason Ish for the howto, I thought I would rewrite it to be more generic and post it to the lists. So, here we go: Python on OpenBSD 2.8 uses /usr/lib/libc_r.so.3.1. libc_r.so.3.1 is from 2.8, libc_r.so.3.0 is from 2.7 and will work. So what we do is to copy the old libc file (if you don't have it, mail me and I'll send it to you) into a directory in the Zope install dir, and add that to the path. Then we rename the old file so the system thinks it is the curent version. In this example, I assume your Zope install is in /usr/local/zope. First, we copy the old library into our Zope dir, and rename it: cp /usr/lib/libc_r.so.3.0 /usr/local/zope/libc_r.so.3.1 Then you should add something like this to the top of your "start" script: export LD_LIBRARY_PATH=/usr/local/zope Start Zope, and you will find that it works fine now. Zope also works fine in the CURRENT tree of OpenBSD, so presumably it will work out-of-the-box on OpenBSD 2.9. This is the safest way of getting it to work at the moment. Happy OpenBSD'ing :) Alexander Limi. ___ 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] Broken FTP ZClass PUT 2.3.0
Hi all, I have recently upgraded to 2.3.0 and it has broken my FTP support. When I try to do an FTP upload to an instance of my ZClass, it fails because it is calling the default PUT of a webdav.Collection instead of the PUT of my python base class. My setup is such: A Python product with a ObjectManger(ish) base class that overrides PUT to do special manipulation of large files. I have a bunch of ZClasses that inherit from my base classes for the management pages, meta data handling and 'live' updates. Now, instead of PUT being called on my base class, it is being called on webdav.Collection which throws an exception. In 2.3.0 ZClass inherits Base, webdav.Collection and SimpleItem where in 2.2.x ZClass only inherits from SimpleItem. Is there any way to get my old functionality back (without editing Zope)? -Sean ___ 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] 2.3.0. Unindex_object Tried To Unindex Nonexistent
Steve is right, though I fixed that problem when it snuck up on me, but apparantly it never got merged into the branches correctly. Don't we all love CVS? I personally had a problem with using 'i' as anything but a iterator variable. Chris -- | Christopher Petrilli | [EMAIL PROTECTED] - Original Message - From: "Steve Alexander" [EMAIL PROTECTED] To: "Andy Dawkins" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Christopher Petrilli" [EMAIL PROTECTED] Sent: Monday, January 29, 2001 7:19 AM Subject: Re: [Zope-dev] 2.3.0. Unindex_object Tried To Unindex Nonexistent Andy Dawkins wrote: I'm having some more problems with the ZCatalog in Zope 2.3.0 I've got a name error in the file UnTextIndex.py Error Type: NameError Error Value: i I believe this is occuring when the catalog tries to unindex an object that isn't currently indexed. The traceback reports line 332: File /usr/zope/zope-2_3_0/lib/python/SearchIndex/UnTextIndex.py, line 332, in removeForwardEntry The line in question reads: LOG('UnTextIndex', ERROR, 'Unindex_objects tried to unindex nonexistent' ' document %s' % str(i)) The function never uses or declares i, however it does use documentId. I think perhaps the i should have been documentId but I thought i would check with you guys first. What do you think? You're right. In an earlier version in CVS, all the variables called "documentId" were called "i". I guess this one just missed the search-replace :-) Of course, documentId makes for much more readable code; although "i" is faster to type :) Change it to documentId and you'll be fine. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] ZDebug patch for 2.3.0
Chris Withers wrote: The patch below got ZDebug working with Zope 2.3.0 for me. Hope I didn't miss anything ;-) Good job, Chris! I patched it in a similar way. I planned to release a new version as soon as I was sure it worked well with 2.3. Shane --- debugsecuritypolicy.py.old Sun Jan 28 21:59:23 2001 +++ debugsecuritypolicy.py Sun Jan 28 22:07:21 2001 @@ -89,7 +89,7 @@ __version__='$Revision: 1.4 $'[11:-2] from AccessControl import SimpleObjectPolicies -_noroles=[] +_noroles=SimpleObjectPolicies._noroles from AccessControl.PermissionRole import \ _what_not_even_god_should_do, rolesForPermissionOn @@ -99,7 +99,7 @@ class DebugSecurityPolicy: def validate(self, accessed, container, name, value, context, - None=None, type=type, IntType=type(0), DictType=type({}), + roles=_noroles, None=None, type=type, IntType=type(0), DictType=type({}), getattr=getattr, _noroles=_noroles, StringType=type(''), Containers=SimpleObjectPolicies.Containers, valid_aq_=('aq_parent','aq_explicit')): @@ -116,7 +116,8 @@ # Try to get roles -roles=getattr(value, '__roles__', _noroles) +if roles is _noroles: +roles=getattr(value, '__roles__', _noroles) if roles is _noroles: @@ -174,7 +175,14 @@ value=container # Short-circuit tests if we can: -if roles is None or 'Anonymous' in roles: return 1 +try: +if roles is None or 'Anonymous' in roles: return 1 +except TypeError: +# 'roles' isn't a sequence +LOG('Zope Security Policy', PROBLEM, "'%s' passed as roles" +" during validation of '%s' is not a sequence." % ( +`roles`, name)) +raise # Check executable security stack=context.stack ___ 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] 2.3.0 release badness
[EMAIL PROTECTED] wrote: Of course, embedding the style in the page (a-la the Zope management interface) gets around this problem, but this is not an option for us. This is a known bug in Netscape. The management interface does user-agent sniffing; "Mozilla/4*" that doesn't contain the string "MSIE" embeds the style while all other user-agent strings link the CSS instead. You'll notice that if you "view source" on MSIE, the CSS is linked rather than embedded. Perhaps you can use the same strategy. It's done in DTML. 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] Unable to clear proxy roles in Zope 2.3.0
In Zope 2.2.x, one can clear the proxy roles for one method by unseleting all proxy roles. In Zope 2.3.0, this lets to this error: You must select one or more proxy roles. Is it a bug, or is it done in a different fashion? cheers Dirksen Its a bug - or actually a misguided bug fix that turns out to actually be a bug itself :^) It is fixed in CVS for the next release. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] 2.3.0 release badness
Shane Hathaway wrote: [EMAIL PROTECTED] wrote: Of course, embedding the style in the page (a-la the Zope management interface) gets around this problem, but this is not an option for us. This is a known bug in Netscape. I'm intrigued to know what causes it (in more detail than "race condition"). Do you have a URL for a description of the bug? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] 2.3.0 release badness
Steve Alexander wrote: Shane Hathaway wrote: [EMAIL PROTECTED] wrote: Of course, embedding the style in the page (a-la the Zope management interface) gets around this problem, but this is not an option for us. This is a known bug in Netscape. I'm intrigued to know what causes it (in more detail than "race condition"). Do you have a URL for a description of the bug? It seems to occur on Unix versions only AFAIK. When you visit a page with linked CSS, visit another page, and come back, sometimes a portion of the page is replaced with the text of the CSS. I don't have a URL. 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] 2.3.0 release badness
Shane Hathaway wrote: It seems to occur on Unix versions only AFAIK. When you visit a page with linked CSS, visit another page, and come back, sometimes a portion of the page is replaced with the text of the CSS. I don't have a URL. i've had a nice variant of this in Windoze Nutscrape. Sometimes, it'll just sit there redirecting back to the css page infinitely.. yum :-S 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] 2.3.0 release badness
FWIW, I recall having similar problems with external JavaScript files in NS - it seemed that the onload event of the body is triggered *before* the external JS is loaded into the namespace. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Alexander Sent: 29 January 2001 17:07 To: Shane Hathaway Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] 2.3.0 release badness Shane Hathaway wrote: [EMAIL PROTECTED] wrote: Of course, embedding the style in the page (a-la the Zope management interface) gets around this problem, but this is not an option for us. This is a known bug in Netscape. I'm intrigued to know what causes it (in more detail than "race condition"). Do you have a URL for a description of the bug? ___ 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] 2.3.0 release badness
Does the same occur if you serve using something else ('DTML Method', 'File', 'ZStyleSheet' etc) I have noticed problems with Netscapes handling of Text/CSS stylesheets. It appears that long or particularly complex stylesheets that can be (And here is the kicker) downloaded too quickly, do not seem to complete correctly and for me they have even resulted in Netscape locking up (Linux and Win32). Admitedly, my stylesheets were HUGE! :) - I was trying to break my ZSytleSheet product and was browsing the sheet using Netscape on the server. I don't know if this is related... Adrian... ___ 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] LoginManager and ZPatterns
Hi fellow zopers, I don't know if it's a bug or feature, but whenever I try to access parental objects from a user object in python code, I can't seem to find anything. That is, whenever I call acl_users.getItem('user123').getParentNode() (the acl_users is a LoginManager instance) it returns None. But, if it's called from DTML, with exactly the same expression, it returns the containing object... Could someone shed some light on this? Thank you. -Morten ___ 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] 2.3.0 release badnessboundary=------------F1F4CF9CD0D0AF0E5520717B
[EMAIL PROTECTED] writes: This is a multi-part message in MIME format. --F1F4CF9CD0D0AF0E5520717B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Do you already know that we do not like MIME messages in this list? I've just updated to 2.3.0 release using CVS. My CSS serving has subsequently broken. The CSS serving worked fine with the CVS code from 2.3.0b2. I didn't get to check b3 - we had a public holiday on Friday and that meant that the one working day assigned to the b3 release was lost to me (and _most_ other Australians). Anyway, that's a separate issue ... This was explained recently in this list. The list has a searchable archive. You will find there an URL to the precise description of the Netscape bug. 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 )
Re: [Zope-dev] asynchat producer ready() method patch.
Donovan Baarda writes: On Sun, Jan 28, 2001 at 09:31:07PM +0100, Dieter Maurer wrote: Donovan Baarda writes: I remember reading ages ago on a wishlist for ZServer that someone was thinking of adding blocking support to producers. This patch adds support for just that in a non-intrusive way. I haven't tried applying this patch to ZServer, but it _should_ work. What does "blocking support dor producers" mean? Disclaimer: you must be moderately familiar with ZServer/medusa/asynchat for the following to make sense; Asynchat used by ZServer and medusa use producers as a way to "push" data through an async interface. The current version of asynchat requires that producers be able to produce data immediately on calling their more() method, untill they are finished, when they return ''. My patch adds support for producers being able to "block" by letting asynchat know if they are ready via a ready() method. This allows you to use the simple producer model to push data that may not be immediately available. An example would be a http-fetch producer that fetches data from upstream for a proxy. This patch is only useful for people creating or modifying things like medusa or ZServer. Thank you for this good explanation. By now, I think, it would not be usefull for ZServer, at least not for standard operations. ZServer is a multi-threaded server, where different requests are serviced by different threads. The thread may block and does simply not return from "more()". On first thought, you patch might free some blocked threads to do productive work. However, Zope's transaction system is linked to thread management. If you patch would be used for that, Zope's transaction subsystem would need to be rewritten. 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 )
Re: [Zope-dev] Re: Refresh and debugging product creation issues.....
Jaan Kaer wrote: It seems that on page http://www.zope.org/Members/hathawsh/Refresh is still only link to the old version (2000/05/15) of Refresh product :-( Could you please put there also link to the version where you are corrected the "multiple names in the product add list problem"? I took a good look at Refresh today and came up with new solutions to its issues. The meta_type list is fixed (the right way) and I found a way to safely and completely flush the ZODB caches so that even instances of products at the root folder can be refreshed. Check out version 0.2! http://www.zope.org/Members/hathawsh/Refresh/index_html Many thanks for very useful product, with my hardware (AMD 486DX 100) is restarting Zope a very time-consuming process. Although that is a good use for Refresh, I created it with the intentions of it being used even on production sites where restarting the server is to be avoided. Another interesting use: there is an issue with ZEO clients and product initialization; you can use Refresh to solve it. Feedback is appreciated. 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 )
[Zope-dev] Storing session objects in a ZODB
I want to store the session objects (from CoreSessionTracking) in the ZODB so that users can save preferences (set in a Session) and call them back later. Just thinking that the easiest way to something is to pickle it, but pickling it in the ZODB which then pickles it, seems daft. Someone suggested I could just _setObject into the ZODB, but don't I still need to make a class wrapper around this? Has anyone tried this? I couldn't spot anything in the CoreSessionTracking API that obvious... Cheers. -- Andy McKay. ___ 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] zope 2.3.0 upgrade bug: inituser trashes existing user
I have not thoroughly tested this, but I have done it twice to make sure I could reproduce the error I saw in the specific circumstances I saw it. I suspect the bug is generic, but don't have the time to prove it right now. My setup: INSTANCE_HOME style setup. Zpatterns installed in 2.3.0 tree EMarket installed in the instance products folder. RedHat Linux 5.2 (I think, how do you tell on a linux system?) python from RPMs, zope 2.3.0 from source install (wo_pcgi). I upgraded an existing site by simply changing my zopectl (see my product) PYTHONHOME setting to the 2.3.0 tree, shutting down the site (which had been running 2.2.4), and restarting. Now, at this point I did not understand how inituser was supposed to work, so I had copied my old access file to be my inituser file, thinking the name had changed but the semantics were similar. Imagine my surprise when the inituser file dissapeared when I started zope grin. The problem is that the inituser *replaced* the single existing user in the acl_users folder. This must be a bug. --RDM PS: I also was amazed to find that having ZDebug (without Chris' patch) in my Products folder left my site *wide* open: anonymous could view and edit methods. This might be worth a warning on the web site, even though it is unlikely anyone would run production with ZDebug installed. ___ 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] ZDebug patch for 2.3.0
Thanks! Good to have ZDebug back. But... it kills LoginManager, which uses an exception to render the login page. This patch will fix the problem: --- DTMLDebug.py.old Fri Sep 15 09:25:14 2000 +++ DTMLDebug.pyTue Jan 30 10:45:43 2001 @@ -217,6 +217,9 @@ elif exc_type is DTReturn: # Return normally. raise +elif str(exc_type) == 'LoginRequired': +# Don't interfere with LoginManager. +raise else: debugWithNamespace(section, namespace, None, info) finally: Chris Withers wrote: The patch below got ZDebug working with Zope 2.3.0 for me. Hope I didn't miss anything ;-) cheers, Chris snip patch -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- ___ 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] Storing session objects in a ZODB
You won't be able to session data objects from the RAM-based container without special treatment in your main storage, because "under the hood" the internal data container uses a mounted RAM-based storage. See the section in the help/CoreSessionTracking.stx file that ships with the release named "Mounted Database-Based Session Data Container/Internal Session Data Container Caveats". The example provided is the desire to store an object defined in your "main" database into session storage, but it works the other way round as well. While what you ask is doable with a little ZODB magic (and possibly without), I'd recommend instead that you just use an "external session data container" (which stores these objects in persistent storage right off the bat) set up with a long timeout, so that when you shut down Zope and bring it back up your session data won't have disappeared. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 29, 2001 6:19 PM Subject: [Zope-dev] Storing session objects in a ZODB I want to store the session objects (from CoreSessionTracking) in the ZODB so that users can save preferences (set in a Session) and call them back later. Just thinking that the easiest way to something is to pickle it, but pickling it in the ZODB which then pickles it, seems daft. Someone suggested I could just _setObject into the ZODB, but don't I still need to make a class wrapper around this? Has anyone tried this? I couldn't spot anything in the CoreSessionTracking API that obvious... Cheers. -- Andy McKay. ___ 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] 2.3.0 release badness
Chris Withers wrote: [snip] Sometimes, it'll just sit there redirecting back to the css page infinitely.. yum :-S Yeah, I've seen that kind of weirdness show up too occasionally; some kind of infinite css getting loop in Netscape. A couple of times I've seen it blow up the server logs; I suspect a netscape left open to our site in a computer lab somewhere. Is really good for inflation of your server statistics. :) But-Mozilla-flakes-out-on-the-back-button-so-which-do-I-pick-ly yours (*) Martijn (*) comp.lang.python Tim Peters style signoff (modified) ___ 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] 2.3.0 release badness
[EMAIL PROTECTED] wrote: I've just updated to 2.3.0 release using CVS. My CSS serving has subsequently broken. The CSS serving worked fine with the CVS code from 2.3.0b2. I didn't get to check b3 - we had a public holiday on Friday and that meant that the one working day assigned to the b3 release was lost to me (and _most_ other Australians). Anyway, that's a separate issue ... I've done a diff against the CVS as of last Tuesday, but I can't see an obvious place where the Zope code has changed to make the CSS serving fail. Under Netscape (versions 4.72 - 4.75), a 'back button' request results in a truncated plain-text display of the CSS that is linked from the page. The zope server log shows the request as being successfully served. I telnet'ed to the server and requested the CSS manually, and the headers all look fine. A packet sniffer seems to say that all is well. Now for the fun: this only happens for local requests - someone requesting the same pages over the ethernet will get them fine. Only Netscape and only locally. Konqueror locally works fine. I can confirm this type of bug with Netscape. For more fun; if you're serving Zope behind Apache (at least using PCGI) the bug does not occur. I've seen this for far older versions of Zope too; I've run into this type of netscape/ZServer weirdness in earlier 2.2.x versions at least. So I suspect this is not a new bug. Not sure if it's Zope or Netscape that's doing something wrong, either. Again, this was not a problem pre 2.3.0 b3 / release... Again, I think it was -- I've seen it before. Regards, Martijn ___ 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] zope 2.3.0 upgrade bug: inituser trashes existing user
Zope mailing lists wrote: The problem is that the inituser *replaced* the single existing user in the acl_users folder. This must be a bug. Nope, it's intentional. Think about this scenario: you install Zope for the first time by running the install script. You see a lot of messages but you let them all scroll by. You enter "./start". You visit localhost:8080 and see the link to the management screen. You click it and it asks for a user name and password. You try your login password, the root password, and a few others, but nothing works. You read the instructions further. Ah, you should have paid attention to those messages. But there's a documented way out: python zpasswd.py inituser Problem solved. When the "inituser" concept was first created, this solution did not work. It would only populate the root user folder if there were no existing users. This led to lockouts. In the current release, if inituser is found and there are zero or one users in the root folder, it clears the user database and adds the one user, then tries to delete inituser. However, to deal with the train of thought which you encountered (which is inaccurate but understandable), perhaps it should never clear the database and instead add one user if that user is not already present. OTOH it would still not give you what you wanted. The "access" file still exists and serves the same purpose as it did before. However, it is no longer mandatory that it exist. The inituser file is designed to set up only the initial manager then never run again. PS: I also was amazed to find that having ZDebug (without Chris' patch) in my Products folder left my site *wide* open: anonymous could view and edit methods. This might be worth a warning on the web site, even though it is unlikely anyone would run production with ZDebug installed. The current version of ZDebug doesn't work because the signature of the validate() method in security policies changed, resulting in chaos. :-) I would agree it's unwise to run ZDebug on a production site simply because it reveals too much sometimes, such as exposing DTML source and the exact reason why a security assertion failed. 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] Possible TransparentFolders bug?
I thought this problem was gone, but I was wrong. I deleted everything from the database that isn't directly involved in this problem. I also deleted all Transparent Folders. http://yourserver:8080/method_A still works. http://yourserver:8080/method_A/manage_main shows the path as /method_A. Disabling the TransparentFolders patch and restarting, http://yourserver:8080/method_A returns Not Found. Renaming Folder_A to Folder_AX, http://yourserver:8080/method_A returns Not Found. Creating a new folder named Folder_A and copying everything from the original Folder_A into it, http://yourserver:8080/method_A still returns Not Found. So we're dealing with serious voodoo here. It seems that I can eliminate the problem by simply copying the project to a new directory. But I would very much like to know what is going on here, rather than just sweep the problem away. I just know it will come back to bite me if I do that. Itai The Infinitely Annoyed Shane Hathaway wrote: Itai Tavor wrote: The TransparentFolders Product seems to make everything transparent... not just transparent folders. Zope/ Folder_A/ method_A Folder_B/ (transparent folder) method_B I'd expect the only effect of the transparent folder to be that /Folder_A/method_B would work. But /method_A and /method_B also work. Tested in Zope 2.3b2 and 2.3b3 with TransparentFolders 0.3. Hmm... I can't get mine to do that. You're sure Folder_A isn't transparent also? Did you ever have a transparent folder by that name, in that same place? (Indicating a bug) Otherwise leaving things as they are, if you put a transparent folder at the root of the site, do you still get the same behavior? What path does it tell you if you visit http://yourserver:8080/method_{A|B}/manage_main? Shane -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- ___ 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] LoginManager and Control_Panel - The Never Ending Story
Hi, I posted several questions about this problem, but got no replies. I thought I'd try again with a bit more information. The problem is accessing Control_Panel from a folder that contains a LoginManager. I tested the same setup using a plain acl_users and found one difference. Zope/ acl_users/ user_1 (Manager) Test1/ acl_users/ (User Folder) user_2 (Manager) cnt1 (owned by user_1, Manager proxy role) cnt2 (owned by user_2, Manager proxy role) Test2/ acl_users/ (LoginManager) user_3 (Manager) cnt1 (owned by user_1, Manager proxy role) cnt2 (owned by user_3, Manager proxy role) cnt1 and cnt2 are DTML Methods containg: dtml-var Control_Panel fmt=html-quote Logging in to /Test1/ with user_2, both /Test1/cnt1 and /Test1/cnt2 return the Control_Panel object. Loggin in to /Test2/ with user_3, /Test2/cnt1 return the Control_Panel object. /Test2/cnt2 returns KeyError: Control_Panel. ZDebug reports: Unauthorized: User itai, who is the owner of /OzCoasters/cnt2, is defined in the context of /OzCoasters, which is not an ancestor of /Control_Panel. Hope anyone can understand this... it's confusing the stuffing out of me. But basically, the Manager proxy role allows a method to access Control_Panel regardless of where its owner and the logged in user are defined. But with LoginManager, Control_Panel is only accessible if the owner is defined in a regular User Folder above the LoginManager. Any idea why this is happening? Any suggestions on how to test it? I know it's more likely to be a problem in my implementation of the user-supplied parts of LoginManager than a bug in LM... but my LM works in all other ways, and it doesn't seem to be doing anything wrong. Any help would be, er, helpful (To borrow the words of King Arthur. Hey, a python reference! Do I get points for that?) -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a tree fell down, Pooh, when we were underneath it?' -- -- 'Supposing it didn't,' said Pooh after careful thought. -- ___ 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] Best way to upgrade an existing Zope installation?
Hi there Maybe this has been answered a million times, but I can't find it. What is (generally) the best way to upgrade an existing Zope installation? (Including products, etc.) Must I export/import everthing, can I just copy the data.fs file or install the new Zope right over the old one (and then recopying the data file)? Thanks Etienne Tel: (012) 348 4586 Cel: 082 442 8981 Fax: (012) 361 8355 ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
hi there, according to what i have seen on the homepage it seems like ZDatabaseTool is the missing link to push zope to a all in one solution. until now we solved most of our stuff with znolkwizard. this is a great product for what it is designed. it has some shortcomes though. ZDatabaseTool would improve our daily work to a great extend. since also we are not sponsored (:-) we can only offer debugging and ideas from a different user aspect. is the product planned to ship under GPL or an corresponding licence? is it possible to get a tarball for testing? thanks for the great thing anyway olaf Andreas Heckel schrieb: We at easyleading.org are pleased to announce a new Zope Product. ZDatabaseTool provides a set of wizards to let you manage databases more comfortable. At the moment PostgreSQL is supported. The code is not yet released but I want you to have a look at the screen shots and the online demo. http://www.zope.org/Members/aeg/ZDatabaseTool -- Andreas Heckel [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 ) -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger 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] Rewriting al a mod_rewrite in apache?
I'm looking for a feature like mod_rewrite-module in apache. Concret: transforming all path-components of the http-requests to lowercase. Is SiteAccess an idea, I couldn't find examples or documenation for that? Thanks. -- Andreas Rippel Universitt Kaiserslautern Fachbereich Informatik (AG ICSY) Tel: ++49 (0)631 205 3676 Paul Ehrlich Strae(G32/348) Fax: ++49 (0)631 205 3056 D-67653 Kaiserslautern (Germany) EMail: [EMAIL PROTECTED] PGP: http://www.icsy.de/~arippel/pgpkey.asc GNUPGP: .../gnukey.asc ___ 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] Core Session
josh on wrote: Is core session a part 2.3? I thought it was, but it doesn't look like it made it into 2.3.0 :-( Any ideas when it will land? 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] Products and Zope 2.3
"David K. Trudgett" wrote: This brings up the question: are there any significant products that don't yet work with Zope 2.3? Squishdot for one ;-) 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 can a document know its own URL?
Joachim Werner wrote: Can anyone tell me how to use DTML to get at the URL for the document being displayed? dtml-var URL That's not really correct. That's the url of the current request, which may well not be the url of the object you're currently displaying. dtml-var absolute_url is the right one, and works with virtual hosting too ;-) 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] namespace problems
Chris Withers wrote: How would I do the URL redirect using an equivalent to the dtml-call "RESPONSE.redirect(URL1)" that's in the DTML Method below? context.RESPONSE.redirect(URL1) D'Oh... Either replace it with: context.REQUEST.RESPONSE.redirect(URL1) ...or do the following: -Go to the bindings tab and bind _ to the Namespace. -Then do _.RESPONSE.redirect(URL1) 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] License
Olaf Zanger wrote: is the product planned to ship under GPL or an corresponding licence? Please don't shit it under GPL, it makes it much less useful :-S A variant of the Zope License would be much mroe friendly :-) 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] Best way to upgrade an existing Zope installation?
My configuration: 1. The key is to use INSTANCE_HOME , ex. set it to be /home/zope 2. install products in /home/zope/Products, /home/zope/import 3. untar your zope tar ball in /usr/local/, ex. Zope-2.3.0-src 4. make a symbolic link for zope, ex $cd /usr/local $ln -s Zope-2.3.0-src zope run w_pcgi.py or wo_pcgi.py if build from source now. 5. copy your "start" script from old version to the new installation.ex. $cd /usr/local/zope $cp ../Zope-2.2.4-src/start . (suppose that it contains your INSTANCE_HOME setting) 6. start your new installation This works for ZPattern, ZEO. Hope it helps. Iap, Singuan Maybe this has been answered a million times, but I can't find it. What is (generally) the best way to upgrade an existing Zope installation? (Including products, etc.) Must I export/import everthing, can I just copy the data.fs file or install the new Zope right over the old one (and then recopying the data file)? ___ 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] let problem (or just a stupid newbie)
Hello, I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows NT installation dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person dtml-var standard_html_footer And when i pushed the save changes button, i got this: "No closing tag, for tag dtml-let person="'Bob'", on line 2 of nog" (nog is my method). This was the traceback: Traceback (innermost last): File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\ZOPE\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_edit) File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_edit) File C:\PROGRA~1\ZOPE\lib\python\OFS\DTMLMethod.py, line 310, in manage_edit (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 388, in munge (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 408, in cook (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 242, in parse (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 278, in parse_block (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 131, in parse_error (Object: nog) Document Template Parse Error: (see above) Did i do something wrong?, it must, since this is rather basic, isn't it? I posted it to the collector as a question, but i am not sure whether that is correct. Met vriendelijke groeten, Hans de Wit [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 )
[Zope] Re: Zope 2.3 uses Python 1.5.2
In article [EMAIL PROTECTED], Chris Withers [EMAIL PROTECTED] writes Robin Becker wrote: Does this use Python 2.0 or 1.5.2? 1.5.2 cheers, Chris yes I found that out now and still have problems with popen3. -- 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] don't read let problem
I forgot the /dtml-let Sorry for disturbing you Met vriendelijke groeten, Hans de Wit [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 )
[Zope] PCGI and MS-IIS on Nt5
Greetings all, I've searched through Zopesite and a few docs on setting up Zope with MS-IIS, but I cannot get PCGI to work I followed BriaH's document and did everything. I CAN access http://localhost:8080/scripts/zope.pcgi and get what I want to see in dtml-var REQUEST... so, technically I did set it up correctly, but I want to configure the default document so when I just put in: http://localhost I will get the root folder of my zopesite WITH the PCGI working. Now, I need to use: http://localhost:8080 I get my website, but PCGI is not working, as I can see in dtml-var REQUEST that it isnt connecting the PCGI. Without PCGI, my SQL Session will not work. If I goto http://localhost/scripts/zope.pcgi, I get what I want with the PCGI, but I cannot use the site because the links do not work. Can anyone explain what Im doing wrong? TIA, Paz ___ 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] Python script safety
In article [EMAIL PROTECTED] in, Michel Pelletier [EMAIL PROTECTED] writes On Sat, 27 Jan 2001, Robin Becker wrote: seems to be taking an awful lot of my machine's resources The saftey restraints in through the web code try to catch only the most naive programmer errors (like obvious infinite loops ie "while 1:"), *not* DOS attacks. If you are worried about that, do not give untrusted users the ability to write scripts or methods. DTML and Perl are just as susceptible to this problem. For example, all executable code is limited to a finite number of iterations, but this is trivial to defeat: dtml-in "_.range(1)" dtml-in "_.range(1)" dtml-in "_.range(1)" ... you get the idea. Only allow trusted users to create executable content. If you feel the restraints placed on you by through the web scripts to be too much, use an external method. -Michel I feel that allowing any scripting to be public will inevitably invite such attacks. So what you are implying is that even trusted users can make mistakes as allowing non trusted users to do scripting shouldn't be done. When the trusted user has got his script working properly can he then remove the restraints? What happens when I really want to make very large xranges etc or use those rather useful things which are presently forbidden. Yes, I can use External Methods if I have access to the machine, but those 'trusted' scripts could be just as easily handled by a 'Trusted Python Scripts' Zope object which didn't have all the rather (as you say yourself) pointless safety checks. Then I could handle the safety issue in Zope and not in the base OS. There would be many advantages in having allowing 'unsafe' scripting inside the Zope domain. -- 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 )
Re: [Zope] Python script safety
Robin Becker wrote: Yes, I can use External Methods if I have access to the machine, but those 'trusted' scripts could be just as easily handled by a 'Trusted Python Scripts' Zope object which didn't have all the rather (as you say yourself) pointless safety checks. Then I could handle the safety issue in Zope and not in the base OS. There would be many advantages in having allowing 'unsafe' scripting inside the Zope domain. I'll second that ;-) 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] let problem (or just a stupid newbie)
Hans de Wit wrote: I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows NT installation Really? direct from the book? dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person dtml-var standard_html_footer ...that should be: dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person /dtml-let dtml-var standard_html_footer "No closing tag, for tag dtml-let person="'Bob'", on line 2 of nog" To be fair, that's a pretty descriptive error message ;-) Did i do something wrong?, it must, since this is rather basic, isn't it? I posted it to the collector as a question, but i am not sure whether that is correct. Ooo... the collector is probably a little excessive. Generally ask on the list if you want to stick something in the collector, that's what I do most of the time ;-) 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] License
On Mon, 29 Jan 2001, Chris Withers wrote: Olaf Zanger wrote: is the product planned to ship under GPL or an corresponding licence? Please don't shit it under GPL, it makes it much less useful :-S A variant of the Zope License would be much mroe friendly :-) OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do allow people to choose their licenses freely! 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] We get problems Zope is backed up!
Does anybody have a solution for our big problem? How do we backup in another way...? When our Zope-site is being backed up we have different probs... We have (kind of) have figured out that the problem is only (!) occuring when we change something on our site OR somebody adds something to our site, while it is being backed up... We are using Zope v2.2.4 running in Apache on a Linux-machine ( = Stoons = ) - Webmaster @ 3D festival (http://www.3dfestival.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] let problem (or just a stupid newbie)
On Mon, 29 Jan 2001, Hans de Wit wrote: dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person dtml-var standard_html_footer [skip] Document Template Parse Error: (see above) But of course. dtml-let must be closed with /dtml-let 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] License
+---[ Oleg Broytmann ]-- | On Mon, 29 Jan 2001, Chris Withers wrote: | Olaf Zanger wrote: | | is the product planned to ship under GPL or an corresponding licence? | | Please don't shit it under GPL, it makes it much less useful :-S | A variant of the Zope License would be much mroe friendly :-) | |OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do | allow people to choose their licenses freely! Geez Oleg, all he did was make a request... chill on the caps.. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] License
On Mon, 29 Jan 2001, Andrew Kenneth Milton wrote: | is the product planned to ship under GPL or an corresponding licence? | | Please don't shit it under GPL, it makes it much less useful :-S | A variant of the Zope License would be much mroe friendly :-) | |OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do | allow people to choose their licenses freely! Geez Oleg, all he did was make a request... chill on the caps.. Those requests with these answers ("Please don't shit it under GPL") produce flamewars far too easily :( 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] user creation authentification
Hello all first question is it possible to create users "not using" the zope management interface ??? i tried a lot using the editUsers.dtml from zope and it works , but i dont like the response . i would like to see my own pages, not the management screens second question i would like to log in some user with my own login screen or how can i edit the default userauthentification screens from the browser (Netscape/IE/opera) ? thanks Ralf Kraemer ___ 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] let problem (or just a stupid newbie)
Hi there You must close the dtml-let tag like below (exactly what the error said ;) dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person -- /dtml-let dtml-var standard_html_footer -Original Message- From: Hans de Wit [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 12:58 PM To: [EMAIL PROTECTED] Subject: [Zope] let problem (or just a stupid newbie) snip ___ 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] We get problems Zope is backed up!
Does anybody have a solution for our big problem? Heh-he. "Zope is backed up" makes it sound like Zope is a toilet in bad need of a plumber. Sorry, couldn't resist :) We are using Zope v2.2.4 running in Apache on a Linux-machine Perhaps using the rsync technique here would make the back-ups happen quicker (but probably not solve the problem): http://www.zope.org/Members/jrush/howto_rsync_zope Kevin Teague http://www.bud.ca ___ 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] Products and Zope 2.3
"iap_y2fun.com" wrote: I can't import EventFolder due to "tuple have no method 'append'" error. I am not sure if someone else encountered the same problem? I imported a slightly modified version (cosmetics basically) of EventFolder without problems. You may want to try that again. May not be related. But, that's the same error I got when trying to import a folder. I cleared the catalog and rebuilt it. It worked fine. Check the traceback to see where the error is coming from. -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "Liberty has never come from the government." - Woodrow Wilson ___ 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] user creation authentification
ralf, is it possible to create users "not using" the zope management interface ??? i would like to log in some user with my own login screen or how can i edit the default userauthentification screens from the browser (Netscape/IE/opera) ? my advice: in order to accomplish the second task effectively you should look at LoginManager; in doing so you will find answers to your first question. however, you may find you need to refer a lot to the mailing list archives to get LoginManager installed ;) seb http://www.zope.org/Members/tsarna/LoginManager ___ 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] problems with URL passing again
here is a piece of code from article.html: centertable width=60%trtd bcenter*dtml-var pass_id*/center/b dtml-in "articles.objectValues()" dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" pbdtml-var title/b dtml-var sequence-item/p /dtml-if /dtml-in /td/tr/table/center then i access it via http://localhost:8080/article.html?pass_id=validid and validid is a valid id of a dtml method in the articles folder. however, i get weird results: *validid* 0 0 which is weird because getting a 0 0 means that none of the ids matched. more weirdness? -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 today, n.: A nice place to visit, but you can't stay here for long. ___ 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] License
On Monday 29 January 2001 01:41, Chris Withers wrote: Olaf Zanger wrote: is the product planned to ship under GPL or an corresponding licence? Please don't shit it under GPL, it makes it much less useful :-S A variant of the Zope License would be much mroe friendly :-) cheers, Chris just what i needed to start the week off right, a flamewar. :( please allow people to choose their licenses freely. knocking on the gpl, is ignoring the reason why its there, to allow people to give their work freely to the community without concern of it being subverted. k ___ 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] License
Chris Withers wrote: Please don't shit it under GPL, it makes it much less useful :-S *embarrassed laughs* Man, what a typo... I actually meant ship, beleive it or not. And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed product in a product/solution I provide, then I have to do that for free and open source it too, which often isn't an option :-( Cheers, Chris (the typo king ;-) ___ 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] License
I really agree, do NOT change the license terms. Fabrice FRANK mailto:[EMAIL PROTECTED] Chef de projet Extranet BOPACK T.E.A Z.A La Claire Voie 76520 Franqueville Tl. 02 32 86 52 69 Fax. 02 32 86 52 51 -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de ender Envoy : lundi 29 janvier 2001 06:38 : Chris Withers; [EMAIL PROTECTED] Cc : [EMAIL PROTECTED]; Zope Mailinglist Objet : Re: [Zope] License On Monday 29 January 2001 01:41, Chris Withers wrote: Olaf Zanger wrote: is the product planned to ship under GPL or an corresponding licence? Please don't shit it under GPL, it makes it much less useful :-S A variant of the Zope License would be much mroe friendly :-) cheers, Chris just what i needed to start the week off right, a flamewar. :( please allow people to choose their licenses freely. knocking on the gpl, is ignoring the reason why its there, to allow people to give their work freely to the community without concern of it being subverted. k ___ 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] problems with URL passing again
On Mon, 29 Jan 2001, Horatio B. Bogbindero wrote: dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" Sometimes id is not a string, but a function to call: id(). To force Zope renders it to string always write _['id']. Zope 2.3 has getId() that is always function. 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] License
On Mon, Jan 29, 2001 at 12:58:35PM +, Chris Withers wrote: And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed product in a product/solution I provide, then I have to do that for free and open source it too, which often isn't an option :-( Nope, that's wrong. If you extend a GPL-licensed product by your own work, and if you want to distribute this to somebody else, then you have to give this "somebody" the right to re-distribute the complete product (including your own work) under the terms of the GPL. Therefore it's no problem to sell such a product... The important thing is, though, that your customer could give away the result to everybody else for free (and could do everything else with it that the GPL allows). And in fact, yes, you'll have to make available the sources of your work, too, for your customer--if he demands to see them. So it's perfectly fine to use GPL software in a consulting work, and let the customer pay for it--if you give him all the other rights granted in the GPL. A very crucial point is the exact definition of "extending a GPL-licensed product" (that's my own words for "derived work"). According to the FSF, typical things of "deriving a work" from a GPL-licensed product are probably modifying or extending the code, reusing portions of the code, but also linking with it (be it statically or shared). In the field of interpreted languages, it gets even more complicated. It's completely clear on the other hand, that a mere aggregetion of the product (e.g. distribution GNU emacs on a CD with proprietary software) is no problem, and it's also no problem to use GNU tools to produce proprietary output (e.g. using GCC to compile a proprietary program). The GPL definitely is not contra selling software or services (one could even argue that it's the perfect solution for specialized consulting products, since it gives the customer a security that he'll be able to buy support for a product even if the original author has lost interest). Have a look at www.gnu.org, e.g. "Selling Free Software" by RMS (http://www.gnu.org/philosophy/selling.html) is especially interesting. Gregor ___ 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] License
On Mon, 29 Jan 2001, Chris Withers wrote: And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed product in a product/solution I provide, then I have to do that for free and open source it too, which often isn't an option :-( Of course you DON'T have to do your work for free !!! How could someone make a living. The GPL says clearly that you are perfectly allowed to sell your work. However if your soft is GPLed or uses some GPLed code then you must distribute (sell) your code along with all its sources, or the sources should be made available for all at a minimal fee covering the reproduction costs (a CDR probably) The point is you should sell your service instead of your code. hoping this will help your better undersstand what the GPL is all about. bye, Jerome Alet ___ 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] ZObjectManager
Dear Group. I have made a Product and a Class that is ZObjectManager. But how do I create Object instances within the instance of the Class? I want to do this programmaticly. Reagrds Gordon Bergstrm ___ 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] Core Session
Chris McDonough wrote: Any ideas when it will land? Nope. It's pretty stable now, but any release that shows up in the core depends on a new BTree implementation, which has been slow in the making. rats... although I'd love to see a snappy new BTree implementation... got lots of projects that use the current one :-) 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] Core Session
Any ideas when it will land? Nope. It's pretty stable now, but any release that shows up in the core depends on a new BTree implementation, which has been slow in the making. ___ 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+SybDA]Multiplexed or not ?
Hi list! I run: -zope 2.2.4 -python 1.5.2 - solairs (sunos5) on ES450 and the ZopeSybase DA v2. I am not sure if the SQL transactions are multiplexed (I mean that I can run several SQL requests at the same time). I try : /A/firstZSQLMethod - firstSybDA /B/anotherZSQLMethod - anotherSybDA, but on the same sybase server in two browsers running in two differents computer, and it seems the second transaction is always waiting for the first to finish, before running (so it will mean there is no multiplexed). I'm not sure what the problem is, how to test and perharps fix it. What I know is that the SybaseDA v2 claimed to be fully multithreaded. But now : -How do I test if Zope+SybDA is truly multiplexed ? I have try 2 simultaneous requests, but there is so much parameters (os, python, zope, sybda ...) that I don't know if it is the right direction. -How do I test if Python 1.5.2 is trully multitrheaded ? It is "home mad", I have to compile it with the Sun C compiler because there is no GNU tools on our system, and I have done a lot of work to have python compiling. So perharps I miss something about multithreading in python. Thanks a lot for advise. Tony ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
Olaf Zanger wrote: hi there, according to what i have seen on the homepage it seems like ZDatabaseTool is the missing link to push zope to a all in one solution. Thanks for the flowers ;-) until now we solved most of our stuff with znolkwizard. this is a great product for what it is designed. it has some shortcomes though. I never tested ZNolk ... I found it just 2 minutes ago on the product list. As far as I understand it helps you creating ZSQLMethods and ZDTMLDocuments for searching, inserting, updating and so on. Unlike ZNolk ZDatabaseTool's Wizard creates a ZDatabaseWizard object. So if you give new features to this class all your already existing ZDatabaseWizard instances will take advantage of this new behavior. I know there is a lot of work especially to document the design. Perhaps I should start with a small UML diagram. is the product planned to ship under GPL or an corresponding licence? I really don't know. Fortunately it is not yet released so I can think about it :-) So far I only decided definiet to give the code back to the community in one or the other way. is it possible to get a tarball for testing? Not at this time. It's my first product. There is not only one line to comment the code! Das kann ich euch wirklich nicht antun. (Sorry ... Altavista is unable to translate this line ;-) -- Andreas Heckel [EMAIL PROTECTED] UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-) ___ 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] MYSQL Problem
On Sun, 28 Jan 2001, Jens Grewen wrote: I installed mySQL-3.23.32 mySQLdb 0.3.1 ZmySQLDA 2.0.4 When I change to mediumint (database field description) I get the expected 233. How can I fix this. You just did. :) If a mediumint is big enough for you, use that. As Ron points out, INTEGER (particularly UNSIGNED) can overflow in Python, so they need to be returned as Python long integers. Python adds the L when doing str(), but Python 2.0+ does not do this (only on repr()). -- Andy Dustman PGP: 0xC72F3F1D @ .net http://dustman.net/andy "Normally with carbonara you use eggs, but I used lobster brains instead." -- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle ___ 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] License
EVERYTHING SNIPED! PLEASE allow ME to choose the license freely and PLEASE STOP the flamewar on this thread! You can find tons of these licence discussions not only on this list and there is nothing new to say. -- Andreas Heckel [EMAIL PROTECTED] UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-) ___ 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] problems with URL passing again
dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" Sometimes id is not a string, but a function to call: id(). To force Zope renders it to string always write _['id']. Zope 2.3 has getId() that is always function. a million thanks to you and may the gods bless you! hehehe. in other words, it worked! where is this feature/bug documented? -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 today, n.: A nice place to visit, but you can't stay here for long. ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
Olaf Zanger wrote: hi there, tested the printing facility (nicely done by pdf). it crashes * acrobat reader 4.05 on win98 and * the pdf/ps/ghostview part of konqui doesn't like it either, it works though under * acrobat reader 4.0 on suse 7.0 Hi Olaf, thanks for your feedback. Unfortunately I can't reproduce the error. Development is done on Linux and it looks fine. I tested it just two minutes ago on the Win98 box of my girlfriend. Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1) What can I say ... it works :-( So could you please have a look at the about boxes of your browser and Acrobat Reader and report your versions ? BTW: Why I'm not surprised the trouble starts with Win ;-) -- Andreas Heckel [EMAIL PROTECTED] UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-) ___ 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] ZObjectManager
Here we go... 'Hitrate' is the whole product. HitrateText_add() is a method you find _inside_ the ZClass called 'HitratePage' (notice the dtml-with statm.) NoRedir is a variable I send to that method to tell it not to redirect anywhere. dtml-with "PARENTS[0].manage_addProduct['Hitrate'].HitratePage" dtml-call "HitrateText_add(_.None,_,NoRedir=1)" /dtml-with Hope it helps! Mvh, Peter - Original Message - From: "Gordon Bergstrm" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 29, 2001 1:53 PM Subject: [Zope] ZObjectManager Dear Group. I have made a Product and a Class that is ZObjectManager. But how do I create Object instances within the instance of the Class? I want to do this programmaticly. Reagrds Gordon Bergstrm ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
On Mon, 29 Jan 2001, Andreas Heckel wrote: BTW: Why I'm not surprised the trouble starts with Win ;-) Oh, please !!! Please don't start a new flamewar here ;-)) bye, Jerome Alet ___ 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] How to upgrade to 2.3 (no differential install?)
I'm running Zope 2.2 on RH Linux 7 I see that there's no 2.2-to-2.3 .tar file.. Why? What's the correct way to upgrade my existing Zope installation? -- Call me stupid, I can't find the proper command line switch to get tar to ignore the top level directory name Zope-2.3.0-linux2-86 Do I have to untar into a junk directory, then cp -r everything to my current dir? 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] missing FCNTL.py after building Zope 2.3 on Python 1.5.2
Are there any comments regarding the missing of a module named FCNTL.py ? It happens that I just built Zope 2.3 from source on a Python 1.5.2 installation and after compiling and building successfully just after the "./start" command, Zope crases with a "no module named FCNTL" . This is odd - it actually crashes? The only part of the code that tries to use FCNTL is in the __init__.py of ZServer: try: import fcntl, FCNTL FCNTL.F_SETFD; FCNTL.FD_CLOEXEC def requestCloseOnExec(sock): try:fcntl.fcntl(sock.fileno(), FCNTL.F_SETFD, FCNTL.FD_CLOEXEC) except: pass except (ImportError, AttributeError): def requestCloseOnExec(sock): pass ...and it is specifically designed to fail gracefully if FCNTL support is not available. The fact that you are getting an error message of "no module named FCNTL" makes it _sound_ like an ImportError, which should be caught. Can you send me a copy of the whole traceback (maybe we are somehow getting something other than ImportError)? Just by the way, recommended trustworthy ways to find out if the Python installation has been compiled with threads enabled -besides knowing that it is a plain vanilla RPM install and what that may or may not imply - ...? Start python from the command line and try: import thread if you get an ImportError, threading is probably not compiled in... 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 )
Re: [Zope] namespace problems
I really appreciate your help, but I continue to have problems with this line, and this is turning into a quest of sorts ;) . When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script I get "NameError URL1". When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)" I get "AttributeError RESPONSE". I'm confused, but very grateful for your help so far. Gary. Chris Withers wrote: Chris Withers wrote: How would I do the URL redirect using an equivalent to the dtml-call "RESPONSE.redirect(URL1)" that's in the DTML Method below? context.RESPONSE.redirect(URL1) D'Oh... Either replace it with: context.REQUEST.RESPONSE.redirect(URL1) ...or do the following: -Go to the bindings tab and bind _ to the Namespace. -Then do _.RESPONSE.redirect(URL1) 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 )
[Zope] Re: [Zope-dev] Creating a namespace
Stephan Richter wrote: Hello everyone, I want to make my own name space with the following situation: class X: attributes = {'foo': 'bar'} x = X() Then I want to use it like that: dtml-with x dtml-var foo /dtml-with The result should be : bar I found out that I have to somehow use TemplateDict and InstanceDict, but I have no clue how to use itOf course there is no documentation on any web site or in the Zope code itself Thanks for you help!!! Regards, stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management I think the key to your problem is the "mapping" option of dtml-with. If your class/External method returns a dictionary, you can add it to the namespace like so: dtml-with x mapping dtml-var foo /dtml-with You do not need to explicitly create a new InstanceDict yourself, dtml-with takes care of that. -- | Casey Duncan | Kaivo, Inc. | [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] namespace problems
Gary Lowder wrote: When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script I get "NameError URL1". That should be: RESPONSE = context.REQUEST.RESPONSE URL1 = context.REQUEST['URL1'] RESPONSE.redirect(URL1) When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)" I get "AttributeError RESPONSE". Try _['RESPONSE'].redirect(_['URL1']) errr... maybe DTML wasn't so bad afterall ;-) *sigh* 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] Python script safety
At 10:18 AM 1/29/2001 +, you wrote: Robin Becker wrote: Yes, I can use External Methods if I have access to the machine, but those 'trusted' scripts could be just as easily handled by a 'Trusted Python Scripts' Zope object which didn't have all the rather (as you say yourself) pointless safety checks. Then I could handle the safety issue in Zope and not in the base OS. There would be many advantages in having allowing 'unsafe' scripting inside the Zope domain. I'll second that ;-) I'll third. ___ 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] user creation authentification
in order to accomplish the second task effectively you should look at LoginManager; in doing so you will find answers to your first question. however, you may find you need to refer a lot to the mailing list archives to get LoginManager installed ;) I've read that the LoginManager does not work properly under Zope 2.3. Will it be updated to work soon? ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
hi there Andreas Heckel schrieb: Olaf Zanger wrote: hi there, tested the printing facility (nicely done by pdf). it crashes * acrobat reader 4.05 on win98 and * the pdf/ps/ghostview part of konqui doesn't like it either, it works though under * acrobat reader 4.0 on suse 7.0 Hi Olaf, thanks for your feedback. Unfortunately I can't reproduce the error. Development is done on Linux and it looks fine. I tested it just two minutes ago on the Win98 box of my girlfriend. Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1) What can I say ... it works :-( So could you please have a look at the about boxes of your browser and Acrobat Reader and report your versions ? acroread 4.05a 113001:28 (the same as yours) ms ie 5.00.2919.6307 also happens with netscape 4.73 de so it might be acrobat reader on my system. sorry -- can't test it more exactly without having it installed BTW: Why I'm not surprised the trouble starts with Win ;-) you are not alone on that -- ah, let's have another flamewar. but, as you know there are people using this on the desktop. probably you could tell me when you release it thanks olaf p.s. the crash: ACROBAT verursachte einen Fehler durch eine ungltige Seite in Modul KERNEL32.DLL bei 016f:bff9db61. Register: EAX=c0030944 CS=016f EIP=bff9db61 EFLGS=00010212 EBX= SS=0177 ESP=008ffe68 EBP=00900104 ECX= DS=0177 ESI= FS=9d17 EDX=00900144 ES=0177 EDI=00615980 GS= Bytes bei CS:EIP: 53 8b 15 e4 9c fc bf 56 89 4d e4 57 89 4d dc 89 Stapelwerte: -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger 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] ANNOUNCE: please have a look at ZDatabaseTool
hi andreas, according to what i have seen on the homepage it seems like ZDatabaseTool is the missing link to push zope to a all in one solution. Thanks for the flowers ;-) that's for free :-) until now we solved most of our stuff with znolkwizard. this is a great product for what it is designed. it has some shortcomes though. I never tested ZNolk ... I found it just 2 minutes ago on the product list. As far as I understand it helps you creating ZSQLMethods and ZDTMLDocuments for searching, inserting, updating and so on. Unlike ZNolk ZDatabaseTool's Wizard creates a ZDatabaseWizard object. So if you give new features to this class all your already existing ZDatabaseWizard instances will take advantage of this new behavior. well, that's missing in znolk :-( So far I only decided definiet to give the code back to the community in one or the other way. that's great to hear is it possible to get a tarball for testing? Not at this time. It's my first product. There is not only one line to comment the code! probably the source is the documentation? or finally somebody helps you out with documentation. Das kann ich euch wirklich nicht antun. (Sorry ... Altavista is unable to translate this line ;-) ah, you mean you can't do that to us? anyway, probably you want to tag it as "alpha/beta/non documented" or so -- that helps novices to keep fingers off :-). anyway, as you said, you want to let it free so probably early freedom helps to raise the child quickly :-) olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger 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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
I just installed Zope 2.3.0 and I'm planning how to port my sites from 2.2.5. It looks like I'll have to: + Copy over the Products I installed, _except_ + Don't copy over SiteAccess and PythonMethods. + Delete the PythonMethods product from the Control_Panel/Products management folder. Will I have to manually convert each existing Python Method to a PythonScript, or are they essentially the same type? I haven't been able to test what happens yet, because all my existing Python Methods relate to LoginManager and I haven't been able to get the LoginManager product to initialize correctly in 2.3.0. I followed the first two steps above and copied over my data.fs. It comes up cleanly except for an exception while loading the LoginManager and some ZClass problems for ZClasses that depend on LoginManger. The exception is this: -- 2001-01-29T16:57:02 ERROR(200) Zope Couldn't import Products.LoginManager Traceback (innermost last): File E:\PROGRA~1\Zope230\lib\python\OFS\Application.py, line 530, in import_products (Object: string) File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\__init__.py, line 1, in ? File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\LoginManager.py, line 121, in ? InstallError: No access file found at E:\Program Files\Zope230 - see INSTALL.txt -- Can someone help me understand this? The two INSTALL.txt files under Zope230 offer no clues. It's odd that the exception stack shows it executing code from my older Zope225 installation. How the heck can that happen? Is that some bug in Python? There's nothing in my environment that mentions Zope225, and I dumped sys.path late in z2.py and it looks fine. I tried deleting the LoginManager product from the management interface and restarting, but the same exception occurs. I do notice that, unlike prior Zope installs, there is no 'access' file in the Zope root. Oops, I just saw another message about LoginManager not yet working in Zope 2.3. If that's so, it's a show-stopper for me. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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] Catalogaware ZCLass and deleting
Hello, I try to delete a Catalogware ZClass with subobjects that are also ZClasses. That's my method to delete a Class: -- dtml-in "objectValues('ZClassPage')" dtml-let x=sequence-item dtml- if "in_work" dtml-call "manage_delObjects([x.id])" /dtml-if /dtml-let /dtml-in But Zope answers: An exception occurred in a DTML method or document. Error type: BadRequest Error value: 980785769 does not exist But '980785769' EXISTS in the management-interface !! :-(( Thanks! ___ 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] RESPONSE.redirect
Hi all, I'd like to show a page and after a few seconds I'd like to redirect to another page. If I simply add !--#call "RESPONSE.redirect"-- it is done immediately. How can I achieve a delay of a couple of seconds? Oliver ___ 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] ANNOUNCE: please have a look at ZDatabaseTool
Olaf Zanger wrote: hi there Andreas Heckel schrieb: Olaf Zanger wrote: hi there, tested the printing facility (nicely done by pdf). it crashes * acrobat reader 4.05 on win98 and * the pdf/ps/ghostview part of konqui doesn't like it either, it works though under * acrobat reader 4.0 on suse 7.0 Hi Olaf, thanks for your feedback. Unfortunately I can't reproduce the error. Development is done on Linux and it looks fine. I tested it just two minutes ago on the Win98 box of my girlfriend. Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1) What can I say ... it works :-( So could you please have a look at the about boxes of your browser and Acrobat Reader and report your versions ? acroread 4.05a 113001:28 (the same as yours) ms ie 5.00.2919.6307 also happens with netscape 4.73 de so it might be acrobat reader on my system. sorry -- can't test it more exactly without having it installed Hi Olaf, I'll do my best to release the code as soon as possible. For now I turned off PDF compression. Would be interesting if it makes more sense to your KERNEL32.DLL :-) Unfortunately I can't update to ie 5 on the Win98 box of my girlfriend because she needs it for business and she prohibited to toch her (still) running system. How ever ... I already saw my program running on W2000 Acrobat 4.05 IE 5.5 . Perhaps we can get more feedback from WinXX users on this list ?! -- Andreas Heckel [EMAIL PROTECTED] UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-) ___ 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] Creating a namespace
Stephan Richter writes: I want to make my own name space with the following situation: class X: attributes = {'foo': 'bar'} x = X() Then I want to use it like that: dtml-with x dtml-var foo /dtml-with The result should be : bar I found out that I have to somehow use TemplateDict and InstanceDict, but I have no clue how to use itOf course there is no documentation on any web site or in the Zope code itself It is not you that use TemplateDict or InstanceDict, it is "dtml-with" that does this (for you). However, you need to look at permissions. Read Brian's "Upgrade to Zope 2.2" or the reference Zope security paper. 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] missing FCNTL.py after building Zope 2.3 on Python 1.5.2
I'm not sure exactly how the problem manifests itself in 1.5.2, but in 1.6 later, there are a series of platform specific directories: Lib/plat-{XXX} where XXX is some system, and a Lib/plat-generic/. That's where the FCNTL and some other files live. If your system is not among the ones included in the distribution, it has to build those system dependent files from the regen script in Lib/plat-generic/. It should probably be considered a bug of the build/makefile system that that step does not get done when building Python, but only on 'make install' . If you do a 'make test' before doing 'make install', and it's your first build on a 'generic' platorm, it will always fail for those ( FCNTL.py, TERMIOS.py, ... ) files. -- Steve Majewski ___ 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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
From: "Fred Yankowski" [EMAIL PROTECTED] + Don't copy over SiteAccess and PythonMethods. + Delete the PythonMethods product from the Control_Panel/Products management folder. Will I have to manually convert each existing Python Method to a PythonScript, or are they essentially the same type? They are radically different types, and can therefore live in the same Zope, side-by-side, without conflicting. There is no automatic conversion process. Simply keep PythonMethods installed, and replace individual Methods with Scripts as you feel the need. Cheers, Evan @ digicool 4-am ___ 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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
After browsing the Zope-dev list (I guess that's _yet another_ list I need to follow) I found a note about creating the 'access' file manually with zpasswd.py. After doing that, LoginManager seems to come up cleanly in Zope 2.3.0. And now I can see that my Python Methods come in broken, apparently because they depend on the PythonMethods product that I didn't carry over. So I guess I'll have to have to install PythonMethods and port over those methods manually to Python Scripts. Rats. I'm just glad I didn't have too much invested into PythonMethods. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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] Ithy Trigger Fingers (was Re: [Zope] License)
Andreas Heckel wrote: EVERYTHING SNIPED! PLEASE allow ME to choose the license freely and PLEASE STOP the flamewar on this thread! You can find tons of these licence discussions not only on this list and there is nothing new to say. Come on people, this is not a flme war. Nobody is calling anyone names, nobody is saying one is better than another, nobody other than those crying 'flame war' is being less than civil. There is nothing wrong with _discussion_ and requests, they do not constitute a flame war. If someone comes on and says Zope can't do a certain thing, and someone corrects them, is that a flame war too? After all, what has happened so far has been nothing more than correcting a stated misconception. BTW, this also applies to some other cries about 'another flame war' in another thread. Bill Anderson ___ 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] License
Fabrice FRANK wrote: I really agree, do NOT change the license terms. Ummm .. the software in questions has _no_ license terms yet. Bill ___ 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] CacheManagers are cool :)
On Monday 29 January 2001 10:15, Seb Bacon wrote: I've just been experimenting with the RAM Cache manager, and FWIW I thought I'd share my findings: I ran some simple tests using ab against a single, dynamic page which has some display logic both in the filesystem product and dtml. I cached the index_html using the default RAM Cache Manager settings. Without caching, response time appeared to increase in direct proportion to the number of simultaneous requests up to 10. Above 10 connections, response time worsened dramatically. When there were 15 simultaneous connections, the response time averaged at approximately 10 seconds. The relationship looked logarithmic, but I didn't really take enough samples to be sure. Plus, the system I tested it on only has 96Mb RAM, and it was swapping a bit. In all cases the cache improved performance. The average response time was improved by up to 70% where more than 10 concurrent users were simulated. There was an improvement of 20% - 25% between 5 and 10 concurrent requests. There was no significant improvement where there were no concurrent requests. The relationship between the number of simultaneous requests and the response time remained linear across all measured levels of concurrency. very cool. although i find the lack of improvement on a non concurrent requests a bit strange if its a the dtml is doing real computation vs. serving a string from memory. Not exactly a real-life usage scenario, but it sounds impressive :) Not sure I understand what the cache keys are for though... is there any more documentation forthcoming on this? so you can cache requests based on dynamic input. useful for authentication to present different cache pages to different users, and also to present common request dependent information from cache. as for real documentation, use the source luke k ___ 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] Products and Zope 2.3
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Withers Sent: Monday, January 29, 2001 4:35 AM To: David K. Trudgett Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Products and Zope 2.3 "David K. Trudgett" wrote: This brings up the question: are there any significant products that don't yet work with Zope 2.3? Squishdot for one ;-) I'm confused by this statement. I upgraded my Squishdot 0.7.3 / Zope 2.2.5 installation to Zope 2.3.0 and my Squishdot is working without any problems. Am I missing something that's really broken? ___ Ron Bickers Logic Etc, Inc. [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] RESPONSE.redirect
On Monday 29 January 2001 09:14, Oliver Vecernik wrote: Hi all, I'd like to show a page and after a few seconds I'd like to redirect to another page. If I simply add !--#call "RESPONSE.redirect"-- it is done immediately. How can I achieve a delay of a couple of seconds? Oliver meta refresh in your headers should do it. you can use dtml to dynamically insert the redirect page. standard html (4?) k ___ 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] porting from Python Methods to PythonScripts in2.3.0;LoginManager too
The text of an external method for converting Python Methods to Python Scripts was posted to the list a while back. I forget who because I just copied and pasted at the time. Anyway, credit to whoever, and apologies for not having the name. I took that and made something that works for me as a Python Script. (Though my Methods have been rather simple...) Standard caveats, YMMV, etc, but it does a quick pass on the Methods in the folder where it is and makes Scripts from them when you hit the 'test' tab, saving the old ones as methodname.old. It's not perfect (e.g., it will import random if you use whrandom); it's just a bit easier than manually editing (copy, paste, edit) for the same functionality. It would be pretty easy to recurse all folders and change them all, but I am not that bold yet. It seems debugged enough to post. I am sure someone will let me know if otherwise. -- Jim Washington begin code import string ids = container.objectIds('Python Method') #what suffix do we want on the old Methods? oldscriptsuffix='.old' #replace all self. with the following: #change to context if needed newself = 'container' #for future programmatic use just to be certain no extra dots if string.find(newself,'.') = 0: newself = string.replace(newself,'.','') for method_id in ids: method_id = string.strip(method_id) #get the Method and its title method = container[method_id] title = method.title #FTPget does not require external method! thebody = method.manage_FTPget() #get the params eop = string.find(thebody,'/params') params = thebody[8:eop] params = string.replace(params,' ','') params = string.replace(params,'self,','') params = string.rstrip(string.replace(params,'self','')) body = thebody[eop+10:] #get the body newbodylist = [] splitbody = string.split(body,'\n') #do imports as needed #bug: random will be imported if you use whrandom for animport in ['string','whrandom','random','math']: if string.find(body,animport+'.') = 0: newbodylist.append('import ' + animport) for k in splitbody: #this would be a good place for re; put container where self was newstring = string.replace(k,'self.',newself + '.') #bug: might miss 'self [' wish re were available newstring = string.replace(newstring,'self[', newself + '.') newbodylist.append(string.rstrip(newstring)) body = string.join(newbodylist,'\n') # uncomment to see the raw data # print 'params = "%s"' % params # print 'body is:\n"%s"' % body #rename the old and create the new. don't do more than once. if method_id [-len(oldscriptsuffix):] oldscriptsuffix: container.manage_renameObject(method_id,method_id+oldscriptsuffix) container.manage_addProduct['PythonScripts'].manage_addPythonScript(method_id) newscript = container[method_id] newscript.ZPythonScript_setTitle(title) newscript.ZPythonScript_edit(params, body) print 'converted: \t%s' % method_id if len(printed) 9: print "No methods to convert" return printed end code Evan Simpson wrote: From: "Fred Yankowski" [EMAIL PROTECTED] + Don't copy over SiteAccess and PythonMethods. + Delete the PythonMethods product from the Control_Panel/Products management folder. Will I have to manually convert each existing Python Method to a PythonScript, or are they essentially the same type? They are radically different types, and can therefore live in the same Zope, side-by-side, without conflicting. There is no automatic conversion process. Simply keep PythonMethods installed, and replace individual Methods with Scripts as you feel the need. ___ 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] PCGI and MS-IIS on Nt5
From: Paul Zwarts so, technically I did set it up correctly, but I want to configure the default document so when I just put in: http://localhost For that the easiest solution is to put a redirect in your root to: http://localhost/scripts/zope.pcgi either through a server setting or through an asp script with a "Response.Redirect('scripts/zope.pcgi')" You could also put your zope.pcgi in your root folder and make it a default document (just like 'default.htm', 'index.asp' etc), but somehow I guess that that will bring your troubles later on. I will get the root folder of my zopesite WITH the PCGI working. Now, I need to use: http://localhost:8080 If I goto http://localhost/scripts/zope.pcgi, I get what I want with the PCGI, but I cannot use the site because the links do not work. If you are not using Zope 2.3 You will probably want to use: http://www.zope.org/Members/4am/SiteAccess2 It can change your links so that they will match the ugly /scripts/zope.pcgi url that you get through IIS. 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] RESPONSE.redirect
From: [EMAIL PROTECTED] Oliver Vecernik I'd like to show a page and after a few seconds I'd like to redirect to another page. If I simply add !--#call "RESPONSE.redirect"-- it is done immediately. How can I achieve a delay of a couple of seconds? First you should send the page you want to show, then you should redirect to a page with a delay. Probably you should write it in an external Python method. That page should then redirect to the target page. Or you could drop the middle page and build the delay into the target page. That is stupid though if it is also accesed from elsewhere than the first page you want shown. Or you could make a delay in JavaScript and after that do a self.document.src = "new/url" Regards Max M Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Shipping software is an unnatural act ___ 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] PCGI and MS-IIS on Nt5
I suffered similar problems when I tried IIS on Windows 2k. Some people have reported success however, so there must be some knack to this. I found http://my.server.com/zope.pcgi worked but http://my.server.com/zope.pcgi/as/asd didn't... If you get it working I'd love to know how. Sorry I cant be more help. -- Andy McKay. - Original Message - From: "Paul Zwarts" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 29, 2001 2:09 AM Subject: [Zope] PCGI and MS-IIS on Nt5 Greetings all, I've searched through Zopesite and a few docs on setting up Zope with MS-IIS, but I cannot get PCGI to work I followed BriaH's document and did everything. I CAN access http://localhost:8080/scripts/zope.pcgi and get what I want to see in dtml-var REQUEST... so, technically I did set it up correctly, but I want to configure the default document so when I just put in: http://localhost I will get the root folder of my zopesite WITH the PCGI working. Now, I need to use: http://localhost:8080 I get my website, but PCGI is not working, as I can see in dtml-var REQUEST that it isnt connecting the PCGI. Without PCGI, my SQL Session will not work. If I goto http://localhost/scripts/zope.pcgi, I get what I want with the PCGI, but I cannot use the site because the links do not work. Can anyone explain what Im doing wrong? TIA, Paz ___ 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] BUG? Strange behaviour of external methods after update
A colleague of mine has developed an external method and installed it as a SiteAccess access rule. He made a programming error that caused a TypeError exception to be raised. He recognized his fault and corrected the external method. Then, the strange behaviour started: The access rule sometimes worked correctly but sometimes raised the old TypeError exception. I had the impression as if some threads used the new and some other threads continued to use the old version of the external method. We flushed the cache, but to no avail. My colleague finally reported, that renaming the external method and reinstalling the access rule fixed the problem. For me, it looks like a persistence bug. Problem context: * Zope 2.1.6 (sorry for the old version) * running in production mode, the external method was "refreshed" after modification with the "edit" button. Did you ever see something similar? 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] We get problems Zope is backed up!
3dfestival - WebMaster writes: Does anybody have a solution for our big problem? How do we backup in another way...? When our Zope-site is being backed up we have different probs... We have (kind of) have figured out that the problem is only (!) occuring when we change something on our site OR somebody adds something to our site, while it is being backed up... We are using Zope v2.2.4 running in Apache on a Linux-machine What type of problems? The only problem you might get should be that the last transaction be incomplete. You can fix this with the "fsrecover" tool distributed with Zope. 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] user creation authentification
Ralf Kraemer writes: is it possible to create users "not using" the zope management interface ??? i tried a lot using the editUsers.dtml from zope and it works , but i dont like the response . i would like to see my own pages, not the management screens You already know "dtml-call"? It discards an unwanted (or unnecessary) return value. second question i would like to log in some user with my own login screen or how can i edit the default userauthentification screens from the browser (Netscape/IE/opera) ? You can't. However, you can use a cookie based session product. Such products allow you to provide your own login screens. 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 )
[Zope] LocalFS on 2.3.0
I "thought" LocalFS worked. But now when I import something with a LocalFS defined or attempt to create a new one here's the traceback on: Zope Version Zope 2.3.0 (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 Error Type: AttributeError Error Value: _local_path Traceback (innermost last): File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_main) File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_main) File /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage_main) File /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: manage_main) File /usr/local/zope/2.3/lib/python/App/special_dtml.py, line 236, in _exec (Object: manage_main) File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_In.py, line 711, in renderwob (Object: objectItems) File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: sequence-key) File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_Var.py, line 271, in render (Object: bobobase_modification_time) File /usr/local/zope/2.3/lib/python/Products/LocalFS/LocalFS.py, line 979, in bobobase_modification_time (Object: myhomedir) AttributeError: (see above) -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "Liberty has never come from the government." - Woodrow Wilson ___ 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] 2.3 PythonScripts problem...
Curtis Maloney writes: I have just made a nice fresh Zope 2.3 install, and am having an odd problem with PythonScripts. I add one from the management screen, enter the name, "add and edit", enter the code, the hit "save". Which dumps me to my index_html. Looks, as if you do no longer have the permission to use any management action. Unfortunately, I can not tell you why. 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 )