[Zope-dev] Zope and SMP

2000-05-18 Thread Thilo Mezger
hi! yesterday, i have test-driven zope on a dual-pentium smp-machine running linux 2.2 and i was very disappointed by the results. the zserver threads are running on both cpu's but it seems to scale really, really badly. i have only done some very cheap benchmarking but it seems that a single cpu

Re: [Zope-dev] Zope and SMP

2000-05-18 Thread Itamar Shtull-Trauring
Thilo Mezger wrote: > yesterday, i have test-driven zope on a dual-pentium smp-machine > running linux 2.2 and i was very disappointed by the results. > the zserver threads are running on both cpu's but it seems to > scale really, really badly. i have only done some very cheap > benchmarking but

Re: [Zope-dev] a simple example of the ZPatterns frame work

2000-05-18 Thread Jephte CLAIN
"Phillip J. Eby" a écrit : > > At 08:39 PM 5/17/00 +0400, Jepthte CLAIN wrote: > > > >I wonder if someone can send me a simple example using the ZPatterns > >framework. I read all the source, and I still can't figure out what is > >the relationship between the objects instantiated by the Racks

Re: [Zope-dev] 2.2.0a1 Problems

2000-05-18 Thread Chris Withers
Brian Lloyd wrote: > We are going to move a better 'zopectl start', 'zopectl stop' sort of > setup, though its not there yet. This will make a number of things > better. Cool :-) > > - the -P option doesn't work properly. > > python z2.py -D -P 9000 still resulted in the PCGI server being run on

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Chris Withers
Brian Lloyd wrote: [snip] > > Won't this break Amos' XML-RPC-based editor and similar hacks? > > Waaa probably. Ok, so I've _provisionally_ changed this in > the current CVS. I feel a to-the-death-cage-match coming on. Horse before the cart? Maybe the XML-RPC editor needs fixing 'cos some

[Zope-dev] Frames and Zope

2000-05-18 Thread Sin Hang Kin
Hi, I am working at a search form and trying to display the result in one of the frame newly created. I just realize by putting the instead of the code into the frames, the variables were all gone. I recall that zope take account to different browser section, did this related to my problem? If

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Itamar Shtull-Trauring
Chris Withers wrote: > PS: The XML-RPC stuff could just be given the nwe view permission for > objectIds, if it REALLY needs it... although this would mean the > docstrings thing would have to eb replaced, which isn't necessarily a > bad thing ;-) Yes, it really needs it. My XML-RPC uploading i

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
Itamar Shtull-Trauring wrote: > > Chris Withers wrote: > > > PS: The XML-RPC stuff could just be given the nwe view permission for > > objectIds, if it REALLY needs it... although this would mean the > > docstrings thing would have to eb replaced, which isn't necessarily a > > bad thing ;-) > >

RE: [Zope-dev] Zope and SMP

2000-05-18 Thread Jens Vagelpohl
hi thilo, the scaling problem comes from the overhead of switching python threads when they run on 2 CPUs. one strategy, if your OS allowed it, would be to force the python process onto a single CPU. sunOS/solaris allows you to do so if i remember right. you're a little luckier if you actually r

Re: [Zope-dev] ZServer Ftp Active mode through firewall

2000-05-18 Thread Shane Hathaway
Kent, If possible, I'd like you to check whether the FTP server is trying to make the connection from a port other than 20. Then try out a different FTP server that is working through the firewall (on active mode connections) and see if it connects from port 20. If so, we have found the problem

[Zope-dev] Re: Strange ZClass permissions problem with 2.2a1

2000-05-18 Thread Tres Seaver
"Dr. Ross Lazarus" wrote: > > I'm testing 2.2a1. > I have some ZClasses which work fine in 2.1.6. I copied my Data.fs to > the new 2.2a1 install. > As a non-superuser I have taken ownership of the top level of the > site. When I try to access a zclass instance which uses manage_tabs > in it's > i

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Tres Seaver
Chris Withers <[EMAIL PROTECTED]> opined: > > Brian Lloyd wrote: > > [snip] > > > > Won't this break Amos' XML-RPC-based editor and similar hacks? > > > > Waaa probably. Ok, so I've _provisionally_ changed this in > > the current CVS. I feel a to-the-death-cage-match coming on. > > Horse b

Re: [Zope-dev] DCOracle Problem on HPUX

2000-05-18 Thread Matthew T. Kromer
Mark Postal wrote: > > I'm running HPUX 10.20 and Oracle 8.0.3. My goal is to use ZOracleDA, > but first I must get DCOracle working. DCOracle compiles OK and I > am able to connect to the database when executing from the command line. > My test script is attached for reference. > > My problem

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
Tres Seaver wrote: > > > Taking HTTP alone, for simplicity of expression; I suppose what I'm > > asking for is that there are two HTTP servers for one Zope instance. > > The one on port 80 (for example) only responds to those URLs that are > > for public viewing. The one on port 8081 (for example

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Phillip J. Eby
At 12:13 PM 5/18/00 +0100, Steve Alexander wrote: > >It occurs to me that there are two distinct "views" of the Zope tree. > > 1. The developer's / content manager's view > > 2. The end-user's view > Unfortunately, it's not just black-and-white, it's lots of shades of grey in between. Management

Re: [Zope-dev] a simple example of the ZPatterns frame work

2000-05-18 Thread Phillip J. Eby
At 12:53 PM 5/18/00 +0400, Jephte CLAIN wrote: > > >"Phillip J. Eby" a écrit : >> >> When created, Racks create some default Attribute and Sheet providers. >> These objects are used by Rackmountables to access data which is not stored >> directly in the rackmountable. > >Indeed, attribute and she

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Martijn Faassen
Brian Lloyd wrote: > I don't have a good answer for you, though I tend to agree with > you that some things just don't want to be accessed outside of > some larger context. I'd like to hear some different viewpoints > on how people think something like this should work... What the difference s

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Martijn Faassen
Ty Sarna wrote: > Can't you just turn off 'Access contents information' permission or > whatever it is on a folder if you don't want people to call > those things trough the web? Hm, but wouldn't that break a lot of code? You need Access contents information if you're going to do something like a

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Martijn Faassen
Brian Lloyd wrote: > Yes you could, except that you would also make them inaccessible > from DTML (or from anywhere else) for the same class of users. > > Is it really acceptable that in order to use > on a page that needs to be accessible to anonymous users that I > must grant 'Access content

Re: [Zope-dev] DCOracle and floats (was: DCOracle Problem on HPUX)

2000-05-18 Thread R. David Murray
On Thu, 18 May 2000, Matthew T. Kromer wrote: > However, if that's not the case, maybe a recent checkout of the DCOracle > CVS will help; I have made no announcement because the ONLY platform > I've tested on is Linux with Oracle 8.0.5 and 8.1.5; Oracle is variant > enough that this doesn't repres

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Chris Withers
Martijn Faassen wrote: > So you have something like: [snip] > Of course this sounds like it could get unwieldy, unless there was > some clear user interface. This would be unwieldy, I prefer the suggestion I made (obviously ;-) which gets around this... > > From the point of view of an xml-rpc

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Martijn Faassen
Chris Withers wrote: > The solution I proposed before is simple (maybe not to implement ;-) and > I think solves all the problems: > > Split the current 'view' permission into two new permissions: > 1. View - allow users to directly access an object through > HTTP/FTP/XML-RPC/etc > 2. Execute - a

Re: [Zope-dev] DCOracle and floats (was: DCOracle Problem on HPUX)

2000-05-18 Thread R. David Murray
On Thu, 18 May 2000, Matthew T. Kromer wrote: > Yes, this is in the CVS version; Chris Petrilli will probably make an > announcment & a release soon. The behavior is such that NUMBER with > neither scale nor precision is a float. Great! Thanks for the info. From your last sentence I'm wonderin

[Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Heine Gregor
Zopistas! I want to write an Product that mirrors every ZODB-Transaction to a Backup-Server. The idea was to trap every transaction (i.e. creation, change, deletion of zope-objects) and transfer a copy of the object to another server (via XML-RPC?!?) after the transaction got commited. I've been

Re: [Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Chris McDonough
Heine, You'll want to take a look at lib/python/ZODB/FileStorage, lib/python/ZODB/DemoStorage, and lib/python/ZODB/MappingStorage for ideas. You may also want to take a look at the ZODB Wiki at http://www.zope.org/Members/jim/ZODB Heine Gregor wrote: > > Zopistas! > > I want to write an Pro

Re: [Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Shane Hathaway
Heine Gregor wrote: > I want to write an Product that mirrors every ZODB-Transaction to a > Backup-Server. > The idea was to trap every transaction (i.e. creation, change, deletion of > zope-objects) and transfer a copy of the object to another server (via > XML-RPC?!?) after the transaction got c

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
Martijn Faassen wrote: > > Brian Lloyd wrote: > > Yes you could, except that you would also make them inaccessible > > from DTML (or from anywhere else) for the same class of users. > > > > Is it really acceptable that in order to use > > on a page that needs to be accessible to anonymous users

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Chris Withers
Martijn Faassen wrote: > Various things. What you'd need is turn off 'view' permission by > default for just about *everything* except possibly DTML Documents, > otherwise it's just too easy to set up a site that exposes too > much. Exposure to URLs should be turned off by default. Well, this is

Re: [Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: > Data.fs is essentially a log file that is appended with binary data. > The only time the data is changed rather than appended is when you pack > the database. Therefore, it may be easier to write a script that > catches the data that is appended and appends it to the back

Re: [Zope-dev] DCOracle and floats (was: DCOracle Problem on HPUX)

2000-05-18 Thread Matthew T. Kromer
"R. David Murray" wrote: > > On Thu, 18 May 2000, Matthew T. Kromer wrote: > > However, if that's not the case, maybe a recent checkout of the DCOracle > > CVS will help; I have made no announcement because the ONLY platform > > I've tested on is Linux with Oracle 8.0.5 and 8.1.5; Oracle is varia

Re: [Zope-dev] Zope and SMP

2000-05-18 Thread Jason Spisak
Thilo Mezger: > hi! > Howdy. > yesterday, i have test-driven zope on a dual-pentium smp-machine > running linux 2.2 and i was very disappointed by the results. > the zserver threads are running on both cpu's but it seems to > scale really, really badly. i have only done some very cheap > bench

[Zope-dev] zope + apache + webdav

2000-05-18 Thread Steve Giraud
Hello, I've got a zope who turn on my apache server, and i want use webdav. I have already apply the patch to mod_cgi (thanks greg) but my problem is not resolv. Is anybody know how to change the httpd.conf to use webdav protocol to work with zope through apache ? Stev

Re: [Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Heine Gregor
> > I want to write an Product that mirrors every ZODB-Transaction to a > > Backup-Server. > > The idea was to trap every transaction (i.e. creation, change, deletion > of > > zope-objects) and transfer a copy of the object to another server (via > > XML-RPC?!?) after the transaction got commited.

Re: [Zope-dev] DCOracle and floats (was: DCOracle Problem on HPUX)

2000-05-18 Thread Matthew T. Kromer
"R. David Murray" wrote: > > On Thu, 18 May 2000, Matthew T. Kromer wrote: > > Yes, this is in the CVS version; Chris Petrilli will probably make an > > announcment & a release soon. The behavior is such that NUMBER with > > neither scale nor precision is a float. > > Great! Thanks for the inf

Re: [Zope-dev] Distributed ZODB-Transactions

2000-05-18 Thread Chris McDonough
Well, that sort of makes sense. The containing object is the object that needs to be updated to rid itself of the reference to the contained object. I'm not sure I understand the problem. The object to be updated *is* the container. > My problem is the first step: how does the client r

Re: [Zope-dev] ZCatalog and Umlaut Problems

2000-05-18 Thread mindlace
Alexander Schad wrote: > > Hi Folks! > > I experienced some problems using Umlauts (ä,ö,ü,ß) in ZCatalog. The > problems seems to be that the umlauts get html_quoted when indexed i.e. > u-umlaut becomes ü but when i search for an umlaut they get > url_quoted u-umlaut becomes %FC and though the e

Re: [Zope-dev] 2.2.0a1 Problems

2000-05-18 Thread Gregor Hoffleit
On Wed, May 17, 2000 at 03:28:58PM -0400, Brian Lloyd wrote: > > - start.bat still hasn't been renamed. It's not that bright since > > windows has had a start command for ages now... typing start.bat tries > > to 'start' something called .bat. doh... > > The only way to get it to work is > > "sta

Re: [Zope-dev] ZServer Ftp Active mode through firewall

2000-05-18 Thread Kent Polk
On 18 May 2000 08:45:02 -0500, Shane Hathaway wrote: >Kent, > >If possible, I'd like you to check whether the FTP server is trying to >make the connection from a port other than 20. Then try out a Ahhh! figured it out... 1) ZServer passive mode appears correct. 2) ZServer active mode responds o

Re: [Zope-dev] ZServer Ftp Active mode through firewall

2000-05-18 Thread Shane Hathaway
Kent Polk wrote: > If we could simply solve this problem by replacing our active ftp > clients with passive ones, it would be great, but it still doesn't > solve the problem of clients *elsewhere* which are running behind > a firewall and attempting to contact our server... One possible way to so

[Zope-dev] Fixed reply Re: [Zope-dev] Trouble setting LoginManager default user class

2000-05-18 Thread Dan L. Pierson
Oops, my reply of yesterday was missing the actual error I get using manage_setStorage. It's an AttributeError for aq_acquire! I can't see how I could be getting this since PersistentUserSource singly inherits from BasicUserSource which inherits from Rack. What happened to my aq_acquire? Does

[Zope-dev] updated Wikki with __call__ issue

2000-05-18 Thread Chimezie Thomas-Ogbuji
I added another note on the Wikki regarding the XSLTMethod __call__ issue, more information on the ZPublisher is neccessesary for any progress. Is there any good documentation on the subject? Here is the link to the issue: http://216.164.72.7:7780/Wiki/Members/jim/ZDOM/Issue%20with%20__call__%20a

Re: [Zope-dev] ZODB now supports user-defined __get/set/delattr__ methods

2000-05-18 Thread Phillip J. Eby
FYI, I have found a problem with the setattr/delattr implementation. I'm not sure it's technically a bug, but if I understand the code correctly, setting or deleting a non _v_ attribute on a cPersistent will always cause the object to be marked changed, regardless of what the Python-level __set/d

[Zope-dev] Re: Fixed reply Re: [Zope-dev] Trouble setting LoginManagerdefault user class default user class

2000-05-18 Thread Phillip J. Eby
At 01:49 PM 5/18/00 -0400, Dan L. Pierson wrote: >Oops, my reply of yesterday was missing the actual error I get using >manage_setStorage. It's an AttributeError for aq_acquire! I can't >see how I could be getting this since PersistentUserSource singly >inherits from BasicUserSource which inheri

Re: [Zope-dev] a simple example of the ZPatterns frame work

2000-05-18 Thread Jephte CLAIN
"Phillip J. Eby" wrote: > >The AttributeProvider (that my rack have by default) raise an exception > >in MyItem.__init__ because i and s do not exist (indeed, I want to > >create them in the instance!) > > Could you give the traceback? I think it is more likely your __init__ is > failing beca

[Zope-dev] Re: Fixed reply Re: [Zope-dev] Trouble setting LoginManagerdefault user class default user class

2000-05-18 Thread Dan L. Pierson
Phillip J. Eby writes: > Um, no. You've found a bug in PlugInGroup.objectValues(). :( It doesn't > wrap the returned objects in the context of the PlugInContainer > (LoginManager in this case). As a workaround, you can say > us.__of__(self.acl_users).manage_setStorage(). Sorry; I'm fixing

Re: [Zope-dev] ZServer Ftp Active mode through firewall

2000-05-18 Thread Kent Polk
Shane Hathaway wrote: > Kent Polk wrote: > > If we could simply solve this problem by replacing our active ftp > > clients with passive ones, it would be great, but it still doesn't > > solve the problem of clients *elsewhere* which are running behind > > a firewall and attempting to contact our s

Re: [Zope-dev] Re: Fixed reply Re: [Zope-dev] Trouble setting LoginManager default user class default user class

2000-05-18 Thread Phillip J. Eby
At 04:04 PM 5/18/00 -0400, Dan L. Pierson wrote: > >The portal now gets created, but I can't login to the initial account. >I also can't display the members roster by clicking on Members >(AttributeError for getUsers), but can write a DTML method in the >UserSource that lists all one user. The co

[Zope-dev] Adding ZCatalog index programatically

2000-05-18 Thread R. David Murray
I was just looking at the ZCatalog code to figure out how to programatically add an index to a Catalog. I figured out how to do that fairly easily, but the code I was looking at has me a bit mystified. The method manage_addIndex is defined. The form that you use through the management interface

Re: [Zope-dev] Adding ZCatalog index programatically

2000-05-18 Thread Chris McDonough
How about: yourcatalog._catalog.addIndex(id, 'FieldIndex') replace FieldIndex with TextIndex or KeywordIndex as desired. "R. David Murray" wrote: > > I was just looking at the ZCatalog code to figure out how to programatically > add an index to a Catalog. I figured out how to do that fairly

[Zope-dev] How does the submit magic work in, eg, ZCatalog manage_addIndex?

2000-05-18 Thread R. David Murray
On Thu, 18 May 2000, Chris McDonough wrote: > yourcatalog._catalog.addIndex(id, 'FieldIndex') Sorry, I started that email when I was about to ask the question you answered, then figured it out myself and changed the email body to ask a new question, but forgot to change the email subject . > "R

[Zope-dev] Double-aborting of objects registered w/transactions, andrelated weirdness related weirdness

2000-05-18 Thread Phillip J. Eby
[reported to Collector; posted as FYI] Under certain circumstances, Zope transaction objects will have their abort() method called more than once for the same transaction, which leads to jar.abort() operations being called twice. This occurs any time that the zpublisher_exception_hook reraises t

Re: [Zope-dev] Re: Fixed reply Re: [Zope-dev] Trouble setting LoginManager default user class default user class

2000-05-18 Thread Dan L. Pierson
Phillip J. Eby writes: > At 04:04 PM 5/18/00 -0400, Dan L. Pierson wrote: > > > >The portal now gets created, but I can't login to the initial account. > >I also can't display the members roster by clicking on Members > >(AttributeError for getUsers), but can write a DTML method in the > >Us

[Zope-dev] Displaying Excel Workbooks on a Zope site

2000-05-18 Thread Adam Ratcliffe
I am using a Zope site as a repository for documentation on a business application that I'm involved in supporting. Site content presently includes a mixture of HTML pages and MS Word and Excel documents. The site uses a frameset to contain a DTML-Tree based navigation structure in the left fram

[Zope-dev] Re: Strange ZClass permissions problem with 2.2a1

2000-05-18 Thread Dr. Ross Lazarus
Yep, trying to access a newly instantiated empty zclass instance produces the same error. Looks like a bug. Email me if you want an exported version of my zclass to poke and prod at... Tres Seaver wrote: > Does the problem repeat in the "vanilla" version if you just create a > new instance of

[Zope-dev] Re: Strange ZClass permissions problem with 2.2a1

2000-05-18 Thread Tres Seaver
On Fri, 19 May 2000, Dr. Ross Lazarus wrote: > Yep, trying to access a newly instantiated empty zclass instance > produces the same error. > > Looks like a bug. Email me if you want an exported version of my zclass > to poke and prod at... Evan Simpson remarked to me as I walked in this mornin

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Toby Dickenson
On Thu, 18 May 2000 16:55:37 +0200, Martijn Faassen <[EMAIL PROTECTED]> wrote: >Brian Lloyd wrote: >> Yes you could, except that you would also make them inaccessible >> from DTML (or from anywhere else) for the same class of users. >> >> Is it really acceptable that in order to use >> on a pa

Re: [Zope-dev] What causes the failure

2000-05-18 Thread Robin Becker
The latest CVS doesn't seem to like tiny tables. Anybody got similar problems? Seems rather a brutal kind of error to say the super user can't own any objects. Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotO

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Martijn Faassen
Tres Seaver wrote: > I don't get the issue here, I guess; either anonymous users can view > objectIds (through the web, through XML-RPC, whatever), or they can't > (because you don't want them to have the information that a given > object is there, I guess?) Perhaps you just don't want to expose