[Zope-dev] Re: Yup, the problem's still there...
odysseus@acedsl.com
odysseus@acedsl.com
Tue, 22 Aug 2000 09:55:58 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1335888230-875427423-966952558=:2701
Content-Type: TEXT/PLAIN; charset=US-ASCII
Ah.... That would explain it!
How about this, instead of an attribute, I created a method:
def icon(self):
return 'misc_/Squishdot/squishfile_img'
This seemed to work. Attached is the patch. Comments?
-Lance
On Tue, 22 Aug 2000, Chris Withers wrote:
> Lance wrote:
> > I think you have to not only
> > inherit RoleManager, but OFS.SimpleItem.Item as well. At least, that's what
> > the Security HOWTO seems to imply.
>
> No, it shouldn't :(
>
> SimpleItem.Item has __allow_access_to_unprotected_subobjects__=1 in it,
> so it just masks the problem rather than solving it properly...
>
> cheers,
>
> Chris
>
--1335888230-875427423-966952558=:2701
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="Squishfile.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0008220955580.2701@odin.acedsl.com>
Content-Description: Squishfile.patch
Content-Disposition: attachment; filename="Squishfile.patch"
KioqIFNxdWlzaGZpbGUucHkJVHVlIEF1ZyAyMiAwOTo1MDoxMCAyMDAwDQot
LS0gU3F1aXNoZmlsZS5weS5vcmlnCU1vbiBBdWcgMjEgMjA6MjE6MDEgMjAw
MA0KKioqKioqKioqKioqKioqDQoqKiogMTI3LDE0NCAqKioqDQogIGZyb20g
R2xvYmFscyBpbXBvcnQgUGVyc2lzdGVudCAgDQogIGZyb20gQWNxdWlzaXRp
b24gaW1wb3J0IEFjcXVpcmVyICANCiAgZnJvbSBHbG9iYWxzIGltcG9ydCBI
VE1MICANCiEgZnJvbSBJbWFnZUZpbGUgaW1wb3J0IEltYWdlRmlsZQ0KISBm
cm9tIEFjY2Vzc0NvbnRyb2wuUm9sZSBpbXBvcnQgUm9sZU1hbmFnZXINCiEg
DQogICNmc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lLmNvbXBpbGUoJ1xcXFx8L3w6JykgICMgaGFuZGxlIHdp
bmRvd3MoXCkvdW5peCgvKS9tYWMoOikgcGF0aCBzZXBhcmF0b3JzICANCiAg
ICANCiEgY2xhc3MgU3F1aXNoZmlsZShBY3F1aXJlcixQZXJzaXN0ZW50KTog
IA0KICAgICAgIiIiICIiIiAgDQohICAgICBpY29uPSdtaXNjXy9TcXVpc2hk
b3Qvc3F1aXNoZmlsZV9pbWcnICANCiEgICANCiAgICAgIF90eXBlcz17J2Fw
cGxpY2F0aW9uL29jdGV0LXN0cmVhbSc6ICAgICAnQmluYXJ5IEZpbGUnLCAg
DQogICAgICAgICAgICAgICdhcHBsaWNhdGlvbi94LWd6aXAnIDogICAgICAg
ICAgJ0NvbXByZXNzZWQgRmlsZScsICANCiAgICAgICAgICAgICAgJ2FwcGxp
Y2F0aW9uL3gtY29tcHJlc3MnOiAgICAgICAnQ29tcHJlc3NlZCBGaWxlJywg
IA0KKioqKioqKioqKioqKioqDQoqKiogMTczLDE4MCAqKioqDQogICAgICAg
ICAgICAgICNzcGV3KCdzcWYgY3R5cGU6ICcgKyBzZWxmLl9jdHlwZSkgIA0K
ICAgICAgICAgICAgICBzZWxmLl9jcmVhdGVkID10aW1lLnRpbWUoKSAgDQog
ICAgICAgICAgICAgIHNlbGYuX21vZGlmaWVkPXNlbGYuX2NyZWF0ZWQgIA0K
LSAgICAgZGVmIGljb24oc2VsZik6DQotIAlyZXR1cm4gJ21pc2NfL1NxdWlz
aGRvdC9zcXVpc2hmaWxlX2ltZycNCiAgICANCiAgICAgIGRlZiBjb250ZW50
X3R5cGUoc2VsZik6ICANCiAgICAgICAgICAiIiIgY29udGVudCB0eXBlICIi
IiAgDQotLS0gMTcwLDE3NSAtLS0tDQoqKioqKioqKioqKioqKioNCioqKiAy
MTMsMjIxICoqKioNCiAgICAgICAgICByZXR1cm4gc2VsZi5fZmlsZSAgDQog
ICAgDQogICAgICBpbmRleF9odG1sPV9fcmVwcl9fICANCi0gDQotIA0KLSAN
Ci0gDQotIA0KLSANCi0tLSAyMDgsMjEwIC0tLS0NCg==
--1335888230-875427423-966952558=:2701--