[Zope-dev] How does a subclass call its ancestor's method in zope?
Here is a ZClass testa, with a dtml method 'do'. Its subclass testb overrides do. How does testb call its ancestor's 'do'? In python, it can be done as 'testa.do()', but what's the equivallent in zope? Dirksen __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How does a subclass call its ancestor's method in zope?
Here is a ZClass testa, with a dtml method 'do'. Its subclass testb overrides do. How does testb call its ancestor's 'do'? In python, it can be done as 'testa.do()', but what's the equivallent in zope? Dirksen __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to call 'inheritedAttribute' in ZClass dtml method
'testb' subclasses 'testa', and wants to call 'testa.do()' in one of its dtml method. I found in zope's source codes that zope tackles this with "testb.inheritedAttribute('do')()". Yet this doesn't work in zclass dtml method. The system complains not knowing 'testb'. How to refer to its zclass name? Any other ways for a zclass to call its base class's method? Please help! Dirksen __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Unable to clear proxy roles in Zope 2.3.0
In Zope 2.2.x, one can clear the proxy roles for one method by unseleting all proxy roles. In Zope 2.3.0, this lets to this error: You must select one or more proxy roles. Is it a bug, or is it done in a different fashion? cheers Dirksen __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Bugs in Zope Membership Component 0.8.0b1
Hi Bill, All PythonScripts in ZMC 0.8.0b1 look like a direct port from Python Methods, so I found some bugs due to the incompatibility between these two version of scripts. 1. In 'passwordForm', 'import string' should be added. 2. In 'passwordPolicy', 'self' should be ommited in the parameters list. 3. 'register', I think, should be proxy to 'Manager', like the original version. There's another bug: anonymous user can access account's manageMe method! Say if there's an account 'dummy', anyone can open 'www.dumy.com/test/acl_users/dummy/manageMe'. I think the permission to view 'manageMe' should be hooked up to that of viewing management screen. I see that you have made some special arrangements in the 'Define Permission' tab of 'Portal Member' ZClass definition, but that doesn't seem to protect its instance, which is a puzzle to me: what's the use to define permissions in ZClass definition or products? Cheers, Dirksen __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] What's the use of defining permissions for ZClass definition
Hi, ZClass definition has a 'Define Permissions' tab. Yet any modification there doesn't seem to affect the ZClass instance's security profile at all. What's the use of that? Cheers Dirksen __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to build indexes in the MemberCatalog of Membership Component?
Hi Bill, When I open the 'find objects' tab in MemberCatalog, I can't see 'PortalMember' in 'find object in type' selection field. How to build indexes then? Thanks in advance! Cheers Dirksen __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Folderish object's __call__ fails
Hi, I'm developing a product, which extends ObjectManager. Meanwhile, I'd like it to behave like a script object, similar to DTML method. So I define a __call__ method. But it never gets run if called from the browser. If I change the base class to SimpleItem, it works. How can I make __call__ works for folderish object? cheers Dirksen __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] [Zope] WebDAV/Excel readonly problem
Hi, I want to open and edit a file (living on Zope) in Excel through WedDAV. But the problem is whenever I open the file, it's always marked as read-only, even though I'm logging in as the manager role (I use http://username:[EMAIL PROTECTED]/file as the open link). I test this in the OpenOffice Spreadsheet as well, and the result is the same: it opens it as read-only through WebDAV. My zope is Zope 2.6.4. Anyone has an idea how to solve this problem? Thanks Dirksen __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )