Re: [Zope] tal:attributes and extra newline
On 4/18/05, Pascal Peregrina <[EMAIL PROTECTED]> wrote: > So, just to know, why is the default value 60 ? I think just because Guido wrote it that way. I don't know that there's anything special about the value. -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [ANN] Zope 2.8.0 released
On 6/11/05, Andreas Jung <[EMAIL PROTECTED]> wrote: > Jim Fulton, Christian Theune, Tim Peters, Fred Drake Jr., Marc Hammond, > Sidnei da Silva, Tres Seaver, Stefan Holek, Chris McDonough, Don't forget that Andreas Jung character! This wouldn't have happened without his persistence and dedication. Thanks, Andreas! -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZPT code sample
On 6/21/05, John Poltorak <[EMAIL PROTECTED]> wrote: > Is there anything wrong with this ZPT code sample? > > http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.html > > I get this error message when trying to save it:- > > HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37 The cited line contains a typo; it uses "<" instead of ">" to end a tag. -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python question
On 7/1/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote: > i think there should be no functional difference in the two code snippets > below, but is there any difference in performance? Don't know, and don't care; these are (at the Python level) functionally different. > (i know, the "except AttributeError" could possibly mask an AttributeError > in the called function...) Exactly. Shouldn't be a real issue in a released version, but better safe than sorry. > 1.: > hook = getattr(o, '_before_transaction_commit', None) > if hook: hook() Better yet: hook = getattr(o, '_before_transaction_commit', None) if hook is not None: hook() -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] tal:attributes question
On 7/22/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: > I am trying to set the bgcolor of a page based on the existance of a variable. > > Neither of these seem to work: > > tal:attributes="bgcolor python:test(hasattr(options, 'error'), 'red', > 'green')"> Try this: -Fred -- Fred L. Drake, Jr. Zope Corporation ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Garito <[EMAIL PROTECTED]> wrote: > Alan Milligan escribió: ... > >You do realise that pyexpat has a limitation of 8192 bytes between xml > >tags - if your parse string is longer than this, it will fail. You can > >recompile your expat parser to accept larger sizes, but this drastically > >affects performance. I certainly wasn't aware of any such limitation. I'll construct a test case to verify or refute this, and post the results. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Garito <[EMAIL PROTECTED]> wrote: > Alan Milligan escribió: > >You do realise that pyexpat has a limitation of 8192 bytes between xml > >tags - if your parse string is longer than this, it will fail. You can > >recompile your expat parser to accept larger sizes, but this drastically > >affects performance. Ok, I don't know just where this assertion comes from; I can't reproduce this at all with the pyexpat in Python 2.3.5 or 2.4.2. I've attached a short test program that verifies pyexpat's behavior. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner """Test asserted size limitation of text between tags for pyexpat. """ __docformat__ = "reStructuredText" from xml.parsers import expat COUNT = 8192 * 10 SAMPLE_TEXT = "abc" + ("-" * COUNT) + "xyz" buffer = [] def characters(text): buffer.append(text) p = expat.ParserCreate() p.CharacterDataHandler = characters p.Parse(SAMPLE_TEXT, True) text = u"".join(buffer) assert len(text) == (COUNT + 6) assert text.startswith(u"abc---") assert text.endswith(u"---xyz") # This is expected to print "abc--- ---xyz" print text[:6], text[-6:] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Alan Milligan <[EMAIL PROTECTED]> wrote: > I discovered this a couple of years ago wondering why RedHat's up2date > XML-RPC client didn't wrap download files in base64 tags. They've > actually done some strange stuff in this client to use normal http calls > to download RPM packages. Silly RedHat. Imagine using HTTP to transfer files... > - From memory, the c expat library news up an 8192 char buffer to unpack > *every* tag contents. If you extend this size, performance seems to > degrade massively... Expat does have a buffer that provides some "context" for the current event being reported, and the size of that buffer is defined by a compile-time definition. It should not be made too large, certainly. But it's not the way to retrieve normal document data from the parser, either. It's really only intended to do things like allow an application to retrieve character references when character data is reported, or to see what a tag actually looks like (we use this for page templates to help make minimal changes when we don't actually need to process TAL/METAL/I18N attributes on an element). Retrieving document text should always be done using the character data handler and a buffer to ensure the entire data within an element is collected, since multiple callbacks will be made quite often. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Err. Whats wrong with HTTP to transfer files? > (Provided its not XML-RPC ;) Sorry; I was being facetious. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Alan Milligan <[EMAIL PROTECTED]> wrote: > And you are allowed to be. It is a bit strange in an XML-RPC dialog to > drop out to http occasionally ... Actually, I'd expect large files over XML-RPC to be handled by sending a URL, and have the client GET the file separately. But then, I have weird ideas sometimes. > This has absolutely nothing on them actually implementing a lot of their > XML-RPC using HTTP GET, when the protocol clearly states it must be an > HTTP POST ... > > (I imagine this is a performance enhancement in that you needn't > xml-parse the payload ...) Unless you can make the server a simple front-end to a pile-o-files on disk, I don't see any benefit. There's no issue for the client, only the server, since they want to limit the number of machines they stick behind the load-balancer. Ok, I think we've agreed this isn't an Expat issue, but a bug in RedHat code that's unrelated to using XML in Zope. The Expat-based minidom-builder in recent versions of Python is pretty well tested in practice. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Garito <[EMAIL PROTECTED]> wrote: > I run your test but no error was raised Right. > I attach an xml file like I use and who raise the error, perhaps these > could help to reproduce the error If you replaced SAMPLE_TEXT in the test script with this data, an error would indeed be raised, because it's testing that it got the data from the sample text. The test was intended to demonstrate that pyexpat can handle more than 8192 characters of data between tags, and does so. I was able to verify well-formedness of your document, and load it into minidom from a file without problems, using Python 2.3.5 and 2.4.2. I need more information about what went wrong for you before I can help with that; the error you received suggests that there was no input at all. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/12/05, Garito <[EMAIL PROTECTED]> wrote: > What do you need? In this bit of code: Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo 266 | 267 | if 'NodoRaiz' not in args: 268>| args['NodoRaiz'] = parseString(self.Dame({'nombre': self.getId() + '.mm'}).index_html(self.REQUEST, self.REQUEST.RESPONSE)) 269 | if 'Nodos' not in args: args['Nodos'] = args['NodoRaiz'].childNodes 270 | if 'Nivel' not in args: args['Nivel'] = 0 The expression self.Dame({'nombre': self.getId() + '.mm'}) is providing something that's being passed to the XML parser (the parseString() function). That string is the data that's in question; if you can get that string and send it to me (as a file attachment, preferably), I'll try to figure out what's happening. The "Yanged" product I've never heard of, and don't know anything about its code. But I know something about the XML parser being used. :-) -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Type: ExpatError
On 10/13/05, Garito <[EMAIL PROTECTED]> wrote: > self.Dame({'nombre': self.getId() + '.mm'}) > > Dame is a function that returns a ZCatalog query where nombre is an index ... > This File object returns the text of the last attachment I send you some > mails ago The index_html() method returns the freemind XML? Interesting. What version of Python are you using? Do you have PyXML installed? If so, what version are you using? -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [OT] ParsedXML dev mail list
On 10/21/05, Chris Withers <[EMAIL PROTECTED]> wrote: > Garito wrote: > > Sorry for the off topic but I try to subscribe to ParsedXML dev mail > > list but I can't (mail list doesn't exists) > > Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product? > > You could always try asking about your problem on this list... It was originally a Zope Corp product, and still lives in the zope.org CVS. I don't think anyone here is currently using it for anything, though. There is a zope-xml list that came into existance back when we were developing that, but its been nothing but spambait for the past couple of years. It should probably be retired. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Linux/unix preferences question
On 10/24/05, Gary Kahn <[EMAIL PROTECTED]> wrote: > I will take a good look at ubuntu before deciding. I am also considering > KRUDserver. > http://www.tummy.com/Products/krudserver/ Many of us at Zope Corp develop on Ubuntu and MacOSX. I think all of our commercial hosting runs on Centos, so KRUDserver shouldn't be a problem. The folks at tummy.com are pretty savvy. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Filesystem Page Template lowercase-ifying all my tags
On 10/26/05, Floyd May <[EMAIL PROTECTED]> wrote: > It appears as though this problem is due to the content-type being set > inappropriately (probably text/html). I'm attempting to render XML, > but each of the templates only contains a piece of my final output XML > file; therefore, I don't have the '' header in the file. > From a perusal of the source for FSPageTemplate, this appears to be > the only way to get the Content-Type set to 'text/xml'. Basically, Unfortunately, that's true for the current code. Julien Anguenot and I started working on this problem (along with some other aspects of the XML vs. HTML behavior) based on the Zope 3 implementation for page templates. The work isn't done yet, though the aspect you're interested in is pretty straightforward. That's only for the Zope 3 version of the code, however. For now, your best bet may be to subclass the PageTemplateFile class (or whichever derived class of that that's relevant to you) and override the _cook_check() method to do what you need it to do. If you're using a file-system view, you likely need to arrange for your new class to be used for some new filename extension; I'm not sure how to arrange for that. -Fred -- Fred L. Drake, Jr. "Society attacks early, when the individual is helpless." --B.F. Skinner ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get hands on url with hash?
On 1/3/06, "Jürgen R. Plasser" <[EMAIL PROTECTED]> wrote: > Is it possible (or even intended, did'nt read any RFCs regarding this) > to retreive any url like http://www.example.com/index_html#hash (<- > note: hash!) from the request? The hash and the fragment-identifier that follows are only used by the browser and are not sent as part of the HTTP request. If you need information beyond the document identifier to be sent, you need to use query parameters. -Fred -- Fred L. Drake, Jr. "There is no wealth but life." --John Ruskin ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Retrieve zope.conf path
On 1/13/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > How could I retrieve the path to the config file used to start a running > instance? > I want to put other config stuff in the same directory, and I would like a > safe way to obtain such directory. > I could use INSTANCE_HOME/etc but since the config file name can be > specified in the command line, it might not be there. If you're using Zope 2.9, the configuration schema allows adding additional sections. Documentation still needs to be written (unless someone snuck it in while I wasn't looking), but information can be found in the main configuration schema in lib/python/Zope2/Startup/zopeschema.xml. That would get around the location issue, and let you add configuration settings so you can refer to additional data files as well, if any are needed. Explicit references beat implicit sniffing of location! -Fred -- Fred L. Drake, Jr. "There is no wealth but life." --John Ruskin ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] windows python differences
On 5/19/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: Surely! But this is not the problem here. I wonder if the problem could be that "echo" is not available as a separate command on Windows, but is only handled with the shell (cmd.exe). On Linux and other Unixes, it generally *is* available as a separate executable, though shells also implement it as a built-in command (it's /bin/echo on my Ubuntu installation). -Fred -- Fred L. Drake, Jr. "Education is hanging around until you've caught on." -- Robert Frost ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using property() function in Zope 2.8
On 7/6/06, Max M <[EMAIL PROTECTED]> wrote: This code below works in plain Python. But when I add them to my zope class, and run the tester() method I get an "Attributer Error: __ac_local_roles__" Descriptors in general are not guarantteed to work on old-style classes. Your PropTest class certainly looks like it falls into that category (I'm assuming you didn't elide anything for brevity), so I wouldn't expect it to work. That said, reading such a descriptor will work for classic classes. The real error is getting masked, however: it's not that __ac_local_roles__ isn't defined, it's that __mxm__ac_local_roles__ isn't defined, and the getter isn't dealing with that effectively (or, it is, depending on your opinion). -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using property() function in Zope 2.8
On 7/6/06, Max M <[EMAIL PROTECTED]> wrote: There is a lot of things missing for brevity. It is an archetypes based class, and all kinds of interesting stuff is happening in that stack. Ok, well, I don't know archetypes myself; hopefully someone with more specific knowledge of that can help. Specific code for the get/set/del functions is probably required, at least. I tried to check that out. But then it says something like: "_PropTest__mxm__ac_local_roles__ No such attribute" That suggests that there's metaclass stuff going on, or the specific code differs from the example shown in relevant details (or both). -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Using property() function in Zope 2.8
On 7/6/06, Rob Miller <[EMAIL PROTECTED]> wrote: it's not an answer to your original question (i have nothing to add to what fred already replied) but TeamSpace solves this by using a ComputedAttribute instead of a property for the dynamic local roles. Yeah, I forgot all about ComputedAttribute. That's probably what you want if your class is an ExtensionClass. -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope 3 invisibility
On 9/5/06, Carlos de la Guardia <[EMAIL PROTECTED]> wrote: I frequently blog about Zope, and recently posted a list of 10 reasons why I think Zope 3 is kind of invisible to the Python community (see my blog at http://blog.delaguardia.com.mx ). One of the things that I talk about in that post is that the Zope community tends to interact more through its mailing lists than its blogs, as opposed to other so-called modern frameworks, like Django and Turbogears. Interesting. I've always considered blogs to be fairly invisible since I have to go look for them, whereas for mailing lists I can sign up for things I'm interested in. -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to create a new TAL statement?
On 10/28/06, Garito <[EMAIL PROTECTED]> wrote: Did you read my last thread? I didn't, only the message that started this thread. It left me confused. I'm talking about not What I need is control the expression far away from the normal way (I want to process the result automatically before return the result) Would it suffice to define a new expression type, so you'd have something like ... That's something the TALES engine is designed to support. For Zope 3, new expression type handlers can be registered with the component architecture; I don't remember how it's done in Zope 2. -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Setting filename of files to be downloaded
On 11/6/06, Ulla Theiss <[EMAIL PROTECTED]> wrote: The Problem is, that the file to be downloaded always is called displayFile. According the the content-type it is sometimes called displayFile.pdf, displayFile.txt, displayFile.tif, etc. You can use the Content-Disposition header to mark the file as a download rather than view-in-browser, and suggest a filename. -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python
On 1/10/07, Dieter Maurer <[EMAIL PROTECTED]> wrote: *It* must be informed whenever it is used in a different thread. Perhaps it could use some thread-local data to keep track of this? threading.local comes to mind. -Fred -- Fred L. Drake, Jr. "Every sin is the result of a collaboration." --Lucius Annaeus Seneca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Z2.log
On Jan 30, 2008 12:17 PM, Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: > Also, is max-bytes supported for logfiles in zope.conf? max-bytes is supported as of ZConfig 2.5. I'm not sure what version of ZConfig is currently being used with Zope 2, but would be surprised if it weren't possible to use ZConfig 2.5 or newer (2.5.1 is available). -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Z2.log
On Jan 30, 2008 12:32 PM, Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: > Saw it referenced here: > http://blogs.sistes.net/Garito/568 Ah! ZConfig 2.5 and newer include max-bytes and old-files in the basic "logfile" section, but Products.rotatezlogs provides more features. -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zopelabs cookbook
On Feb 4, 2008 3:19 PM, Tim Nash <[EMAIL PROTECTED]> wrote: > I haven't been able to access the zopelabs cookbook for several weeks. It's working for me. -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.schema: association vs. containment in Object, List
On Fri, Jun 6, 2008 at 4:54 AM, Sean Upton <[EMAIL PROTECTED]> wrote: > I want to be able to spell out certain zope.schema.Object fields in my > interfaces as "contained" while other fields are declared as Are you using a source or vocabulary? If so, this could be part of the nature of the values returned from that. A particular source would provide either objects to be contained, or references (not contained). Another reasonable approach (IMO) would be to simply document the containment/reference relationship in the field's description text or in a comment alongside the field. Still another approach, if you're looking to create software support and the first isn't suitable, is to use fields that provide additional interfaces that indicate the nature of the references. -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.schema: association vs. containment in Object, List
On Fri, Jun 6, 2008 at 8:08 PM, Sean Upton <[EMAIL PROTECTED]> wrote: > mechanism or implementation details underneath, so I think I'll > continue to use custom field types marked with an IRelationshipField > interface, and assume the built-in Object, List fields are only used > for containment. The only thing I do not like about my direction is I'd rather not make any assumption at all; use two interfaces: one that indicates references, and one that indicates containment. That allows you to raise an exception for fields that don't specify, which would be useful during testing and debugging. For each such field found, you'll get to decide how to handle it and stamp the appropriate interface on the field. -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] TALES expression
On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > You should check the tales documentation. the pipe symbol | > means a logical "or", in effect if the left expression resolves > to "non existent", None, empty object,... (generally python False) > the right part of it is evaluated. Not at all. The pipe uses the left-hand operand if it is defined; a value of None or an empty string is still a defined value. As long as "here" can be traversed with the name "getDataInici" then the left-hand expression will be used. If that traversal fails the right-hand expression will be used instead. -Fred -- Fred L. Drake, Jr. "Chaos is the score upon which reality is written." --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope zserver-threads minimum is 5?
On Mon, Nov 10, 2014 at 7:28 AM, Pablo Caro Revuelta wrote: > My zope clients (Zope2-2.12.11) allways start with 5 theads although > zserver-threads is 2 in my zope.conf file. > > I am using "ps -eLf" for theads counter. > > If for zserver-threads I use the values 1, 2 or 3 I get 5 theads. > A higher value give me 2 threads more. I mean, for 4 I get 6, for 15, 17 > threads, etc. > > It's correct? There are allways 5 threads minumun and 2 extra? The zserver-threads setting controls the number of "application" threads; these are running handing the application (Plone in your case) code for requests. The server itself uses a thread for handling socket communication, reading & parsing the requests as they come in, queuing them for an application thread, and managing the transmission of response data. ZEO will use an additional thread for communication with the storage server(s). Other components may start additional threads as well, depending on Plone and your configuration. For example, zc.monitor starts a thread to handle monitoring interactions. Someone with Plone-specific knowledge can probably help more. -Fred -- Fred L. Drake, Jr. "A storm broke loose in my mind." --Albert Einstein ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )