I have a view object which calls it’s content object
to return another object. The view object does not have access to the
returned object, and I receive a forbidden attribute error. ***Content*** class Transaction(object): transid=u’’ class TransactionFactory(Persistent,Contained): implements(ITransactionFactory) def produceTransaction(self):
transaction = Transaction()
transaction.transid = ‘abcd’
return transaction ***View*** class Transaction: def doTransaction(self):
transaction = self.context.produceTransaction()
self.session[‘transid’] = transaction.transid
transaction.commit() This generates a forbidden attribute error on
transaction.Transaction.transid -- David Johnson |
_______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users