[Zope] Problems with LocalFS again
John Ziniti
jziniti@speakeasy.org
Fri, 05 Apr 2002 08:31:11 -0500
My guess is that the "None" being spoken about is the "REQUEST"
parameter which you have not passed to add_LocalFS. Perhaps the
LocalFS constructor actually uses the REQUEST variable for
something?
HTH,
Ziniti
Philipp Giere wrote:
> Hello!
> Last tim I forgot to include the traceback in the mail, sorry for
> that ...
>
> I try to add an LocalFS Object with an python-product. My code looks
> like this:
>
> from Products.LocalFS.LocalFS import manage_addLocalFS
>
> def addLocalFS(self, id, title, basepath, username=None, password=None,
> REQUEST=None):
> manage_addLocalFS(self, id, title, basepath, username=None,
> password=None, REQUEST=None)
>
> def manage_addUPortal(self,id,title,base_location,basepath,
> RESPONSE=None):
>
> ...
>
> # Add LocalFS
> addLocalFS(newObj.Linkliste, 'Bilder', 'Bilderordner auf lokalem
> Filesystem', basepath)
>
> What is the error?
>
> The error shown in Zope:
> Error Type: AttributeError
> Error Value: 'None' object has no attribute 'get'
>
> The traceback:
>
>