Re: [Zope-dev] Re: Adding Batch Factory to ZMI Add menu OK?

2002-05-29 Thread Robert Rottermann
Would it not be possible to have undo for the Zope portion of the object meaning what is stored in in the ZODB can be undone, what is stored in the fs is as it is. Like that we would have most of what undo offers for a normal element. Robert - Original Message - From: Andy McKay [EMAIL

[Zope-dev] DT_Var modifier

2002-05-29 Thread Christian Theune
Hi. I am currently hacking the DTMLTeX product, (maybe gonna make a relase of it ...) which seems unmaintained, as the old owner isn't responding anymore. What i needed for that, was a new modifier for dtml-var, called tex_quote, that I implemented by monkeypatching DT_Var.Var . My question

[Zope-dev] access to ZCatalog-data via xmlrpc

2002-05-29 Thread Joachim Schmitz
Hi, I want to acces a ZCatalog via xmlrpc, but server=xmlrpclib.Server(http://myserver.aixtraware.de; ,BasicAuthTransport(username=user,password=pw)) r = server.Catalog() results in Fault -1: Unexpected Zope exception: cannot marshal type 'IOBTreeItems' objects What

Re: [Zope-dev] access to ZCatalog-data via xmlrpc

2002-05-29 Thread Toby Dickenson
On Wednesday 29 May 2002 3:24 pm, Joachim Schmitz wrote: Hi, I want to acces a ZCatalog via xmlrpc, but server=xmlrpclib.Server(http://myserver.aixtraware.de; ,BasicAuthTransport(username=user,password=pw)) r = server.Catalog() results in Fault -1: Unexpected

Re: [Zope-dev] DT_Var modifier

2002-05-29 Thread Adrian Hungate
If I understand what you are asking, this is something I need as well. I am trying to create an entity_encode and entity_decode modifier (Like the html encode and html decode modifiers) that will encode (decode) all characters in the string that are special or illegal in XML. If there is an easy

Re: [Zope-dev] DT_Var modifier

2002-05-29 Thread Christian Theune
Hi. * Adrian Hungate [EMAIL PROTECTED] [020529 18:20]: If I understand what you are asking, this is something I need as well. I am trying to create an entity_encode and entity_decode modifier (Like the html encode and html decode modifiers) that will encode (decode) all characters in the

[Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Nicholas Henke
Hello~~ I am playing with using the Catalog class in ZCatalog along with CatalogQuery to create a generic object layer on top of ZODB. I can index and search til I am blue in the face, and I always get the correct answers. Now for the problems... Say I have the following obj: class

Re: [Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Casey Duncan
try: ob = r.getObject() ob.function() or if that doesn't work: ob = catalog.getobject(r.data_record_id_) ob.function() Bear in mind that getObject traverses to the object which is expensive both in time and memory if the number of results is large. hth, -Casey On Wednesday 29 May

Re: [Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Nicholas Henke
On Wednesday 29 May 2002 04:20 pm, Casey Duncan wrote: try: ob = r.getObject() ob.function() ob gets returned as None -- I think this is due to AbstractCatalogBrain::getObject(). I don't believe self.aq_parent is set correctly -- how is it supposed to be set ? or if that doesn't

Re: [Zope-dev] ZODB, Catalog and actually using it

2002-05-29 Thread Casey Duncan
[removed zodb-dev, don't cross post!] If you are using plain catalogs then you need to store the path to the object somewhere (as metadata or as Zope does as the uid of the catalog record). Then traverse to it based on this path. In Zope you use (restrictedTraverse (or unrestrictedTraverse)

[Zope-dev] Re: [ZODB-Dev] ZODB, Catalog and actually using it

2002-05-29 Thread Andreas Jung
I think you must call getObject() on the mybrains instance first to get the object! Andreas - Original Message - From: Nicholas Henke [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 16:05 Subject: [ZODB-Dev] ZODB, Catalog and actually using it

[Zope-dev] Zope logic

2002-05-29 Thread Wei He
Hi all, I have tried Zope for a week and found a logic problem. An object (say index_html) is inherited by child objects of the site say Document to make http://www.domain.com/Document share the upper level index_html. This sounds good but acutally not I think. People will be really confused

Re: [Zope-dev] Zope logic

2002-05-29 Thread Chris Withers
Hi, Wei He wrote: An object (say index_html) is inherited by child objects of the site say Document to make http://www.domain.com/Document share the upper level index_html. This sounds good but acutally not I think. So do a lot of other people, but not for your reasons ;-) People will be