Re: [Zope-dev] Please HELP: Nested ZClass, Nested instance
Title: Re: [Zope-dev] Please HELP: Nested ZClass, Nested instance Hello Karl, who has same name as me:-) Yes, I can create child zclass nested in parent zclass according to the Howto on management interface. And the zclasses were inherited from Object Manager and Catalog aware class. But still I can't do it programatically. If you know how to do it, your advice would be appreciated. (Due to the schedule, I decided to just go ahead according to Rik Hoekstra's advice) I found a interesting fact. When we access some ZClass in the product folder, the typical syntax used is(in DTML) this().Control_Panel.Products['MyProductFolderName'](DTML) self.Control_Panel.Products['MyProductFolderName'] (Python) This syntax seems to say that Products is a dictionary object of Python, because we can access each product folder by key. But when I try this, this returns just "1" But interestingly, - or - returns expected results. Should I think "Product" folder under "Control_Panel" to be a kind of dictionary object? Thanks a lot Karl Message: 17 To: "Zope-Dev \(E-mail\)" <[EMAIL PROTECTED]> Subject: Re: [Zope-dev] Please HELP: Nested ZClass, Nested instance From: Karl Anderson <[EMAIL PROTECTED]> Organization: Digital Creations Date: 22 May 2000 15:34:57 -0700 "Park, Karl" <[EMAIL PROTECTED]> writes: > I created a ZClass in the Product folder. And anther ZClass under the > ZClass(thus nested class) > To do it, I created a DTML Method which accepts user's input and then, if > needed, it have to create an object. > First part is to create the parent object, which works just fine. > But the sencond part to create the child object doesn't seem to work. > If I take the easy way, that is, creating othere ZClass on the top of the > products folder of Control Panel, I can do it. > But I don't think it is a good desing from the perspective of OOP I had some hassles with this recently. There's a HOWTO at: http://www.zope.org/Members/gtk/containers Can you create the child zclass from the manage screen inside the parent zclass? Does the parent zclass inherit from ObjectManager before any other superclasses? -- Karl Anderson [EMAIL PROTECTED]
Re: [Zope-Dev] Zope 2.1.6 Memory issue
Shane Hathaway writes: Okay, here's the output. (BTW is was trying manage_debug without the Control_Panel. That was not intelligent;) Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta OIBTree.Bucket 71328135+1003 IOBTree.BTree 25702827+257 BTree.BTree 10281105+77 IIBTree.Bucket 45904619+29 DocumentTemplate.DT_With.With 273 279 +6 2nd pass: Actually there's too damn much. Shane, I'll just send you the html. If anyone else wants to help let me know. > Jason, > > Try /Control_Panel/manage_debug ... it will tell you exactly which > kinds of objects are eating memory. Take a "snapshot" then refresh the > page after a couple of minutes, and the table should list at the top > the name of the class that's taking up more than its fair share. > > Shane > > Jason Spisak wrote: > > > > Zopists, > > > > I am spoiled. I have a large server and until now I have never really > > monitored memory usage. But I noticed things slowing down a great deal > > and was curious. Swapping. > > > > Machine: > > > > RH 6.1 > > 2.2.12-smp > > Dual Xenon > > 1 gig memory > > > > Zope install: > > > > Zope 2.1 Binary > > ZODB pure. > > No DA's > > Home grown ZClasses. > > > > 'ps' tells me Zope is the culprit. It's using 64% when things get > > swappy. There are no prosesses running on this machine BTW. It's just > > a Zope server. > > > > My Data.fs file is ~300 packed and gets to be about 1GB at the end of > > every day. (A lot of transactions :) > > > > Zope is eating memory at the rate of 10MB every 2 minutes. Is that > > appropriate? > > > > I never noticed a slowdown until I switched to 2.1, really. > > > > I've considered writing a small python progam to compare the output of > > 'free' to the Zope log, but I'd love to see if there is another way to > > nail what's eating mem. If someone can tell me the best way to narrow > > it down from experience, I'll do it this afternoon. > > > > Hopefully, > > > > -- > > Jason Spisak > > [EMAIL PROTECTED] > > > > ___ > > 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 ) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. Title: Debug Information Zope Contents Undo Control Panel at /Control_Panel Debug Information Zope version: Zope 2.1.1 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Process ID: 2159 (5126) Running for: 1 hour 14 min 57 sec Top Refcounts: DateTime.DateTime.DateTime: 20559intSet.intSet: 12586OIBTree.Bucket: 8135IOBTree.Bucket: 5425BTree.Bucket: 5270IIBTree.Bucket: 4619IOBTree.BTree: 2827DocumentTemplate.DT_Util.Eval: 2168OIBTree.BTree: 1647OFS.DTMLMethod.DTMLMethod: 1548BTree.BTree: 1105ZClasses.Method.MW: 856ExtensionClass: 518DocumentTemplate.DT_In.InClass: 435ZClasses.ZClass.PersistentClass: 302DocumentTemplate.DT_With.With: 279AccessControl.User.User: 185OFS.Image.Image: 173Products.ZGadflyDA.gadfly.kjParser.ParseRule: 161DocumentTemplate.DT_Var.Var: 157ZClasses.Property.ZInstanceSheet: 135App.special_dtml.HTMLFi! le: 133ZClasses.ZClass.ZClass: 130OFS.SimpleItem.SimpleItem: 130ZClasses.Property.ZInstanceSheets: 129AccessControl.PermissionRole.PermissionRole: 127App.Factory.Factory: 123App.Permission.Permission: 118App.PersistentExtra.Persistent: 108DocumentTemplate.VSEval.Eval: 96OFS.Folder.Folder: 93App.ImageFile.ImageFile: 89SearchIndex.UnIndex.UnIndex: 68App.Product.Product: 65Acquisition.Acquirer: 57AccessControl.PermissionMapping.PM: 52ZClasses.ZClass.ZClassSheets: 50TreeDisplay.TreeTag.Tree: 50SearchIndex.UnTextIndex.UnTextIndex: 47Products.ZCatalog.CatalogAwareness.CatalogAware: 47re.RegexObject: 46Products.ExternalMethod.ExternalMethod.ExternalM! ethod: 42OFS.Image.File: 42Base: 41ZClasses.ZClass.ZObject: 37ZClasses.ObjectManager.ObjectManager: 37ts_regex.compile: 36ZServer.medusa.counter.counter: 36ZServer.PubCore.ZServerPublisher.ZServerPublisher: 35Missing.Missing: 35OFS.DT
Re: [Zope-dev] Re: Superuser ownership (was "Adding LoginManager at the root")
On Mon, May 22, 2000 at 10:23:38AM -0600, mindlace wrote: > Robin Becker wrote: > > What kind of idiotic permissions model is this where God cannot create > > anything? What is the function of the super user if not to manage? > > Seems to be specially designed for bureaucrats, lawyers and politicians. > > I feel like this specifically needed to be addressed. This change in > the ability of superuser stems directly from a security issue common to > all through-the-web interfaces: > http://www.zope.org/Members/jim/ZopeSecurity/TrojanIssueOverview > The superuser cannot create objects, because any object that was owned > by superuser would have permission to do whatever it pleased. Yes, but if people _want_ to create superuser objects that can do anything they should be permitted to. As long as the superuser doesn't make really stupid objects they shouldn't get bitten. The problem is that the new security model should have more handholding to go along with it. Perhaps the superuser should be changed to the name "usermanager" or "permissionsmanager" or something like that and a default superuser with the behaviour every actually expects the superuser to have be created as well. As it stands now you need _two_ "superuser" type users, so they should both be created automatically instead of having to create one of them manually afterwards. Also I still maintain that, as well as the "Take Permissions" permission that a NONE permissioned method should be available for ownership transfer, that you can "offer" an object to someone and they can later on "accept" it when they log in. (Like the moderation concept in Squishdot) This is needed for cases where a site manager has say a hundred projects going on under their Zope server. When one of the projects changes project leader and leaves they have to transfer ownership to their successor, but they _can't_ because their successor is _less_ authorised than they are and can't "take permissions". In this case they currently have to petition the person running the site to change all of the permissions for their project over. This is a waste of everyone's time and completely unecessary. With a challenge/response transfer of objects you have complete security maintained (especially if you allow the person accepting the ownership to preview the object prior to their decision to accept it.) It's more work to set up this system because nothing in core Zope uses this type of messaging once people login, but it's a much broader and usable means for ownership transfer without losing any security. > Hope that's a bit more explanatory, > ~ethan mindlace fremen > digicool & imeme -- Evan ~ThunderFoot~ Gibson~ nihil mutatem, omni deletum ~ It doesn't count as intimacy until somebody starts crying. ___ 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.2.0a1 and Products (SiteAccess)
Hi everyone, After the announcement that the version 2.2.0a1 of Zope was out, I decided to go for it. I was able to make it running in no time. I tried to install two different Products: ZMySQLDA and SiteAccess. The first one worked fine the first time. But I get an error starting the server (running PCGI) when the product SiteAccess 1.0.1 is installed. I have a feeling that it has to do with the new Ownership feature in Zope. But since I'm a Zope newbee I haven't been able to locate the exact problem (sorry about that) and so I might be wrong. Has anyone else experienced that kind of problems? Should I go back to 2.1.6? Actually, the reason I went for 2.2.0a1 is because of the fact that upgrading 2.1.6 to 2.2.0a1 didn't seem trivial because of the ownership thing. Any comments are welcome. Thank you for your time. Carl P.S. I attached the output that I get when I try to access Zope content via PCGI. Title: Zope Zope Error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: unexpected keyword argument: validated_hook Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/zope/Zope-2.2.0a1/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /home/zope/Zope-2.2.0a1/lib/python/ZPublisher/Publish.py, line 189, in publish File /home/zope/Zope-2.2.0a1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /home/zope/Zope-2.2.0a1/lib/python/ZPublisher/Publish.py, line 161, in publish TypeError: (see above)
Re: [Zope-Dev] Zope 2.1.6 Memory issue
Kevin Dangoor: > > Here's something to think about: whenever an object is added to or > > removed from a folder, all objects in all neighboring folders and below > > are traversed. The manage_beforeDelete and manage_afterAdd hooks are > > called on each object. > > Jason, I don't know if you've taken much of a look at ZPatterns yet... Yes, I've been eyeing it and playing with it. It's been changing a bit, and I wanted to let Phillip and Ty settle it down before I moved my major production server to it. > Depending on how your code is set up, it may actually not be that difficult > for you to move some of those big Folders into Racks in Specialists. Phillip > mentioned the other day that this could help, and I think I spotted a BTree > in the Rack code yesterday, which would explain how Racks help. I'm not sure > where the rumored BTreeFolder code stands, which would be a more immediate > drop in fix. > > It didn't look to me like Specialists were too difficult to work with, > though. > > Kevin > That's really where I want to go. I'm sure Phillip would love to have a big fat example of ZPatterns getting hammered and working to show off too. :) All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
On Mon, 22 May 2000, Jason Spisak wrote: > > > Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, > > > and I'm not even useing Gadfly! [...] > > Chances are some other product is "reaching in" to Gadfly. Do you have > > the Zope tutorial installed? It uses Gadfly. > > No. This is a Data.fs that came from Zope 1. I didn't even think to get > Gadfly out of the Products directory. I've seen these gadfly references ever since I started looking at the manage_debug screen. My Data.fs also has no extra products installed. If something is reaching into Gadfly, it is something that ships with Zope. By the way, my site is structured into a series of folders, so that no folder has more than about 50 objects in it, with the exception (of course ) of the most heavily modified folder, which has about 120 objects. But I'm still seeing this growing-memory-usage pattern. However, the memory usage does grow pretty much just when a large number of objects get updated, usually in many different folders. So if there is a Python garbage collection issue, I think that would probably explain my case, at least. It seems incredible that Python garbage collection would be broken, but I suppose Zope *is* one of the most intensive programs running in python, so if anyone is going to see it it is going to be our community. --RDM ___ 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] Zope 2.1.6 Memory issue
- Original Message - From: "Shane Hathaway" <[EMAIL PROTECTED]> To: "Jason Spisak" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, May 22, 2000 6:29 PM Subject: Re: [Zope-Dev] Zope 2.1.6 Memory issue > Here's something to think about: whenever an object is added to or > removed from a folder, all objects in all neighboring folders and below > are traversed. The manage_beforeDelete and manage_afterAdd hooks are > called on each object. Jason, I don't know if you've taken much of a look at ZPatterns yet... Depending on how your code is set up, it may actually not be that difficult for you to move some of those big Folders into Racks in Specialists. Phillip mentioned the other day that this could help, and I think I spotted a BTree in the Rack code yesterday, which would explain how Racks help. I'm not sure where the rumored BTreeFolder code stands, which would be a more immediate drop in fix. It didn't look to me like Specialists were too difficult to work with, though. Kevin ___ 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] Re: Memory 2.1.6
Shane, Well I lied. The memory is now fluctuating. It went as high as 12MB available (out of a gig) and down to 2MB. This seems fine, it's just that I'm scraping the bottom of the barrel. Also, I really am curious why flushing the cache doesn't reclaim memory, too. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: Well, I reduced the 'target size' from 20,000 object down to 1000, and the memory seems to be climbing. > Jason Spisak wrote: > > > > > > After minimizing your in-memory cache, look at the manage_debug screen > > > again. Are the refcounts still high? I bet they are... > > > > > > > No. The ref counts drop to hundreds. > > That's a big relief. Okay, now we know that this isn't a memory leak, > it's only related to the fact that your site requires ZODB to load a > very large number of objects into memory in order to perform normal > operations. > > Here's something to think about: whenever an object is added to or > removed from a folder, all objects in all neighboring folders and below > are traversed. The manage_beforeDelete and manage_afterAdd hooks are > called on each object. I am hoping to use ZPatterns to stem this rapidly out of control, ObjectManger not scalable, issue. > > Also, there is still the issue that Python doesn't seem to be releasing > memory back to the system. I wonder whether that capability has been > implemented in Python. > It would really put a damper on things if is wasn't. However, when I stopped my Zope process each time, it didn't seem to give me back what Ihad started with. Maybe there is a leak in the kernel I am using. It's 2.2.12-smp. Anyone? > > Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, > > and I'm not even useing Gadfly! > > > > What the heck is that about? Anyone? > > Chances are some other product is "reaching in" to Gadfly. Do you have > the Zope tutorial installed? It uses Gadfly. > No. This is a Data.fs that came from Zope 1. I didn't even think to get Gadfly out of the Products directory. > > > > Thing's seem to be a bit nicer now that I took out an External Method that > > returns a DateTime object the Catalog for Indexing. However, there's only > > about 14,000 of objects with that property in existsnce in my DB, and they > > don't change often. > > > > Here's the code: > > > > def calendar_day(self) > > return int(self.calendar_date)/100 > > > > Used to return the unique integer day. > > That code actually doesn't return a DateTime instance, just an integer. > Yeah, I didn't really think is was that. ;) > Keep me informed. You bet. And a thousand thanks are waiting in my cache for you. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Jason Spisak wrote: > > > > After minimizing your in-memory cache, look at the manage_debug screen > > again. Are the refcounts still high? I bet they are... > > > > No. The ref counts drop to hundreds. That's a big relief. Okay, now we know that this isn't a memory leak, it's only related to the fact that your site requires ZODB to load a very large number of objects into memory in order to perform normal operations. Here's something to think about: whenever an object is added to or removed from a folder, all objects in all neighboring folders and below are traversed. The manage_beforeDelete and manage_afterAdd hooks are called on each object. Also, there is still the issue that Python doesn't seem to be releasing memory back to the system. I wonder whether that capability has been implemented in Python. > Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, > and I'm not even useing Gadfly! > > What the heck is that about? Anyone? Chances are some other product is "reaching in" to Gadfly. Do you have the Zope tutorial installed? It uses Gadfly. > > Thing's seem to be a bit nicer now that I took out an External Method that > returns a DateTime object the Catalog for Indexing. However, there's only > about 14,000 of objects with that property in existsnce in my DB, and they > don't change often. > > Here's the code: > > def calendar_day(self) > return int(self.calendar_date)/100 > > Used to return the unique integer day. That code actually doesn't return a DateTime instance, just an integer. Keep me informed. Shane ___ 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] Re[2]: [Zope-dev] ZCatalog and Umlaut Problems
Geir =?ISO-8859-1?Q?B=E6kholt?= writes: > is it possible to use multiple locales ?? > I am currently developing a site in 4 languages (with 2 more > to come) , and have experienced similar problems with the > catalog.. This may be difficult, because you must switch locales at runtime (which is possible). However, as far as I know, locale switching is not thread safe. This would mean, you are not on the safe side inside Zope. 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] Please HELP: Nested ZClass, Nested instance
"Park, Karl" <[EMAIL PROTECTED]> writes: > I created a ZClass in the Product folder. And anther ZClass under the > ZClass(thus nested class) > To do it, I created a DTML Method which accepts user's input and then, if > needed, it have to create an object. > First part is to create the parent object, which works just fine. > But the sencond part to create the child object doesn't seem to work. > If I take the easy way, that is, creating othere ZClass on the top of the > products folder of Control Panel, I can do it. > But I don't think it is a good desing from the perspective of OOP I had some hassles with this recently. There's a HOWTO at: http://www.zope.org/Members/gtk/containers Can you create the child zclass from the manage screen inside the parent zclass? Does the parent zclass inherit from ObjectManager before any other superclasses? -- Karl Anderson [EMAIL PROTECTED] ___ 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] Subclassing LoginManager
At 04:37 PM 5/22/00 -0400, Dan L. Pierson wrote: >Never mind. I found the bug of mine. What was it? I saw your question and this answer at the same time, and now I'm curious. :) >I now hope to get a PTK/LoginManager patch out tomorrow. Fantastic. I really hope to actually have time to *look* at the PTK again some week soon. :) ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: > Jason Spisak wrote: > > > > Shane Hathaway writes: > > > > > Jason Spisak wrote: > > > > > You must have a large site. > > > > > > > > 300,000 + objects > > > > > > Whoa... ;-) > > > > > > Tell me, what are you doing with 300K objects? > > > > > > Shane > > > > Technical recruiting. > > I am the ultimate test case for ZDOB scalability. ;) > > > > I just recently started having problems thoug, so I am going back and > > disabling the small fixes I have made recently in my code. > > > > I just restarted Zope again. > > > > Most of the objects just sit around. > > > > Wow. There it goes again. It's got to be DateTime.DateTime.DateTime. It > > just shot to 118003. > > That's actually a natural thing to happen. DateTime objects get > attached to many kinds of objects. The real problem is that so many > objects are being loaded into memory. > > I just did some research and it looks as though garbage collection is > not fully implemented in Python. I was not aware of this; do you know > whether it has been corrected? No, I had no idea. > > After minimizing your in-memory cache, look at the manage_debug screen > again. Are the refcounts still high? I bet they are... > No. The ref counts drop to hundreds. Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule, and I'm not even useing Gadfly! What the heck is that about? Anyone? Thing's seem to be a bit nicer now that I took out an External Method that returns a DateTime object the Catalog for Indexing. However, there's only about 14,000 of objects with that property in existsnce in my DB, and they don't change often. Here's the code: def calendar_day(self) return int(self.calendar_date)/100 Used to return the unique integer day. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Re: Zope 2.1.6 Memory issue
David Kankiewicz writes: > Jason Spisak wrote: > > > > After being up for about a half-hour my objects reading are: > > > > Total number of objects in the database 300280 > > Total number of objects in all of the caches combined 150995 > > > > Is this typical? Half? I doubt it. My target size is about 20,000. > > > > All my best, > > > Not saying I know anything, but how many threads are you running? is > it 8? > Unfortunately, it is 10. We almost had a winner. Thanks for playing the Zope memory Lotto. ;) Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Subclassing LoginManager
Never mind. I found the bug of mine. I now hope to get a PTK/LoginManager patch out tomorrow. ___ 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] XMLImporter integration issue
posted a new issue regarding XMLImporter integration http://www.zope.org/Wikis/zope-xml/XMLImporter%20mapping%20dictionary -- Chimezie Thomas-Ogbuji Junior Consultant Fourthought Inc. (303) 583 9900 ext 104 [EMAIL PROTECTED] ___ 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] Please HELP: Nested ZClass, Nested instance
>First part is to create the parent object, which works just fine. >But the sencond part to create the child object doesn't seem to work. >If I take the easy way, that is, creating othere ZClass on the top of the >products folder of Control Panel, I can do it. >But I don't think it is a good desing from the perspective of OOP > Nope, but it won't work right now (there were some threads on this on the main Zope list recently). If you want my advice: do not nest ZClasses, or you'll find yourself redesigning your product sooner or later :-( >Could any one of you have solution to this, so that I can keep the Class >Hierarchy as above and create the object nested? No, make a flattened design. My 2 cents (eurocents that is) Rik ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: > Jason Spisak wrote: > > > You must have a large site. > > > > 300,000 + objects > > Whoa... ;-) > > Tell me, what are you doing with 300K objects? > > Shane After being up for about a half-hour my objects reading are: Total number of objects in the database 300280 Total number of objects in all of the caches combined 150995 Is this typical? Half? I doubt it. My target size is about 20,000. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
R. David Murray: Since this is a very heavily used Zope install, I am getting trashed faster than you can say 'leakage'. > On Mon, 22 May 2000, Jason Spisak wrote: > > i did it again, and now I'm down to 160 objects total. > > That's more liek it. > > But system memory is still dropping. I was at 173632 available (This is > > only a half our after the Zope restart BTW. It ate 100MB in under that > > time.) before the second pass and now I'm at 173616. > > I'm *very* interested in this. > > I have a similar setup (stock 2.1.4 + the Lexicon.py patch, no > external database, no non-bundled Products, custom CatalogAware > ZClass, large number of objects (~60,000). I'm running under > FreeBSD 3.4-STABLE. > > I tried the 'minimize' trick and got down to around 200 objects, > with *no* decrease in memory used. I'm not leaking memory as fast > as you, but over time memory usage does go up until swapping starts > and I'm forced to restart Zope. > > Also as (apparently) with you, manage_debug does *not* give > any clues as to what is taking the memory; everything in the list > looks normal and does not add up to the observed memory usage > as far as I can guess. > > I'm glad to see someone else is observing this memory weirdness, > I thought I was the only one. > > --RDM > I'm anxious to discover what's going on too. It's will really be a boon for DC to have Zope scalable to this size of ZODB and have the stability I've come to rely on. All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
On Mon, 22 May 2000, Jason Spisak wrote: > i did it again, and now I'm down to 160 objects total. > That's more liek it. > But system memory is still dropping. I was at 173632 available (This is > only a half our after the Zope restart BTW. It ate 100MB in under that > time.) before the second pass and now I'm at 173616. I'm *very* interested in this. I have a similar setup (stock 2.1.4 + the Lexicon.py patch, no external database, no non-bundled Products, custom CatalogAware ZClass, large number of objects (~60,000). I'm running under FreeBSD 3.4-STABLE. I tried the 'minimize' trick and got down to around 200 objects, with *no* decrease in memory used. I'm not leaking memory as fast as you, but over time memory usage does go up until swapping starts and I'm forced to restart Zope. Also as (apparently) with you, manage_debug does *not* give any clues as to what is taking the memory; everything in the list looks normal and does not add up to the observed memory usage as far as I can guess. I'm glad to see someone else is observing this memory weirdness, I thought I was the only one. --RDM ___ 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] Memory 2.1.1
Shane: Holy cripe! I just saw a huge drop (half the available mem) and went to the Undo tab to see what was going on. The last transaction was my /Control_Panel/Database/manage_cache_age. Then I went to the manage_debug and my DateTime.DateTime.DateTime is DateTime.DateTime.DateTime 2460 96200 +93740 while I'm writing this its up to: DateTime.DateTime.DateTime 2460 140945 +138485 Ahhh! -- Jason Spisak [EMAIL PROTECTED] ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: > Go to Control Panel -> Database Management -> Flush Cache and click > "minimize". Then go to Control Panel -> Database Management -> Cache > Parameters. After a minimize operation, the "Total number of objects > in all of the caches combined" should be relatively low (< 1000), as > well as your system memory usage. Is that the case? > i did it again, and now I'm down to 160 objects total. That's more liek it. But system memory is still dropping. I was at 173632 available (This is only a half our after the Zope restart BTW. It ate 100MB in under that time.) before the second pass and now I'm at 173616. Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: > Jason Spisak wrote: > > > > Shane Hathaway writes: > > > > I had to restart Zope. I was about to start swapping, and now everyone's a > > lunch. > > > > It's so weird. Even though there is really no one on it that memory is > > just flying out the window. > > > > > Jason Spisak wrote: > > > > > > > > Shane Hathaway writes: > > > > > > > > Okay, here's the output. (BTW is was trying manage_debug without the > > > > Control_Panel. That was not intelligent;) > > > > > > > > Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta > > > > OIBTree.Bucket 71328135+1003 > > > > IOBTree.BTree 25702827+257 > > > > BTree.BTree 10281105+77 > > > > IIBTree.Bucket 45904619+29 > > > > > > Since you say you are not using any DA's, the culprit must be > > > ZCatalog. What happens when you minimize the memory cache (setting the > > > limit to 3 seconds)? Do the OIBTree.Bucket objects get unloaded? > > > > > > Shane > > > > How would I tell if they get unloaded? I am new to the manage_debug BTW. > > I set the Cache Parameters target time between accesses to 3. What am I > > looking for number-wise? > > I studied your debug screens a little more and realized that the > handling of BTree, etc. is probably in order. The refcount is indeed > decreasing--I think you just happened to hit a spike. > > You must have a large site. 300,000 + objects >I'm guessing that you have a lot of > objects that get cataloged. Yep. That's why I have the machine I do, though. >In order for them to be cataloged, they > have to be loaded into memory then unloaded. > I see. > Go to Control Panel -> Database Management -> Flush Cache and click > "minimize". Then go to Control Panel -> Database Management -> Cache > Parameters. After a minimize operation, the "Total number of objects > in all of the caches combined" should be relatively low (< 1000), as > well as your system memory usage. Is that the case? No. After the 'minimize' I now have 15501 objects in cache combined. And the free command shows less memory than before the minimize command. As Wyle E. Coyote would say...Yipe. :o Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: It doesn't look like the number of objects is dropping like it should when it's set at 3 seconds. After 30 min I'm still at DateTime.DateTime.DateTime +7398 BTree.Bucket+3501 intSet.intSet +1863 IOBTree.Bucket +1572 > Jason Spisak wrote: > > > > Shane Hathaway writes: > > > > Okay, here's the output. (BTW is was trying manage_debug without the > > Control_Panel. That was not intelligent;) > > > > Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta > > OIBTree.Bucket 71328135+1003 > > IOBTree.BTree 25702827+257 > > BTree.BTree 10281105+77 > > IIBTree.Bucket 45904619+29 > > Since you say you are not using any DA's, the culprit must be > ZCatalog. What happens when you minimize the memory cache (setting the > limit to 3 seconds)? Do the OIBTree.Bucket objects get unloaded? > > Shane > > ___ > 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 ) > Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Shane Hathaway writes: I had to restart Zope. I was about to start swapping, and now everyone's a lunch. It's so weird. Even though there is really no one on it that memory is just flying out the window. > Jason Spisak wrote: > > > > Shane Hathaway writes: > > > > Okay, here's the output. (BTW is was trying manage_debug without the > > Control_Panel. That was not intelligent;) > > > > Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta > > OIBTree.Bucket 71328135+1003 > > IOBTree.BTree 25702827+257 > > BTree.BTree 10281105+77 > > IIBTree.Bucket 45904619+29 > > Since you say you are not using any DA's, the culprit must be > ZCatalog. What happens when you minimize the memory cache (setting the > limit to 3 seconds)? Do the OIBTree.Bucket objects get unloaded? > > Shane How would I tell if they get unloaded? I am new to the manage_debug BTW. I set the Cache Parameters target time between accesses to 3. What am I looking for number-wise? Thanks again, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Subclassing LoginManager
Phillip J. Eby writes: > LoginManager will behave just like your outline, if you give it a > BasicCookie LoginMethod, and a BasicAuth LoginMethod, in that order. > LoginManager does not climb up the acquisition hierarchy, as that is > properly the province of ZPublisher to do. It will provide the anonymous > user, if it is a top-level user folder. You're right if course. I just didn't realize that the PTK was set up to require cookie logins, so I was trying to avoid them and solve the simpler piece of the problem first :-( Oh well, that's working fine now. I can log in, but it looks like permissions aren't getting set/propagated correctly: The initial management user is created with roles: ['Member', 'Manager', 'Reviewer'] My PersistentUserSource returns this list correctly as the roles list. All of the following are in Zope 2.1.6: 1. If I create the Portal as superuser with the Portal manager having the same username as me, then log in to the portal in a new browser I can see my folder but don't even have the permission to create new objects in it. 2. If I create the Portal as me, a site Manager, with the Portal manager having my user name, then log in as above, I can create objects but clearly don't have Reviewer rights. 3. If I create the Portal as me with the Portal manager having another username, then log in as above, it's just like the first case. I can see my folder but can't create anything in it. Any idea what I'm doing wrong now? ___ 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] Zope 2.1.6 Memory issue
Jason Spisak wrote: > > Shane Hathaway writes: > > Okay, here's the output. (BTW is was trying manage_debug without the > Control_Panel. That was not intelligent;) > > Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta > OIBTree.Bucket 71328135+1003 > IOBTree.BTree 25702827+257 > BTree.BTree 10281105+77 > IIBTree.Bucket 45904619+29 Since you say you are not using any DA's, the culprit must be ZCatalog. What happens when you minimize the memory cache (setting the limit to 3 seconds)? Do the OIBTree.Bucket objects get unloaded? Shane ___ 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] Create an empty DTML Method
> I want to write some dtml code that will add a DTML method that is > totally empty. The add_DTMLMethod method in Zope puts in the default > Zope content. How do I avoid that? I'd say add the dtml method then edit it to empty the contents. Or hack the source. ;) --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 ___ 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] Sorry about the html. :(
I just committed the cardinal sin and sent html to Shane without removing zope-dev from the list. I apologize from the bottom of my BTreeBucket. Cardinal Biggles get the 'Comfy Chair'! Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] Zope 2.1.6 Memory issue
Jason, Try /Control_Panel/manage_debug ... it will tell you exactly which kinds of objects are eating memory. Take a "snapshot" then refresh the page after a couple of minutes, and the table should list at the top the name of the class that's taking up more than its fair share. Shane Jason Spisak wrote: > > Zopists, > > I am spoiled. I have a large server and until now I have never really > monitored memory usage. But I noticed things slowing down a great deal > and was curious. Swapping. > > Machine: > > RH 6.1 > 2.2.12-smp > Dual Xenon > 1 gig memory > > Zope install: > > Zope 2.1 Binary > ZODB pure. > No DA's > Home grown ZClasses. > > 'ps' tells me Zope is the culprit. It's using 64% when things get > swappy. There are no prosesses running on this machine BTW. It's just > a Zope server. > > My Data.fs file is ~300 packed and gets to be about 1GB at the end of > every day. (A lot of transactions :) > > Zope is eating memory at the rate of 10MB every 2 minutes. Is that > appropriate? > > I never noticed a slowdown until I switched to 2.1, really. > > I've considered writing a small python progam to compare the output of > 'free' to the Zope log, but I'd love to see if there is another way to > nail what's eating mem. If someone can tell me the best way to narrow > it down from experience, I'll do it this afternoon. > > Hopefully, > > -- > Jason Spisak > [EMAIL PROTECTED] > > ___ > 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 )
[Zope-dev] Zope 2.1.6 Memory issue
Zopists, I am spoiled. I have a large server and until now I have never really monitored memory usage. But I noticed things slowing down a great deal and was curious. Swapping. Machine: RH 6.1 2.2.12-smp Dual Xenon 1 gig memory Zope install: Zope 2.1 Binary ZODB pure. No DA's Home grown ZClasses. 'ps' tells me Zope is the culprit. It's using 64% when things get swappy. There are no prosesses running on this machine BTW. It's just a Zope server. My Data.fs file is ~300 packed and gets to be about 1GB at the end of every day. (A lot of transactions :) Zope is eating memory at the rate of 10MB every 2 minutes. Is that appropriate? I never noticed a slowdown until I switched to 2.1, really. I've considered writing a small python progam to compare the output of 'free' to the Zope log, but I'd love to see if there is another way to nail what's eating mem. If someone can tell me the best way to narrow it down from experience, I'll do it this afternoon. Hopefully, -- Jason Spisak [EMAIL PROTECTED] ___ 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] Don't forget to update WikiCentral
...if you have a Wiki you want people to see. For example, I don't see the ZPatterns Wiki on there... -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] Documentation?
Chris Withers wrote: > > Hi, > > I'm trying to get a grip of the ins and outs of the following classes, > where should I look? > > -IOBTree (and the other IO* classes) The BTree classes implement the Python mapping interface. They are quite easy to use. There are three kinds: Object to Object Object to Integer Integer to Object All three kinds are used extensivly in the ZCatalog. Other than that, there isn't really any documentation. They are basicly persistent dictionaries that store their keys and values as BTrees. > -intSet intSet is like an 'array' of integers. It implements the Python sequence interface. It was created to be more efficient than using lists or tuples since they hold only integers. > -PersistentMapping There is some documentation on this in lib/python/Components/ExtensionClass. Now you can add these to the InterfaceWiki. ;) -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] ZPatterns framework improvements
Phillip J. Eby: > >> I'm not actually real fond of the DDO term, because "Dynamic Data Object" > >> doesn't quite do justice to what these things actually are. I am > >> definitely open to suggestions for a better name. (Facade? PlaceHolder? > >> InsideOutObject? ExternalDataObject? BrainInjectedObject?) > > > >ZopeTupperware, AloofAttributeObjects, DataSkins :) > > > > I think I'm going to go with DataSkins. Thanks for the suggestion. :) > Hey, I did something for you for a change. ;) > Now I need a name for another interesting ZPatterns 0.4.0 object... > > I was working on "indexing" plugins for DataManagers (Racks, Specialists, > and DataInjectors) and at one point I realized that you could use them for > things besides indexing. > Oh no, the extendability bug has bit him on the ... > The basic idea is that an "indexing" plugin receives objectAdded(), > objectChanging(), objectChanged(), and objectDeleted() messages from its > DataManager. The idea was that it would then be able to update an index > (such as a ZCatalog) accordingly. But during one of the PTK discussions > about member registration, it occurred to me that a "registration index" > could note the addition of a user, and then e-mail them or do other > operations specific to that portal's business rules. That seemed like an > interesting hack of indexes, but then after a while I realized that these > plugins could enforce any other business rules related to changes of > objects or their addition/deletion. They could, for example, be reverse > indexes that, whenever a new information item was added, they looked up > saved search preferences to find who was looking for the new item. They > could notify a manager about an expenditure greater than a certain amount. > They could roll back transactions if certain conditions weren't met. And > it all could be done outside the object itself, in the sense that these > things would be extensions to the object's class, based on its location in > the Zope filesystem. > > So anyway, "index" now seems rather inadequate to describe these indexing, > search-agenting, business-ruling objects. (Change Monitors? Knowbots? > Indexing Agents? Index Rules? Object Matchers?) If you have any name > suggestions, I'd love to hear 'em. :) I think it would be good if the > name implied both major capabilities, although I think I might just end up > having two seperate tabs ("Indexes" and "Rules") just to make the > capabilities clearer. It's just that DataManager derivatives already have > so darn many tabs (Methods, Attribute Providers, Sheet Providers, etc.). > Hmmm. Behaviorators, DoAsISayDammit, DispatchAgents, ConventionBots, Facilitators Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] ZPatterns framework improvements
At 12:14 PM 5/22/00 -0400, Tres Seaver wrote: >"Phillip J. Eby" wrote: >> >> At 03:51 PM 5/21/00 -0400, Tres Seaver wrote: >> > >> >This is really just the classic Observer pattern, a la GoF Design >> >Patterns. "ObjectAdded" and "ObjectRemoved" are events a >> >"RackObserver" would register for; "AfterCreate", "Changed", >> >and "BeforeDestroy" are events of the "hosted" object itself. Note >> >that "ObjectAdded" and "ObjectRemoved" would be called during move or >> >rename operations, even though the object is not being created. >> >> Yes, but the DataManager will filter that such that Zope "Move" and >> "Rename" operations will show to Indexing and Rule agents as though >> they were just "Change" events. See the DataManagementEvents entry >> in the new ZPatterns Wiki for details on how this will work. > >This design has the unfortunate side effect of coupling an object >tightly >to a single location. Properly speaking, objects shouldn't "know" about >their containers; the container should be responsible for handling any >operations which depend on it. Consider a Unix file system: the >command >to get rid of a file is "rm," which is an operation on the *directory*, >not >on the file/subdirectory; it only causes the file to be deleted if the >current directory was the only one with a link to the file. >CatalogAware >is currently broken (as Evan just pointed out to me) because it tries >too >hard to know about its container's path; it would be better if the >container were responsible for doing the >index_object/reindex_object/unindex_object stuff, and not the object >itself. > You've lost me here. DataManager doesn't care about the object's path. The filtering I was referring to is that the DataManager recognizes a delete followed by an add of the same object (as determined by python "id()" value) as a change operation. It only does this if the add occurs under the domain of the same DataManager, otherwise one DataManager will see a delete and the other will see an add. If you move an object between two locations served by the same data manager, then the move or rename is effectively only a change of the object's path, and any Providers/Agents that care about the path would want to know that it changed. Either way, the notifications follow the reality of the situation. For event management purposes, DataManager does *not* identify objects by anything other than their Python pointer value, and that only for the duration of a (sub)transaction. It is up to the specific Providers and Agents to use whatever identification scheme they want, since different attributes of an object might be used as a key for different external databases. For example, in an X10 home automation project, you might have an IndexingAgent that identified a controller by its Zope path, but the RuleAgent that actually turned lights on and off would want to identify the controllers by their X10 house/unit codes. Hm.. one thing all this makes me realize, though... Providers and Agents will also have to do some "same-object add/delete" recognition, because if the same provider or agent is shared by two DataManagers and the object moves from the scope of one to the scope of the other, it's not *really* an add/delete from *that* agent's perspective, even if it is in general to the DataManager. ___ 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] ZCatalog and Umlaut Problems
Geir BXkholt wrote: > > on Thursday, May 18, 2000 mindlace wrote : > > [snip] > m> ./start -L 'my_locale' > > m> Assuming you're using zope 2.1.4 or later. > > m> I did it with Portuguese (./start -L 'pt_PT'), and all funny portuguese > m> characters (çêã etc.) catalog properly. You may need to reindex after > m> restarting. > > m> ~mindlace > > is it possible to use multiple locales ?? > I am currently developing a site in 4 languages (with 2 more > to come) , and have experienced similar problems with the > catalog.. Hmm... doing locale -a , it looks to me like there's no "iso-latin1" locale (assuming you're using all latinate languages). I would think, at least for cataloging, that this is probably non-trivial. You may wish to join the mailing list for the zope internationalization project and see if they have suggestions: http://www.eevolute.com/mailman/listinfo/zip ~ethan mindlace fremen digicool & imeme (p.s. I assume that with python 1.6 this will become more straightforward, as then we'll have unicode support). ___ 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] ZPatterns framework improvements
"Phillip J. Eby" wrote: > > At 03:51 PM 5/21/00 -0400, Tres Seaver wrote: > > > >This is really just the classic Observer pattern, a la GoF Design > >Patterns. "ObjectAdded" and "ObjectRemoved" are events a > >"RackObserver" would register for; "AfterCreate", "Changed", > >and "BeforeDestroy" are events of the "hosted" object itself. Note > >that "ObjectAdded" and "ObjectRemoved" would be called during move or > >rename operations, even though the object is not being created. > > Yes, but the DataManager will filter that such that Zope "Move" and > "Rename" operations will show to Indexing and Rule agents as though > they were just "Change" events. See the DataManagementEvents entry > in the new ZPatterns Wiki for details on how this will work. This design has the unfortunate side effect of coupling an object tightly to a single location. Properly speaking, objects shouldn't "know" about their containers; the container should be responsible for handling any operations which depend on it. Consider a Unix file system: the command to get rid of a file is "rm," which is an operation on the *directory*, not on the file/subdirectory; it only causes the file to be deleted if the current directory was the only one with a link to the file. CatalogAware is currently broken (as Evan just pointed out to me) because it tries too hard to know about its container's path; it would be better if the container were responsible for doing the index_object/reindex_object/unindex_object stuff, and not the object itself. Tres. -- === Tres Seaver Digital Creations[EMAIL PROTECTED] ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
Robin Becker wrote: > What kind of idiotic permissions model is this where God cannot create > anything? What is the function of the super user if not to manage? > > Seems to be specially designed for bureaucrats, lawyers and politicians. I feel like this specifically needed to be addressed. This change in the ability of superuser stems directly from a security issue common to all through-the-web interfaces: http://www.zope.org/Members/jim/ZopeSecurity/TrojanIssueOverview The superuser cannot create objects, because any object that was owned by superuser would have permission to do whatever it pleased. Hope that's a bit more explanatory, ~ethan mindlace fremen digicool & imeme ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
In article <[EMAIL PROTECTED]>, Chris Withers <[EMAIL PROTECTED]> writes >Robin Becker wrote: >> What steps should I try to allow my currently unowned >> documents/tinytables to be made accessible. When I press the change >> ownership button I get a help browser with an error message in the >> content frame. > >That sounds like a 2.2 bug to me... oh well... it is Alpha so fair >enough. >Can you mail the whole error message (especially the traceback) to the >list please :-) perhaps the superuser should be renamed to initial user or something. OK here it is; this when I press the take ownership button on my Folder at / manage ownership panel. Zope Error Zope has encountered an error while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: http://jessikat/Control_Panel/Products/OFSP/Help/Ownership.d tml Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 224, in publish_module File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 189, in publish File C:\Python\devel\Zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Help) File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 161, in publish File C:\Python\devel\Zope\lib\python\ZPublisher\BaseRequest.py, line 350, in traverse File C:\Python\devel\Zope\lib\python\ZPublisher\HTTPResponse.py, line 530, in debugError NotFound: (see above) > >> Should I just import everything as God and hope that improves things? > >Might help... > >Could you import stuff as the superuser? >('cos I think you shouldn't be able to...) > >cheers, > >Chris -- Robin Becker ___ 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] ZPatterns Wiki updated
At 03:29 PM 5/22/00 +0300, Itamar Shtull-Trauring wrote: >"Phillip J. Eby" wrote: >> >> FYI, the ZPatterns Wiki at: >> >> http://www.zope.org/Members/pje/Wikis/ZPatterns/ > >Ooh, this is cool stuff. At what version would it be resonable to start >implementing software using ZPatterns? It depends on what the software does. If you are comfortable "rolling your own" extensions and systems based on the ZPatterns components, you can start any time. I'm doing my best to preserve backward compatibility between versions where it doesn't interfere with adding new functionality. >Will there be major changes in the way things work up to 1.0? Depends on the things. A lot of things are getting overhauled in 0.4.0 so that the event system and the ability to have DataSkins anywhere can be put in. The roadmap for post-0.4.0 releases looks pretty smooth, however, as it's focused primarily on adding lots of Provider/Agent classes to make the framework usable without "rolling your own". The only other major item that's on my list is a way to do PermissionMappings on things added to the Methods tab of a PlugInContainer, and I haven't yet figured out how to do that. But when/if I do figure it out, I don't expect it to have any radical, sweeping effects on the framework. ___ 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] 2.2.0a1 won't work with query objects
Kyler B. Laird ([EMAIL PROTECTED]) posted a quick n' dirty fix on the Zope mailing list. I'll include it here for convenience: -- snip -- After beating on this over the last day or so trying to understand what was happening at the Web interface level (thinking that I must have just screwed up a permissions setting somewhere), I finally looked at the code and simply commented out line 602 in /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py # raise ValidationError, index -- snip -- Hope this helps, T.J. ___ 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] ZPatterns Wiki updated
"Phillip J. Eby" wrote: > > FYI, the ZPatterns Wiki at: > > http://www.zope.org/Members/pje/Wikis/ZPatterns/ Ooh, this is cool stuff. At what version would it be resonable to start implementing software using ZPatterns? Will there be major changes in the way things work up to 1.0? -- Itamar S.T. [EMAIL PROTECTED] ___ 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] Q2: ZCatalog Intelligent Objects
Chris Withers wrote: > > Steve Alexander wrote: > > In PTK, PortalContent-derived classes have the method > > > > def SearchableText(self): > > "text for indexing" > > So, if I get this correctly, Catalog will index both attributes and > methods(that have only the self argument?) with the same name as an > index? I'm not sure what arguments get passed to methods by the Catalog. You could write a class to find out. Actually, I just did :-) You're right. Catalog doesn't pass in any arguments, so you can use any method that doesn't have any args without default values as an index. > If so, then that's cool, but undocumented, which is bad... I guess that I always assumed a Catalog would index methods as well as simple attributes, because methods are just a particular kind of attribute in Python. I agree that it should be documented somewhere, though. > > The query/predicates stuff in ZPatterns looks like it will be much > > better than this... when it lands :-) > > I really should get into ZPatterns, is there any documentation yet? http://www.zope.org/Members/pje/Wikis/ZPatterns/HomePage -- Steve Alexander Software Engineer Cat-Box limited ___ 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] how to download a entire ZWiki site?
Jephte CLAIN wrote: > > Hello, > Where I work, I do not have access to the internet, and as such, I have > to move software and docs back and forth to my office. I understand that > it is better for collaborative work to use ZWikis, but I wonder, how do > I download the entire site to view it offline??? An interesting question, since you don't have manage access to Zope.org and so can't do an export. And you can't run something like w3mir over it 'cos of Zope's silliness when it comes to folders and not ending them in / ... Good luck, and let us know if you find a solution... Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
Robin Becker wrote: > > In article <[EMAIL PROTECTED]>, Chris Withers > <[EMAIL PROTECTED]> writes > ... > > > >Might help if you said what problems you were experiencing... > > > ... > I already did. I cannot use the preexisting database tinytables. > Following your suggestion I can create God, and then having logged in as > God I can actually create tiny tables. > > What steps should I try to allow my currently unowned > documents/tinytables to be made accessible. When I press the change > ownership button I get a help browser with an error message in the > content frame. If I am not mistaken, the "migrating to Zope 2.2" page gives an example method to convert objects to the new security model. http://www.zope.org/Products/Zope/2.2.0a1/upgrading_to_220 ___ 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] Q2: ZCatalog Intelligent Objects
Steve Alexander wrote: > In PTK, PortalContent-derived classes have the method > > def SearchableText(self): > "text for indexing" So, if I get this correctly, Catalog will index both attributes and methods(that have only the self argument?) with the same name as an index? If so, then that's cool, but undocumented, which is bad... > The query/predicates stuff in ZPatterns looks like it will be much > better than this... when it lands :-) I really should get into ZPatterns, is there any documentation yet? cheers, Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
Robin Becker wrote: > What steps should I try to allow my currently unowned > documents/tinytables to be made accessible. When I press the change > ownership button I get a help browser with an error message in the > content frame. That sounds like a 2.2 bug to me... oh well... it is Alpha so fair enough. Can you mail the whole error message (especially the traceback) to the list please :-) > Should I just import everything as God and hope that improves things? Might help... Could you import stuff as the superuser? ('cos I think you shouldn't be able to...) cheers, Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
In article <[EMAIL PROTECTED]>, Chris Withers <[EMAIL PROTECTED]> writes ... > >Might help if you said what problems you were experiencing... > ... I already did. I cannot use the preexisting database tinytables. Following your suggestion I can create God, and then having logged in as God I can actually create tiny tables. What steps should I try to allow my currently unowned documents/tinytables to be made accessible. When I press the change ownership button I get a help browser with an error message in the content frame. Should I just import everything as God and hope that improves things? -- Robin Becker ___ 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 download a entire ZWiki site?
Hello, Where I work, I do not have access to the internet, and as such, I have to move software and docs back and forth to my office. I understand that it is better for collaborative work to use ZWikis, but I wonder, how do I download the entire site to view it offline??? ok this is not really zope-dev, but I need the wikis to zope-develop... thanks, jephte clain [EMAIL PROTECTED] ___ 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] Q2: ZCatalog Intelligent Objects
Chris Withers wrote: > > 2. I've seen various mentions of that fact that objects being catalogued > can be intelligent about what gets catalogued, for example: stripping > out HTML, but where can I find out how to produce an object that does > this? > This could make a hacky-workaround for question 1: If, when an object > was catalogued, it actually indexed title and body together in an index > named 'text', it would solve the OR problem, but how do I do this so > that it works in all the cases? In PTK, PortalContent-derived classes have the method def SearchableText(self): "text for indexing" This returns a string concatenation of any text that should be indexed in the catalog for a search of PortalContent in the portal. The Portal's catalog is set up to index on the SearchableText attribute, as well as other Dublin Core attributes. I guess, in general, you need to define standards for getting appropriate text for indexing from you content objects, then apply these standards to your site. The query/predicates stuff in ZPatterns looks like it will be much better than this... when it lands :-) -- Steve Alexander Software Engineer Cat-Box limited ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
Robin Becker wrote: > What kind of idiotic permissions model is this where God cannot create > anything? What is the function of the super user if not to manage? The super user is not god, that was seen to be an insecure thing. The super user is a facilitator for creating god... ;-) > Seems to be specially designed for bureaucrats, lawyers and politicians. Actually, it's more to thwart little script kiddie hackers... > I have already added the query tinytables back to anonymous. This still > doesn't answer my question. How do I get a zope 2 database to work under > 2.2? Might help if you said what problems you were experiencing... Basic steps I would try are either: -just bring the data.fs from you 2.1 install and replace the blank one in the 2.2 with a *copy* of it.. -export stuff, as required, from you old install and move it into your new one... > Do I have to try and reread all the non-existent documentation? touche... ...maybe when you solve your problem you could write some documentation on how to solve similar ones? see zdp.zope.org > What parts of the awful API have been further corrupted? The Zope > noospheric habitat seems ripe for take-over by rationalists :) Well, you don't have to use Zope... cheers, Chris ___ 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] Q2: ZCatalog Intelligent Objects
Hi, Here's the second question: 2. I've seen various mentions of that fact that objects being catalogued can be intelligent about what gets catalogued, for example: stripping out HTML, but where can I find out how to produce an object that does this? Does it make a difference if it's a ZClass-based object or a python class-based object? Does it make a difference if it's CatalogAware or not? How does the 'update catalog' button interact with this? This could make a hacky-workaround for question 1: If, when an object was catalogued, it actually indexed title and body together in an index named 'text', it would solve the OR problem, but how do I do this so that it works in all the cases? cheers, and many thanks for any help :-) Chris ___ 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] Q1: ZCatalog Search Expressions
Hi, I've read the Interfaces Wiki and other bits of documentation I could fidn and still haev a coupla questions: 1. Is there any way to build complex queries for ZCatalogs? I saw mention of a QueryObject but it's not documented anywhere that I could find. The current method of putting stuff in the REQUEST does something similar to: (Index1 CONTAINS word1) AND (Index2 CONTAINS word2) ...etc And there's the clunky way of doing ranges using form fields. I was wondering if there's a something I've missed that would let me do something like, for example: ((title CONTAINS search) OR (body CONTAINS search) AND (reviewed IS '1') AND (meta_type IS ['Posting','Article','Reply']) AND ( somedate < bobobase_modification_time < someotherdate) If not, I think there should be... and yes I know it's going to be hard to code! ;-) cheers, Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
In article <[EMAIL PROTECTED]>, Chris Withers <[EMAIL PROTECTED]> writes >Robin Becker wrote: >[stuff about 2.2] > >You can't create any objects except User Objects as the superuser. >Create a manager, re-login as that manager and then add yoru objects. > >Can't speak for TinyTables but make sure the Anonymous role has the >'access TinyTables contents' permission. A lot of people get bitten by >this when installign Squishdot 'cos Anonymous does not have this >permission by default... > >cheers, > >Chris > ... What kind of idiotic permissions model is this where God cannot create anything? What is the function of the super user if not to manage? Seems to be specially designed for bureaucrats, lawyers and politicians. I have already added the query tinytables back to anonymous. This still doesn't answer my question. How do I get a zope 2 database to work under 2.2? Do I have to try and reread all the non-existent documentation? What parts of the awful API have been further corrupted? The Zope noospheric habitat seems ripe for take-over by rationalists :) -- Robin Becker ___ 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] catlogged specialist and rack
Hello, for those who are in a need for search and enumeration capabilities for specialist and racks in ZPatterns-0.3.0 right now like I am, the following could be interesting. Searchable.py defines: CatalogAwareAttributeProvider, CatalogAwareAcquiredAttributeProvider Attribute providers that recatalog the object when its attributes are changed CatalogAwareRack Rack that has a catalog inside it, and index the object created with newItem, and modified afterward. by default, only the id is catalogged. this can be changed in _setup for derived classes CatalogAwareSpecialist Specialist that has support for CatalogAwareRack. A tab 'Contents' provide support for enumerating the objecs in the racks. www/contents can be customized to allow, editing, adding, and/or deleting objects if you like. This, in fact, is a quick hack. remember that all these will be useless when ZPatterns-0.4.0 is out. But I'm fool enough to use evolving software still in infant stage... hope this is useful like it is for me. regards, jephte clain [EMAIL PROTECTED] Searchable.tgz
Re: [Zope-dev] Re: Superuser ownership (was "Adding LoginManager at the root")
Robin Becker wrote: [stuff about 2.2] You can't create any objects except User Objects as the superuser. Create a manager, re-login as that manager and then add yoru objects. Can't speak for TinyTables but make sure the Anonymous role has the 'access TinyTables contents' permission. A lot of people get bitten by this when installign Squishdot 'cos Anonymous does not have this permission by default... cheers, Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
>>> Robin Becker wrote > Is there any clear way for stuff which used to work under the old api to > be migrated to 2.2? I'm presently unable to create tinytables as super > user (presumably because they lack the relevant attributes). I used to > be able to access them anonymously, but am unable to under 2.2. I'm getting the feeling (from playing a bit) that the current CVS new security system requires products to be changed to work again - would anyone else like to confirm this? Is it deliberate, or will there be a backwards-compatible mode? Thanks, Anthony. -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ 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] Documentation?
Hi, I'm trying to get a grip of the ins and outs of the following classes, where should I look? -IOBTree (and the other IO* classes) -intSet -PersistentMapping cheers, Chris ___ 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] Re: Superuser ownership (was "Adding LoginManager at the root")
Is there any clear way for stuff which used to work under the old api to be migrated to 2.2? I'm presently unable to create tinytables as super user (presumably because they lack the relevant attributes). I used to be able to access them anonymously, but am unable to under 2.2. For the non-expert what would we have to do to get up to speed on what needs to be hacked to get these things to go? It's not clear whether I need to hack the implementation of tinytable or if the objects in the fs or .zexp are bad or all are outdated. There must be a lot of older databases which will encounter this and similar problems. -- Robin Becker ___ 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 )