[Zope3-Users] Re: How to test for object metatype

2005-04-15 Thread Cliff Ford
Thanks for the help. I 'discovered' the isinstance method in the ZAPI Reference of your book, which is just what I needed. I put the filter method in the custom content class rather than a separate view class. It all seems to work so I am progressing again. Cliff Philipp von Weitershausen wrote

RE: [Zope3-Users] fighting with Pluggable Authentication Utility

2005-04-15 Thread Roger Ineichen
Hi Adam From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Adam Groszer > Sent: Friday, April 15, 2005 8:49 PM > To: zope3-users > Subject: [Zope3-Users] fighting with Pluggable Authentication Utility > > Now I have a problem with the Pluggable Authentication Utility. > (win32/Zop

[Zope3-Users] fighting with Pluggable Authentication Utility

2005-04-15 Thread Adam Groszer
Now I have a problem with the Pluggable Authentication Utility. (win32/Zope3/trunk/30009) I have a folder(hu03), which a made a Site. In the default Site-Management Folder I created a Pluggable Authentication Utility (pauloc). Which has a SessionCredentialsPlugin (s2), a PrincipalFolder (usrloc) a

[Zope3-Users] Re: How to test for object metatype

2005-04-15 Thread Philipp von Weitershausen
Cliff Ford wrote: I have a custom object that uses a page template to make a list of other objects in its containing folder. This so far lists security proxied object instances: Testing Uh, you should use context/__parent__/values... I want to filter the objects by metatype. That does not ex

[Zope3-Users] How to test for object metatype

2005-04-15 Thread Cliff Ford
I have a custom object that uses a page template to make a list of other objects in its containing folder. This so far lists security proxied object instances: Testing I want to filter the objects by metatype. That does not exist in Zope 3 and I don't know how to use queryType or queryContent

[Zope3-Users] recusioin in zmi is not working

2005-04-15 Thread rchristie
I am trying to have a script work in zmi that has recursion in it.i am posting the simple version of the my script (i called it testscript) code here def searchAssetType(param_object): for object in param_object.objectValues('AssetType'): if (object.getPartNumber()): pn =

Re: [Zope3-Users] Re: How to organize common code for Z2 and Z3

2005-04-15 Thread Lennart Regebro
On 4/15/05, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Well, actually, if there's no reason to have something in > Products/TextIndexNG, then you don't actually need anything in the good > ol' Products directory. Of course. But was I was referring to that if you are using the "pyfoo"

[Zope3-Users] Re: postgresql, psycopgda, Zope3-trunk

2005-04-15 Thread Derrick Hudson
On Fri, Apr 15, 2005 at 08:26:33AM +0200, Markus Leist wrote: | Hello, | | I have to connect to a postgres-DB from a zope3-class. | | Ok, how to use SQL in TAL is in: | Zope3/trunk/src/zope/app/sqlexpr/README.txt | | I'm searching for a "zoponic" way of asking postgres | in a zope3-class. http:

[Zope3-Users] Re: How to organize common code for Z2 and Z3

2005-04-15 Thread Philipp von Weitershausen
Lennart Regebro wrote: I think the trick would be to write code for Zope 3 and put it in a top-level package, like "textindexng". Inside this package you add a package "TextIndexNG" that is expected to be added to Zope 2's lib/python/Products. Seems reasonable. But my gut reaction is to have this

Re: [Zope3-Users] Form for list of lists

2005-04-15 Thread Cliff Ford
Thanks (roger) for the tips. I was trying to use a single custom widget - taking that out gave the expected default behaviour. I needed a much more customised form, so after many false steps, and for the benefit of anyone else who needs to know this is what I did: 1. Put an 'update' method defi