[Zope-dev] ZPatterns, Racks, Customizers, etc.
Looking for some docs, however incomplete, on programmatically (DTML OR Python) add a Specialist (or Specialist Derived ZClass) and set up teh defaultRack, and add a Skinscript/Trigger. I would also like to be able to set the ZClass storage too ... That's not asking much, is i ? :) -- E PLURIBUS LINUX ___ 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] Multi-lingual sites and workflow
Lee Hunter wrote: I was wondering if anyone here has used Zope to create bilingual/multi-lingual/localised websites. I've done a number of bilingual (French and English) projects in recent years using plain old html where the two language versions had to be kept mostly symmetrical and its been a bit of a pain as the site grows to keep the two versions in synch and make sure the translations are done on time etc. Its seems that Zope might help manage these kinds of projects - by smoothing the workflow - tracking what needs translation, perhaps sending stuff to the translator automatically, reporting on what's been done by who and comparing the two language versions to make sure they are parallel. And perhaps even sharing a common architecture - so that you didn't need two sets of DTML methods etc. I'm wondering if this fits into other generic Zope workflow products that people have talked about developing or if it would have to be built from scratch. Anyone have thoughts on this subject? Yes. Look at our bilingual site at http://www.petr.com In the url: http://z.petr.com/buro/p/index_html?language=en the parameter 'language' is available in the whole object tree. Only text modules need to know how to react on this parameter. Pages, images, navigation, templates etc. are not aware of the language (though they may if needed, e.g. changing the layout) So there in only one tree of pages, one set of navigation. The text modules have syntax like: dtml-if "getform('language') == 'nl'"De kracht van het werken met klein team... dtml-elseThe strength of working with a small team... /dtml-if Pages only contain references to text modules and the name of a template to be used. Kind regards, Petr van Blokland [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] Question: How can instatiate a Zclass from python.
I am creating an external method in python and I want to add a product (in that method) which is a Zclass (only, it doesn't exists in the lib/python/Products directory). How can I instatiate this object and how can I overide the name error that will occur (because I haven't import anything)? Thank you very much, /* */ ___ 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: [Zope] Multi-lingual sites and workflow
Guys, please ! Try to use the translator: your folder/ /translator --- product translator /en/ --- DTML-Methods returning the strings/pages for english /fr/ --- DTML-Methods returning the strings/pages for french /de/ --- DTML-Methods returning the strings/pages for german /nl/ --- DTML-Methods returning the strings/pages for netherlands So now you do have the e.g. index_html in your folder (content between ): dtml-var header !-- your standard header -- h1dtml-lvar welcomeh1!-- your welcome message notice the dtml-lvar call instead dtml-var -- a href="dtml-lvar mainpage url"dtml-lvar mainlinktext/a !-- mainpage being the document you want to link to and mainlinktext the text for the link -- dtml-var footer !-- your standard header -- Now lets walk trough this example. In en/welcome is the following (between the ): Welcome to my page. In en/mainpage is some document with images, text forms, whatever. In en/mainlinktext is (content between ): Go to main page. What happens if someone with english prefs set in browser visits you page ? Easy: dtml-lvar calls get expanded to language/variable content instead of variable content like a dtml-var would do: -- . header h1Welcome to my page/h1 a href="en/mainpage"Go to main page./a footer --- No if someone from France with fr prefs set in the browser the link would change to fr/mainpage and all text would be taken from the french versions. It is extremely powerful. The language directories can contain any kind of object you can put in a folder - they are nothing special. Only the translator is nessecary since it provides the dmtl-lvar method. We have already created a german/english website using a bunch of squishdots, metapublishers and whatnot without having big trouble. We had to change a couple of products to use dtml-lvar instead of static text, but apart from that - Holger Am Donnerstag, 2. November 2000 11:21 schrieb Petr van Blokland: Lee Hunter wrote: I was wondering if anyone here has used Zope to create bilingual/multi-lingual/localised websites. I've done a number of bilingual (French and English) projects in recent years using plain old html where the two language versions had to be kept mostly symmetrical and its been a bit of a pain as the site grows to keep the two versions in synch and make sure the translations are done on time etc. Its seems that Zope might help manage these kinds of projects - by smoothing the workflow - tracking what needs translation, perhaps sending stuff to the translator automatically, reporting on what's been done by who and comparing the two language versions to make sure they are parallel. And perhaps even sharing a common architecture - so that you didn't need two sets of DTML methods etc. I'm wondering if this fits into other generic Zope workflow products that people have talked about developing or if it would have to be built from scratch. Anyone have thoughts on this subject? Yes. Look at our bilingual site at http://www.petr.com In the url: http://z.petr.com/buro/p/index_html?language=en the parameter 'language' is available in the whole object tree. Only text modules need to know how to react on this parameter. Pages, images, navigation, templates etc. are not aware of the language (though they may if needed, e.g. changing the layout) So there in only one tree of pages, one set of navigation. The text modules have syntax like: dtml-if "getform('language') == 'nl'"De kracht van het werken met klein team... dtml-elseThe strength of working with a small team... /dtml-if Pages only contain references to text modules and the name of a template to be used. Kind regards, Petr van Blokland [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 ) -- --- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.de ___ 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
Re: [Zope-dev] ZPatterns Folder W/Customizer Support not aquiring title property
At 05:53 PM 11/1/00 -0700, Bill Anderson wrote: I have a Folder w/cs in my root folder, call it spamcan. Root folder has a title defined, lets say it is "Spam Central" A DTML Method in spamcan should display "Spam Central" when doing a dtml-var title, should it not? Only if you've deleted the title property on the properties screen. By default, title is a null string, not a non-existent property. ___ 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] [Ann] ZUnit released
Lalo Martins wrote: Okay, the cat is out of the bag (in fact, going to Rio for the weekend) and the worms are out of the can (better worms than bugs, anyway). ZUnit, the Product all lazy programmers were so afraid of, is available for review and download from your usual shop at http://www.zope.org/Members/lalo/ZUnit completely FREE, from the hands of your friends Lalo and Hiperlógica! In comemoration of the release, we're holding the "meta-testing contest": Whoever contributes some unit tests for ZUnit itself, will win her name in the credits, plus a better and more stable Product in the future, and an exclusive Warm Fuzzy Feeling (TM)! Don't miss this oportunity! Check it out right now! Cool--the new DateTime tests work already. Just add a "ZUnit TestRunner" that points to "DateTime.tests.suite" on CVS Zope. 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] ZPatterns, Racks, Customizers, etc.
Would something like this work? newSpecialist = Specialists.Specialist() newSpecialist.id = 'goobers' newSpecialist.title = "Goober Manager" myFolder._setObject(newSpecialist.id, newSpecialist) newSpecialist = newSpecialist.__of__(myFolder) newSpecialist.RacksGroup._constructPlugIn('Rack', id='defaultRack') newRack = newSpecialist.defaultRack newRack.manage_addSSMethod('mySSMethod','') Most of this can be 'gotten' by poking around in the HTML documents in the management interface -steve ___ 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] Moving ZClass app to 2.2.2
Zopists, When I start up Zope with my .zexp of my ZClass based product from 2.0 I get this message. 2000-10-27T23:36:46 ERROR(200) Zope Couldn't install Staff Traceback (innermost last): File /home/jason/Zope-2.2.0/lib/python/OFS/Application.py, line 478, in install_products (Object: ApplicationDefaultPermissions) (Info: Staff) File /home/jason/Zope-2.2.0/lib/python/App/Product.py, line 435, in initializeProduct (Object: Products.Staff) File /home/jason/Zope-2.2.0/lib/python/ZODB/ExportImport.py, line 208, in importFile SystemError: Failed to import class _ZClass_for_CatalogAware from module Products.ZCatalog Everything works, I can get my data in and out. Only I get some strange behavior from the CatalogAware zclasses (they don't pay attention to the "sort" attribute of searches for example) Is there anything I can do to make the move to 2.2.2 100%? Put a phantom class in the ZCatalog folder? All my best, Jason Spisak ___ 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] Tag DTML
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Aitor Grajal Crespo Director General e-mail: [EMAIL PROTECTED] INETSYS, S.L. ETSI Informática Ctra. Colmenar, km. 15,500 28049 MADRID SPAIN Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66 http://www.inetsysonline.com /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Re: [Zope-dev] Tag DTML
I think that all you have to do is get your property out of md. ie: some_prop=md['some_prop'] Hello, I have coded my own DTML tag and i want to catch a property of the= folder where the DTML-Coded is. How can i do this??? from DocumentTemplate.DT_Util import * # useful parsing methods you'll need= from DocumentTemplate.DT_String import String # explained later class FuenteTag: name =3D 'fuente'blockContinuations=3D() expand=3DNone def __init__(self, blocks): tname, args, section =3D blocks[0] self.tname=3Dtname self.section=3Dsection args=3Dparse_params(args, font=3D'Verdana', size=3D'2') self.args=3Dargs self.font =3D args.get('font','Verdana') self.size =3D args.get('size','2') def render(self, md): cadena =3D 'FONT FACE=3D"'+self.font+'" SIZE=3D"' + self.size += '"' +self.section(md)+'/FONT' return cadena __call__ =3D render String.commands['fuente'] =3D FuenteTag /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Aitor Grajal Crespo Director General e-mail: [EMAIL PROTECTED] INETSYS, S.L. ETSI Inform=E1tica Ctra. Colmenar, km. 15,500 28049 MADRID SPAIN Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66 http://www.inetsysonline.com /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ___ 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] Tag DTML
Yeahhh, thanks. But , one more step.:-) can i do it in the init method ??? The init method no have the md parameter. no??? I think that all you have to do is get your property out of md. ie: some_prop=md['some_prop'] Hello, I have coded my own DTML tag and i want to catch a property of the= folder where the DTML-Coded is. How can i do this??? from DocumentTemplate.DT_Util import * # useful parsing methods you'll need= from DocumentTemplate.DT_String import String # explained later class FuenteTag: name =3D 'fuente'blockContinuations=3D() expand=3DNone def __init__(self, blocks): tname, args, section =3D blocks[0] self.tname=3Dtname self.section=3Dsection args=3Dparse_params(args, font=3D'Verdana', size=3D'2') self.args=3Dargs self.font =3D args.get('font','Verdana') self.size =3D args.get('size','2') def render(self, md): cadena =3D 'FONT FACE=3D"'+self.font+'" SIZE=3D"' + self.size += '"' +self.section(md)+'/FONT' return cadena __call__ =3D render String.commands['fuente'] =3D FuenteTag /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Aitor Grajal Crespo Director General e-mail: [EMAIL PROTECTED] INETSYS, S.L. ETSI Inform=E1tica Ctra. Colmenar, km. 15,500 28049 MADRID SPAIN Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66 http://www.inetsysonline.com /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Aitor Grajal Crespo Director General e-mail: [EMAIL PROTECTED] INETSYS, S.L. ETSI Informática Ctra. Colmenar, km. 15,500 28049 MADRID SPAIN Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66 http://www.inetsysonline.com /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ___ 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] Tag DTML
On 11/2/2000 3:12 PM, "Aitor Grajal Crespo" [EMAIL PROTECTED] wrote: Yeahhh, thanks. But , one more step.:-) can i do it in the init method ??? The init method no have the md parameter. no??? No, __init__ is called at parse time and has no knowledge of the surrounding environment. render\__call__ is called at render time when the namespace becomes important. Jeffrey P Shell, [EMAIL PROTECTED] http://www.digicool.com/ | http://www.zope.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 )
Re: [Zope-dev] Passing namespace to method
Morten W. Petersen writes: How do I construct a method of an object, so that whenever that method is called, the current namespace is passed with it? This was discussed recently in the Zope-dev/Zope lists. Chris has opened the question, Jim answered (among others). Search the archive. 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 )
[Zope-dev] another debugging howto, and a question
Here are some draft howto-like things some might find helpful (improvements welcome) : http://zwiki.org/ZopeDebuggingRoadmap http://zwiki.org/HowToDebugZopeInEmacs and a burning question: how can I invoke zserver such that I will get the interactive debug prompt ? I'd like to have my breakpoints trigger when I access the server in the normal way with a web browser, poke around, let it run on and do it again. I was able to do this in the past and it's useful. Many thanks! -Simon ___ 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 Documentation
Greetings, Amos and I have done some work in the fishbowl this week. We have started a new project to define the process for writing Zope documentation. This fishbowl project can be found at: http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/FrontPage The idea here is to open up as much as possible the process for determining the process of writing documentation. In case you don't follow that, let me put it a different way: We are using the Zope fishbowl process to develop a *new* process for writing documentation. One of the goals of this new process is to work itself into the existing fishbowl process for Zope projects, so that everyone has a clear documentation vision. All this gets a bit weird; meta-documentation and developing a process with The Process in order to modify The Process, but you'll get the idea if you read the wiki. What this is *not* is a roadmap for existing or future documentation artifacts. In other words, if you looking for juicy bits on the Developer's Guide or some other discreet Zope documentation artifact, you won't find it here. Because no process exists yet for writing documentation, we have not addressed these issues. When this project is completed, we will have a complete roadmap that everyone can understand for writing documentation, and then we will address the issues of actual documentation artifacts, like where they belong in CVS and format issues etc. So please check it out and leave your comments in the Wiki. Thanks, -Michel ___ 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] zwiki 0.7.0 bugfix
this should resolve a problem with the recent release. From http://zwiki.org/FrontPageNews: "The original (pre-0.7.0) problem was this: in dtml modes, initial lines containing : followed by a blank line were not rendered (because they were considered to be http headers). The symptoms of my interim fix in 0.7.0 are this: ^M's appear at the beginning of pages and blank lines sometimes get eaten. I think I have a suitably ugly workaround now. It's running here and available in http://zwiki.org/zwikidir/releases/ZWiki-0.7.1rc3.tgz, please try it out." ___ 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] preventing acquisition
In article [EMAIL PROTECTED] iams.com, Farrell, Troy [EMAIL PROTECTED] writes Sorry. -2 points for lack of clarity (my fault) I thought you were talking about a document. If you want to do something like that you will need to use dtml-with inside your documents. The only way I know to prevent a user from doing this by typing a URL is to set some security permissions. You might look at http://www.zope.org/Members/rossl/SpecificContext It is not specific to your problem, but it might help. Troy ... well I eventually succeeded for dtml-methods with this kind of thing dtml-if "absolute_url() != URL1" dtml-raise NotFound./dtml-raise /dtml-if -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope/Posgresql/RedHat Linux
I hope that this is the correct forum for a question of this nature. I would like to know if anyone is using the combination of Zope/Posgresql/RedHat Linux in a commercial application to determine if it is a suitable combination. I have attempted to configure this combination but run into trouble compiling PoPy-1.4.1 on RedHat Postgresql - and have not been able to resolve the problems via RedHat or Mixadlive - hence my question. Regards, Chris Marshall [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Soft] [Fwd: [Zope] Multi-lingual sites and workflow]
I was wondering if anyone here has used Zope to create bilingual/multi-lingual/localised websites. we used to create various multi-lingual websites (one of them is in 8 different ones...) we also developed a product to help localisation, the Translator. you can find it at the zope web site or directly from us (www.mixadlive.com.) ciao, federico -- Federico Di Gregorio [http://www.bolinando.com/fog] {Friend of Penguins} Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] Best friends are often failed lovers. -- Me ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/Posgresql/RedHat Linux
is a suitable combination. I have attempted to configure this combination but run into trouble compiling PoPy-1.4.1 on RedHat Postgresql - and have not been able to resolve the problems via RedHat or Mixadlive - hence my question. Regards, Chris Marshall [EMAIL PROTECTED] why not post the question. we (www.emedia.com.my) have been using rh, zope and postgresql since february this year. all in all, everything works great. we have yet to use PoPy on the production site since it involve an upgrade of postgresql. we're using zPygresSQL currently hth ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Get the tables! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How small a box can zope run on?
On Fri, 27 Oct 2000 09:39:54 -0600, Bill Anderson [EMAIL PROTECTED] wrote: What OS is this on? All of them ;-) On Linux each thread does _NOT_ get a copy of the ODB. It just _looks_ like it. I suspect you are referring to the characteristic that several Linux memory-reporting tools list the memory used by one Zope process once for each thread. That's not the characteristic I am referring toEach zope publisher thread really does have its own copy of the ZODB object cache. You can verify this by checking the value "Total number of objects in all of the caches combined" from Control Panel. This number should be roughly (number of threads) * (target size), although there are many factors that can affect it. See the archives for details. The benefit from smaller thread counts is that: A) Multiple threads is not a big boost on uniprocessor machines This is only true if Zope is saturating your processor. It may not be true if you are publishing any methods that are mostly I/O (file access, or other web requests) B) Python does some different things with threads, see the Global Interpreter Lock for details. Changin the realted value in Zope will acheive differing levels of performance. Yes Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope python 2
On Mon, 30 Oct 2000 09:50:16 +1100, Curtis Maloney [EMAIL PROTECTED] wrote: Hmm.. well, that's good to know... which products have you tried it with so far? Only my own ;-) And from the looks of things there are a large number of small changes that could be made to improve performance (such as the new 'augmented assignment' operators [ += *= /= and so on] ) It seems likely that they will not be available in dtml (for the same reasons as regular assignment). The case for PythonMethods has not yet been investigated I didn't mean to dtml, I meant to all the Python code underneath. I'm sure you've noticed there is a lot more to Zope than just DTML and Python methods. Like what? Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Mapping tools and Zope - SIG? Fishbowl?
Hi Trevor! That is an interesting question, we had a GIS project in the beginning of this year where we worked with and extended PMS (Practical Map Server from ArsDigita) . On our demo site we run the project (BlueGis) together with Zope (check out www.bluedynamics.com, exactly:http://www2.bluedynamics.com:8080/BlueDynamics/products/bluegis/BlueGis). PMS has a very elegant clear structure, but it is written in java (unfortunately java has stability problems under linux and PMS sometimes locks up). We had the vision to 'pythonize' PMS, since the architecture and concept of PMS should be well portable to the Python/Zope world, but had unfortunately not enough timemoney to do that on our own. I am very happy to see that there exists interest in that direction and perhaps there will be the opportunity to pythonize PMS. Regards phil *** REPLY SEPARATOR *** On 01.11.2000 at 15:37 twiens wrote: I'm writing to all who responded to my query regarding mapping tools for Zope or others interested in this issue. In one of the responses, was the suggestion to start a SIG or Fishbowl. At this point in time, I'm in a research phase for a project where a mapping interface will be needed in Zope based web application. We are starting to move into the design phase and so some technical decisions will start to be made in the next two months at which point we will begin building something. I've received a number of other interesting replies about GIS and Zope and possible solutions. These have ranged from "I know about this" to "I use this" to "We should build something". I think there might be sufficient interest in at least starting a SIG or Fishbowl or separate list about the problem. Is there?? I'm personally a bit hesitant to even consider building yet another GIS product. There are many of them out their (see www.freegis.org) for web display, cartography, spatial analysis, etc. Obviously our interest here is web interfaces, but these other products are testimony to the ubiquitous nature of the problem; a good suite of comprehensive GIS software solutions just doesn't exist, either for free or commercially (IMHO). The approach my team will likely take on our project will be to examine existing open source products and determine if there is one that is sufficient to meet our needs and simply use it. If we can build some tools around this product to facilitate it's future use with Zope by others, we will open source those. I would welcome the discussion of this issue, since it is important and it is one of the up and coming needs for web applications. I would welcome feedback from others who undoubtedly have significant experience and knowledge to bring to this problem. T -- Trevor Wiens [EMAIL PROTECTED] The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZOracleDA causing instability
Hi, Just wondering if anyone else sees this: I run a moderately high-traffic (a couple hundred thousand hits/day) with Zope and Oracle (most of the site is forms interacting with the Oracle database, the rest being help/support files for those forms and a couple images). Products used: - FSSession-0-4-2 - GenericUserFolder 1-2-4 - PythonMethod-0-1-7 - SiteAccess-2-0-0b3 - the latest ZOracleDA (the __version__ string in __init__.py says: "$Revision: 1.4 $") Zope 2.2.2 (source release) run with RewriteRule proxying behind apache 1.3.14. Oracle 8.1.6 (aka 8i release 2) installed on the same machine. The problem is that the whole thing is very unstable, and I suspect ZOracleDA to be the culprit. Sometimes the whole Zope just hangs (actually so often, that we are restarting it from cron each 15 minutes, but it's a bad solution since all the GUF cookies are lost and customers are logged out), other times it goes mad and eats lots of memory (I've seen it consuming 800 megs of memory, and the whole unpacked Data.fs is 9 megs!), other times it gives a very strange error: ZSQL methods raise exceptions whose contents is queries ran in other threads!. Does anyone have any ideea of what is happening, and how to fix it ? -- Petru Paler, mailto:[EMAIL PROTECTED] http://www.ppetru.net - ICQ: 41817235 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How small a box can zope run on?
Toby Dickenson wrote: On Fri, 27 Oct 2000 09:39:54 -0600, Bill Anderson [EMAIL PROTECTED] wrote: What OS is this on? All of them ;-) On Linux each thread does _NOT_ get a copy of the ODB. It just _looks_ like it. I suspect you are referring to the characteristic that several Linux memory-reporting tools list the memory used by one Zope process once for each thread. That's not the characteristic I am referring toEach zope publisher thread really does have its own copy of the ZODB object cache. of the Object CACHE, that I can by, of the ZODB itsself, no. You can verify this by checking the value "Total number of objects in all of the caches combined" from Control Panel. This number should be roughly (number of threads) * (target size), although there are many factors that can affect it. See the archives for details. The benefit from smaller thread counts is that: A) Multiple threads is not a big boost on uniprocessor machines This is only true if Zope is saturating your processor. It may not be true if you are publishing any methods that are mostly I/O (file access, or other web requests) I am only talking about Zope's use of it here. _Zope_ doesn't gain much from multiple CPUs. ( I have machines here that have _many_ processors, and only two that have less than two ) -- E PLURIBUS LINUX ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/Posgresql/RedHat Linux
Hi, "Bak @ kedai" schrieb: is a suitable combination. I have attempted to configure this combination but run into trouble compiling PoPy-1.4.1 on RedHat Postgresql - and have not been able to resolve the problems via RedHat or Mixadlive - hence my question. Regards, Chris Marshall [EMAIL PROTECTED] why not post the question. we (www.emedia.com.my) have been using rh, zope and postgresql since february this year. all in all, everything works great. we have yet to use PoPy on the production site since it involve an upgrade of postgresql. we're using zPygresSQL currently Currently testing Zope2.2.2, Python 2.0, PostGresql, PoPy with RedHat 6.x RH 7.0 isnt recommendet at the moment. The above configuration works flawlessy. There are some warnings during compilation of PoPy because of the differents to Python 1.5.2. I would not recommend to disable transactions on the DA, since it is a strenght of Postgres and Zope. I dont understand why there is such an option at the DA. Regards Tino ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: ÄZopeÅ Mapping tools and Zope - SIG? Fishbowl? Fishbowl?
I think Fishbowl process could be an good option, where it could be possible to review how existing Open Source tools could be used, and define the requirements for the product. Petteri -Original Message- From: twiens [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 12:37 AM To: Zope Subject: ÄZopeÅ Mapping tools and Zope - SIG? Fishbowl? I'm writing to all who responded to my query regarding mapping tools for Zope or others interested in this issue. In one of the responses, was the suggestion to start a SIG or Fishbowl. At this point in time, I'm in a research phase for a project where a mapping interface will be needed in Zope based web application. We are starting to move into the design phase and so some technical decisions will start to be made in the next two months at which point we will begin building something. I've received a number of other interesting replies about GIS and Zope and possible solutions. These have ranged from "I know about this" to "I use this" to "We should build something". I think there might be sufficient interest in at least starting a SIG or Fishbowl or separate list about the problem. Is there?? I'm personally a bit hesitant to even consider building yet another GIS product. There are many of them out their (see www.freegis.org) for web display, cartography, spatial analysis, etc. Obviously our interest here is web interfaces, but these other products are testimony to the ubiquitous nature of the problem; a good suite of comprehensive GIS software solutions just doesn't exist, either for free or commercially (IMHO). The approach my team will likely take on our project will be to examine existing open source products and determine if there is one that is sufficient to meet our needs and simply use it. If we can build some tools around this product to facilitate it's future use with Zope by others, we will open source those. I would welcome the discussion of this issue, since it is important and it is one of the up and coming needs for web applications. I would welcome feedback from others who undoubtedly have significant experience and knowledge to bring to this problem. T -- Trevor Wiens [EMAIL PROTECTED] The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope and Python 2.0
I think we're reaching a point where we'll soon be able to release a Python 2.0-compatible Zope source distribution, but you're right in that none of the current ones work properly with Python 2.0. Xavier Defrang wrote: Hi folks, I've just downloaded Zope source code to rebuild it on a FreeBSD-4.1 box. Is Zope-2.2.2 so tightly coupled to Python-1.5.2 that It doesn't run with Python 2.0... Yes, Zope needs a cPickle newer than the one in 1.5.2, but the one in 2.0 is newer still. Remove the reference to cPickle and cStringIO, and everything* will compile and run ok. I've got a system-wide installation of Python 2.0 and the ./start scripts fails. I made a local installtion of Python 1.5.2 just to run Zope. I changed the path the Python interpreter in the start shell script but it looks like Medusa's asyncore.py can't find tjhe FCNTL module... * for a suitable small definition of 'everything' ;-) Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [alpha] Allaire Homesite integration with Zope
Are you a Homesite 4.5.1 user that wants an integrated Zope editing environment? Please try out my very preliminary attempt at integrating these two great products http://www.zope.org/Members/bens/homesite_editor_for_zope. This is a very early attempt at making a full-fledged dtml editor. This will allow you to edit Zope files through FTP with dtml color highlighting, dtml validation, dtml wizards, attribute inspectors and more. I think you will find that even in this early stage this will help your Zope productivity. I have a huge list of To-Do items for these extensions that will make Homesite as good an editor for Zope as it is for Cold Fusion. Need for easy Zope editor While the ability to edit dtml document through the web is great, I have found the lack of ability to create dtml files in my favorite html editor disappointing. Homesite is the undisputed editor of choice for most client side web developers (on windows). It has great support for html, css, js, and a bunch of flavors of xml. I started this project enthusiastically with the goal of making dtml a first class citizen on Homesite. Community project: Because of the demands on my time and the large list of features that need to be added to this project Im hoping for a lot of help from the community. As a user I want this project complete as soon as possible. Which is why I am releasing this less than half finished project very prematurely so we can all spin some Open Source magic together. Please send me your thoughts at [EMAIL PROTECTED] Everyone can contribute: This project needs help with graphic design, html production, JavaScript and css, and of course Zope programming. Also putting together documentation and help screens from the vast body of Zope literature. I have big plans for this and could use all the help you can give. Benefit to the Zope community: A better Zope development environment might draw the Site Builders of the world to Zope. Currently most are creating sites with inferior technologies like Cold Fusion and ASP because of their good developer tools and familiarity of the development interface. I think the majority of web developers are afraid of seemingly complicated technologies like Zope. Our effort could create the tool that allows people with limited development experience to give Zope a try. Please try it out and send me feedback, comments, and suggestions. Thanks. -Ben Schochet. http://www.zope.org/Members/bens/homesite_editor_for_zope !-- PGP Key ID 0x7871A6E7 -- ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZSql Strange Error
Hi! I'm trying to emulate an outter join in a Z SQL, but Zope crashes every time I try the query. The query is defined as: -*-*- parameters: username query definition: select codigo, nome, 'T' as select from cad_exportacao where codigo in ( select codigo from user_codigo where username = dtml-sqlvar username type=string and tipo = 'E' ) union all select codigo, nome, 'F' as select from cad_exportacao where codigo not in ( select codigo from user_codigo where username = dtml-sqlvar username type=string and tipo = 'E' ) -*-*- The log messages says there's not a 'cad_exportacao' relation (that is not true, the relation exists). Zope 2.2, Linux 2.2, PostgreSQL 7.0, ZyGreSQLDA 0.03 (from the README). What is wrong? What I can do to get the job done (I need to fill an multiselect with 'codigo', 'nome' from 'cad_exportacao', and if exists any 'codigo' for 'username' in 'user_codigo', the option must be selected - I tryed the "Filling MULTIPLE SELECT ... HOWTO', but it doesn't works for me, and I don't know why)? TIA -- César A. K. Grossmann http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] CMS/publishing system
[Note: this was also sent to [EMAIL PROTECTED]/Content Management System Mailing List] I'm looking for opinions on Zope being used as a CMS/publishing system. Here's some rough notes on our situation and my thoughts on Zope. We run NT now, but would like the option of migrating to *nix. (Zope runs on both.) We want to deploy across 50+ sites. (Since it's open source, we'd spend our money on customization/development rather than licensing fees.) We'd prefer a browser based administration system. (Zope's already got a very good one.) Some questions I have are: How well does Zope integrate applications/cgi's written in ASP, Cold Fusion, Perl, etc...? As we've got a number of things we'd prefer to keep as is, and run alongside Zope. How does Zope deal with serving virtual domains off of a single NT box? What approach would that require? Zope looks like a really nice platform, any real-world evaluations would be most appreciated... (Besides what I've read on www.zope.org) thanks... Pete ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [alpha] Allaire Homesite integration with Zope
Are you a Homesite 4.5.1 user that wants an integrated Zope editing environment? While all of this is great if you've paid $$$ for both Windows and Home Site, this doesn't help out the majority of Zope users who don't have either. How about modifying an existing open source editor that is cross platform and use that? At least that way, Allaire wouldn't be able to do something against you because Zope competes with Cold Fusion. Don't get me wrong, I thing that having a separate DTML editor (that also understands HTML) is a very good thing. I want that myself. I just think that you are opening yourself up to a lot of heartache because it is all too easy for Allaire (who owns both Home Site and Cold Fusion) to destroy the project. I would love to have the capability you espouse, but I'm not Sysiphus. I would rather devote my time and effort into something that I know couldn't be taken away from me. Just my $0.02. Ron ./. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope + Java java Beans ??
Hello! newbie alert Can I use Java with Zope? Can I call Java methods, beans from Zope/Python? /newbie alert Many thanks, /dario - Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology [EMAIL PROTECTED] ICQ will yield no hitsIT Systems Services ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Survey data to SQL - a trouble...
Hello All, Problem: In a multiform survey values have to be saved into SQL DB after last form is finished. So data have to be passed from a form to next forms. Except this, each form must "know" which survey it belongs to (SID is an unique survey ID) and a reference ID of the next form. If it is last form, the reference is empty. Solution: values of fields of previous forms and service data (SID and a next form ID) are saved to INPUT TYPE="HIDDEN". When the last form is completed, from REQUEST.form.items() we need to extract only data fileds, without SIDs and IDs of forms. It is done by filter.py: == def filterList (list): fl = list res = [] for el in fl: if el[0] not in ['sid','form','submit','nform']: res.append(el) return res == The Python method is called from this DTML-method: == dtml-let fl="filterList(REQUEST.form.items())" dtml-call "storeResultsSQL(table_name=id, fields=fl, sid=REQUEST['sid'])" /dtml-let == This seems to work. Then this SQL-Method has to save data: == Arguments: table-name, fields, sid UPDATE dtml-var table_name SET dtml-in fields dtml-var sequence-key=dtml-sqlvar sequence-item type=nb dtml-unless sequence-last, /dtml-unless /dtml-in == And after this piece of code an error appears: Error Type: TypeError Error Value: getattr, argument 2: expected string, int found Traceback: File D:\TESTSITE\lib\python\DocumentTemplate\DT_Let.py, line 147, in render (Object: fl="filterList(REQUEST.form.items())") File D:\TESTSITE\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: storeResultsSQL(table_name=id, fields=fl, sid=REQUEST['sid'])) (Info: fl) File string, line 0, in ? File D:\TESTSITE\lib\python\Shared\DC\ZRDB\DA.py, line 443, in __call__ (Object: storeResultsSQL) File D:\TESTSITE\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: string) File D:\TESTSITE\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: fields) File D:\TESTSITE\lib\python\DocumentTemplate\DT_InSV.py, line 395, in __getitem__ File D:\TESTSITE\lib\python\DocumentTemplate\DT_InSV.py, line 194, in last File D:\TESTSITE\lib\python\DocumentTemplate\DT_InSV.py, line 182, in value [...] Any suggestions? THX in advance. -- Best regards, Alexander N. Chelnokov Ural Scientific Institute of Traumatology and Orthopaedics 7, Bankovsky str. Ekaterinburg 620014 Russia ICQ: 25640913 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Getting class hierarchy in products
I've got a method which recurses through folders, copying their contents unless they are of a certain type. Is there a way of checking the base classes of an object from python? Or perhaps I should be doing this differently... Cheers, seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PIL and sizing image
Hallo, that's what I like:the user sends a graphic and we are creating a news-item with a thumbnail and a printable one.So I installed PIL and tried the following: #bildk.py import PIL.Image def bildk(graffik,modus): im = PIL.Image.open(graffik) im.thumbnail((100,100)) #if modus = 'gif': # im.format = 'GIF' #else: #im.format= 'JPEG' return im Error Type: IOError Error Value: [Errno 2] No such file or directory: 'header.gif' That's right cause I pass the image-object from within Zope and not from the local filesystem. Am I forced to save the thumbnail locally and reimport it?? There must be a better solution. Thanks!! -- Sent through GMX FreeMail - http://www.gmx.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] images in directories
Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How do I create an object instance with DTML?
Hi yall, I want to cover Zope's management screens from the (managing) user, and only take parts of its functionality and change its design so that there is a folder in which the user has simple cs functionality and won't be overdosed with options. In this folder now, I would like to create an object instance of (among others) STX_Document with a DTML Method. I would also like to set its security settings! Will I need an external method? How would I do this? I have subclassed "Folder" and added a method "add" with which I want to add new objects to the current "xFolder". Furthermore, I've added an index_html DTML Document which will render the "folder's view" the way I want it to be. Does this approach seem acceptable for my purpose? tia, CU+Prost, .oO( "Du könntest mal einen bauen" ) Danny ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Check for JavaScript:
Hey all, Is there a way from zope to check to see if a user has Javascript enabled Thanks, Dan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in directories
When you create your image object set the path correctly then your dtml-var image1 should work :) Dan CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in directories
David, dtml-var "IMAGES.image1" Where image1 is in the folder IMAGES. -Aaron At 07:42 AM 11/2/00 -0800, CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
On Thu, 2 Nov 2000, Daniel Rusch wrote: Is there a way from zope to check to see if a user has Javascript enabled There is no. Advice: client issues should be dealt with on client side. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I create an object instance with DTML?
In this folder now, I would like to create an object instance of (among others) STX_Document with a DTML Method. I would also like to set its security settings! Will I need an external method? How would I do this? Look at the dtml source for the management screens and you'll pick up how to do all this. Also refer to Zope Quick Reference (http://zdp.zope.org/projects/zqr/ZopeQR) for more methods than you can shake a stick at, e.g.: manage_addDTMLDocument(id, [title, file, REQUEST, submit]) manage_changePermissions(REQUEST) seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-dev] Re: [Zope] Multi-lingual sites and workflow
Hi Petr, Am Donnerstag, 2. November 2000 14:49 schrieb Petr van Blokland: Holger, thanks for the reply. Some questions: - Where is the Translator product avalaible. Please visit http://www.zope.org/Members/fog/Translator - What is I want to change from one language page to the same page with a different language. I don't want to change the settings in the browser for it. Translator supports the standard browser settings as well as a cookie based version. It comes with a fully fledged demo that demonstrates this cookie stuff. For me it was cut, copy and paste from there on :-) Make sure you check out www.vitaminic.com to see how it feels like :-) They did their site using Zope and Translator with cookies. - It seems that you have different folders per language containing all things for that language. That is not what we want. I want to have one folder structure where the different language versions of a text a in the same document or folder. Sorry, no way :-( But let me see if I can argue with you :-) Yes, you can put it all in one directory and into on document. But, just imagine this: You have the "templates" in you main directory and only (!) a bunch of DTML-Methods located in the subfolders en,de,nl,fr,es and so on. These DTML-Methods only return a simple String or a small part of your document translated properly. This enables you to choose different images for different languages for example. Furthermore you can "give" someone a copy of your default language folder and as him/her to translate it. This can be done in parallel without people having the need to change the original templates. Now if you do not like all the DMLT-Methods, you can simple create a e.g. en folder and use properties attached to that folder to hold your translations. If you do not like to have folders flying around, you can create them *inside* the translator. But please notice, you cannot have them outside as well as inside, the inside ones will always be the ones used, Translator will not seek any other folders once he found one. The translator itself has another way of storing translated text. It is accesible on the Translate tab inside the translator. IMHO the translator has a very clumsy interface there so I never used it. But it might be cool as well, since you could be able to export this data as XML and reimport it once it is translated. Anyway, whatever you do make shure you check it out and give yourself a day to waste on the translator to find out all possiple ways to play around. I had a lot of fun with it up to now and it works absolutely reliably. Even the highest educated people in our company think this product is well designed to support multi lingual features so easily (apart from a fwe enhancements they would like to see :-))) ) - Holger Petr Holger Lehmann wrote: Guys, please ! ---snipp--- -- --- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.de ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Products : dependencies (or who's on first?)
Okay, here goes : I installed the PTK product some time ago, decided that it wasn't where I needed to be right now and moved on to something else. Today I finally decided to delete it from my Products folder. Shortly afterwards, I noticed that both my existing FlexFAQ and ZDiscussion objects were "broken" (with the little broken icons in the manager view.) and Zope was spewing errors to STDOUT complaining that it "Could not load oid" (I'm sorry, I don't have the traceback...doh!) snip OK, here goes for an almost completely useless answer based on guesswork and half-memories. More of an extra call for help from the zope experts, really. AFAIK this kind of problem is caused by incorrect management of products. For example, you'll get grief if you delete a product from the control panel but it still exists in your products folder in your zope distribution. I guess the ZODB is somehow out of sync with the filesystem, and this is why you're getting 'dependency' errors. Umm, help me out someone - this is all guesswork on my part... As for solutions, some people have suggested sorting the problem out by going into the ZODB itself via an interactive python shell and poking around (there was a recent mail about this on the list). If all else fails, you could try getting a fresh Data.fs and importing your old data into it, and reinstalling the products you use. I too have learned the hard way, and now I back up my Data.fs before messing with products beyond my ken, but this is of course not helpful advice for you right now. This problem comes up again and again. If my guesswork is right g then this is all because the product management process is ambiguous, undocumented (...), and lets you do things you shouldn't. Is there a HOWTO on this anywhere? Should product management be easier? Should there at least be some warnings added at appropriate places in the interface? Or have I got the whole thing totally wrong?! Hope that helped just a little bit at least ; seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in directories
CURTIS David a écrit : Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance You can use the dtml-with tag on the folder IMAGES (because it's an object) like that : dtml-width IMAGES ... dtml-var image1 ... dtml-var image2 ... /dtml-width but it's a bit boring... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] images in directories
Aha! Acquisition! http://www.zope.org/Members/Amos/WhatIsAcquisition Assuming that IMAGES is a subfolder of the PWD, try this (untested): dtml-with IMAGES dtml-var image1 /dtml-with Also look here: http://www.zope.org/Members/michel/HowTos/WithTagHow-To Troy What is a fool that has no money? -Original Message- From: CURTIS David [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 9:42 AM To: [EMAIL PROTECTED] Subject: [Zope] images in directories Sensitivity: Personal Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Multi-lingual sites and workflow
Holger, thanks, I will check it out. Reason for the different approach is that we have to have an aditional layer inbetween pages and modules as we call them. We have a list of modules which are plain texts pieces that can be on several pages in the site (and other things, they are xml based and can be used in PDF as well). There is one template for the whole site (which is a *complete* html document since just headers and footers won't work most of the time). Pages are only bindings of module names to labelnames and the template name to be used for the page. A typical page is: dtml-let labelfeature="m.front.feature_css" sidenavigation="m.products.sidenavigation_css" label1="'m.navigation.panorama_to_building'" label3="'m.front.buro_address'" label4="'m.front.map_delft'" label5="'m.front.working_on_database'" dtml-with templates dtml-var template_balloon_dtml /dtml-with /dtml-let The site-template would contain something like: span id="navigationtext" dtml-if label1 span id="label1"dtml-var label1_to_html/span /dtml-if dtml-if label2 span id="label2"dtml-var label2_to_html/span /dtml-if /span span id="otherlabels" dtml-var label3_to_html dtml-var label4_to_html dtml-var label5_to_html dtml-var label6_to_html dtml-var label7_to_html /span dtml-if label8 span id="sidelabel"dtml-var label8_to_html/span /dtml-if One of the advantages this way is that modules take care of themselves. Adding a parameters in the url will make all the modules add a button to themselves as link to an editor windows on that module. Page and template don't need to know. This contruction has proved very flecxible, but is the opposite from the translate approach. Regards, Petr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] XML-RPC vs External method?
Kapil, Thank you for this simple solution! I'm new to XML and Zope and sometimes I get caught in learning too many new things at once, we forget to think "simply":-) Thanks to you, I don't need to use either External method, or XML-RPC. The following simple DTML method works: dtml-call "RESPONSE.setHeader('content-type','text/xml')" ?xml version="1.0"? program dtml-in get_all_programs row adassnumdtml-var adassnum null=""/adassnum iddtml-var id null=""/id titledtml-var title null=""/title name_ldtml-var name_l null=""/name_l name_fdtml-var name_f null=""/name_f typedtml-var type null=""/type /row dtml-else !--There was no data matching this query.-- /dtml-in /program Thanks again! --irene Ender wrote: if the xml format is simple you could just do it dtml, it would end up with some extra white space but it would still be valid. a dtml method akin to ?xml version="1.0"? dtml-in mysqlretrieve item contentdtml-var content/content squishydtml-var squishy/content /item /dtml-in kapil Irene Barg wrote: Hello all, I have setup a query form to query a small MySQL database using Zope. It consists of: 1. ZMySQL Database Connection (ZMySQLDA) 2. ZSQL method 3. A search interface. Now, what I want is the user to have the option of viewing the results in HTML or raw XML. I think there can be two approaches to this: 1. External method, or 2. XML-RPC. 1. External method: Replaces the ZMySQL database connection with an external Python function called 'mysqldb_XML', pieces of which follow: def mysqldb_XML(self,query): """ Use a MySQL SAX driver to map relational data to XML. Hacked from PyXML saxdemo.py. The MySQL driver is a modified version of Sean McGrath's drv_mysql.py ("XML Processing with Python"). """ from xml.sax import saxexts, saxlib, saxutils, writer import sys,urllib #Our MySQLdb XML driver; driver="xml.sax.drivers.drv_mysqldb" . out = sys.stdout; p=saxexts.make_parser(driver) dh=writer.PrettyPrinter(out,dtdinfo=info) try: p.setDocumentHandler(dh) return p.parse(query) except IOError,e: return in_sysID+": "+str(e) except saxlib.SAXException,e: return str(e) Inside Zope, I get the ZSQL 'query' and do something like: dtml-call "RESPONSE.setHeader('content-type','text/xml')" dtml-in "mysqldb_XML(query)" dtml-var sequence-item /dtml-in 2. XML-RPC: It seems to me XML-RPC could do this too, but I don't know how one would print out the raw XML response. Could I have a Zope client request the ZSQL method above, but instead of sending it to my output DTML method, I just print the raw-XML stream? Examples would be helpful:-) It seems to me if XML-RPC already produces an XML formatted stream, it would be more efficient to just use it (unless there is yet another way in Zope I'm not aware of). Is it possible? Is there any reason to want to use the external method instead? Thanks for your comments, --irene -- Irene Barg Email: [EMAIL PROTECTED] Steward Observatory Phone: 520-621-2602 933 N. Cherry Ave. University of Arizona FAX:520-621-1891 Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- -- Irene Barg Email: [EMAIL PROTECTED] Steward Observatory Phone: 520-621-2602 933 N. Cherry Ave. University of Arizona FAX:520-621-1891 Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
Advice: client issues should be dealt with on client side. Great I agree completely, except if the client has Java/JavaScript turned off it is pretty darn difficult to have client issues dealt with on client side!! Dan Oleg Broytmann wrote: On Thu, 2 Nov 2000, Daniel Rusch wrote: Is there a way from zope to check to see if a user has Javascript enabled There is no. Advice: client issues should be dealt with on client side. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] CMS/publishing system
Pete Prodoehl schrieb: ...snipp... We want to deploy across 50+ sites. (Since it's open source, we'd spend our money on customization/development rather than licensing fees.) We'd prefer a browser based administration system. (Zope's already got a very good one.) Yes, its very good, but could be better. Its currently too hard wired I think. Some questions I have are: How well does Zope integrate applications/cgi's written in ASP, Cold Fusion, Perl, etc...? As we've got a number of things we'd prefer to keep as is, and run alongside Zope. Nope. You should take the chance to reimplement them. You get better performance and much cleaner solutions (better to maintain and more secure) then any of the mentioned solutions allow. Many things are better done completely different in zope. How does Zope deal with serving virtual domains off of a single NT box? What approach would that require? There are several options. One of it is site-access (product at zope.org) You can also server different instances of zope off the same server (using different ports and apache or squid in front as dispatcher) Zope looks like a really nice platform, any real-world evaluations would be most appreciated... We are currently implementing a light CMS. So stay tuned... ;) Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re:GoLive (or, redirecting to index.html)
On Wed, Nov 01, 2000 at 03:10:57PM -0700, Bill Anderson wrote: dtml-var "_['index.html']" I tried that too, but it also had problems. That format would load the index.html file OK, but most of the links within the page would be wrong in the case where the page is accessed via a URL like http://fqdn.com/subsite (note, no final "/"). The javascript code in index.html (generated by the Web Studio tool) generates an HTML BASE element with the HREF attribute set to the concatenation of the window.location (or window.location.href) value with "subsite", resulting in an HREF value of "http://fqdn.comsubsite" in this case. SNAFU. This problem stems from the quirky code generated by Web Studio, but it forced me to access the page via a redirect rather than incorporating it directly via dtml-var. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
On Thu, 2 Nov 2000, Daniel Rusch wrote: Advice: client issues should be dealt with on client side. Great I agree completely, except if the client has Java/JavaScript turned off it is pretty darn difficult to have client issues dealt with on client side!! htmlhead script languagae=javascript window.location = "/site/with/js/" /script meta http-equiv=refresh content="5; url=/site/nojs/" /headbody pLoading, please wait.../p /body/html Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in directories
"Farrell, Troy" wrote: dtml-with IMAGES dtml-var image1 /dtml-with This also works: dtml-var "IMAGES.image1" Petr van Blokland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Upscaling of performance
Hi, does have anyone reference on or information about the upscaling of Zope for *very* large hit performance: 1.000.000 per day or so? Petr van Blokland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] CMS/publishing system
How well does Zope integrate applications/cgi's written in ASP, Cold Fusion, Perl, etc...? As we've got a number of things we'd prefer to keep as is, and run alongside Zope. Nope. You should take the chance to reimplement them. You get better performance and much cleaner solutions (better to maintain and more secure) then any of the mentioned solutions allow. Many things are better done completely different in zope. argh... That's not a good answer. Is it possible? I'm thinking that with Apache and mod_rewrite it would be doable (using file extensions to map the request), but I'm not sure how that might work under IIS or within Zope... There are some systems in place that are either, large/legacy/developed by others/etc that we can't simply reimplement in Zope... Plus, I'd consider it a big plus for Zope if I could run apps written in other languages/environments without too much of a hassle. Pete ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] redirect on Authorization
Is there a way of having all users redirected upon Authorization? Let me explian. We have a very large site and many of Users bookmark pages. This can cause several problems especially if the site layout changes, security changes at different levels and a user bookmarks a result pages that depends on previous page(s) submissions. In other words can zope be hacked to return a preselected URL instead of the page the user has bookmarked? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ZSql Strange Error
Cesar A. K. Grossmann wrote: Hi! I'm trying to emulate an outter join in a Z SQL, but Zope crashes every time I try the query. ... What is wrong? What I can do to get the job done (I need to fill an multiselect with 'codigo', 'nome' from 'cad_exportacao', and if exists any 'codigo' for 'username' in 'user_codigo', the option must be selected - I tryed the "Filling MULTIPLE SELECT ... HOWTO', but it doesn't works for me, and I don't know why)? I'm not sure why this should *crash* zope, but you can do it with a much simpler query and a little DTML coding. The following should work (UNTESTED): Z SQL Method (named sql_query): select codigo, nome, tipo from cad_exportacao; DTML Method: select dtml-in sql_query option value="dtml-codigo;" dtml-if "tipo=='E'"Selected/dtml-if dtml-var nome/option /dtml-in /select hth, Casey D. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upscaling of performance
1,000,000 hits is not that much but you can check out the Zope Benchmarks http://www.zope.org/Members/BwanaZulia/benchmarks.html On some good hardware it can handle about 100 Requests per second (8,640,000 per day). Beyond that you need two things... ZEO and hardware. Cheers, J From: Petr van Blokland [EMAIL PROTECTED] Organization: Buro Petr van Blokland + Claudia Mens Reply-To: [EMAIL PROTECTED] Date: Thu, 02 Nov 2000 18:19:24 +0100 To: zope list [EMAIL PROTECTED] Subject: [Zope] Upscaling of performance Hi, does have anyone reference on or information about the upscaling of Zope for *very* large hit performance: 1.000.000 per day or so? Petr van Blokland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upscaling of performance
has anyone tried the asyncore.c module from nightmare.com to speed up zserver? Kapil "J. Atwood" wrote: 1,000,000 hits is not that much but you can check out the Zope Benchmarks http://www.zope.org/Members/BwanaZulia/benchmarks.html On some good hardware it can handle about 100 Requests per second (8,640,000 per day). Beyond that you need two things... ZEO and hardware. Cheers, J From: Petr van Blokland [EMAIL PROTECTED] Organization: Buro Petr van Blokland + Claudia Mens Reply-To: [EMAIL PROTECTED] Date: Thu, 02 Nov 2000 18:19:24 +0100 To: zope list [EMAIL PROTECTED] Subject: [Zope] Upscaling of performance Hi, does have anyone reference on or information about the upscaling of Zope for *very* large hit performance: 1.000.000 per day or so? Petr van Blokland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] images in directories
Is it possible to have an image named "image.gif" or "image.jpg" ? (Are file extensions allowed? If so, how are those objects addresses?) Pete -- "Farrell, Troy" wrote: dtml-with IMAGES dtml-var image1 /dtml-with This also works: dtml-var "IMAGES.image1" ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in directories
hi This is a bit of code I was working on, it may not be what you are after but: dtml-in expr="PARENTS[0].objectValues('Image')" lidtml-var title_or_idbr/li img src="dtml-var id"brbrbr /dtml-in It scans through a Folder and displays all the images it finds. If that's not what you want, then the last line img src="dtml-var id" is probably what you want. With OOP Images know how to display themselves, so all you need to do is call there ID. Also, the PARENTS[0] allows you to go backwards through parent folders 0 is the folder you script is in, 1 is one level back and so on. j. .. . Jason C. Leach ... University College of the Cariboo. .. On 2 Nov 2000, CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in advance ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
[Daniel Rusch] | Hey all, | | Is there a way from zope to check to see if a user has Javascript | enabled Well, you may be able to set a cookie, with JavaScript, and then on the next page load, check for that cookie via REQUEST.. I.e.: On page 1, have a JavaScript command that sets a cookie (don't rembember how, from the top of my head); and subsequently, check for this cookie on the next page: * Use JavaScript to set a cookie on a page * Then (optionally) refresh to a new page, and test for the cookie. Or just have this feature on a front page or something similar.. Hmm, come to think of it, there may be an easier way (presuming the user hasn't turned images off): Enter a tag, something like this: script type="text/javascript" // !-- document.write( 'img src="http://www.yourhost.com/js-test/session/cookie_session_id"' ); // -- /script Oh, and there's the obvious (and cleaner?) way of embedding a script tag with a refresh request, something like: script type="text/javascript" // !-- document.location = 'http://www.yourhost.com/javascript-index.html'; // -- /script HTH. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZSql Strange Error
I'm not sure why this should *crash* zope, but you can do it with a much simpler query and a little DTML coding. The following should work (UNTESTED): It cannot help me. I have two tables. One called cad_exportacao, and the other is called user_codigo. The table user_codigo maps every username with one or more rows at cad_exportacao. I wanna fill a SELECT input with all rows in cad_exportacao, but wanna all the records that exists for 'username' in user_codigo to be selected. There was the howto that explains how to do this at http://www.zope.org/Members/Roug/select_with_multiple, but it not works for me... []s -- César A. K. Grossmann http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upscaling of performance
On Thu, 2 Nov 2000, J. Atwood wrote: On some good hardware it can handle about 100 Requests per second (8,640,000 per day). Well, now. That truly depends on what Zope would be doing. Fire away a couple of objectValues() and the process will kneel _a lot_ sooner. Of course, this you could solve with a context oriented Catalog, and moving as much application logic as possible away from DTML (not that you should put it there in the first place). Beyond that you need two things... ZEO and hardware. And good programmers... BonusFrust: Zope actually crashed my Debian box yesterday, twice. (Indirectly or directly, I don't know, I'm looking into it.) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Getting class hierarchy in products
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of seb I've got a method which recurses through folders, copying their contents unless they are of a certain type. Is there a way of checking the base classes of an object from python? Your description is a bit vague, but here goes, when calling objectValues() you can give it a parameter: objectValues('Folder') or for several "Meta Types": objectValues(['Folder', 'Image']) Regards Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upscaling of performance
Petr van Blokland [EMAIL PROTECTED] said: Hi, does have anyone reference on or information about the upscaling of Zope for *very* large hit performance: 1.000.000 per day or so? I've sketched the following upgrade path for our Zope server which eventually should host multiple ten/hundred thousand websites: - At the moment, I have a single box with Zope and a Squid cache in front of it. "Static" DTML pages are tagged so that Squid will cache their rendition - this increased the throughput by a factor of ~6 on my box. - Move Squid on a separate box. - Move mySQL on a separate box. - Move ZODB on a separate box (ZEO). - Put a Linux Virtual Server director in front of your Squid box, and start adding Squid/Zope boxes (I figure ~3 Squid boxes per Zope box, depends on the amount of interactive content you've got) under the same IP. On my home box (Dual PII/400, 256Mb RAM) I can do 120 hits per second at the moment (with everything - Zope, Squid, mySQL, DNS *and* the testing scripts running 5,000 normal websites and 95,000 "under construction" sites), and I figure that I'll easily scale to twenty times that much on a Linux Virtual Server cluster with all functions on separated boxes (that are optimized for their tasks). -- Cees de Groot http://www.cdegroot.com [EMAIL PROTECTED] GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
To expand on Peterson's idea, this is what I've used to test java script and cookies. Instructions at the top of the page instruct the user to reload to get accurate readings (for cookies) see: http://linux.library.appstate.edu:8080/Zope_Server/Forms/SAAT/Proxy/ A page I'm working on to trouble shoot user problems when using our library proxy service. There is a hidden input in the if statement of the javascript, I have not tested to see if it sets that value every time the page loads or not anyway. One problem with the trouble shooting page is user's cache settings and when to reload pages. The actions for the submit buttons have not been created yet. tr td bAre Cookies enabled:/b dtml-if expr="RESPONSE.setCookie('uname','test', expires= (ZopeTime() + (1.0/102.0)))"/dtml-if /td td valign=bottom dtml-if "REQUEST.has_key('uname')" FONT COLOR='GREEN'bYES, You Do Have Cookies Enabled/b input type=hidden name=cookieyes value=t size=24 dtml-else FONT COLOR='RED'bNO, Your browser is not accepting cookies/b input type=hidden name=cookieyes value=f size=24 /dtml-if /td /tr tr td bIs Javascript enabled:/b /td td valign=bottom noscript FONT COLOR="RED"BNO, Your browser is not Javascript enambled/Bbr Proxy resources require JavaScript./FONT /noscript script language="JavaScript" document.cookie="Test=Success" cookieString=document.cookie; if (cookieString.indexOf("Test=Success") != -1) { document.write("FONT COLOR='GREEN'BYES, You Do Have Javascript enabled/B/FONTinput type=hidden name=javayes value=t size=24");} /script /td /tr Thomas PS. Is there a way to read the client's proxy setting directly? Daniel Rusch wrote: Hey all, Is there a way from zope to check to see if a user has Javascript enabled Thanks, Dan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Rock and Rule Zope Rocks -- http://www.zope.org Python Rules -- http://www.python.org Thomas McMillan Grant Bennett Appalachian State University Computer Consultant IIIUniversity Library [EMAIL PROTECTED] http://www.library.appstate.edu/webmaster/ Voice: 828 262 6587 FAX:828 262 3001 Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit operating system that was originally coded for a 4-bit microprocessor. - Chris Dunphy Boot Magazine ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ZSql Strange Error
Duh, maybe I should learn to read. Maybe try this sql: select codigo, nome, case when codigo in select codigo from user_codigo where username = dtml-sqlvar username type=string and tipo = 'E' ) then 'selected' else null end as select_attr from cad_exportacao; Then your dtml method: select dtml-in sql_method option value="dtml-codigo" dtml-var select_attr missingdtml-var nome/option /dtml-in /select Let me know if this is any better, Casey D. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 12:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZSql Strange Error I'm not sure why this should *crash* zope, but you can do it with a much simpler query and a little DTML coding. The following should work (UNTESTED): It cannot help me. I have two tables. One called cad_exportacao, and the other is called user_codigo. The table user_codigo maps every username with one or more rows at cad_exportacao. I wanna fill a SELECT input with all rows in cad_exportacao, but wanna all the records that exists for 'username' in user_codigo to be selected. There was the howto that explains how to do this at http://www.zope.org/Members/Roug/select_with_multiple, but it not works for me... []s -- César A. K. Grossmann http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Can't create ZClass from within Member folders???
I have the PTK.8 installed with Zope 2.2. I have created a demo portal and implemented membership using ZODBMembership Folders. I have also created several folderish ZClasses to use as content types. I have given the add methods of these classes "manager" proxy. I also created some user interfaces for adding these content instances from the app rather than the management interface. The problem is that a user with "manager" role can create and delete content instances from within the app while in their member user folder or from the management interface, but users with "Member" role can only do so from within the management interface, but not the interface I created to be called from within there folder. The funny thing is that if I create a copy of these methods at a level above the "Members" folder, it works fine, but go down 2 levels to the Members/user folder and it won't let me do it. I have given every method involved "manager" proxy, and just for the heck of it, given "Member" the same permissions as "manager" from the top level down, but I still get prompted for authentication when I try to add or delete an instance from my method Is it something particular to the Members/users folders of the PTK or am I missing something else? I would appreciate any insight. Thanks, Chip Johansen Trace back: H2Zope Error/H2 PZope has encountered an error while publishing this resource. /P PSTRONGUnauthorized/STRONG/P You are not authorized to access emPressReleaseClass_add/em. DEBUG--- Owner:Anonymous User - Roles:('Manager', 'Member', 'Owner') - Value:lt;HTMLgt; lt;HEADgt;lt;TITLEgt;Add PressReleaselt;/TITLEgt;lt;/HEADgt; lt;BODY BGCOLOR=quot;#FFquot; LINK=quot;#99quot; VLINK=quot;#55quot;gt; lt;dtml-call quot;REQUEST.set('title', REQUEST.form['PressReleaseTitle'])quot;gt; lt;dtml-with quot;PressReleaseClass.createInObjectManager(REQUEST['ItemID'], REQUEST)quot;gt; lt;dtml-call quot;propertysheets.PressRelease.manage_editProperties(REQUEST)quot;gt; lt;dtml-call reindex_objectgt; lt;/dtml-withgt; lt;dtml-if NoRedirgt; lt;dtml-elsegt; lt;dtml-if DestinationURLgt; lt;dtml-call quot;RESPONSE.redirect( DestinationURL+'/manage_workspace')quot;gt; lt;dtml-elsegt; lt;dtml-call quot;RESPONSE.redirect( URL2+'/manage_workspace')quot;gt; lt;/dtml-ifgt; lt;/dtml-ifgt; lt;/bodygt;lt;/htmlgt; --- !-- Traceback (innermost last): File C:\PROGRA~1\PearlNet\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\PearlNet\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\PearlNet\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\PearlNet\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: pressReleaseInstance_add) File C:\PROGRA~1\PearlNet\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: pressReleaseInstance_add) File C:\PROGRA~1\PearlNet\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: pressReleaseInstance_add) File C:\PROGRA~1\PearlNet\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: pressReleaseInstance_add) File C:\PROGRA~1\PearlNet\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: manage_addProduct['P2B_ContentItems']) File C:\PROGRA~1\PearlNet\lib\python\DocumentTemplate\DT_Util.py, line 331, in eval (Object: PressReleaseClass_add(_.None,_, NoRedir=1)) (Info: PressReleaseClass_add) File C:\PROGRA~1\PearlNet\lib\python\OFS\DTMLMethod.py, line 194, in validate (Object: pressReleaseInstance_add) File C:\PROGRA~1\PearlNet\lib\python\AccessControl\SecurityManager.py, line 139, in validate File C:\PROGRA~1\PearlNet\lib\python\AccessControl\ZopeSecurityPolicy.py, line 183, in validate Unauthorized: (see above) _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZServer log buffer?
Hi all. Supose you are saving z2.log on a mounted disk, either nfs linux or a WinNT cluster network name. If for some seconds that mounted disk became unavailable, isnt supose ZServer log system to buffer a little until the mounted resource became available again? I'm dealing with the problem that z2.log "write system" on NT are giving me a IOError when the resource becames unavailable for some seconds. If there isnt anything already to fix this, wouldnt be good if ZServer buffer a "little" until the resource became available and in the case the resource just completelly cease to be then ZServer just stop to write logs, instead of killing the process raising the exception? I know what you are thinking: just dont permit the resource to became unavailable dude! But supose you have active-passive resources in case of fail down and you need some seconds to automatically or by hand(not the case) fix the resource, wouldnt be nice for ZSERVER to, for instance, stop logging. Maybe this should not be addressed to Zope Log writes. Maybe this is more a system administration issue but... Thanx anyway for some comments. Júlio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZSql Strange Error
Casey Duncan wrote: Duh, maybe I should learn to read. :-) Let me know if this is any better, It worked! Thanks. []s -- César A. K. Grossmann http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] re-releasing mysqlUserFolder 0.5 ??
[EMAIL PROTECTED], vladap (who is listed as the author) - Just before zope.org's Data.fs developed that short circuit a day or two ago, there was a new revision of mysqlUserFolder released (0.5.0 if I remember correctly). I'd like to try it out if we could get it back on the Zope site. -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting class hierarchy in products
seb writes: I've got a method which recurses through folders, copying their contents unless they are of a certain type. Is there a way of checking the base classes of an object from python? Or perhaps I should be doing this differently... o.__class__.__bases__ Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope for medium/large sites
Hi! We're considering using zope for a somewhat large project: It's a VPN for arround 10.000 institutions ( 100.000 users expected, up to 1.500.000 users possible, but not likely). Hundreds of simultaneous connections expected. The database has to support 100.000 users and a LOT of content (more than 1000 virtual hosts, along with a very big main site). The question is: Is zope up to this? And yes, the necessary hardware is available 8-). We've used Zope for smallish internal projects, but for something as this... Best regards, Tiago ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
On Fri, 03 Nov 2000, Oleg Broytmann wrote: On Thu, 2 Nov 2000, Daniel Rusch wrote: Advice: client issues should be dealt with on client side. Great I agree completely, except if the client has Java/JavaScript turned off it is pretty darn difficult to have client issues dealt with on client side!! htmlhead script languagae=javascript window.location = "/site/with/js/" /script meta http-equiv=refresh content="5; url=/site/nojs/" /headbody pLoading, please wait.../p /body/html This is a beautifuly simple solution the only things I could think of to improve it is: 1) comment out your javascript. It's not required, true, but it's a sensible safety measure. 2) put the meta tag in a noscript tag. Again, this is for extra safety... you just never know. (o8 In fact... this is the first time i've seen a META tag usage I condone... otherwise they just seem pointless to me. (o8 Oleg. Have a better one, Curtis Maloney. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE:] Allaire Homesite integration with Zope
Check out. The Mozilla IDE http://www.activestate.com/Products/Komodo/index.html Or try some work being done on Boa a Python editor with support for Zope. " * More Zope support: * Standard object creation (Documents, methods, folders etc) * Management functions (cut/copy/paste/delete/export/import) * Zope property maintenance in the object inspector" http://sourceforge.net/forum/forum.php?forum_id=37988 Get your Free E-mail at http://tacoma.zzn.com Get your own Web-Based E-mail Service at http://www.zzn.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Refrencing.
hi, if I do something like: dtml-let x=sequence-item What is the sintax to refrence that object? img src=dtml-var x.id ? Thanks, j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Securing an FTP server.
hi, I'd like to secure the FTP server so that when Bob loges in, he is sent to folder X and can not exit X. And when Jain loges in, she is put into Y and can not exit that folder. Is this possible. Someone once suggested working with site rules, but that's a bit hokey; unless someone has implemented an elagent solution like this. Thanks, j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )