Personal tools
You are here: Home Lists ZPUG DC List Archives 2005 2005-09 Workflow Scripts and Acquistion / jamesr <circlecycle@gmail.com>
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

Workflow Scripts and Acquistion / jamesr <circlecycle@gmail.com>

Workflow Scripts and Acquistion
jamesr <circlecycle(at)gmail.com>
2005-09-09 14:42:15 [ FULL ]
Hi all,


	I'm having a problem with acquitision when using Workflow Scripts. I 
was wondering if it was me or zope.. what I've done is set a property 
SafeHouseBase on a folder that (somewhere below it) has a document that 
i'm processing with a script when changing state. What I expect is when 
i call

state_change.object.getProperty('SafeHouseBase, None)

is that acquisition will find and return a  property defined on a 
folder above it in the hierarchy. What i get is None, of course.. but 
if i do a 'brute force', that is, something like, 
state_change.object.aq_parent.getProperty().... it WILL find it. So is 
acquistion broken, or my poor mind? Is there a namespace issue here?

Any help would restore my faith in puppies, rainbows, and public 
sanitation projects. Thanks,

james.

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: