[Zope3-Users] Re[2]: [Zope3-dev] [ANN] win32-trunk-pyds
Hi Tim, Sorry for this small confusion. If you don't mind, I'll do it. (The thing started as I became the compiler of the win32 release and the pyd's are just a by-product of the release.) I'll do my best to keep it up to date, but if I should miss something, please drop a mail. Friday, May 19, 2006, 9:11:35 PM, you wrote: [Stephan Richter] Tim has not been updating them recently. After Jim updated the C code in the adapter lookup code, they were invalid. Adam has picked up Tim's work there. [Benji York] As of 5/1 Tim was still willing to build them (as stated in a message to zope3-dev). I don't think that's changed. If he happened to miss a change requiring a recompile, just drop him a line and I'm sure he'll update them. I'm no longer routinely building, or running, Zope3 on Windows, so I'll indeed only update Zope3 .pyds if/when someone emails me saying that's needed. And right, I'm happy to do so. If Adam is paying more attention to Zope3, and especially if has an automated way to keep his Windows Trunk zipfile release up to date, that's probably better all around. If that is the case, then I should remove the old pyd .zip files from my member page, and plant a link there to Adam's gimmick instead. Adam, do you intend to keep Trunk up to date now? -- Best regards, Adammailto:[EMAIL PROTECTED] -- Quote of the day: Mistakes are a fact of life. It is the response to the error that counts. - Nikki Giovanni ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Two content objects' simultaneous adding
Jonathan wrote: - Original Message - From: baiju m [EMAIL PROTECTED] I have two content objects (both are containers) but I cannot add one to another as give here : ... I don't use zope 3 (yet!) but a quick look at the above code seems to indicate that this is not a zope 3 issue:... square['Comp1'] = company This line treats square as if it were a python dictionary (not an object, which it is!) but he wrote that both are containers. zope3 use __setitem__ as a way to add items to containers, see: zope.app.container.interfaces. class IWriteContainer(Interface): An interface for the write aspects of a container. def __setitem__(name, object): Add the given `object` to the container under the given name...: /JM ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] How to use catalog.searchResults
Hello, I have a catalog: (Pdb) catalog zope.app.catalog.catalog.Catalog object at 0xb4a3f66c with one index: (Pdb) for i in catalog.keys(): print i AbbreviationIndex but I can't find a way to use the search results function: (Pdb) catalog.searchResults(AbbreviationIndex = ABC) *** TypeError: ('two-length tuple expected', 'ABC') (Pdb) catalog.searchResults([AbbreviationIndex ,ABC]) *** TypeError: searchResults() takes exactly 1 argument (2 given) (Pdb) res = catalog.searchResults() (Pdb) res == None True How to use it? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Two content objects' simultaneous adding
On Sat May 20 2006 04:47, baiju m wrote: I have two content objects (both are containers) but I cannot add one to another as give here : def create(self, data): square = Square() square.name = data['name'] square.description = data['description'] company = Company() company.name = data['companyname'] company.description = data['companydescription'] square['Comp1'] = company ... return square It was working in 3.2, now NotYet error is coming in 3.3. Here is the traceback: I did this very thing a couple days ago in 3.3 and it works for me, except that I'm using zope.app.zapi.createObject to create the instances of my content objects. So, maybe this: from zope.proxy import removeAllProxies from zope.app.zapi import createObject def create(self, data): square = removeAllProxies(createObject(uname.of.your.Square.Factory)) square.name = data['name'] square.description = data['description'] company = removeAllProxies(createObject(uname.of.your.Company.Factory)) company.name = data['companyname'] company.description = data['companyanydescription'] square['Comp1'] = company ... return square I'm not sure if/why the removeAllProxies is needed as I stole this procedure from the list archives. Also, I'm about 1 week into my Zope3 development experience, so don't just take my word for it even if it works. :-) -- Ron ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] New annotations factory problems
I was trying to implement the new annotations factory in zope/annotation/README.txt but I'm getting a ForbiddenAttribute __annotations__ error when I try to view an editform for the annotations. Before, I had configured a trusted adapter, but since (I think) an adapter directive is not needed for this, I don't know how to make it trusted or otherwise fix the problem. Any ideas? -- Ron ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Two content objects' simultaneous adding
On 5/21/06, Tom Dossis [EMAIL PROTECTED] wrote: baiju m wrote: I have two content objects (both are containers) but I cannot add one It was working in 3.2, now NotYet error is coming in 3.3. Here is the traceback: Why the different behaviour b/w versions? Did you have an active IntId utility installed in each version? Installing an IntId utility has an (unfortunate) side effect, which can break previously working code. Whether you can successfully add objects to containers which haven't been persisted yet, depends on the presence of an IntId util. Yes, I have played around with IntId before trying my application. As you said that might be the reason for the strange behaviour. To test this I simple removed my 'Data.fs' and restarted, then added my content object and it was working! Thanks to all those who replied. Regards, Baiju M ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users