[Zope-dev] Re: restrictedTraverse doesn't give the good container

2004-02-16 Thread Pascal Samuzeau
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 )


Re: [Zope-dev] Strange loop with ZCatalog

2004-02-13 Thread Pascal Samuzeau
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 )


Re: [Zope-dev] Strange loop with ZCatalog

2004-02-13 Thread Pascal Samuzeau
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 )


[Zope-dev] Strange loop with ZCatalog

2004-02-13 Thread Pascal Samuzeau
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 )


[Zope-dev] restrictedTraverse doesn't give the good container.

2004-02-13 Thread Pascal Samuzeau
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] Error : exceptions.SystemExit

2002-02-15 Thread Pascal Samuzeau

Hi,   
  
I've got this error when I shutdown my Zope : 
  
  An error was encountered while publishing this resource. 
  
  exceptions.SystemExit   
  
  Zope has exited normally.
   
  
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 ?

2001-12-11 Thread Pascal Samuzeau

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] External Script python and CMF

2001-12-04 Thread Pascal Samuzeau

Hello,
  
I've installed a CMF site.
  
I receive, by e-mail, some files in XML format, on another server than
my Zope server.   
  
I need to create, update document, in the folder's Member who send me 
thoses files. 
  
Beacuse, I don't know how it's working, I've choose XML-RPC to have   
dialog between the two servers.   
  
Has someone an fully example, to do the same thing or near ?  
  
  
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

2001-11-26 Thread Pascal Samuzeau

Hi,   
  
I've that code :  
  
  
   
 
 


  

[Zope-dev] How update metadata without Zope ?

2001-11-20 Thread Pascal Samuzeau

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 )