[Zope-dev] ZCatalog Scalability
John Eikenberry wrote: and retrieval. But ZCatalog did not. It was basically useless for partial matching searches (taking many minutes for searches that retrieved more than 100 matches). I was also concerned about the indexing overhead. It doesn't scale well when changing/adding many things at a time (we might have bulk adds/changes). I wonder if this will change with Zope 2.3? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Partial Matches
John Eikenberry wrote: Long answer: If you check out the source and/or hit it with the profiler you'll see that the way the partial search works is to first do a more general search then to limit the hits as much as possible via regex's. Both these steps have to happen no matter the batch size, and this is where you take the performance hit. Can you give me an exampel of a partial search expression that causes you problems? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Massive scalability
Hi Andy, I'm not sure what you mean by 'interface/way', so.. I'm going to guess at two possible interpretations. 1) Basically ZPatterns allows you to define classes (DataSkins) instances of which can optionally be used to view/create/change/delete external data through methods of the class ( + a little SkinScript ). If your store your instance data in SQL you can use SQL queries, masked from the application behind some generic method (e.g., getFooIdsWithText( textToFind )") to find the id(s) of the instance(s) you're after. You can then get the instance from the ZPatterns machinery and, once gotten, display it, change it, call it's methods, and/or delete it. The way these actions on the object interact with the data in the external database is all defined in 'SkinScript' which is hidden away as a PlugIn of a Rack deep inside the ZPatterns guts. At the Zope application level you don't really *know* where/how the data is stored. Best of all you, or your Product's customers can easily customize that part *after* your product is plugged into *their* application, without changing the basic application level logic and design of your product. It's the coolest. ;-) 2) To get folks started with moving objects from ZODB to SQL I've found ZFormulator handy as a tool to get folks quickly up to speed in how SQL 'works'. http://www.zope.org/Members/faassen/ZFormulator If they already have ZClasses, they can use this to 'automatically' generate starting point queries to match their class propertysheets. Of course... it probably won't be normalized/optimized/etc.. but it's better than doing it all for them! ;-) -steve "Andy" == Andy McKay [EMAIL PROTECTED] writes: Andy Does ZPatterns provide a nice interface / way for storing Andy classes in a RDBMS? I have to say using an RDBMS is not as Andy transparent as I would like, this may may improve Andy it. Finally a reason for me to ZPatterns... Andy -- Andy McKay. Andy - Original Message - From: "John Eikenberry" Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Michael Andy Bernstein" [EMAIL PROTECTED] Sent: Tuesday, January 16, Andy 2001 3:22 PM Subject: Re: [Zope-dev] Massive scalability Michael Bernstein wrote: So, again: Has anyone run up against any performance or other limitations regarding large numbers (hundreds of thousands or more) of objects stored within the ZODB either in a BTree Folder or a Rack? I was looking into the same issues recently, but for a much smaller set of data (5ish). In my tests ZPatterns/binary-trees scaled well for Andy storage and retrieval. But ZCatalog did not. It was basically useless for partial matching searches (taking many minutes for searches that retrieved more than 100 matches). I was also concerned about the indexing overhead. It doesn't scale well when changing/adding many things at a time (we might have bulk adds/changes). I ended up deciding to go with a RDBMS backend for data storage with a ZPatterns interface. SkinScripts work so well for this that I'm actually glad I switched. It simplified my design and implementation immensely. -- John Eikenberry [[EMAIL PROTECTED] - http://zhar.net] __ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin ___ 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 ) Andy ___ Zope-Dev Andy maillist - [EMAIL PROTECTED] Andy http://lists.zope.org/mailman/listinfo/zope-dev ** No cross Andy posts or HTML encoding! ** (Related lists - Andy http://lists.zope.org/mailman/listinfo/zope-announce Andy http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] [Fwd: Re: [Zope-dev] Massive scalability]
Forwarded to the list to maintain the thread. Original Message From: John Eikenberry [EMAIL PROTECTED] Subject: Re: [Zope-dev] Massive scalability To: Michael Bernstein [EMAIL PROTECTED] Michael Bernstein wrote: John Eikenberry wrote: Can you tell us a bit about how many indexes (and what types) you were maintaining about each object? Another poster reported no problems with 60,000 objects. I was testing and had a real simple setup. In addition to the default indexes I had 1 index on a string type (of 10 chars or less - last names), 2000 objects indexed. The vocabulary only had the entries for this field in it. Everything was nice and fast except partial searching. It was fast enough when ther were small numbers of matches. But as the number of matches grew the time it took grew along with it, at a nearly expontial rate. -- John Eikenberry [[EMAIL PROTECTED] - http://zhar.net] __ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin ___ 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] Specialists and __bobo_traverse__
At 04:41 PM 1/17/01 +0200, Roch'e Compaan wrote: I don't have the slightest idea what you're trying to accomplish here - I probably missed the beginning of this thread. Do you want to change the way the specialist processes the string "dataskin1", or the way dataskin1 processes the URL component that comes next? Each requires a different approach. I want to process the way dataskin1 processes the URL component that comes next. Just to make sure I communicate some sense :) Okay, then your SkinScript *should* work, so long as your dataskins don't already inherit a __bobo_traverse__ method. If your DataSkin inherits from ObjectManager or any of its derivatives, for example, then it won't work. Of course, the bobo_traverse you're supplying has to be able to be bound to the DataSkin. Not all types of Zope "method" objects can do this binding correctly. ZPublisher will call the method with two arguments, but your method will (presumably) need three: one of which is "self" - the DataSkin itself. I'm pretty sure DTML methods *won't* work. "Python Methods" might. I don't know about external methods, python scripts, etc. If I was trying to solve your problem, I would just write a __bobo_traverse__ in a Python base for my class. If I needed it to be replaceable on the fly, I'd write it so that it looked for another attribute, maybe __skin_traverse__, and called it if it existed. But I'd have it pass three parameters, including self, so that I could use almost any kind of Zope method and make it work. Then if I needed to customize it I could use SkinScript or a Class Extender to add the method in. ___ 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: ZCatalog Scalability
Christopher Petrilli wrote: Unfortunately, it won't change in b1, it might change before the final release if I can find a better solution. The problem is in the Vocabulary, not in the Catalog itself. One of the things I'm focusing on is improving the algorithms that are used for doing globbing. Which problem is the algorithm improvement meant to address, bulk adds or partial search performance? Thanks, Michael Bernstein. ___ 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] Specialists and __bobo_traverse__
Phillip J. Eby wrote: I'm pretty sure DTML methods *won't* work. "Python Methods" might. I don't know about external methods, python scripts, etc. I have successfully used PythonScripts for this. -- Steve Alexander ___ 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] Specialists and __bobo_traverse__
Phillip J. Eby wrote: I'm pretty sure DTML methods *won't* work. "Python Methods" might. I don't know about external methods, python scripts, etc. I have successfully used PythonScripts for this. Does this mean I have to upgrade to 2.3 beta 1, because Python Methods on 2.2.4 doesn't work? Roch ___ 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] manage_changeProperties in a loop
Arno Gross wrote: If I try your suggestion wiht _.getitem(_['sequence-item']) (If I remember well this was the first I tried). dtml-call "REQUEST.set('rangList','folder1;folder2;folder2')" dtml-in " _.string.split(rangList,';')" dtml-with "_.getitem(_['sequence-item'])" dtml-let index=sequence-index dtml-call "manage_changeProperties({'rang':index})" /dtml-let /dtml-with /dtml-in I get this error: File D:\packages\Zope\WEBSIT~3\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: _.string.split(rangList,';')) File D:\packages\Zope\WEBSIT~3\lib\python\DocumentTemplate\DT_With.py, line 133, in render (Object: _.getitem(_['sequence-item'])) File D:\packages\Zope\WEBSIT~3\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: _.getitem(_['sequence-item']))(Info: _) Still any hints. Thanks. Try this: dtml-call expr="REQUEST.set('rangList','folder1;folder2;folder2')" dtml-in expr="_.string.split(rangList,';')" dtml-let folder="_[_['sequence-item']]" index="_['sequence-index']" dtml-call expr="folder.manage_changeProperties({'rang':index})" /dtml-let /dtml-in Also, why are you passing the folder ids in a string like this? Where are these names coming from, a form? If so, there are ways to eliminate the whole string.split. Also, the code would not need to be this complex if the objects themselves can be passed instead of a delimited string of ids. -- | Casey Duncan | Kaivo, Inc. | [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 )
Re: [Zope-dev] manage_changeProperties in a loop
On Wed, 17 Jan 2001, Casey Duncan wrote: Try this: dtml-call expr="REQUEST.set('rangList','folder1;folder2;folder2')" dtml-in expr="_.string.split(rangList,';')" dtml-let folder="_[_['sequence-item']]" index="_['sequence-index']" dtml-call expr="folder.manage_changeProperties({'rang':index})" /dtml-let /dtml-in Also, why are you passing the folder ids in a string like this? Where are these names coming from, a form? Yes, the names are coming from a from where I can sort the folders for showing in the desired order. I know that I can use a list with a SELECTION tag. But will get only the selected options and I need all the options in the ordered sequence. Of course I could select programmatically all options before returning the form and then I could work the list. But how can I pass the objects instead of the string? Best wishes Arno Gross, [EMAIL PROTECTED] If so, there are ways to eliminate the whole string.split. Also, the code would not need to be this complex if the objects themselves can be passed instead of a delimited string of ids. -- | Casey Duncan | Kaivo, Inc. | [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 )
Re: [Zope-dev] Massive scalability
Are you saying that Zope's startup and shutdown time is affected by the size of the ZODB? Yep. Over small ZODB's you wont notice the effect until it gets large. I found it very annoying when doing a lot of work in python and so had two databases, one with a small amount of data and one with a lot (two sets of test). However in the end Shane Hathaway's excellent refresh product saved the day. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Rowcount not available?
Is there a reason the rowcount property of the cursor object was not made available throught the DA (ideally as an optional parameter of the __call__ method)? Am I missing it somewhere else? Cheers, Tim McLaughlin ___ 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] Massive scalability
Wow, that sounds perfect. Yes that's exactly what I was asking. I can create an abstract data storage (SkinScript) that stores the data anywhere, lets say for my purposes an RDBMS (but it could be ZODB etc). I can then get and access classes (DataSkins) with no cares about the data storage and use all the advantages an OO approach gives. I've got to play with this stuff, this could solve my data storage problems... Thanks! -- Andy McKay. - Original Message - From: "Steve Spicklemire" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:43 AM Subject: Re: [Zope-dev] Massive scalability Hi Andy, I'm not sure what you mean by 'interface/way', so.. I'm going to guess at two possible interpretations. 1) Basically ZPatterns allows you to define classes (DataSkins) instances of which can optionally be used to view/create/change/delete external data through methods of the class ( + a little SkinScript ). If your store your instance data in SQL you can use SQL queries, masked from the application behind some generic method (e.g., getFooIdsWithText( textToFind )") to find the id(s) of the instance(s) you're after. You can then get the instance from the ZPatterns machinery and, once gotten, display it, change it, call it's methods, and/or delete it. The way these actions on the object interact with the data in the external database is all defined in 'SkinScript' which is hidden away as a PlugIn of a Rack deep inside the ZPatterns guts. At the Zope application level you don't really *know* where/how the data is stored. Best of all you, or your Product's customers can easily customize that part *after* your product is plugged into *their* application, without changing the basic application level logic and design of your product. It's the coolest. ;-) 2) To get folks started with moving objects from ZODB to SQL I've found ZFormulator handy as a tool to get folks quickly up to speed in how SQL 'works'. http://www.zope.org/Members/faassen/ZFormulator If they already have ZClasses, they can use this to 'automatically' generate starting point queries to match their class propertysheets. Of course... it probably won't be normalized/optimized/etc.. but it's better than doing it all for them! ;-) -steve "Andy" == Andy McKay [EMAIL PROTECTED] writes: Andy Does ZPatterns provide a nice interface / way for storing Andy classes in a RDBMS? I have to say using an RDBMS is not as Andy transparent as I would like, this may may improve Andy it. Finally a reason for me to ZPatterns... Andy -- Andy McKay. Andy - Original Message - From: "John Eikenberry" Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Michael Andy Bernstein" [EMAIL PROTECTED] Sent: Tuesday, January 16, Andy 2001 3:22 PM Subject: Re: [Zope-dev] Massive scalability Michael Bernstein wrote: So, again: Has anyone run up against any performance or other limitations regarding large numbers (hundreds of thousands or more) of objects stored within the ZODB either in a BTree Folder or a Rack? I was looking into the same issues recently, but for a much smaller set of data (5ish). In my tests ZPatterns/binary-trees scaled well for Andy storage and retrieval. But ZCatalog did not. It was basically useless for partial matching searches (taking many minutes for searches that retrieved more than 100 matches). I was also concerned about the indexing overhead. It doesn't scale well when changing/adding many things at a time (we might have bulk adds/changes). I ended up deciding to go with a RDBMS backend for data storage with a ZPatterns interface. SkinScripts work so well for this that I'm actually glad I switched. It simplified my design and implementation immensely. -- John Eikenberry [[EMAIL PROTECTED] - http://zhar.net] __ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin ___ 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 ) Andy ___ Zope-Dev Andy maillist - [EMAIL PROTECTED] Andy http://lists.zope.org/mailman/listinfo/zope-dev ** No cross Andy posts or HTML encoding! ** (Related lists - Andy http://lists.zope.org/mailman/listinfo/zope-announce Andy http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] No Restarts-cos-of-changed-python-product in 2.3?
Andy McKay wrote: Yep. Over small ZODB's you wont notice the effect until it gets large. I found it very annoying when doing a lot of work in python and so had two databases, one with a small amount of data and one with a lot (two sets of test). However in the end Shane Hathaway's excellent refresh product saved the day. I think this problem is fixed in 2.3... anyone know how? Is there a 'refresh this product' button or is it done simply by modifying a python file on disk? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: ZCatalog Scalability
Michael Bernstein wrote: Christopher Petrilli wrote: Unfortunately, it won't change in b1, it might change before the final release if I can find a better solution. The problem is in the Vocabulary, not in the Catalog itself. One of the things I'm focusing on is improving the algorithms that are used for doing globbing. Which problem is the algorithm improvement meant to address, bulk adds or partial search performance? I'm guessing the partial search thing, but the bulk add thing really needs to be sorted out too. NIP'd love to move the archives at http://zope.nipltd.com/public/lists.html to a wholely Zope solution, but ZCatalog consistently exploded when we tried to do this. For now, we're working on a Zope front end into MySQL (MySQL's new full text searching stuff is pretty damn quick, maybe you could nick their algorithms? ;-) So, are both of these problems being addressed? If so, when are we likely to see them? Thanks for the work so far :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] No Restarts-cos-of-changed-python-product in 2.3?
I haven't spotted any UI for it, if its there. Shane's Refresh didn't quite work all the time for every product (something he recognized in his readme's). This would be a huge advantage for me with 2.3. -- Andy McKay. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: "Michael Bernstein" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:24 AM Subject: [Zope-dev] No Restarts-cos-of-changed-python-product in 2.3? Andy McKay wrote: Yep. Over small ZODB's you wont notice the effect until it gets large. I found it very annoying when doing a lot of work in python and so had two databases, one with a small amount of data and one with a lot (two sets of test). However in the end Shane Hathaway's excellent refresh product saved the day. I think this problem is fixed in 2.3... anyone know how? Is there a 'refresh this product' button or is it done simply by modifying a python file on disk? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ 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: ZCatalog Scalability
Michael Bernstein wrote: Christopher Petrilli wrote: Unfortunately, it won't change in b1, it might change before the final release if I can find a better solution. The problem is in the Vocabulary, not in the Catalog itself. One of the things I'm focusing on is improving the algorithms that are used for doing globbing. Which problem is the algorithm improvement meant to address, bulk adds or partial search performance? I'm guessing the partial search thing, but the bulk add thing really needs to be sorted out too. NIP'd love to move the archives at http://zope.nipltd.com/public/lists.html to a wholely Zope solution, but ZCatalog consistently exploded when we tried to do this. For now, we're working on a Zope front end into MySQL (MySQL's new full text searching stuff is pretty damn quick, maybe you could nick their algorithms? ;-) For a similar project (http://mailarchive.activestate.com) we too use a MSSQL back end, for various reasons similar to Chris. I'm not worried about it, once upon a time I tried to stick everying in the ZODB. To me one of Zope's great strengths is it's portability and connectivity to other databases and storage systems. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Massive scalability
On Tuesday 16 January 2001 20:42, Michael Bernstein wrote: Are you saying that Zope's startup and shutdown time is affected by the size of the ZODB? AFAIK on a filestorage zope loads up the indexes (oid, file_offset?) into memory on start to facilitate object retrieval which impacts start up time. i don't think the other storages operate this way. kapil ___ 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] Massive scalability
On the plus side any corrupted objects are fixed or deleted when you start up the ZODB. For that reason, somedays a restart is very useful :) -- Andy McKay. - Original Message - From: "ender" [EMAIL PROTECTED] To: "Michael Bernstein" [EMAIL PROTECTED]; "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:05 PM Subject: Re: [Zope-dev] Massive scalability On Tuesday 16 January 2001 20:42, Michael Bernstein wrote: Are you saying that Zope's startup and shutdown time is affected by the size of the ZODB? AFAIK on a filestorage zope loads up the indexes (oid, file_offset?) into memory on start to facilitate object retrieval which impacts start up time. i don't think the other storages operate this way. kapil ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] mounting obj to more than one zodb location
whats happens when you create a persistent object and mount it to multiple points on your zodb. do you get a shared ref or multiple copies of the object? kapil ___ 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] recent DynPersist.dll for windows
Hi Folks, Does anyone have a recently compiled DynPersist.dll from ZPatterns, compiled for Windows ? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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: ZCatalog Scalability
For a similar project (http://mailarchive.activestate.com) we too use a MSSQL back end, for various reasons similar to Chris. I'm not worried about it, once upon a time I tried to stick everying in the ZODB. To me one of Zope's great strengths is it's portability and connectivity to other databases and storage systems. That's very true :-) ...however, ODB's seem good for tree-like data, probably better than RDB's, which are better suited to tables. While the mail messages themselves are tabular, the threading, which for me is _the_ most important part, is very tree-like and so, again for me, would sit much more nicely in an ODB. Now, the Catalog, as well as providing a very easy to use interface, is great for indexing tree-like data, but sadly its performance ain't that great for big numbers and/or complex searches right now. If it was lightning fast, better documented and had much more powerful searching capabilities, it would be Zope's absolute killer feature. Well, I can keep dreaming, I suppose :-) Anyway, all Chris P's work is bringing that closer, so thanks for the changes so far, I'm waiting with baited breath for those to come ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] recent DynPersist.dll for windows
Steve, I've got one on a box at work, I'll check back with you tomorrow, and if you still need it it's yours. I may even be persuaded to compile a new one ;) Phil On Wednesday 17 January 2001 23:13, Steve Alexander wrote: Hi Folks, Does anyone have a recently compiled DynPersist.dll from ZPatterns, compiled for Windows ? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] mounting obj to more than one zodb location
whats happens when you create a persistent object and mount it to multiple points on your zodb. do you get a shared ref or multiple copies of the object? ..shared ref if you do it like you say you are :-) I'd love to see ObjectManagers support this. ...yes, there are security implications (the object has two or more security paths, depending on how you access it) but if you take that into account, it provides for some pretty impressive flexibility. However, you can quite often do something funky with a __bobo_traverse__ method to get around the need for this :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] recent DynPersist.dll for windows
What version in particular? Try searching the archives, I posted quite a recent one a while back :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] ZCatalog with ZClass
Hi, I tried it with a new product following the HowTo, and it works perfectly. Thanks a lot. But actually I have already an exsisted product with a Container ZClass 'KTracker'(inherit from ObjectManager) and an Item ZClass called 'TrackerIssue'. And it's been used for a while with the instance 'tracker' and hundreds of issues inside. Now I've succeeded in changing the base class for 'KTracker'to subclass ObjectManager and ZCatalog, and changing 'TrackerIssue' to CatalogAware. As 'tracker' instance was created before, although the base class is changed now, the constructor of the new base class seems not running. So I created an External Method to run the constructor of ZCatalog as follows: from Products.ZCatalog.ZCatalog import ZCatalog def initContainer(self): ZCatalog.__init__(self, self.id) Then I ran this method through IE browser: http://hostname/.../tracker/initContainer. It seems working, as a Vocabulary folder is created. And I could make settings to index and so on. But there's one thing incorrect: When using manage_catalogFind to catalog the object of type 'TrackerIssue', nothing was returned. If changing the finding type to 'All types', all the 'TrackerIssue' objects and other types of objects are cataloged together. The auto-catalogAware works fine for 'TrackerIssue' objects though. Do you have any idea why this happens? Does it have anything to do with the order of base class, etc.? If just the manage_catalogFind doesn't work well, will it affect the searching stuff much, if CatalogAware works fine? Thanks a lot. Lily -Original Message- From: Michael Bernstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:11 AM To: Lily Li Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope-dev] ZCatalog with ZClass Lily Li wrote: Hello, everyone, It seems that many of you have used ZCatalog pretty well. My problem is that I'd like a ZClass (of a Product) to subclass CatalogAware, and implement all the index and search inside the Product. That means I don't want to do any DTML method stuff outside of the Product. What you probably want is to create a repository that subclasses ZCatalog as is described in this HowTo: http://www.zope.org/Members/tseaver/inherit_ZCatalog And then add your CatalogAware ZClasses into it. Then you can set up your ZCatalog/ObjectManager with search methods. HTH, Michael Bernstein. ___ 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] mounting obj to more than one zodb location
ender wrote: whats happens when you create a persistent object and mount it to multiple points on your zodb. do you get a shared ref or multiple copies of the object? It depends on the product you use for mounting, but generally you'll get a shared database with independent connections. So it will work, but if you make conflicting changes, the transaction should fail. This is only an artifact of the current implementation, though. 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 )
[Zope-dev] HTTPRequest change to allow images as submit methods
Zope's got this really cool form handling mechanism that allows us to have mutiple submission buttons that call different methods. Way neat. Now, I'd really like to have the same mechanism available when using images as submission buttons (that is, input type="image" name="goMethod:method") This breaks, of course, because goMethod:method gets turned into goMethod:method.x and goMethod:method.y. My proposal is to patch HTTPRequest.processInputs so that the search_type RE is as follows: ':\([a-zA-Z][a-zA-Z0-9_]+\|\.[xy]\)$' processInputs already loops through the name to find all :foo entries, and the .x / .y results are just ignored by the code. The HTML FORM source needs to be changed to include the extra ':' required to make this work: input type="image" name="goMethod:method:" ^ It works fine for me in practice. I believe this will also benefit anyone who wants other typed information from imagemap submissions (integer or float values, for example). Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ 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] ZClass Adding Magic Needed
So: I have a odd little problem that I can't seem to solve. I have two zclasses. We'll call them zclass1 and zclass2. zclass2 lives inside of zclass1. zclass1 has the following two properties: id and displayOrder. zclass2 has the four properties: id, displayOrder, alignment and content. In both cases the id is an automaticly generated unique number based on ZopeTime. My problem is that I need to make a public add method that generates a new instance of zclass1 with a new instance of zclass2 inside of it. I also need to be able to control set the displayOrder of zclass1, and the alignment and content of zclass2 from the same form. The displayOrder of zclass2 will be static for the time being, but I'll ultimately need to control that as well. I hacked the default add method of zclass1 so that it generates a new instance of zclass2 each time, and using the Job Board HOWTO I managed to make a public add method. So far so good. But now I can't for the life of me figure out how to pass some form variables to one object and some to the other, especially while they have some identically named properties. Any hints on this one? //glw ___ 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 Versus Enhydra Comparison article
Using Zope we knew that we would reach situations which may be unresolvable in the short term, and could not make significant business decisions with so many unknown factors and lack of any way to circumvent problems. What in the world does that mean?!? Maybe it should read "We don't know how to use Zope or code in Python." The second sentence is perhaps a candidate for http://dna.yi.org/Zope/Quotes. Maybe a North American reader could confirm that "valorizes" means what I think it means ;-) Perhaps a typo? "vaporizes" fits pretty well there. My head has done that before while working with Zope. :-) ___ Ron Bickers Logic Etc, Inc. [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] Cache manager in zope 2.3.0b1
From HelpSys for RAM CAche """ Finally, you can configure the list of REQUEST variables that will be used in the cache key. This can be a simple and effective way to distinguish requests from authenticated versus anonymous users or those with session cookies. """ so, if i access a particular DTML Method as such http://myserver.com/mymethod?objId=xxx can i use objId to distinguish between different objects? i tried by setting objId as the cache key in my RAM Cache object. however, nothing were cached. even after accessing mymethod with different objId. thanks -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE! ___ 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] zope2.3.0b1 and userfolders
Chris McDonough wrote: sorry for the false alarm. at least i know what inituser and emergency users are now :) It's ok, I don't know exactly how it all works either. :-) Hm, coming from a DC guy this is a reply that is at once disconcerting ("if _you_ don't understand it, how would we") and reassuring ("see it can't be simple, even at DC itself not everyone understands") it seems that it would be useful if this is explained _very_ clearly at a _very_ visible place... Rik ___ 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] Postgresql Query.
On Tuesday 16 January 2001, at 21 h 37, the keyboard of "Jason C. Leach" [EMAIL PROTECTED] wrote: I'd like to learn a bit more on how to do a SQL query on a postgres DB from Zope. I find it well explained in the Zope Book: http://www.zope.org/Members/michel/ZB/RelationalDatabases.html ___ 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 Versus Enhydra Comparison article
Perhaps a typo? "vaporizes" fits pretty well there. My head has done that before while working with Zope. :-) Have you ever tried Java? If you love a vaporized head, switch to Java and be sure to pick Oracle's Internet Application Server to be your trustworthy companion on a steep learning curve. Can't go wrong with Oracle ;) I see a market for each product; Zope for content heavy, Java based stuff for transaction heavy stuff with legacy integration etc. As long as I don't have to go Java, I'd rather have .NET ;) Cya Jonathan ___ 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 Linux flavors
Actually, I burn a CD with the latest updates on it. Including autorpm. Install autorpm, then use autorpm to upgrade everything from the CD. I do all of this BEFORE connecting to the net. I've had boxes rooted within 60 minutes of connecting to the net, before I started doing the above. I know, had a similar nightmare. If that won't get you paranoid about security, nothing will. Gotta look into autorpm one of these days... Back to Zope! Cya Jonathan ___ 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] slow response with 2.2.5b1, 2.2.5, 2.3.0b1 win32 version
Hi, beginning with Zope 2.2.5b1 I noticed some latency between requests and responses (about 3 seconds) even of simple pages. This applies to the 2.2.5 and the 2.3.0b1 releases as well. It occurs only on win32 installations. The 2.2.4 release runs fine on the same machines. There was a similar post by the end of last year, but unfortunately I didn't find an "enlightening" ;-) answer on the list. Anyone else with the same phenomenon? Any suggestions? Bories Bories v. dem Bussche [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] Zope 2.3.0 beta 1 comments
Brian Lloyd wrote: Zope 2.3.0 beta 1 is now available. You can download it from Zope.org: ...with a Win32 binary... yay! I can start testing :-) Okay, some observations from a Netscape 4.74 user on WinNT about the top frame: - When you view a management screen, the frame is about 5 pixels to small, which cuts off the bottom of the Zope logo. - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. However, neither of those things happen in IE. I should mention that I've seen the 'getting text back instead of content' thing before from Zope, usually in Netscape. The page comes back as just a stream of text, yet if you hit 'reload' it then comes back as it should. Very weird, and not always repeatable, but should I submit a bug on this? That's for the Browser Preferences option :-) It does strike me that this is information about the logged in user, though, so why isn't it stored against the logged in user? It's a pain getting rid of that top frame every time I use the management interface on a different computer ;-) I've mentioned this a few times but have never got a response, so what am I missing? (Of course, if you could provide the API for the browser preferences, everyone else could use it for storing thigns like full name, address, phone number, etc ;-) - Michel and Amos' new QuickStart material. Where is this? - The logout function has been implemented in a fairly minimal way. We will try to make this nicer by final if we get time. :-) Other than the niggles, it looks great :-) cheers, Chris ___ 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 with SSL on Cobalt RAQ3
Does anyone have any experience doing this? I have been beating my head trying to get this thing to work because the RAQ2 Apache is customised and doesn't take kindly to trying to add mod_proxy etc. No one in the RAQ2 user groups seems to know how to get this to work so I thought I would see if anyone in Zope land knew. I have read the SSL page at http://www.zope.org/Members/unfo/apache_zserver_ssl but it isn't quite as straight forward on the Cobalt server. Regards, Simon B. ___ 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] slow response with 2.2.5b1, 2.2.5, 2.3.0b1 win32 version
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:39 AM Subject: [Zope] slow response with 2.2.5b1, 2.2.5, 2.3.0b1 win32 version [...] There was a similar post by the end of last year, but unfortunately I didn't find an "enlightening" ;-) answer on the list. Anyone else with the same phenomenon? Any suggestions? Yes. I have the same behaviour on Win98/ME and Zope2.2.5 -- Adam Karpierz [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] exporting zope
Hi, I'm looking for the products who can make plain html-files from zope folders. Unfortunately, I can't find them anymore on the zope.org site. Probably I missed them, but are there people who know the names of these products/tools, for easier finding. Are there people who have experience with some of them. (good, bad). Yes, I know, this isn't the normal way to do it, but I'm stuck here. People force me to use a certain tool to create a html-page. But, the data can change a lot and I don't want to rewrite these pages over and over. So, I want to use zope objects and add object now and then. Then I produce some html-pages from my zope db... This way everybody is happy and hopefully one day I can convince them that they better use Zope than the other tool. Thanks in advance, Tom. ___ 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 Versus Enhydra Comparison article
From: Ron Bickers [mailto:[EMAIL PROTECTED]] Using Zope we knew that we would reach situations which may be unresolvable in the short term, and could not make significant business decisions with so many unknown factors and lack of any way to circumvent problems. What in the world does that mean?!? Maybe it should read "We don't know how to use Zope or code in Python." No it probably means that in enhydra they can solve any problem with brute force, just like you can in asp and php. Ie. if you have trouble understanding the security mechanism in Zope you are lost until you understand it. If you have trouble with the Enhydra security mechanism, you can allways write your own. Sometimes you can get stuck in Zope for days, without knowing how to proceed, or without knowing how to find out, because you simply got to do it the Zope way. In a commercial setting that is very dangerous when you work on a deadline. In a simpler system you have to do more yourself, but you won't be painted into a corner as easily, as you can allways do a "hack". to solve your problem. Zope is more closed in that regard. Well anyways when you know enough about Zope to make a hack, you probably also know how to do it the right way. But it's only a matter of documentation AFAIK. Regards Max M ___ 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] Image Upload
Hi, I've changed the code just the way you've told me to: dtml-if banner_1 dtml-call "banners.manage_addImage(id='',file=banner_1)" /dtml-if but it still runs the code within dtml-if. thanks, Emmanuel Philippot wrote: My HTML file uploading an image contains this : input type="file" name="banner" When i submit this HTML page , I call another DTML document containing the following lines : dtml-if banner dtml-call "banners.manage_upload(file=banner)" /dtml-if That's all but i don't know if the banners object image must already exist under Zope. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fabio da Silva Santos Sent: Tuesday, January 16, 2001 5:44 PM To: [EMAIL PROTECTED] Subject: [Zope] Image Upload Hi there, I'm trying to insert an image in Zope by uploading it in an HTML 'file' field, using the following validation code: dtml-if "banner_1 _.None" dtml-call "banners.manage_addImage(id='',file=banner_1)" /dtml-if When I submit an empty 'file' field, the dtml-call is invoked just the same, and I get an error message saying that the field is empty; when I check what's in REQUEST I see this: banner_1 ZPublisher.HTTPRequest.FileUpload instance at 85fb998 Therefore, I reckon there must be something wrong with this validation routine. What should I do in order to run it properly? Thanks, ___ 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] Form data type coercion syntax and javascript
Not a problem per-se, just a query - how are people dealing with things like this: dtml-var standard_html_header FORM SELECT MULTIPLE NAME="test" /SELECT SCRIPT LANGUAGE="JavaScript" function populate(form) { for (var i=0;i4;i++) { form.test.options[i] = new Option("Red"+i,"color_red"); if (i == 0) form.test.options[i].selected = true; } return false; } /SCRIPT INPUT TYPE="BUTTON" onClick="populate(this.form)" VALUE="Fill in" INPUT TYPE="SUBMIT" VALUE="Go" /FORM dtml-var standard_html_footer If a user selects multiple values, of the dynamic list, Zope will coerce them to a list when the form is input. *BUT*, if they select a single value, it'll be a single string/integer. Normally, you'd do this: SELECT NAME="test:list" But how do you access it from JavaScript then? I'm doing this: function populate(form) { var list = form; for (var j=0;jform.length;j++) { if (form.elements[j].name == "test:list") list = form.elements[j]; } if (list == form) return false; for (var i=0;i4;i++) { list.options[i] = new Option("Red"+i,"color_red"); if (i == 0) list.options[i].selected = true; } return false; } Anything more elegant? Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ ___ 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] Apache with Zope
Hi there !! I have zope and apache listeners in one machine !! Is there any way to have only apache receiving requests for zope and apache, without having two listeners ??? I'm thinking of some module that provide zope funcionalaty to apache ! Without having ProxyPass and RewriteRule directives !!! Is this not possible ? If you have some ideas, just shoot them :) Best regards thanks in advance Nuno ___ 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 Versus Enhydra Comparison article
Max Mller Rasmussen wrote: Ie. if you have trouble understanding the security mechanism in Zope you are lost until you understand it. Not really, you can leave it like it is (where nearly everything is anonymously accessible) and build your own ;-) If you have trouble with the Enhydra security mechanism, you can allways write your own. I'm sure it's not as easy as that... Sometimes you can get stuck in Zope for days, without knowing how to proceed, The documentation is getting a lot better... or without knowing how to find out, How about the mailing lists or the #zope irc channel? I bet both get you better results than any commercial support you could buy. the Zope way. In a commercial setting that is very dangerous when you work on a deadline. Well, if it's really crucial, you _can_ always buy support from DC... In a simpler system you have to do more yourself, but you won't be painted into a corner as easily, as you can allways do a "hack". if you know python, there's no reason why you can't do the same in Zope ;-) problem. Zope is more closed in that regard. Well anyways when you know enough about Zope to make a hack, you probably also know how to do it the right way. Sadly, that's true, but changing I think... cheers, Chris ___ 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-To: Apache+ZServer+SSL
Hi ! I saw your how-to in www.aope.org and i wonder...do you know if it is possible to have an ProxyPass in a virtualhost running on port 443 to another ssl server ??? something like running zope on port 443 and do a ProxyPass /zopeFiles/ https://zope.secure.com/zopeFiles/ thanks in advance Nuno _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Zope Versus Enhydra Comparison article
From: Chris Withers [mailto:[EMAIL PROTECTED]] problem. Zope is more closed in that regard. Well anyways when you know enough about Zope to make a hack, you probably also know how to do it the right way. Sadly, that's true, but changing I think... Oh don't misunderstand me. I am just about getting over the "Zope wall" and it has been well worth the climb. Everything is so much faster than in any other system I program in. OK a hitcounter I could probably do faster in php or asp, but that's not really the problems I try to solve. For real world web application I have yeat to see anything beat Zope/Python. You just got to accept to do it the "Zope way" or you will be in a world of pain. :-) People like me who has used asp, php etc. for years has better forget what we know when starting on Zope, and then take it 1 step at a time. Sometimes in the process I have been so tired of Zope and tried to think out a smarter way to do things and then after having a heureka moment when I get a brilliant idea, I have nearly allways thought a little bit harder about it and discovered that Zope usually does it that way allready. So learn to live with the quirks and Just Do It. Regards Max (Zope on) ___ 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] Form data type coercion syntax and javascript
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] Not a problem per-se, just a query - how are people dealing with things like this: snipped lots of stuff... Anything more elegant? I don't know if it is something like this you mean: self.document.form['test:list'].value = 'stuff to fill in'; or perhaps? self.document.form['test:list'] = new Option("Red"+i,"color_red"); regards Max M ___ 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 Branding Slogan?
Max Mller Rasmussen wrote: So learn to live with the quirks and Just Do It. :-) Chris ___ 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] Form data type coercion syntax and javascript
On Wed, 17 Jan 2001, Mayers, Philip J wrote: SELECT NAME="test:list" But how do you access it from JavaScript then? I'm doing this: list = form.elements[j]; list = form.elements["test:list"]; Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [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] Apache with Zope
Hi there !! I have zope and apache listeners in one machine !! Is there any way to have only apache receiving requests for zope and apache, without having two listeners ??? I'm thinking of some module that provide zope funcionalaty to apache ! Without having ProxyPass and RewriteRule directives !!! Is this not possible ? If you have some ideas, just shoot them :) I think what you're asking for is a way of having just Apache listening on port 80 of your server, and then Apache passing on requests to Zope - and you want to do this without using ProxyPass. There are various CGI-derived ways of doing this, but to be honest the ProxyPass setup works very well indeed and doesn't seem to incur any massive performance hit. So unless you have a really good reason for not using ProxyPass, I would just move your Zope onto a port other than 80 and use ProxyPass. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] case insensitive searches
How does one do a case-insensitive search using sql methods when the underlying database is case-sensitive? Although I can force the search on the database to look for a lower case string, I cant make the person giving the value give me the value in lower case, and I know I shouldnt use dtml-var due to security reasons. I guess I really want the dtml-var attributes implemented in sql-var since lower(fieldname) like sql-var "'%' + fieldname + '%'" type=string lower does a case sensitive search whereas: lower(fieldname) like '%dtml-var fieldname lower%' works fine since it forces the user input to lower case -- Maggie Shapland, Computing Service, University of Bristol, Tyndall Av, Bristol BS8 1UD Tel: 0117-9289869 (Int 9869) Email: [EMAIL PROTECTED] Web page: http://www.cse.bris.ac.uk/~ccmjs/ 1925 Lanchester 21, 1925 Talbot 10/23, 1929 Peugeot 190S, 1986 Moss Monaco ___ 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 with SSL on Cobalt RAQ3
Does anyone have any experience doing this? I have been beating my head trying to get this thing to work because the RAQ2 Apache is customised and doesn't take kindly to trying to add mod_proxy etc. No one in the RAQ2 user groups seems to know how to get this to work so I thought I would see if anyone in Zope land knew. I have read the SSL page at http://www.zope.org/Members/unfo/apache_zserver_ssl but it isn't quite as straight forward on the Cobalt server. We run some of our Zope hosting services on Cobalt RaQ3's, with Apache in front of Zope. I'm unsure of the details of why, but the way its setup now is we compiled our own version of Apache which is what listens on port 80 of the RaQ, and the original Apache that came with the RaQ listens on another port (so the management stuff still works). Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] Apache with Zope
Hi ! Yes i agree with you ! Besides, it was what i had in mind ! But that way we have to listners to maintain ! apachectl stop / startssl and the usual stop start in Zope directory !!! Is there a way of administrating the two listners in a easy way ? You talked about some cgis ! What was your idea ? thanks and best regards Nuno On Wed, 17 Jan 2001, Simon Coles wrote: Hi there !! I have zope and apache listeners in one machine !! Is there any way to have only apache receiving requests for zope and apache, without having two listeners ??? I'm thinking of some module that provide zope funcionalaty to apache ! Without having ProxyPass and RewriteRule directives !!! Is this not possible ? If you have some ideas, just shoot them :) I think what you're asking for is a way of having just Apache listening on port 80 of your server, and then Apache passing on requests to Zope - and you want to do this without using ProxyPass. There are various CGI-derived ways of doing this, but to be honest the ProxyPass setup works very well indeed and doesn't seem to incur any massive performance hit. So unless you have a really good reason for not using ProxyPass, I would just move your Zope onto a port other than 80 and use ProxyPass. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] exporting zope
On Wednesday 17 January 2001, at 11 h 50, the keyboard of "Tom Deprez" [EMAIL PROTECTED] wrote: I'm looking for the products who can make plain html-files from zope folders. wget --mirror http://www.mybeautifulzope.org/ ___ 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] ZClass Adding Magic Needed
Hi, Geoff Your situation looks like application logic confusion enhanced by the weirdness of DTML. Use a Python Script/Method to do the background heavy lifting. If you are using with, let and REQUEST.set() to access your items, it can be done much more simply and understandably in a Python Script/Method. -- Jim Washington "Geoffrey L. Wright" wrote: So: I have a odd little problem that I can't seem to solve. I have two zclasses. We'll call them zclass1 and zclass2. zclass2 lives inside of zclass1. zclass1 has the following two properties: id and displayOrder. zclass2 has the four properties: id, displayOrder, alignment and content. In both cases the id is an automaticly generated unique number based on ZopeTime. My problem is that I need to make a public add method that generates a new instance of zclass1 with a new instance of zclass2 inside of it. I also need to be able to control set the displayOrder of zclass1, and the alignment and content of zclass2 from the same form. The displayOrder of zclass2 will be static for the time being, but I'll ultimately need to control that as well. I hacked the default add method of zclass1 so that it generates a new instance of zclass2 each time, and using the Job Board HOWTO I managed to make a public add method. So far so good. But now I can't for the life of me figure out how to pass some form variables to one object and some to the other, especially while they have some identically named properties. Any hints on this one? ___ 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 2.3.0 beta 1 comments
On Wed, Jan 17, 2001 at 10:07:30AM +, Chris Withers wrote: - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. If you switch to inline CSS (instead of linked CSS) this problem will go away. In a2 the inline/linked descision was made for you by using browser sniffing (which isn't very reliable as many people use filtering proxies these days). Netscape 4 is just way broken. I suspect that is also why Netscape sometimes doesn't render a page. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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 2.3.0 beta 1 comments
i had the intermittent "browser displays the CSS text and not the real page" in another situation go away by expressly setting the content type in the linked CSS file. the first line would become... dtml-call "RESPONSE.setHeader('Content-Type','text/css')" jens on 1/17/01 8:20, Martijn Pieters at [EMAIL PROTECTED] wrote: On Wed, Jan 17, 2001 at 10:07:30AM +, Chris Withers wrote: - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. If you switch to inline CSS (instead of linked CSS) this problem will go away. In a2 the inline/linked descision was made for you by using browser sniffing (which isn't very reliable as many people use filtering proxies these days). Netscape 4 is just way broken. I suspect that is also why Netscape sometimes doesn't render a page. ___ 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] verify whether html input type=file... is empty
Hi! Don't know if it is really a zope question, but I have a problem, verifying if e.g. input INPUT TYPE="file" NAME="image_1" SIZE="50" is empty or not using dtml-unless " REQUEST[ 'image_1']=='' " dtml-call "manage_addImage( id=imageId, file=REQUEST[ image_1], REQUEST=REQUEST )" /dtml-unless well, I think the input type=file... is not a string, but what I want to test is if the user put in the filename and not whether the really existing file is empty, so how could aI do it? I would appreciate any hints Thank you in advance Andrey ___ 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 2.3.0 beta 1 comments
ye-ha. I've checked that in. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jens Vagelpohl Sent: Wednesday, January 17, 2001 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [Zope] Zope 2.3.0 beta 1 comments i had the intermittent "browser displays the CSS text and not the real page" in another situation go away by expressly setting the content type in the linked CSS file. the first line would become... dtml-call "RESPONSE.setHeader('Content-Type','text/css')" jens on 1/17/01 8:20, Martijn Pieters at [EMAIL PROTECTED] wrote: On Wed, Jan 17, 2001 at 10:07:30AM +, Chris Withers wrote: - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. If you switch to inline CSS (instead of linked CSS) this problem will go away. In a2 the inline/linked descision was made for you by using browser sniffing (which isn't very reliable as many people use filtering proxies these days). Netscape 4 is just way broken. I suspect that is also why Netscape sometimes doesn't render a page. ___ 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] 2Q: Catalog and REQUEST
I have a calendar each day is a radio button and the name=schedule_mmdd when I post to a page I want to do something like, get all the values that start with 'schedule'. I found no examples on how to iterate over the REQUEST objects values. anyone? times=[] for key in REQUEST['form'].keys(): if key[:8]=='schedule': times.append(REQUEST['form'][key]) second question: I have some searchResults() when I say dtml-in searchResultdtml-var sequence-item/dtml-in (when are we going to get rid of sequence-item?) I get instance None instance instance instance but dtml-in searchResults dtml-if "_['sequence-item']!=None" dtml-var sequence-item/dtml-if /dtml-in doesnt work. running on the latest beta, really nice :) ~runyaga ___ 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] Missing attribute with ZSQL methods?
If I write DTML that way: tddtml-var telephone missing="(No phone)"/td and if "telephone" comes from a ZSQL method, "missing" is ignored even if the field was NULL (in SQL sense). Is it normal? Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] System Platform: osf1V4 PostgreSQL 7.0.3 (with Z PyGreSQL, ZPyGreSQLDA-0-0-3) ___ 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 2.3.0 beta 1 comments
Martijn Pieters wrote: On Wed, Jan 17, 2001 at 10:07:30AM +, Chris Withers wrote: - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. If you switch to inline CSS (instead of linked CSS) this problem will go away. In a2 the inline/linked descision was made for you by using browser sniffing (which isn't very reliable as many people use filtering proxies these days). Netscape 4 is just way broken. I suspect that is also why Netscape sometimes doesn't render a page. Actually, now the preferences screen has been simplified (oversimplified?) and you can't choose whether to inline or not. You can only turn CSS on and off. :-( But I hope this will soon become a moot point. Go Mozilla! Shane ___ 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] slow response with 2.2.5b1, 2.2.5, 2.3.0b1 win32 version
beginning with Zope 2.2.5b1 I noticed some latency between requests and responses (about 3 seconds) even of simple pages. This applies to the 2.2.5 and the 2.3.0b1 releases as well. It occurs only on win32 installations. The 2.2.4 release runs fine on the same machines. Hmm - a couple of questions: - are you accessing your server from the same machine using the name 'localhost'? If so, do you have a hosts file with that name in it? This has been a problem for windows users before (very long latency if you are offline and have no 'hosts' file). - is this something that you see on all documents or just certain ones? I'm running 2.3.0b1 on NT 4 (sp 4) and I'm not seeing any noticable lags. If you only see this on certain documents can you send me a copy of the doc so I can try to reproduce this? Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] case-insensitive searches
I wrote: How does one do a case-insensitive search using sql methods when the underlying database is case-sensitive? Although I can force the search on the database to look for a lower case string, I cant make the person giving the value give me the value in lower case, and I know I shouldnt use dtml-var due to security reasons. I guess I really want the dtml-var attributes implemented in sql-var since lower(fieldname) like sql-var "'%' + fieldname + '%'" type=string lower does a case sensitive search whereas: lower(fieldname) like '%dtml-var fieldname lower%' works fine since it forces the user input to lower case I realise one can force the case of the input by an extra call in the report before the dtml-in clause eg dtml-call "REQUEST.set('car', _.string.lower(REQUEST['car']))" but it would still be nice to be able to include lower as an attribute to sqlvar. By the way I am trying to document SQL solutions (relating to Oracle) as I hit them in: http://www.cse.bris.ac.uk/~ccmjs/zope_sql.htm -- Maggie Shapland, Computing Service, University of Bristol, Tyndall Av, Bristol BS8 1UD Tel: 0117-9289869 (Int 9869) Email: [EMAIL PROTECTED] Web page: http://www.cse.bris.ac.uk/~ccmjs/ 1925 Lanchester 21, 1925 Talbot 10/23, 1929 Peugeot 190S, 1986 Moss Monaco ___ 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] Postgresql Query.
--On Wednesday, January 17, 2001 04:33:25 PM +1000 Andrew Kenneth Milton [EMAIL PROTECTED] wrote: Normally, I would tell you to visit; http://www.zope.org/Documentation/ but, some monkey has designed the interface w/o actually testing it, since there's no direct references to the online ZSQL Reference there any more, and the online dtml reference shoves you into dtml-var. Monkey fix! bannana? -- ethan mindlace fremen zopatista community liason ___ 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] Flat-style
Not really zope specific, but I hope nobody minds me asking. How do you implement flat-looking input boxes? Does somebody knows this? Thanks in advance, Tom. ___ 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 Versus Enhydra Comparison article
Ron Bickers wrote: Using Zope we knew that we would reach situations which may be unresolvable in the short term, and could not make significant business decisions with so many unknown factors and lack of any way to circumvent problems. What in the world does that mean?!? Maybe it should read "We don't know how to use Zope or code in Python." I can give you a personal example. When I was trying to get LoginManager to display it's stored users in the local roles security form, I couldn't fix it using what I knew, which was DTML and ZClasses. I had asked for help on the lists, and got some pointers in the general direction, but that was all. After a week of crawling around in Zope's source (and a lot of whining), I found the parts I needed to duplicate for PersistentUserSource.py, and I added them. It should not have taken me a week, except that I don't really consider myself a coder. The only thing that made it possible at all was my extensive experience *using* zope, and my familiarity with Tracebacks and a basic understanding of most of Zope's underlying mechanisms. If I had been a real Zope/Python coder, I probably would have figured it out in a day. However, for a programmer who had to come into the Zope environment 'cold', the problem would likely have seemed intractable. They wouldn't have even known where to look, and the fact that LoginManager is not an 'official' core Zope product could have been a show-stopper. (Why did I have to use LoginManager, you ask? Membership requires it, and I needed to store user data in the ZODB about NT authenticated users on a Solaris box. Gah). So the problem, as I see it, is multiple dependencies that may not be obvious. While over the long term, factoring common functionality into separate products that other products depend on makes more sense, and creates a *much* more powerful framework, in the interim (waiting for things to jell) it can frustrating as all get-out, and pretty easy to get stuck. Conversely, that things about Zope that are relatively mature are a dream to use and leverage, so this is an acceptable trade-off for me. Cheers, Michael Bernstein. ___ 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] ZMySQLDA and Win32 Zope crash
Phil and rest of the Zommunity I followed the instructions on http://www.zope.org/Members/philh/mysql which has helped me successfully twice (out of two before) on Windows NT and Windows 2000. This installation was seemless like others, and the product doesn't look broken from the Control_Panel/Products view. The only thing I've been able to do (not too bad) is to add a Z MySQL Database Connection with the proper syntax there "database root password". That works fine. Whenever I try to use the connection in any way, it crashes Zope! "An application error has occurred and an application error log is being generated. python.exe" ... and from the console Zope (in debug mode) looks to be still running, but from the management interface I can see that it's not (nothing happens!). William Crandall had a similar question with more details but with the same result as I. No answer to this one: http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a b003585d4/f5a855d999e73c978025693600507b4e?OpenDocument I tried it on 2.2.2, failed tried to upgrade to 2.2.5 failed as well. MySQL: 3.22.34-shareware-debug (no anonymous user set up) Windows NT(4) Python 1.5.2 in Program Files but I have that other python.exe in the zope dir/bin ZMySQLDA 1.1.3 I used the MySQL.pyd you provided from your How-To I also used the libmySQL.dll you provided from your How-To What can be the reason for this? Is it strange Zope/ZMySQLDA behaviour or is it my MySQL? Thanks alot!, Peter ___ 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] ZWiki -- MS Word
--On Tuesday, January 16, 2001 08:10:11 AM -0500 Frank McGeough [EMAIL PROTECTED] wrote: More than Word I would really like something that would convert the wiki into a Windows help file. well, wikis render as html, and there's lots of things that let you convert web to help (which is just a degraded html anyway). Here's the first link google sent me: http://www.webtwin.com/ Hope that helps, -- ethan mindlace fremen zopatista community liason ___ 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] Missing attribute with ZSQL methods?
If I write DTML that way: tddtml-var telephone missing="(No phone)"/td and if "telephone" comes from a ZSQL method, "missing" is ignored even if the field was NULL (in SQL sense). Is it normal? "missing" is only effective if the variable telephone cannot be found. Even if it has a null or None value, it's not considered missing. Try dtml-var telephone null="(No phone)" instead. ___ Ron Bickers Logic Etc, Inc. [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] Flat-style
CSS - Original Message - From: "Tom Deprez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 4:15 PM Subject: [Zope] Flat-style Not really zope specific, but I hope nobody minds me asking. How do you implement flat-looking input boxes? Does somebody knows this? Thanks in advance, Tom. ___ 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] Flat-style
Is CSS what you're looking for? This works fine in Internet Explorer and looks flat to me: input name="hej:string" style="border-style: none; background-color: white;" - Original Message - From: "Tom Deprez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 4:15 PM Subject: [Zope] Flat-style Not really zope specific, but I hope nobody minds me asking. How do you implement flat-looking input boxes? Does somebody knows this? Thanks in advance, Tom. ___ 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] Tools used for programming Zope
I recently looked into Zope in some detail and have decided that it's rather cool, with many features that you don't get from J2EE or ASP or PHP, etc. The Through-The-Web (TTW) aspect of it is interesting, and the documentation seems to infer that this is the direction Zope programming is going, with the use of ZClasses and other features. Unfortunately, I'm a little turned off by the fact that you must edit many things using a web browser. For example, ZClasses were cool and easy to configure through the web, until I discovered that I can't recover the source to it as a source file that I can edit with something else. FSDump only does translation one-way to the filesystem and not back again. DTML can be FTP'ed to the server, but what a hassle this is. So how do people go about programming Zope? What sorts of tools do people use, and how do you go about getting your code to and from Zope? Can you use CVS? Thanks for any help with a newcomer. Gerald. ___ 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] Support was: Zope Versus Enhydra Comparison article
Chris Withers wrote: the Zope way. In a commercial setting that is very dangerous when you work on a deadline. Well, if it's really crucial, you _can_ always buy support from DC... This is a point that probably isn't mentioned enough here. I've been doing this kind of stuff for several years and I have never seen a better public support forum than this list. Anything you do, you need to invest in the right tools. This is a good tool ... but if your living depends on you getting Zope answers then I would suggest getting the brains at DC on your side. (This is a public service announcement and in no way was funded by Digital Creations or their subsidiaries.) s -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "When the government fears the People, that is Liberty. When the People fear the Government, that is tyranny." ~~ Thomas Jefferson ___ 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 2.3.0 beta 1 comments
--On Wednesday, January 17, 2001 08:32:34 AM -0500 Jens Vagelpohl [EMAIL PROTECTED] wrote: i had the intermittent "browser displays the CSS text and not the real page" in another situation go away by expressly setting the content type in the linked CSS file. the first line would become... dtml-call "RESPONSE.setHeader('Content-Type','text/css')" Note that this isn't a "cure all": it is still possible to get a buffer overflow that causes netscape to spew its garbage into the browser, IIRC. -- ethan mindlace fremen zopatista community liason ___ 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] Picture of the day product
Hey everyone, I was looking at linux.com the today and I noticed their "Daily Photo." I occurred to me that that would be a fun addition to the school's page that I'm developing. My first thought would be to: * inherit from Image * add caption, date taken, etc. properties * create an archive of past photos What I'm not sure about is how to have Zope automatically display the photo for a day, then archive it. Would a boolean property of the ZClass work? Is it possible to have Zope set the property of a ZClass instance at certain time? Any thoughts on how this would be designed? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] | dtml-var pithy_quote | http://linux.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] exporting zope
--On Wednesday, January 17, 2001 11:50:12 AM +0100 Tom Deprez [EMAIL PROTECTED] wrote: Hi, I'm looking for the products who can make plain html-files from zope folders. Unfortunately, I can't find them anymore on the zope.org site. Probably I missed them, but are there people who know the names of these products/tools, for easier finding. Are there people who have experience with some of them. (good, bad). http://www.zope.org/Members/rossl/ZMirror Claims to do what you want. All the tools that do things like this are in the "External Access" category. Hope that helps, -- ethan mindlace fremen zopatista community liason ___ 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] ZMySQLDA and Win32 Zope crash
peter bengtson wrote: William Crandall had a similar question with more details but with the same result as I. No answer to this one: http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a b003585d4/f5a855d999e73c978025693600507b4e?OpenDocument http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/F5A855D999E73C97 ...for the wrapping impaired ;-) The short links appear down at the bottom of the page, so you can post them in mail messages without wrapping problems. ...and yes we are working on a Zope version of these archives ;-) cheers, Chris ___ 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 to list objects across different containers in Zope's tree?
Few days ago there was this same question although remained unsolved. This is the case for a news site: News objects are within section folders, within day folders, within months, and within a year folder. Just like this, at the root: http://zopesite:8080/2000/October/17/sports/newsobjectid_htm If I were at, ie, root/2001/January/thislist_htm , how can I list(and retrieve) sport news appeared from October 29th to November 10th in year 2000? Is it time to look for a database? Thanks in advance, Ausum ___ 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 Versus Enhydra Comparison article
However, for a programmer who had to come into the Zope environment 'cold', the problem would likely have seemed intractable. They wouldn't have even known where to look, How does Enhydra differ? Wouldn't the same problems be true for someone working with Enhydra that knows Zope/Python really well but has zero Enhydra/Java experience? ___ Ron Bickers Logic Etc, Inc. [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] Tools used for programming Zope
So how do people go about programming Zope? What sorts of tools do people use, and how do you go about getting your code to and from Zope? Can you use CVS? Attach to Zope using WebDav and away you go . ___ 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] Picture of the day product
On Wed, Jan 17, 2001 at 12:20:06PM -0600, Timothy Wilson wrote: Hey everyone, I was looking at linux.com the today and I noticed their "Daily Photo." I occurred to me that that would be a fun addition to the school's page that I'm developing. My first thought would be to: * inherit from Image * add caption, date taken, etc. properties * create an archive of past photos What I'm not sure about is how to have Zope automatically display the photo for a day, then archive it. Would a boolean property of the ZClass work? Is it possible to have Zope set the property of a ZClass instance at certain time? Any thoughts on how this would be designed? I'd pre-create the archive in advance. Use dates as Ids, and have the archive page only list past photos. The homepage would show the photo for today. Simple and sweet. Or you could use a Python Script/Python Method/External Method/DTML Method (whatever you prefer) called currentPhoto or something that does the calculation for you and return the correct object to the caller. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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] High Performance Zope
Doh! I meant to say 200-300,000 pageviews per day. Thanks for all the responses so far. Vincent Stoessel wrote: Hello All, How does Zope respond under heavy load? can Zserver handle serving out 200-300 zope pages per day on a busy website? Would it be better to use pcgi to plug it into apache? Thanks in advance. -- Vincent Stoessel [EMAIL PROTECTED] Internet Applications Engineer IDEV http://www.idev.com V: 301 495 7345 x129 ___ 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] Picture of the day product
// What I'm not sure about is how to have Zope automatically // display the photo // for a day, then archive it. Would a boolean property of the // ZClass work? Is // it possible to have Zope set the property of a ZClass instance // at certain // time? Any thoughts on how this would be designed? Hi Tim, Here's some code I use with a simple NewsItem ZClass that only displays objects that have not yet "Expired". With a little modification, it could be used to test a "DisplayDate" value and if it matches the current date, the photo would be displayed. That way you could load a bunch of photos into your site at once and give them specific display dates. If more than one had the same date, they would both be shown. "Expires" is a property of my NewsItem ZClass that is of type "date". "Expires+1" just adds a day to the expiration date so that my news items are displayed up to, and including, their expiration date. The NewsItem ZClass has a meta type of "News Item," which is used in the "in" statement. "view" is a method of the ZClass that simply formats the NewsItem for displaying in the browser. dtml-with News dtml-in expr="objectValues('News Item')" sort=id reverse dtml-if "ZopeTime().lessThanEqualTo((Expires+1))"dtml-var viewbr/dtml-if /dtml-in /dtml-with Hope it helps... Eric. ___ 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] : installation of MySQL
On Wed, 17 Jan 2001, K H Subrahmanyan wrote: hi, I am using ZOPE in Linux. Now I want to install MySQL to that. I have installed MySQLDA and MySQLdb to that. but still that is giving the following error. kindly help me. ZMySQLDA Import Traceback Traceback (innermost last): File "/zope/zope-linux/lib/python/OFS/Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/zope/zope-linux/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/zope/zope-linux/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/zope/zope-linux/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import MySQL, regex, sys ImportError: Bad magic number in /zope/zope-linux/lib/python1.5/MySQL.pyc Well, for starters, there's no MySQL.py (or .pyc) in MySQLdb. SO: You are using an old ZMySQLDA. Judging from the traceback, you are using 1.1.3. Please read http://www.zope.org/Members/adustman/MySQL_Updates for more information. ZMySQLDA-2.0.2 is about to be pushed out the door (waiting on some user feedback). I'm going to send that to you off-list, along with MySQLdb-0.3.0. -- Andy Dustman PGP: 0xC72F3F1D @ .net http://dustman.net/andy ___ 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] skinscript and URL traversal question
Hi all, I'm using a zsql method in a skinscript with query ... compute ... and it mostly works. Calling the dataskin where the id is part of the query string (coupon id=977931214.694) works. For example, http://CouponSite/CouponManager/CouponAttributes?Cid=977931214.694 Where: CouponManager is a specialist 977931214.694 is the id of the coupon CouponAttributes looks up the dataskin with: dtml-with "getItem(Cid)" dtml-var couponattributes /dtml-with Trying to access the object directly through URL traversal fails. http://CouponSite/CouponManager/977931214.694/CouponDetails Where: CouponDetails displays the coupon attributes with: dtml-var couponattributes It returns a not found error. The CouponManager specialist can't find the coupon 977931214.694. Any thoughts why this is so? SkinScript Trigger: WITH QUERY searchByNameCheck(self.id) COMPUTE name,username,coupon_text,categorylist,categoryheader,expirationdate,status,couponterms PythonMethod: searchByNameCheck paramsself,nameparams Cname=name result=self.searchBy_Name(name=Cname) #zsql method return result Error Type: NotFound Error Value: None Traceback (innermost last): File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/etc/Zope2d/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ProviderContainer) File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 162, in publish File /usr/local/etc/Zope2d/lib/python/ZPublisher/BaseRequest.py, line 338, in traverse File /usr/local/etc/Zope2d/lib/python/Products/ZPatterns/Specialists.py, line 25, in __bobo_traverse__ (Object: ProviderContainer) NotFound: (see above) Zope version: Zope 2.2.1 (source release, python 1.5.2, linux2) System Platform: freebsd4 -thanks, Aaron ___ 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 to list objects across different containers in Zope's tree?
Ausum, It may be time to re-think your site structure. I have a news type site as well and here is how I handle it (my way... not saying it is by any means the best or right way). Instead of storing your news items in a series of folderish objects, maybe create folders for each section and then create a news item ZClass with the article date or goLiveDate as the ID. zopesite:8080/sports/2000.10.17/newsobjectid_htm Then do some dtml to pull out the ones you want on the main "sport/thislist_htm" page. Better yet use ZCatalog to search for the range of news items you want to appear in the list. Hope this helps!! Jamey Sintz -Original Message- From: Ausum [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 1:35 PM To: [EMAIL PROTECTED] Subject: [Zope] How to list objects across different containers in Zope's tree? Few days ago there was this same question although remained unsolved. This is the case for a news site: News objects are within section folders, within day folders, within months, and within a year folder. Just like this, at the root: http://zopesite:8080/2000/October/17/sports/newsobjectid_htm If I were at, ie, root/2001/January/thislist_htm , how can I list(and retrieve) sport news appeared from October 29th to November 10th in year 2000? Is it time to look for a database? Thanks in advance, Ausum ___ 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] High Performance Zope
At 14:37 1/17/01 -0500, Vincent Stoessel wrote: Doh! I meant to say 200-300,000 pageviews per day. We're serving about 200.000 hits (not pageviews) per day at http://www.portal.pt/ with a couple of load balanced frontend servers connected to a couple of load balanced backend DB servers. We're using ZEO. C U! -- Mario Valente ___ 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 to list objects across different containers in Zope's tree?
Thanks for the tip, James. It seems a clever approach although I must keep it for the time being. Anyway if that were the case, the question could be this one: How can I list all the headlines and summaries for all the news appeared for sports, locals and politics sections (in example) from December 27th,2000 and January 5th, 2001 ? Greetings, Ausum James Sintz wrote: Ausum, It may be time to re-think your site structure. I have a news type site as well and here is how I handle it (my way... not saying it is by any means the best or right way). Instead of storing your news items in a series of folderish objects, maybe create folders for each section and then create a news item ZClass with the article date or goLiveDate as the ID. zopesite:8080/sports/2000.10.17/newsobjectid_htm Then do some dtml to pull out the ones you want on the main "sport/thislist_htm" page. Better yet use ZCatalog to search for the range of news items you want to appear in the list. Hope this helps!! Jamey Sintz ___ 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] Antwort: RE: [Zope] slow response with 2.2.5b1, 2.2.5, 2.3.0b1 win32versionversion
the hosts file was there, and there was a localhost entry in it. Sorry, I should have been more precise. I only had the latency, accessing the zope server from some clients. Accessing zope from the server machine was fine. So I made a (fake) entry to the hosts file for the client machine, which accesses the server and the latency was gone :) Really strange, release 2.2.4 and before ran perfect without that. But, nevertheless, thanks a lot for the hint. Ah ha! It turns out that this is actually a dumb thing on the part of UserFolder that will be fixed for 2.3 final. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] Trouble installing ZMySQLTDA
Ok, it's Vinny again, I am trying to get ZMySQLTDA up and running. After installation ZMySQLTDA appears in the Product folder but gives a 'broken' status instead of "installed" I have MySQL-python-0.3.0 installed. Has this worked OK for anyone else? Thanks. Zope 2.2.5 ZMySQLTDA Import Traceback Traceback (innermost last): File "/usr/local/Zope-2.2.5-linux2-x86/lib/python/OFS/Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/Zope-2.2.5-linux2-x86/lib/python/Products/ZMySQLTDA/__init__.py", line 91, in ? import DA File "/usr/local/Zope-2.2.5-linux2-x86/lib/python/Products/ZMySQLTDA/DA.py", line 91, in ? from db import DB File "/usr/local/Zope-2.2.5-linux2-x86/lib/python/Products/ZMySQLTDA/db.py", line 4, in ? class DB(DB, TM): NameError: DB ___ 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] Unexplained Slowdown
When I upgraded to Zope 2.2.5 access to my Zope over the web slowed down dramatically and I haven't been able to figure out why. I am interested in ideas I can try to track it down the problem or at least quantify/benchmark the slowness. Some background. 1) I am a computer teacher teaching Zope to my second year web development students who have already learned HTML and been introduced to JavaScript. 2) The server is a my test machine that my students and I use for learning. 3) The "production" server still running 2.2.4 continues to preform normally. 4) The machine is Celeron 500 mhz 64 meg ram running Windows 2000 Server 5) I run Medusa server that comes with Zope to server the web pages. 6) There is no gateway set up on this machine so that it is only visible from within the school. Notes. 1) It is much faster if I access via localhost on the server. What I have tried. 1) Installing 2.2.4 on another port. It ran just as slow. 2) Today I removed the 2.2.4 installation and installed 2.3beta, again it seems just as slow. What Next? The next thing I was thinking was to serve the webpages from IIS using PCGI. I am interested in other ideas. I. Thomas ___ 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] Upgrade woes and product import problems
I'm trying to upgrade to 2.3.0b1 from 2.2.5b1... I installed the new version (according to the ZopeInstall HowTo, just to be safe), which started fine. I then shutdown Zope (2.3.0b1), moved the default var/Data.fs* files to a backup directory, then copied my old Data.fs* files over. When I tried to re-start 2.3.0b1, nothing happened. No debug message either. So I put the default Data.fs* files back in and restarted successfully. Fine, I thought, the database files aren't all that necessary. All the work I'd done on the previous version had been exported to a .zexp product export file, which were all subclassed from your run-of-the-mill ZClasses (image, file, folder, object manager, ZCatalog aware) and used DTML for all methods. No PythonMethods, no FSSessions, etc. So I put the .zexp file into the "import" folder and tried to import the product from within Zope. I got this error: Error Type: AttributeError Error Value: append Traceback (innermost last): File /usr/local/zope/2-3/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2-3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/2-3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2-3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/local/zope/2-3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /usr/local/zope/2-3/lib/python/OFS/ObjectManager.py, line 542, in manage_importObject (Object: Traversable) File /usr/local/zope/2-3/lib/python/ZODB/ExportImport.py, line 208, in importFile AttributeError: (see above) Here's my questions: 1. Why are my old data files screwing up Zope 2.3.0b1? 2. Why can't I import my product? Note: I also tried this with 2.2.5b1 -- 2.2.5, same errors. Any insights? Thanks, ajl ___ 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 2.3.0 beta 1 comments
- When you view a management screen, the frame is about 5 pixels to small, which cuts off the bottom of the Zope logo. I'm looking into fixing that. - When you resize the top frame, you get back a load of CSS (but as text and without a content type) This didn't happen in a2. This is tied up with a known buffer-overrun bug in NS4 - we've added some workarounds that should ameliorate it for b2. That's for the Browser Preferences option :-) It does strike me that this is information about the logged in user, though, so why isn't it stored against the logged in user? It's a pain getting rid of that top frame every time I use the management interface on a different computer ;-) I've mentioned this a few times but have never got a response, so what am I missing? (Of course, if you could provide the API for the browser preferences, everyone else could use it for storing thigns like full name, address, phone number, etc ;-) These are actually browser preferences, not user preferences. For example, the prefs I set at home on my nice hi-res laptop will be different than those I have set on my work machine for things like textarea size preferences. We are specifically *not* trying to do 'user' preferences. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] ZClass Adding Magic Needed
Jim Washington [EMAIL PROTECTED] writes: Hi, Geoff Your situation looks like application logic confusion enhanced by the weirdness of DTML. Application logic confusion in what way? Perhaps I didn't give enough detail about what I'm doing. Here's a little ASCI art that may clear things up: CLASS META TYPE PROPERTIES -- ZClass1 (blob) - id, displayOrder \ \ \/ ZClass2 (chunk) - id, displayOrder, alignment, text ZClass1 is basicly a container class for a bunch of displayable subobjects. Each blob can contain a variable number of chunks, although for the purpose of creating a new blob I'm only concerned about it starting with a single chunk. Right now (if I create a number of sample blobs and chunks by hand) users can manipulate the display order of individual chunks within a blob. The can also manipulate the display order of blobs relative to one another. But now I need to give them the capacity to generate a new blob with one default chunk. This _seems_ like it should be an easy thing to do. And in fact I have no problem with creating a public add method. My problem comes when I want to give these two new objects starting values from the same form. Something like this works perfectly: dtml-with "manage_addProduct['ChunkProduct']" dtml-call "chunk_blobClass_add(_.None, _, NoRedir=1)" /dtml-with Where I change the add method of a blob to also always also add a chunk and appropriately adjust the permession of my add method so that anybody can use it. The user will need to control the the displayOrder of the blob. It's default chunk will always have a displayOrder of 1. The user also needs to control the alignment and text of the default chunk. And note again that when both the blob and it's chunk are created they are given a random id based on ZopeTime, since I don't want my users to have to care about the id of either object. Because of this I don't need to worry about passing an id to either one of them from my form... I hope this at least manages to clear up my problem a bit. Use a Python Script/Method to do the background heavy lifting. If you are using with, let and REQUEST.set() to access your items, it can be done much more simply and understandably in a Python Script/Method. I'm open to doing this the Python Way as well, but I have the same problem there. -- Jim Washington "Geoffrey L. Wright" wrote: So: I have a odd little problem that I can't seem to solve. I have two zclasses. We'll call them zclass1 and zclass2. zclass2 lives inside of zclass1. zclass1 has the following two properties: id and displayOrder. zclass2 has the four properties: id, displayOrder, alignment and content. In both cases the id is an automaticly generated unique number based on ZopeTime. My problem is that I need to make a public add method that generates a new instance of zclass1 with a new instance of zclass2 inside of it. I also need to be able to control set the displayOrder of zclass1, and the alignment and content of zclass2 from the same form. The displayOrder of zclass2 will be static for the time being, but I'll ultimately need to control that as well. I hacked the default add method of zclass1 so that it generates a new instance of zclass2 each time, and using the Job Board HOWTO I managed to make a public add method. So far so good. But now I can't for the life of me figure out how to pass some form variables to one object and some to the other, especially while they have some identically named properties. Any hints on this one? ___ 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 2.3.0 beta 1 comments
On Wed, Jan 17, 2001 at 04:00:57PM -0500, Brian Lloyd wrote: - When you view a management screen, the frame is about 5 pixels to small, which cuts off the bottom of the Zope logo. I'm looking into fixing that. This suddenly rings a bell; I remember now that NS4 seems to have a 'grid' system for laying out frames. It snaps to certain sizes, and adding a few pixels plus or minus won't get you a visible change. Sizing of frames can only happen in larger steps. The annoying bit is is that it is damn hard to find the sweetspot - the setting at which both Netscape and IE will use the same frame size. Many a website at my previous employer had it's frames designed to acommodate for this (especially when using bordelress frames). -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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] Unexplained Slowdown
This is due to an ill-fated attempt to make 'domain-based authentication' less expensive (but that backfired to some extent because it can make non domain-based auth more expensive, especially if reverse DNS lookups are slow for you). This is fixed for 2.3 b2 - in the meantime you should be able to copy the attached User.py to fix the problem for now. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ian Thomas Sent: Wednesday, January 17, 2001 3:41 PM To: [EMAIL PROTECTED] Subject: [Zope] Unexplained Slowdown When I upgraded to Zope 2.2.5 access to my Zope over the web slowed down dramatically and I haven't been able to figure out why. I am interested in ideas I can try to track it down the problem or at least quantify/benchmark the slowness. Some background. 1) I am a computer teacher teaching Zope to my second year web development students who have already learned HTML and been introduced to JavaScript. 2) The server is a my test machine that my students and I use for learning. 3) The "production" server still running 2.2.4 continues to preform normally. 4) The machine is Celeron 500 mhz 64 meg ram running Windows 2000 Server 5) I run Medusa server that comes with Zope to server the web pages. 6) There is no gateway set up on this machine so that it is only visible from within the school. Notes. 1) It is much faster if I access via localhost on the server. What I have tried. 1) Installing 2.2.4 on another port. It ran just as slow. 2) Today I removed the 2.2.4 installation and installed 2.3beta, again it seems just as slow. What Next? The next thing I was thinking was to serve the webpages from IIS using PCGI. I am interested in other ideas. I. Thomas ___ 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 Public License (ZPL) Version 1.0 # - # # Copyright (c) Digital Creations. All rights reserved. # # This license has been certified as Open Source(tm). # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions in source code must retain the above copyright #notice, this list of conditions, and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright #notice, this list of conditions, and the following disclaimer in #the documentation and/or other materials provided with the #distribution. # # 3. Digital Creations requests that attribution be given to Zope #in any manner possible. Zope includes a "Powered by Zope" #button that is installed by default. While it is not a license #violation to remove this button, it is requested that the #attribution remain. A significant investment has been put #into Zope, and this effort will continue if the Zope community #continues to grow. This is one way to assure that growth. # # 4. All advertising materials and documentation mentioning #features derived from or use of this software must display #the following acknowledgement: # # "This product includes software developed by Digital Creations # for use in the Z Object Publishing Environment # (http://www.zope.org/)." # #In the event that the product being advertised includes an #intact Zope distribution (with copyright and license included) #then this clause is waived. # # 5. Names associated with Zope or Digital Creations must not be used to #endorse or promote products derived from this software without #prior written permission from Digital Creations. # # 6. Modified redistributions of any form whatsoever must retain #the following acknowledgment: # # "This product includes software developed by Digital Creations # for use in the Z Object Publishing Environment # (http://www.zope.org/)." # #Intact (re-)distributions of any official Zope release do not #require an external acknowledgement. # # 7. Modifications are encouraged but must be packaged separately as #patches to official Zope releases. Distributions that do not #clearly separate the patches from the original work must be clearly #labeled as unofficial distributions. Modifications which do not #carry the name Zope may be packaged in any form, as long as they #conform to all of the clauses above. # # # Disclaimer # # THIS SOFTWARE IS PROVIDED BY
[Zope] RE: Problem on using nested dtml-ifdtml-in
Oops! What I meant to say was: "The only /dtml-if tag you need is that final one." (see prior post on this topic) Later, Jerry S. ___ 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] Tools used for programming Zope
Can you edit ZClasses and other objects with it, or is this only for DTML? At 08:00 PM 1/17/2001 +0100, Max M wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gerald Gutierrez So how do people go about programming Zope? What sorts of tools do people use, and how do you go about getting your code to and from Zope? Can you use CVS? I use UltraEdit which can load files from ftp so that I can edit them just as a local file. Lot's of editors has this feature. I do look forward to better webdav support from DreamWeaver though. That's gonna be great. regards Max M 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 )