[Zope] Finding an object in a folder
Here is the problem. I want to use a form to upload a file (with a specific name) but first I want to check if another file with the same name already exist in that folder. How do I use a if or dtml-if to solve this problem?? Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope stops responding on hpux
Samuel Bieri <[EMAIL PROTECTED]> wrote: > When I click on a tal-object ("Page Template") to edit it, then zope > stops responding. No error is logged, nothing. I even cannot stop zope > anymore with "zopectl stop" or control-c if started with runzope. It > seems that zope silently crashes... You may want to try DeadlockDebugger. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
Allen Huang wrote at 2005-5-8 02:28 -0700: >Here is the problem. I want to use a form to upload a file (with a specific >name) but first I want to check if another file with the same name already >exist in that folder. How do I use a if or dtml-if to solve this problem?? "the_id" exists "the_id" does not exist -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope stops responding on hpux
Samuel Bieri wrote at 2005-5-7 23:45 +0200: > ... >When I click on a tal-object ("Page Template") to edit it, then zope >stops responding. No error is logged, nothing. I even cannot stop zope >anymore with "zopectl stop" or control-c if started with runzope. It >seems that zope silently crashes... However, I can create a tal-object, >it only happens when I try to edit. Try to run Zope inside a debugger. The debugger may be able to tell you about spurious signals causing Zope to die or to analyse the state once Zope is hanging. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is it possible to extend Zopes WebDAV authentication?
mark hellewell wrote at 2005-5-7 20:22 +0100: >On 5/7/05, Chris McDonough <[EMAIL PROTECTED]> wrote: >> Web Folders pass cookies around too, FWIW, so it's probably not strictly >> necessary to use http basic auth. But without using http basic auth, >> there is no way to log in unless you have them go to the web interface >> first, then launch a web folder, so maybe impractical. > >That's exactly what's happening at the moment; the WebDAV access is >linked to via the web interface after they log in (it's only one small part >of a larger system). They log in via the web, gaining a cookie which >is passed to the Explorer 'web folders' thing, so when they click on the >link to the WebDAV part of the site the cookie is still valid and they don't >have to log in to WebDAV. * I think this can only work when WebDAV uses the normal HTTP port. However, Powerpoint can get severely confused when it accesses a resource via WebDAV over the HTTP port and the access requires authentication. In this case, Powerpoint uses the login page as resource content. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope stops responding on hpux
Thank you a lot Florent for the hint ! The DeadlockDebugger seems to install and run correctly: event.log: 2005-05-08T19:55:20 INFO(0) ZServer HTTP server started at Sun May 8 19:55:20 2005 Hostname: zuse. Port: 8080 -- 2005-05-08T19:55:20 INFO(0) ZServer FTP server started at Sun May 8 19:55:20 2005 Hostname: zuse Port: 8021 -- 2005-05-08T19:55:21 INFO(0) DeadlockDebugger Installed -- 2005-05-08T19:55:24 INFO(0) Zope Ready to handle requests And the Debugger gives me the threads traceback dump. But when I click on a tal-object, then zope deadlocks and also DeadlockDebugger does not return the dump anymore. Samuel Florent Guillaume wrote: Samuel Bieri <[EMAIL PROTECTED]> wrote: When I click on a tal-object ("Page Template") to edit it, then zope stops responding. No error is logged, nothing. I even cannot stop zope anymore with "zopectl stop" or control-c if started with runzope. It seems that zope silently crashes... You may want to try DeadlockDebugger. Florent ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope stops responding on hpux
Dieter Maurer wrote: Samuel Bieri wrote at 2005-5-7 23:45 +0200: ... When I click on a tal-object ("Page Template") to edit it, then zope stops responding. No error is logged, nothing. I even cannot stop zope anymore with "zopectl stop" or control-c if started with runzope. It seems that zope silently crashes... However, I can create a tal-object, it only happens when I try to edit. Try to run Zope inside a debugger. I managed to compile GNU debug 6.1.1 on the hp-ux box. When I run zope inside gdb I get the following: (gdb) run 2005-05-08T22:29:59 INFO(0) Zope Ready to handle requests [New thread 2 (system thread 9556080)] [New thread 3 (system thread 9556082)] [New thread 4 (system thread 9556083)] [New thread 5 (system thread 9556084)] ---> here I klick on a tal-obect in zope. Zope freezes. Then I kill zope. Program received signal SIGQUIT, Quit. 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 (gdb) bt #0 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 #1 0x77d2ba78 in sem_wait () from /usr/lib/librt.2 #2 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 #3 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 Previous frame identical to this frame (corrupt stack?) (gdb) Can any experienced zope programmer help me further? What does this mean? Thank you very much, Samuel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Find a object in a zope list
Allen Huang wrote: I have a fold and I used objectValues['Image'] to make a array list of images. I have rename each image using AUTHENTICATED_pic.jpg and want to use an if statement to find the image with the same name in the array list. Can someone tell how?? Is there a findObject function or something?? Don't use objectValues for this. You simply need: image = folder['AUTHENTICATED_pic.jpg'] You can't use folder.AUTHENTICATED_pic.jpg because of the dot in the id. Cheers, Dan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope stops responding on hpux
On Sun, 8 May 2005, Samuel Bieri wrote: I managed to compile GNU debug 6.1.1 on the hp-ux box. I hope it wasn't too much trouble. You could have gotten it from here: http://www.hp.com/go/wdb ---> here I klick on a tal-obect in zope. Zope freezes. Then I kill zope. Program received signal SIGQUIT, Quit. 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 (gdb) bt # 0 0x77d2ca58 in __lwp_sema_wait () from /usr/lib/librt.2 # 1 0x77d2ba78 in sem_wait () from /usr/lib/librt.2 # 2 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 # 3 0x77d2ba10 in sem_wait () from /usr/lib/librt.2 Previous frame identical to this frame (corrupt stack?) (gdb) Can any experienced zope programmer help me further? What does this mean? Looks like a deadlock on a semaphore to me, though I couldn't say where. Did you python build pass all of the self tests? Did you build your python with the posix threads apis (i.e. not DCE threads)? Jeff D Jeff Donsbach Webmaster (and bass drummer) Middlesex County Volunteers Fifes and Drums http://www.mcvfifesanddrums.org/ [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )