[Zope-CMF] portal skins and containership

Rainer Thaden Rainer Thaden <thadi@gmx.de>
Thu, 27 Feb 2003 09:36:08 +0100


Hi,

> I tested the following:
> 
> my_folder = 'test5' 
> my_folder.objectValues(my_object_type)
> 
> in a python script and got the following error and
> traceback:
> 
> Error Type: AttributeError 
> Error Value: objectValues 

What you're doing here is accessing an attribute objectValues of the
string 'test5'. Of course that string does not have objectValues.
You need to access the portal_folder object with the id 'test5'.
Use something like

my_folder = getattr(here, 'test5')

or similar.

-- 
Regards,
 Rainer                          mailto:thadi@gmx.de