[Zope-dev] multiple servers!
Hi! I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? Stian ___ 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] Structured Text Plus
Have you checked out StructuredTextNG? cheers, Chris Ian Clatworthy wrote: I've put together the design for an extended version of Structured Text which I'd like some feedback on before I go too much further. At this stage, the design is explained via a series of user-level How-To's, e.g. Writing Documents Using Structured Text Plus. The home page is: http://www.zope.org/Members/ianc/StructuredTextPlus/home Ian C. -- This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this e-mail are the opinion of the writer only and are not endorsed by Mincom Limited unless expressly stated otherwise. ___ 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] Advanced REQUEST inside Python Class Problem
On Sun, 10 Jun 2001, Stephan Richter wrote: But, if I try: dtml-var ObjectInstance, then I cannot use self.REQUEST, since the namespace is somehow not passed. Don't you have to use dtml-var ObjectInstance()? ___ 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] multiple servers!
On Mon, 11 Jun 2001, Stian Jenssen wrote: I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? Edit the z2.py file in your zope/ directory, look for HTTP_PORT and adjust that to your needs. ___ 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 )
VS: [Zope-dev] multiple servers!
I have set up two ports but get a error message, 404 error. I just want apache on the second port -Opprinnelig melding- Fra: Erik Enge [mailto:[EMAIL PROTECTED]] Sendt: 11. juni 2001 12:05 Til: Stian Jenssen Kopi: '[EMAIL PROTECTED]' Emne: Re: [Zope-dev] multiple servers! On Mon, 11 Jun 2001, Stian Jenssen wrote: I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? Edit the z2.py file in your zope/ directory, look for HTTP_PORT and adjust that to your needs. ___ 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] request.set
Title: RE: [Zope-dev] request.set What this does is set a key/value pair in the REQUEST variable (Which is a sort of python dictionary, just with extra smarts). DTML will not let you do dtml-call REQUEST['record_ids']=0 for security reasons, so the REQUEST variable has the .set method which performs the same function. Hope this helps Adrian... -Original Message- From: Derek Quayle [mailto:[EMAIL PROTECTED]] Sent: Monday, 11 June 2001 05:47 To: [EMAIL PROTECTED] Subject: [Zope-dev] request.set I am fairly new to Zope and still coming to grips with it. Could someone please explain how this piece of code works !--#call REQUEST.set('record_ids', 0)-- Cheers wabirdman
Re: [Zope-dev] aq_explicit isn't?
Dieter Maurer wrote: What you probably need: derive a new ObjectManager from Acquisition.Explicit and the current ObjectManager. provide an interface to manage the attributes that should be acquired implicitly. Well, I had a go at this, but not quite in the way you describe. I subclassed Folder and overrode __getattr_ with: def __getattr__(self, name, higher_getattr=higher_getattr): if self.__enabled: if name in self.__names: return higher_getattr(self, name) return higher_getattr(higher_getattr(self,'aq_explicit'), name) return higher_getattr(self, name) where higher_getattr comes from: try: higher_getattr = Folder.inheritedAttribute('__getattr__') except: def higher_getattr(self, name): raise AttributeError, name Except, using self.aq_explicit instead of self has no effect, the name is still acquired normally :-( What's going on? This feels like the same bug in aq_explicit that I posted here and in the collector to no response :-S 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] Structured Text Plus
- Original Message - From: Ian Clatworthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 9:52 PM Subject: [Zope-dev] Structured Text Plus I've put together the design for an extended version of Structured Text which I'd like some feedback on before I go too much further. At this stage, the design is explained via a series of user-level How-To's, e.g. Writing Documents Using Structured Text Plus. Could you please summarize the benefits compared to STXNG ? You are targeting also the single-source approach for documents with STPlus - what are the benefits compared to working solution like Docbook ? Andreas ___ 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] Request for a Pluggin Index (NameIndex)
Matt Hamilton wrote: I would like to help if I had time :) I think the most efficient way of doing what you want is to construct an index based on a 'Suffix Trie' this essentially allows matching of arbitrary substrings very quickly, the only problem is that it takes up a fair amount of space. The upside is that it can be updated and incrementally added to quite easily (unlike many inverted list implementations). I confess I have not had the chance to look at the pluggable index types in 2.4, but would really like to as I would like to port over some indexing code I was working on for another project that allows compressed storage of inverted lists for indexes. On average you can store a 32-bit document id/ref in around 4 bits, which means you save a lot of space and can keep stopwords in the lexicon (as an example try searching for 'to be or not to be' in an index that removes stopwords :). Not only do you save space, but due to the way the inverted list is read and decompressed you save time on disk access for large indexes as there is less to physically read. Wow Matt, you seem to know what you're talking about :-) If you get a chance to implement the index I asked about, please gimme a shout, I'd love to try it out... cheers, Chris PS: Whereabouts in the UK are you? ___ 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] Request for a Pluggin Index (NameIndex)
There is a new How-To for PlugginIndexes: http://www.zope.org/Members/ajung/howto/PluginIndexes/index_html Andreas - Original Message - From: Chris Withers [EMAIL PROTECTED] To: Matt Hamilton [EMAIL PROTECTED] Cc: Andreas Jung [EMAIL PROTECTED]; zope-dev [EMAIL PROTECTED] Sent: Monday, June 11, 2001 9:10 AM Subject: Re: [Zope-dev] Request for a Pluggin Index (NameIndex) Matt Hamilton wrote: I would like to help if I had time :) I think the most efficient way of doing what you want is to construct an index based on a 'Suffix Trie' this essentially allows matching of arbitrary substrings very quickly, the only problem is that it takes up a fair amount of space. The upside is that it can be updated and incrementally added to quite easily (unlike many inverted list implementations). I confess I have not had the chance to look at the pluggable index types in 2.4, but would really like to as I would like to port over some indexing code I was working on for another project that allows compressed storage of inverted lists for indexes. On average you can store a 32-bit document id/ref in around 4 bits, which means you save a lot of space and can keep stopwords in the lexicon (as an example try searching for 'to be or not to be' in an index that removes stopwords :). Not only do you save space, but due to the way the inverted list is read and decompressed you save time on disk access for large indexes as there is less to physically read. Wow Matt, you seem to know what you're talking about :-) If you get a chance to implement the index I asked about, please gimme a shout, I'd love to try it out... cheers, Chris PS: Whereabouts in the UK are you? ___ 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] Request for a Pluggin Index (NameIndex)
On Mon, 11 Jun 2001, Chris Withers wrote: Wow Matt, you seem to know what you're talking about :-) My final year University project was to create an Open Source mailing list archive :) I did quite a bit of reading into information retrieval and assorted algorithms and data structures. I had a prototype running for quite some time, but is currently down as I am wiping the machine to start again in python :) The original system was a mix of C/Perl/Python and returned results in XML which then were formatted via XSLT. Once I get a spare minute I am going to try and re-implement it in Python and using ZODB (with BerkeleyDB storage) I might try and port some of the code over to work as a PluggableIndex too. One of the main tasks is to write a python wrapper around my compression code. I will have to look more closely at how to write Python modules in C, as it does lots of bit twiddling which is in a very tight loop. The object will basically be a compressed list to which you can append ascending integers and will allow various fast union/intersection operations with other similar objects. This in itself may be sufficent to use in a PlugginIndex. If you get a chance to implement the index I asked about, please gimme a shout, I'd love to try it out... Unfortunately I don't have the time. Unless I can use it myself directly in a project we have funding for (or unless anyone wants to fund my time to develop it) I will have to wait until I have some more time on my hands. PS: Whereabouts in the UK are you? Bristol. -Matt -- Matt Hamilton [EMAIL PROTECTED] Netsight Internet Solutions, Ltd. Business Vision on the Internet http://www.netsight.co.uk +44 (0)117 9090901 Web Hosting | Web Design | Domain Names | Co-location | DB Integration ___ 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] multiple servers!
Stian, It's probably nicer to use the -P option for z2.py which allows you to specify a port offset for all ZServer services. ie. -P 8001 puts http on 8081 and ftp on 8022 or -P 8002 puts http on 8082 and ftp on 8023 --Tim _ Tim McLaughlin Iteration Zero - www.iterationzero.com 703-481-2233 Message: 8 Date: Mon, 11 Jun 2001 12:04:31 +0200 (CEST) From: Erik Enge [EMAIL PROTECTED] To: Stian Jenssen [EMAIL PROTECTED] cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Re: [Zope-dev] multiple servers! On Mon, 11 Jun 2001, Stian Jenssen wrote: I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? Edit the z2.py file in your zope/ directory, look for HTTP_PORT and adjust that to your needs. ¢zùYb²Öh¥àÞ¿:)zàÛiÿùb²Û3¢¨®æj)fjåËbú?Î^uëÍ¡Êè²Êh²Û(¬tÌ-éܡا¥j×+-²m§ÿåËlÎ^¢¸?¨¥©ÿ+-wèÿ:)y©ç¢éÜzm§ÿåËlÎ^¢¸?¨¥©ÿ+-wèÿ:)
Re: [Zope-dev] multiple servers!
Stian Jenssen writes: I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? You can control the ports used by parameters to z2.py (usually called in start). Be careful, as Zope usually does serve other ports beside the HTTP port 8080. If you have several Zope servers, you are likely to get address already in use for other ports (e.g. FTP, Monitor, maybe PCGI). There are options to prevent this. 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] aq_explicit isn't?
Chris Withers writes: Dieter Maurer wrote: What you probably need: derive a new ObjectManager from Acquisition.Explicit and the current ObjectManager. provide an interface to manage the attributes that should be acquired implicitly. Well, I had a go at this, but not quite in the way you describe. I subclassed Folder and overrode __getattr_ with: This does not work because Python calls __getattr__ only, if it can not find the attribute through normal means. Due to the implementation of Acquisition, acquired attributes are found by normal means bypassing __getattr__. You may be successful, if you override __of__. It is this method that (usually) builds the acquisition wrapper. You can try to build an explicit rather than implicit acquisition wrapper. The easiest way, of course, is to derive the class from Acquisition.Explicit with higher priority (more to the left) than from Acquisition.Implicit. 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] Structured Text Plus
Andreas Jung wrote: - Original Message - From: Ian Clatworthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 9:52 PM Subject: [Zope-dev] Structured Text Plus I've put together the design for an extended version of Structured Text which I'd like some feedback on before I go too much further. At this stage, the design is explained via a series of user-level How-To's, e.g. Writing Documents Using Structured Text Plus. Could you please summarize the benefits compared to STXNG ? As I understand things from reading the STXNG Wiki stuff, it's largely an internal rewrite which adds 2 or 3 new features, namely images and tables. STXPlus is a lot more ambitious than that wrt new features, i.e. * there are 3 levels of features above'Classic', namely Topic, Document and Book * each level adds half a dozen new features. You are targeting also the single-source approach for documents with STPlus - what are the benefits compared to working solution like Docbook ? Upwards compatibility with STX, i.e. something more readable than XML. Ian C. -- This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this e-mail are the opinion of the writer only and are not endorsed by Mincom Limited unless expressly stated otherwise. ___ 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 )