[Zope] Error Value: 'File'
object has no attribute 'manage_fixupOwnershipAfterAdd'
chris at simplistix.co.uk
Fri Feb 17 04:05:32 EST 2006
Roman Klesel wrote:
> for id in self.manage_targets.keys():
> title = self.manage_targets[id]['name']
This is dangerous...
This is silly...
Why not just:
> grinder_home = self.manage_targets['gr_sys']['grinder_home']
> host_name = self.getHostname(grinder_home)
Okay, what type of object is 'self' here, where did you take this code from?
> for id in self.objectIds('Folder'):
> location_sar = self.manage_targets[id]['location_sar']
> phy_mem = self.manage_targets[id]['phy_mem']
> system = self.__getitem__(id)
why not just:
Also, this will result in system not being acquisition wrapped in some
circumstances, what you really want is:
system = getattr(self,id)
...but it really depends on what 'self' is, I'm not sure you have that
Simplistix - Content Management, Zope & Python Consulting
More information about the Zope