[Zope-dev] Re: restrictedTraverse doesn't give the good container
Hi, Please don't cross-post. You already posted this exact question to [EMAIL PROTECTED], and received two replies to which you did not follow up. Sorry if I did that, but my Webmail gives me some trouble, and you've certainly knew it because you can't reach my box. Why should we have time to fix your problem when you apparently don't have time to respond to our replies? I don't ask for someone to fix my problem, just to know if someone had fixed it before. I have no time to have a look yet, but if nobody had fixed up, I will fixed up later. Incidetn is closed. Just for the answer fo the link below : http://aspn.activestate.com/ASPN/Mail/Message/zope-List/1993724 No the path is not absolute. I have this hierarchy : -Root --ThisFolder ---FolderA ... I've written as: ... thepath = 'ThisFolder' path = context.restrictedTraverse(thepath) ... To follow the folders I've written: ... herenow = context.restrictedTraverse(path+'/FolderC') herenow = herenow.restrictedTraverse(path+'/FolderC') ... Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] restrictedTraverse doesn't give the good container.
Hi, Today, I have this situation: Under my root Zope Site, I have this hierachy: - FolderA ---FolderB FolderC -FolderC What is interesting is that a folder named FolderC appears under another folder named with the same name. Assuming the path is the good one (path=.../.../FolderB) I try : herenow = context.restrictedTraverse(path+'/FolderC') - OK herenow = herenow.restrictedTraverse(path+'/FolderC') - OK Now I just delete the last FolderC, I have: - FolderA ---FolderB FolderC I try : herenow = context.restrictedTraverse(path+'/FolderC') - OK herenow = herenow.restrictedTraverse(path+'/FolderC') - OK BUT here I'm just not where I think to be, just because of the acquisition !!! I have no time to have a look on this, but anyone have seen this problem and resolved it? Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Strange loop with ZCatalog
Hi, For some tests I have done : - Create about 5000 folders under the Root Zope Site - Inside those folders, I have created about 30 000 objects ( as document, just an id, title and a Type). - I've catalogued all inside a catalog named TheCatalog I have written just this function, in intend to test my CPU ( that why I've written it like this): allobject = context.TheCatalog.searchResults(Type='TypeTest') l=len(allobject) i = 0 #for i in range(len(allobject)): for object in allobject: #path = allobject[i].getPath() #course = allobject[i][0] path = allobject.getPath() course = allobject[0] thepath = string.split(path,'/') lepath = string.join(thepath[:-1],'/') lieu=context.restrictedTraverse(lepath) lieu.manage_delObjects(course) i+=1 return Len: %s and Number parsed: %s %(i,l) Phase A: I have 30 000 objects and the message following: Len: 3 and Number parsed: 15001 In my catalog: 15000 object only were destroyed. !!! Phase B: I de-comment my comment lines, but I've got the same message. I try to understand what it happens, but I can't. Anyone has a brillant idea? Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Strange loop with ZCatalog
Hi, I already replied to this, but I never heard back from you. I haven't seen your answer before, I'll search for it. What does the following return for a value: len(list(context.TheCatalog.searchResults(Type='TypeTest'))) Just for now 62418. len (context.TheCatalog.searchResults(Type='TypeTest')) returns 62418 too. Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Strange loop with ZCatalog
Hi Casey, Yes it doesn't lie at all, but i've tried till I suppress all and even with 2 it suppressed only one. Can you tell me more about your message, I haven't found it. Cheers PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Error : exceptions.SystemExit
Hi, I've got this error when I shutdown my Zope : PAn error was encountered while publishing this resource. /P PSTRONGexceptions.SystemExit/STRONG/P Zope has exited normally.p !-- Traceback (innermost last): File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_shutdown) File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_shutdown) File /src/Zope-2.4.1-solaris-2.6-sparc/lib/python/App/ApplicationManager.py , line 411, in manage_shutdown (Object: LockableItem) SystemExit: 0 -- My Zope version is : Zope 2.4.1 (binary release, python 2.1, solaris-2.6-sparc), python 2.1.0, sunos5) My Python Version 2.1 (#2, Jun 22 2001, 11:02:37) [GCC 2.8.1] . Any idea ? Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.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 )
[Zope-dev] How makesetup deals with Zope ?
Hi, Next week I've tried to install the ParsedXML, under my Zope. Unfortunately, the installation failed. After some hours of hard worker, I've only change the permission of the makesetup file with : chmod 644 /usr/local/zope/Zope-2.4.3-linux2-x86/lib/python2.1/config/makesetup So, I have 2 questions about it 1-- Even I thought to see what makesetup is doing for and what it is doing, is there anybody to explain me in more details, for my personal knowledge ? 2-- In fact, the real question of this mail. The makesetup file should'nt installed with the x bit on, when we installed Zope ? Sincerily PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.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 )
[Zope-dev] Global Variable
Hi, I've that code : dtml-let TEST='dir' dtml-in portal_catalog.searchResults(Type='Cas clinique', review_state='published', sort_on='Date', sort_order='reverse') size=1 end=1 dtml-var id /dtml-in /dtml-in script type=text/javascript var image = 0; var delai = 2000; var icone = new Array (); var lelien = ''; var max = dtml-var compte_images(repertoire='/uv/web/cnr/cas/TEST;',prefixe='Ima-') - 1; I need to get the value returned by the dtml-var id in the function called compte_images and in some others later in the code. My question : I need something like a global variable, that I may use here and there. But, infortunately, I don't know how to write it. Anyone knows it ? Thank you PS -- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.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 )
[Zope-dev] How update metadata without Zope ?
I'm a newbie in Zope. I've installed CMF. For absolute reason, I receive, by e-mail, some HTML files, which are deposit on another directory than Zope. I have to open those files, to get the author and some others. I want to update the metadata of my Zope'site with this flow. But how can I do it? I Think it's a python script in a background task which runs. Someone to help me ? Thanks PS - OREKA ! L'ACCES A INTERNET MOINS CHER ! Connaissez vous nos nouveaux forfaits ? 10H pour moins de 40F, ou 25H pour moins de 80F (Internet + télécoms) ! Découvrez les vite ! Cliquez ici : http://www.oreka.com/start.php3?id=op3b600eafd954b ___ 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 )