[ZWeb] Help for getUserByID error

ethan mindlace fremen mindlace@digicool.com
Tue, 24 Jul 2001 17:00:07 -0400


Paolo D'Aubert wrote:

> Hi All, I'm a newbie in Zope---
>


Hi, paul. I don't know the answer to your question, though I have made 
some notes. You probably want to talk to the folks on the zope list:

http://lists.zope.org/mailman/listinfo/zope

 
> I'm using it with a SQL Database and I need to insert the input of a 
> form in the db, and this works.
> 
> But, in the form I have two file input type with two images.
> 
> I have to save the image path in the Db, and the image in a Zope folder.
> 
>  
> 
> This seems works, but not for all the forms I have!
> 
> In fact, I use this method:
> 
>  
> 
> <dtml-with "lavoro.images"> // this is the directory where the images 
> been saved
>   <dtml-if image_1>        // if image 1 exists (this mean the ID 
> image_1 exists but I dont know if is void)
>   <dtml-if "_.hasattr(lavoro.images,Imma_1_lavoro_id)"> // if 


These two dtml-if's are redundant.


> Imma_1_lavoro_id is an image (I dont know exactly what this method do)
>      <dtml-call "manage_delObjects(REQUEST.form['Imma_1_lavoro_id'])"> 
> //this is the method that make error
>   </dtml-if>
>    <dtml-call 
> "manage_addImage(REQUEST.form['Imma_1_lavoro_id'],REQUEST.form['Imma_1_lavoro'])"> 
> //this method returns an error too
>   </dtml-if>
> 
>  
> 
> I mean, the manage_something methods returns an error, even if I log in 
> as manager.
> 
> And the error isn't "You are not allowed to use this methods", but is 
> "Attribute Error: GetUserByID Error"
> 
> What does this mean???
> 
>  
> 
> I use a GUF in the root folder (a subfolder of Zope) but I dont think 
> this could be a problem.


Hope that helps,

ethan