[Zope] cache for python calls

2009-04-17 Thread iarly selbir | ski0s
I'm doing a hard task, trying to improve maximum of possible performance to Zope/Plone server, I already installed CacheFu that improved so much performance, I saw on a blog about cache for Python calls but wasn't explained about your configuration or installation. there are any related product

Re: [Zope] cache for python calls

2009-04-17 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Before starting with any kind of performance optimization: figure out your bottlenecks first by profiling your code: ZopeProfiler is your friend. - -aj On 17.04.2009 15:10 Uhr, iarly selbir | ski0s wrote: I'm doing a hard task, trying to improve

Re: [Zope] cache for python calls

2009-04-17 Thread iarly selbir | ski0s
This code isn't my, the server is hosting sites of many govern departments, so my task isn't develop the code but is keep all system working fine without down times. I'm not allowed to change the code, so I'm looking for all other reachable performance features. Regards, - - iarly selbir |

Re: [Zope] cache for python calls

2009-04-17 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Various knobs affect Zope performance...depending on each individual site and their programming and needs..serious further hints require a closer analysis. - -aj On 17.04.2009 15:27 Uhr, iarly selbir | ski0s wrote: This code isn't my, the server is

Re: [Zope] cache for python calls

2009-04-17 Thread iarly selbir | ski0s
No problem guy all test that I doing is on test environment xD, errors are acceptable, all problems solution are stored in my personal knowledge base heh Btw I'm reading about memoize installation I don't saw anything related to code changes Look: plone.memoize Installation

Re: [Zope] cache for python calls

2009-04-17 Thread Carsten Senger
iarly selbir | ski0s schrieb: I'm doing a hard task, trying to improve maximum of possible performance to Zope/Plone server, I already installed CacheFu that improved so much performance, I saw on a blog about cache for Python calls but wasn't explained about your configuration or

[Zope-Checkins] SVN: Zope/trunk/ preparing 2.12.0a2

2009-04-17 Thread Andreas Jung
Log message for revision 99247: preparing 2.12.0a2 Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/inst/WinBuilders/mk/zope.mk U Zope/trunk/inst/versions.py -=- Modified: Zope/trunk/doc/CHANGES.rst === ---

[Zope-Checkins] SVN: Zope/trunk/doc/INSTALL.rst added note on easy_install

2009-04-17 Thread Andreas Jung
Log message for revision 99248: added note on easy_install Changed: U Zope/trunk/doc/INSTALL.rst -=- Modified: Zope/trunk/doc/INSTALL.rst === --- Zope/trunk/doc/INSTALL.rst 2009-04-17 14:16:32 UTC (rev 99247) +++

[Zope-Checkins] SVN: Zope/tags/2.12.0a2/ 'creating tag svn+ssh://andreasj...@svn.zope.org/repos/main/Zope/tags/2.12.0a2 from svn+ssh://andreasj...@svn.zope.org/repos/main/Zope/trunk'

2009-04-17 Thread Andreas Jung
Log message for revision 99250: 'creating tag svn+ssh://andreasj...@svn.zope.org/repos/main/Zope/tags/2.12.0a2 from svn+ssh://andreasj...@svn.zope.org/repos/main/Zope/trunk' Changed: A Zope/tags/2.12.0a2/ -=- ___ Zope-Checkins maillist -

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Hey, Martin Aspeli wrote: [snip] I do realise that this derails Maritjn's focus slightly, but I don't think we've lost the idea that there may be value in maintaining a larger KGS. The whole idea of whatever-Zope 3-is-designated-as just being a larger KGS strikes me as strange. Frankly it

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martin Aspeli
Martijn Faassen wrote: Hey, Martin Aspeli wrote: [snip] I do realise that this derails Maritjn's focus slightly, but I don't think we've lost the idea that there may be value in maintaining a larger KGS. The whole idea of whatever-Zope 3-is-designated-as just being a larger KGS

[Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

2009-04-17 Thread Chris Withers
Hi All, I tried to connect up to Zope 2.12 by the webdav source port today and got the following in the event log:: 2009-04-17 09:13:48 ERROR Zope.SiteErrorLog 1239956028.70.143658354715 http://192.168.1.12:1980/@@home Traceback (innermost last): Module ZPublisher.Publish, line 119, in

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Hey Martin, Martin Aspeli wrote: [snip] Sigh... this discussion is just really difficult. I don't really understand what the problem is here, or why it's indicative of what's wrong with this community, but then I'm pretty lost in concepts and names at this stage. I think you're reading

Re: [Zope-dev] People in the Zope 3 and ZMI teams

2009-04-17 Thread Lacko Roman
Hi From: zope-dev-boun...@zope.org [mailto:zope-dev-boun...@zope.org] On Behalf To be honest, zope3 (as it is today) is a nice platform for me and for my company to build web applications (and, in general, the ZCA is a nice platform for building not-only-web applications), and it would be a

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
Wow, long thread started just from an attempt to define the words we were talking about. :) On Fri, Apr 17, 2009 at 10:04, Martin Aspeli optilude+li...@gmail.com wrote: I'll say again, though: Gary's version of the story (the Zope 3 community has become focused on supporting other app servers

[Zope-dev] Zope Tests: 8 OK

2009-04-17 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Apr 16 12:00:00 2009 UTC to Fri Apr 17 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Thu Apr 16 20:48:10 EDT 2009 URL:

Re: [Zope-dev] People in the Zope 3 and ZMI teams

2009-04-17 Thread Fabio Tranchitella
Hello there, * 2009-04-16 09:44, Martijn Faassen wrote: Just so we don't lose track of who are interested in maintaining Zope 3 (and/or the ZMI). I've distilled the following list of people who are interested in helping maintain Zope 3. This might mean making sure existing apps work,

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Carsten Senger
Martijn Faassen schrieb: Hey, Martijn Faassen wrote: [snip] I put a mark in my calendar for October to reconsider the future of the name Zope 3 then. Given the responses to this thread I'm starting to lean towards pushing the message to the outside that Zope 3 has become Zope Toolkit,

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Carsten Senger
Rob Miller schrieb: Gary Poster wrote: This message seems like a reasonable start to me: Zope 3 has become focused on supporting frameworks and applications, rather than trying to be one itself. It is now called the Zope Toolkit. Parts of it are used by Zope 2, Plone, Grok,

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 14:47, Carsten Senger sen...@rehfisch.de wrote: Pushing this message inside the zope community is perfect. But I don't see a need to communicate to outsiders that Zope 3 has become the Zope Toolkit. This will be confusing to outsiders. They don't have to think about

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Carsten Senger
Lennart Regebro schrieb: On Fri, Apr 17, 2009 at 14:47, Carsten Senger sen...@rehfisch.de wrote: Pushing this message inside the zope community is perfect. But I don't see a need to communicate to outsiders that Zope 3 has become the Zope Toolkit. This will be confusing to outsiders. They

Re: [Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Hi All, I tried to connect up to Zope 2.12 by the webdav source port today and got the following in the event log:: 2009-04-17 09:13:48 ERROR Zope.SiteErrorLog 1239956028.70.143658354715 http://192.168.1.12:1980/@@home

Re: [Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

2009-04-17 Thread Chris Withers
Tres Seaver wrote: It means that you have *part* of the WebDAV machinery wired up (hence the NullResource objects) but not all of it (hence, you are trying to render a ZPT which uses /path/to/template/macros/main). Likely there is a missing adapter registration or six in there. I don't want

[Zope-dev] [Zope 2.12.0a2]Acquisition+ExtensionClass failures with Python 2.6.2/Linux

2009-04-17 Thread Andreas Jung
Hi, I am working on the 2.12.0a2 release. I get test failures on my Linux box (OpenSuse 10.3/64 bit, fresh Python 2.6.2 installation): -- File

Re: [Zope-dev] [Zope 2.12.0a2]Acquisition+ExtensionClass failures with Python 2.6.2/Linux

2009-04-17 Thread Andreas Jung
In addition, some of the Acquistion test fail when trying to test the package alone: aj...@blackmoon:/develop/repository/svn.zope.org/Acquisition/tags/2.11.1 bin/test -vv Running tests at level 1 Running zope.testing.testrunner.layer.UnitTests tests: Set up

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Hey, Carsten Senger wrote: [snip] Btw: Somebody should change Zope Framework to Zope Toolkit on zope.org and remove the version number v3.5 from the Zope Toolkit documentation. Could you fix the Zope Toolkit documentation and change it to 1.0? It's in SVN. It'd be very nice if you could

Re: [Zope-dev] [Zope 2.12.0a2]Acquisition+ExtensionClass failures with Python 2.6.2/Linux

2009-04-17 Thread Chris Withers
Andreas Jung wrote: I am working on the 2.12.0a2 release. I get test failures on my Linux box (OpenSuse 10.3/64 bit, fresh Python 2.6.2 installation): 64bit problem maybe? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Hey, Lennart Regebro wrote: A more truthful story is that Zope Toolkit is a base for writing frameworks, and that one of those frameworks was Zope 3, now renamed to something cool. But the support in this thread for the previous story makes me wonder if we shouldn't push that, slightly more

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 16:51, Martijn Faassen faas...@startifact.com wrote: We should just retain the Zope 3 name to the outside world for the time being, but de-emphasize it in our communication. We push Zope Toolkit a lot more. If people want to get started using the toolkit, we point them

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Jim Fulton
On Apr 17, 2009, at 11:49 AM, Martijn Faassen wrote: Simon Michael wrote: -1, Gary's is clearer. I think what is clear or not is very subjective. I think that at least is clear. I think it is clear that you are disregarding many people's opinions. Jim -- Jim Fulton Zope Corporation

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Jim Fulton wrote: On Apr 17, 2009, at 11:49 AM, Martijn Faassen wrote: Simon Michael wrote: -1, Gary's is clearer. I think what is clear or not is very subjective. I think that at least is clear. I think it is clear that you are disregarding many people's opinions. censored by the PSU

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 17:07, Simon Michael si...@joyful.com wrote: -1, Gary's is clearer. But still not accurate. I've yet hear anybody actually support the point of view that we should (internally or externally) push a story that is not really true. If this indeed is the opinion of the

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 18:00, Jim Fulton j...@zope.com wrote: I think it is clear that you are disregarding many people's opinions. What opinions have been disregarded, more exactly? -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Jim Fulton
On Apr 17, 2009, at 12:17 PM, Lennart Regebro wrote: On Fri, Apr 17, 2009 at 18:00, Jim Fulton j...@zope.com wrote: I think it is clear that you are disregarding many people's opinions. What opinions have been disregarded, more exactly? Gary's, Mine, Tres', Simon's, Benji's and others I

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Jim Fulton wrote: On Apr 17, 2009, at 11:49 AM, Martijn Faassen wrote: Simon Michael wrote: -1, Gary's is clearer. I think what is clear or not is very subjective. I think that at least is clear. I think it is clear that you are disregarding many people's opinions. Okay, I'll come

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Jim Fulton wrote: On Apr 17, 2009, at 11:49 AM, Martijn Faassen wrote: Simon Michael wrote: -1, Gary's is clearer. I think what is clear or not is very subjective. I think that at least is clear. I think it is clear

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Jim Fulton wrote: On Apr 17, 2009, at 12:17 PM, Lennart Regebro wrote: On Fri, Apr 17, 2009 at 18:00, Jim Fulton j...@zope.com wrote: I think it is clear that you are disregarding many people's opinions. What opinions have been disregarded, more exactly? Gary's, Mine, Tres', Simon's,

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 18:25, Jim Fulton j...@zope.com wrote: Gary's, Mine, Tres', Simon's, Benji's and others I could find if I trolled through the thread, which I won't. I can't see how these have been disregarded. Gary proposed that we say that Zope 3 has been renamed to the Zope Toolkit.

Re: [Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: Tres Seaver wrote: It means that you have *part* of the WebDAV machinery wired up (hence the NullResource objects) but not all of it (hence, you are trying to render a ZPT which uses /path/to/template/macros/main). Likely

Re: [Zope-dev] People in the Zope 3 and ZMI teams

2009-04-17 Thread Martijn Faassen
Hey Fabio, Thanks again for coming back on this, this is quite encouraging. Fabio Tranchitella wrote: I've just checked out that the domain zope3.org is not owned by the Zope Corporation. Do you have any idea about it? Would it be possible to claim it back? I don't know, unfortunately. I'm

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Simon Michael
Lennart Regebro wrote: So, if I'm gonna act hurt, I'll claim that anybodys opinion here is being disregarded, it's mine. ;-) And I'll state it again, for clarities sake: I think that Zope 3 should be renamed. I proposed Blue Bream (and ... I have still to see any arguments against this. If

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Hi there, On svn.zope.org we have a library called z3c.javascript. Never got released to pypi, but it did get released to download.zope.org/distribution It basically contains a pile of javascript libraries. These have

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Lennart Regebro
On Fri, Apr 17, 2009 at 19:03, Simon Michael si...@joyful.com wrote: Um.. people will laugh at us ? No, *with* us. Big difference. :) -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Rob Miller
Martijn Faassen wrote: Hey Martin, Martin Aspeli wrote: [snip] Sigh... this discussion is just really difficult. I don't really understand what the problem is here, or why it's indicative of what's wrong with this community, but then I'm pretty lost in concepts and names at this stage.

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Martijn Faassen
Hey Rob, Rob Miller wrote: [snip] sure, i understand what you're saying here. it'd be great if some set of folks who are using the full Z3 app server platform decided to step up, create a website, refine the branding, and just generally breathe life into the project. but, until someone

Re: [Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

2009-04-17 Thread Chris Withers
Tres Seaver wrote: Why are *any* adapters I've wired up being used here? (I haven't wired up anything for webdav, only normal views and the like I want used for http) I'm sorry if I seemed to imply a bug in your application: I meant to point out that the *publisher* was finding the wrong

[Zope-dev] How can I force the language for a particular template rendering?

2009-04-17 Thread Chris Withers
Hi All, What I want to do is best shown in pseudocode: something.setLanguage('fr') text = my_page_template() something.restoreLanguage() ...the reason I want to do this is that the results of that template will not be in the language negotiated for the current user, as the result is then

Re: [Zope-dev] Defining Zope 3.

2009-04-17 Thread Andrew Sawyers
+1 with Tres' position. On Fri, Apr 17, 2009 at 9:47 AM, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Jim Fulton wrote: On Apr 17, 2009, at 11:49 AM, Martijn Faassen wrote: Simon Michael wrote: -1, Gary's is clearer.

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Roger Ineichen
Hi Tres Betreff: Re: [Zope-dev] z3c.javascript license question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Hi there, On svn.zope.org we have a library called z3c.javascript. Never got released to pypi, but it did get released to

Re: [Zope-dev] How can I force the language for a particular template rendering?

2009-04-17 Thread Ethan Jucovy
How about just monkeypatching the active negotiator? {{{ negotiator = getUtility(zope.i18n.interfaces.INegotiator) orig = negotiator.getLanguage negotiator.getLanguage = lambda foo, bar: 'fr' text = my_page_template() negotiator.getLanguage = orig }}} Haven't tested it, but in my (limited)

Re: [Zope-dev] How can I force the language for a particular template rendering?

2009-04-17 Thread Hanno Schlichting
Ethan Jucovy wrote: How about just monkeypatching the active negotiator? {{{ negotiator = getUtility(zope.i18n.interfaces.INegotiator) orig = negotiator.getLanguage negotiator.getLanguage = lambda foo, bar: 'fr' text = my_page_template() negotiator.getLanguage = orig }}} Haven't

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger Ineichen wrote: Hi Tres Betreff: Re: [Zope-dev] z3c.javascript license question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Hi there, On svn.zope.org we have a library called z3c.javascript. Never got

Re: [Zope-dev] How can I force the language for a particular template rendering?

2009-04-17 Thread Ethan Jucovy
Actually -- for a more proper solution -- I believe zope.i18n.interfaces.IUserPreferredLanguages is expected to adapt a request (rather than being a contextless utility) so I bet you could register a custom IUserPreferredLanguages whose getPreferredLanguages returns ['fr'] on an IForceLanguage

Re: [Zope-dev] How can I force the language for a particular template rendering?

2009-04-17 Thread Ethan Jucovy
Actually -- for a more proper solution -- I believe zope.i18n.interfaces.IUserPreferredLanguages is expected to adapt a request (rather than being a contextless utility) so I bet you could register a custom IUserPreferredLanguages whose getPreferredLanguages returns ['fr'] on an IForceLanguage

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Benji York
On Fri, Apr 17, 2009 at 3:48 PM, Tres Seaver tsea...@palladion.com wrote: I think I recall that Jim ripped out an integration package for the Ext Javascript framework precisely because the licensing for Ext was initially questionable, and later became outright unacceptable. Yep, you recall

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Behrang Dadsetan
Hi! 2009/4/18 Tres Seaver tsea...@palladion.com: [super snip] Now that the copyrights are transferred to the Zope Foundation, essentially *nobody* can check in non-ZPL code, without a special exemption from the ZF board or its delegate (nobody is yet appointed to handle this). I am looking

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Baiju M
On Fri, Apr 17, 2009 at 2:48 PM, Tres Seaver tsea...@palladion.com wrote: [snip Now that the copyrights are transferred to the Zope Foundation, essentially *nobody* can check in non-ZPL code, without a special exemption from the ZF board or its delegate (nobody is yet appointed to handle

Re: [Zope-dev] force the language for a particular template: solution

2009-04-17 Thread Chris Withers
Hanno Schlichting wrote: Or attach a marker interface to the request and register a different IUserPreferredLanguages adapter for it. This won't quite work as I still need to get the language I'm forcing from somewhere. However, I realised I already had a custom IUserPreferredLanguages

Re: [Zope-dev] z3c.javascript license question

2009-04-17 Thread Chris Withers
Behrang Dadsetan wrote: You mentioned the copyrights were transfered to ZF which is what I recall reading a while ago. But when I last checked http://www.zope.org/DevHome/CVS/Contributor.pdf I do wish the whole of DevHome would just die :-( (I believe this is supposed to be happening right

[Zope-dev] zpt nesting/inheritence in views

2009-04-17 Thread Chris Withers
Hey All, Thought I'd share this and see if anyone had any better ideas... So, I have a set of views that subclass each other, nothing out of the ordinary there. However, I also want the zpts used by the views to subclass each other, such that a subclassing view can use its parent's macro(s)