[Zope-dev] change ownership
Is it not possible to change ownership of an object? I can only find methods to take ownership... /Magnus ___ 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] Building custom DTML tags and accessing _.something
Hia guys, I was wondering if any of you could give me a couple of hints about how to make the _.{random,string,range,Datetime} thingies from a tag expression. I.e. instead of doing this: dtml-widget select options=[1,2,3,4,5,6,7,8,9,10,11,12,13] selected=[1,3,5,7,9,11,13 This could be done: dtml-widget select options=_.range(1,14,1) selected=_.range(1,14,2) Like this (with the DTML var tag): dtml-var [1,2,3,4,5,6,7,8,9,10] dtml-var _.range(1,11) Thanks cheers, Morten ___ 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 )
Re: [Zope-dev] Building custom DTML tags and accessing _.something
I find this useful: How to write your own DTML tag http://www.zope.org/Members/z113/1 Cheers. -- Andy McKay. - Original Message - From: Morten W. Petersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 7:53 AM Subject: [Zope-dev] Building custom DTML tags and accessing _.something Hia guys, I was wondering if any of you could give me a couple of hints about how to make the _.{random,string,range,Datetime} thingies from a tag expression. I.e. instead of doing this: dtml-widget select options=[1,2,3,4,5,6,7,8,9,10,11,12,13] selected=[1,3,5,7,9,11,13 This could be done: dtml-widget select options=_.range(1,14,1) selected=_.range(1,14,2) Like this (with the DTML var tag): dtml-var [1,2,3,4,5,6,7,8,9,10] dtml-var _.range(1,11) Thanks cheers, Morten ___ 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 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 )
Subject: [Zope-dev] change ownership
Magnus, No, changeOwnership is not exposed for TTW calling. But you can expose it through an external method... I used this one on a ZClass. def set_owner(self, user): self.changeOwnership(user) return --Tim Message: 6 From: Magnus Heino (Rivermen) [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Date: Wed, 9 May 2001 16:12:53 +0200 Subject: [Zope-dev] change ownership Is it not possible to change ownership of an object? I can only find methods to take ownership... /Magnus ___ 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 )
Re: [Zope-dev] change ownership
Magnus Heino (Rivermen) writes: Is it not possible to change ownership of an object? It is. I can only find methods to take ownership... You do not look good enough or do not use the right tools, such as e.g. URL:http://www.dieter.handshake.de/pyprojects/zope/DocFinder.html DocFinder revealed: Methods to manage ownership are in AccessControl.Owned.Owned. There is getOwner and changeOwnership. Both are private (i.e. can be used only in Products and external methods). Dieter ___ 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 )
Re: [Zope-dev] Building custom DTML tags and accessing _.something
Morten W. Petersen writes: ... evaluated attribute values in custom DTML tags -- how? ... Look as one of the *_expr parameters in e.g. Products.MIMETools.MIMETag. They do what you want and you can see, how it is implemented. Dieter ___ 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] Zope 2.4 and unicode merge
Can DC merge the unicode.diff into zope 2.4 standard distribution? The current 0.5 diff seems not working, and since 2.4 is based on python 2.1 then it sounds reasonable to include unicode attributes as a core part of zope. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ 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] xmlrpc 500 Internal Server Error
Any clues as to how I trace the source of this error? I get it trying to make an xmlrpc call on my Zope server. I have other xmlrpc calls that work fine. It's not hitting my Product code, that I'm sure of... Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ 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 )
Re: [Zope-dev] xmlrpc 500 Internal Server Error
[EMAIL PROTECTED] wrote: Any clues as to how I trace the source of this error? I get it trying to make an xmlrpc call on my Zope server. I have other xmlrpc calls that work fine. It's not hitting my Product code, that I'm sure of... Turns out I can trace this to: Traceback (innermost last): File /home/zope/Zope/lib/python/xmlrpclib.py, line 531, in loads p.feed(data) File /usr/lib/python1.5/xmllib.py, line 149, in feed self.goahead(0) File /usr/lib/python1.5/xmllib.py, line 227, in goahead self.syntax_error('illegal character in content') File /usr/lib/python1.5/xmllib.py, line 748, in syntax_error raise RuntimeError, 'Syntax error at line %d: %s' % (self.lineno, message) RuntimeError: Syntax error at line 34: illegal character in content I'm using the latest xmlrpclib.py from www.pythonware.com for the client side - so I'm happy to blame it for generating invalid XML. I don't know whether it should or should not be dealing with the dodgy data I'm feeding it, but I guessed from the xmlrpc spec that I should be safe feeding it just about anything. Would it be possible though to have Zope handle this sort of error rather than throw a 500 Internal Server Error? Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ 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 )