[Zope-dev] setattr and skinscript
Kent Polk
kent@goathill.org
6 Apr 2001 23:10:20 GMT
I have a Specialist which I am using to programmatically load table
data into a rack with. When I add a skinscript to query the rack,
my setattr, which is used to set the row attributes produces the
following error:
2001-04-06T22:45:03 PROBLEM(100) ZPatterns Error computing attribute SID
Traceback (innermost last):
File /var/zope/Products/ZPatterns/AttributeProviders.py, line 315, in
_AttributeFor
(Object: GAPMixin)
File /var/zope/Products/ZPatterns/Expressions.py, line 122, in eval
File --/DocumentTemplate/DT_Util.py, line 334, in eval
(Object: SQL_getTable ( entry_id = self . id ))
(Info: self)
File <string>, line 0, in ?
File --/DocumentTemplate/DT_Util.py, line 138, in careful_getattr
File /var/zope/Products/ZPatterns/Expressions.py, line 53, in validate
File --/AccessControl/SecurityManager.py, line 144, in validate
File --/AccessControl/ZopeSecurityPolicy.py,
line 168, in validate
Unauthorized: id
my skinscript currently only has the SQL_getTable() method referenced
and it appears that the rack is atempting to obtain the current
value for the attributes I am attempting to set in the rack item,
and I have only just created the item so none are there.
1) Is there a way to override the skinscript attempting to access
the item's attributes when I am attempting to set them?
barring that,
2) How do I otherwise deal with the skinscript attempting to access
the attributes?
If I don't provide the skinscript, I can set the item's attributes
just fine directly in the rack. Is there another way that I am
supposed to be setting row (item) attributes than using setattr()
for a ZPatterns rack?
Thanks