Re: [Zope-dev] Call Profiler
Doesnt seem to like being refreshed and some event items arent in the time dict, I noticed these were items that I had got in a ram cache. So i just stuck an if at line 496. Other than that its a great product. Most important tool since refresh if you ask me... - Original Message - From: "Richard Jones" <[EMAIL PROTECTED]> To: "zope-dev" <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 5:13 PM Subject: [Zope-dev] Call Profiler > I've just announced our Call Profiler product on zope.org and the zope > announce list (waiting for people in different timezones to authorise them :) > ( http://www.zope.org/Members/richard/CallProfiler/ for the impatient) > > In a nutshell, it patches the rendering guts of DTMLMethod, ZSQL, etc. and > the ZPublisher so that we can get timing marks for requests as the calls are > made. The patching is quite simple (once I got the hang of it ;) and > reversible, and means that there's no changes required to the Zope core to > enable the testing (which our initial versions did). > > It does pose a question though: would it be better to have support for this > stuff in the core, or is it OK for a product like this to dynamically patch > the call methods when it needs to? > > On one hand, the performance hit when dynamically patching the methods is > zero when the product is not "active", but it does mean diddling with methods > that really probably should be left alone. On the other hand, having changes > to the core code to test for profiling being enabled introduces a small > performance hit even when profiling is not activated. > > Any comments? > > > Richard > > ___ > 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 )
Re: [Zope-dev] A modest proposal: Replace medusa with Twisted
> Thing is that from what I see win32 is the most popular platform for Zope Actually I think win32 is in the minority. A poll on ZopeZen (totally unscientific) showed about 60% run on Linux. - Original Message - From: "Phil Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Chris Withers" <[EMAIL PROTECTED]>; "Itamar Shtull-Trauring" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 10, 2001 4:25 AM Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted > But kosh, we all know your hatred of all things Microsoft. > > You're absolutely right, it could be fixed, and probably should be as well. > > Thing is that from what I see win32 is the most popular platform for Zope > (I'm including experimenters here though, not just production sites). > Anyone from ZC want to comment on that. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Phil Harris" <[EMAIL PROTECTED]> > Cc: "Chris Withers" <[EMAIL PROTECTED]>; "Itamar Shtull-Trauring" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, October 10, 2001 12:21 PM > Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted > > > > On Wed, 10 Oct 2001, Phil Harris wrote: > > > > > I'd say the fact that it doesn't work on Win32 is a bit of a downer. > > > > > Just a bit but overall I expect that could be changed if it where really > > important. From what I have seen under high load and python program will > > kill windows after a few days with some VM problems so this does not seem > > that important to me. I have seen on irc and the lists a good deal of > > problems to do with windows and zope with VM issues over time. I have not > > done much testing with that though since it seems like kind of a silly > > thing to spend a few thousand on an OS to run a free server on when you > > can run it on a free os also and just pay for the hardware. > > > > Designing the webpages of tomorrow http://webme-eng.com > > Designing the MMORPGS of tomorrow http://worldforge.org > > > ___ > 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 )
Re: [Zope-dev] COPY/PASTE problem
Copy and paste uses a cookie to store a reference to the item. After copying you are adding a cookie __cp. Accessing the contents of __cp is a way to see whats in you "clipboard". - Original Message - From: "Johan Beauce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 04, 2001 1:34 AM Subject: [Zope-dev] COPY/PASTE problem > Hello, > > I would like to copy and paste file in my site. > I created "copy button" with this code : > > > > > > this code don't make an error, but I'm not sure that's work! > I suppose that "manage_copyObjects()" reference the file > in the clipboard, but how can I use the function "paste", > maybe like that but it doesn't work ... > > > > > > how can I view the content of its clipboard ? > thanks, > > Johan. > > ___ > 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 )
Re: [Zope-dev] DISCUSS: Community checkins for CVS
> Does anyone think this is close enough that I can go ahead and get the > bootstrap group (under ten, selected by us) going? I'd like to avoid > making them sign and mail an agreement, then do it again if there's > substantive changes. Go for it. ___ 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] What would *you* like to have in PropertyManager and friends?
ZWiki's seem a little wonky at the moment so Im commenting here. The one big that would be hugely helpful is a dict property class. Should be quite simple and very useful IHMO without having to rely on TinyTables etc. Cheers and thanks for starting up the project. - Original Message - From: "Lalo Martins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 27, 2001 4:38 PM Subject: [Zope-dev] What would *you* like to have in PropertyManager and friends? > raise ZopeProject('http://dev.zope.org/Wikis/DevSite/Proposals/PropertyRevamp') > > We at Hiperlogica realize a lot of you people prefer to write > your code in Python in the filesystem. However, we also believe > the power of Zope's trough-the-web RAD framework is one of the > reasons for its success; more importantly, it's a good part of > the reason it works for *us*. > > In this spirit, we fired up HiperDom a few months ago, and > we're now working on ZUnitTTW to allow developers to unit test > their ZClasses and even their very sites. > > Now, we've been taking note of a lot of peeves we have with > Properties, in the past one year or so. After all this time, > and dealing with some Zope internals, we feel confident enough > to propose to fix them. > > So we're "raising" a Project in the fishbowl to implement these > changes. But before we dive in the mud, we'd like to hear from > people that really use Properties (and/or ZClasses), or that > would use them if they were more powerful. Please go to the > Proposal page, linked above, and tell us what you think. > > []s, >|alo >+ > -- >I say a prayer now our love's departed > That you'll come back to stay > Bring back the perfect day > > http://www.laranja.org/mailto:[EMAIL PROTECTED] > pgp key: http://www.laranja.org/pessoal/pgp > > Brazil of Darkness (RPG) --- http://www.BroDar.org/ > > ___ > 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] .zexp's
Just ran into a problem with a newbie where they couldnt figure out where to import the zexp, if its a product it should go in /Control_Panel/Products, if not it should go in the ZODB. I couldn't think of an obvious way to tell, so I just had a look in the zexp and came up with this: file = open(infile, 'r') if string.find(file.readline(), 'App.Product') >= 0: print "%s is a product zexp, go to Control_Panel" % infile Can anyone think of a better way? It would be figure out where to stick this in ExportImport.py so it would give nicer error messages... Cheers -- Andy McKay ___ 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] Allowing secure 'import' access in zope folder hosting
> Just a random, related thought that came up: Wouldn't it be nice > if people could devellop locally on their own zope (under windows > or unix) and hit the 'Sync' button on their "SyncedFolder" to > transparently upload their work to the zope server where it becomes > live immediately? (ok, this wouldn't work for external databases) > > Just a thought. I know it doesn't cover all situations and there are > other ways to do this (next to just developping remotely using versions). I have a system that does that now using xml-rpc. Im trying to turn it into a product so I can get release it. It can be a big security headache -- Andy McKay ___ 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] Catalog Indexes.
> > I'd like to find this telephone number (it is a string...): +44 1234 > > 123456. > > But no partial matching? Use a FieldIndex... > If you want partial matching you're fu... not in a very good position ;-) Theres a cool hack to Splitter.c by Jason Spisak that doesnt remove numbers and punctuation from the Catalog. I make no promises since I haven't tried it. That should enable you to make it a text field and then do globbing... -- Andy McKay ___ 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] 27 million objects.
> I don't know, but I feel that is the case. Actually, I know it is the > case, but I don't know what is causing it. I know what isn't helping > though; CatalogAwareness. I added 2000 objects with XML-RPC. No other > queries were done during that period. For each object about 70 DTML > Method/Documents were added. The first couple of hundres went with a pace > of 2-3 seconds per object. After that it started to get real slow, and > when I reached about 500 I was down to 5 seconds per object. I killed > that script, rewrote it to only add 20-25 DTML Methods/Documents and > removed the CatalogAwareness and whoosh! Under 1 second for each object > and it stayed like that for the entire 2000 objects. Hear, hear. The cost of the incremental cataloguing is horrific. One of our developers when we started with Zope a year ago wrote a great script that imported a bunch, restarted zope, packed it, restarted it, imported a bunch more to get optimal performance. We dont do it like that any more ;) -- Andy McKay ___ 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 )