[Zope] External Method not accepting CGI module

2000-07-10 Thread Kelvin Cheong
Dear All, I have this python module for uploading an image from a client to the server (which would be subsequently inserted into a MySQL database, which is still on the midst of being resolved). I''m trying to import this into Zope as an External MEthod. It's contents are as follows :

Re: [Zope] DTMLDocument content - html quoted or not

2000-07-10 Thread Michael Gutmann
Aleksander Salwa schrieb am Fre, 07 Jul 2000: ... In mentioned method, to render document, I wrote: dtml-var this But this outputs html quoted text (so I see HTML and DTML tags in browser, instead of formatting and variables). Hmm, looks like a problem I had a few days ago. Maybe

RE: [Zope] Trouble compiling ZMySQLDA

2000-07-10 Thread Peter Marriott
Thanks for the help Ron. This almost works for me. I now have the product in zopes control panel, but it is broken. (see traceback below) Is this because my MySQL-Python RPM from your mail is not intalling properly ? Thanks Peter ZMySQLDA Import Traceback Traceback (innermost last): File

RE: [Zope] Trouble compiling ZMySQLDA

2000-07-10 Thread Peter Marriott
Seems that because of how my Zope was installed had problems... I copied all files from /usr/lib/python1.5/site-packages/ to /usr/local/zope/lib/python/Products/ZmySQLDA and all was sweet. Thanks for your help Ron! Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[Zope] just html, help, help, help !!!

2000-07-10 Thread Vincent Maton
Hello, Can you help me ??? I have one page with a "form", in this page I have an "OnClick" who open a new page who have some informations and when I "Submit" (I think that I must use a form also in this page to send the informations to the first page), I want to receive the informations on the

Re: [Zope] Newbie questions: Job_board Howto, ZCatalog, Squishdot

2000-07-10 Thread Chris Withers
Meeting Maker Webmaster wrote: One last question ;-) I've seen in this mailing list that Squishdot will not work with Zope 2.2.0 until version 0.4.4... when is this version planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get the same problem as with my "Job_Board"

[Zope] Date-bug in properties?

2000-07-10 Thread Peter Arvidsson
When I try to add a date-property and want to leave the Value-field empty i get the following error: Error Type: Invalid Date-Time String Error Value: When I write a date in the Value-field I can add the date. Is this a bug? Why cant I add a date with no default value? In several howtos they

Re: [Zope] Date-bug in properties?

2000-07-10 Thread Peter Arvidsson
Ah I saw that was a known bug. Forget this post :) Peter Arvidsson skrev: When I try to add a date-property and want to leave the Value-field empty i get the following error: Error Type: Invalid Date-Time String Error Value: When I write a date in the Value-field I can add the date. Is

[Zope] Rendering Folderish ZClass Object

2000-07-10 Thread Chris Withers
Hi, I have a ZClass based on Folder. Contained within this is a DTML Method, index_html. This is mapped to the 'View' view and renders the appropriate object contained in itself depending on soem logic. All, is well if I access the object through a URL, the page is rendered as expected.

[Zope] How to set Proxy-Roles

2000-07-10 Thread Robert Wohlfahrt
Hi, i have a DTML-Method that adds a subfolder to a folder. I want to give anonymous users the permission, to add a Folder by using this DTML-Method. I added the Proxy-Role "Manager" to this DTML-Method, but anonymous users still can't use it - everytime they get a "You are not authorized to

RE: [Zope] HEELLPP - Please !!!

2000-07-10 Thread Andy Dawkins
Try using an argument other than 'login' Change it to something else because login could easily be a reserved keyword. To test this simply change it to xlogin or something similar. Let me know if that helps. -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On

Re: [Zope] Trouble compiling ZMySQLDA

2000-07-10 Thread Ewald Wasscher
Ron Bickers wrote: Actually, I just realized that what you're trying to compile is the MySQLdb that comes with the DA. The DA itself is written in Python, and doesn't need to be compiled. Aargh, if I had know this yesterday! Thanks. Also it was a little late yesterday when I started

[Zope] Wizards?

2000-07-10 Thread Peter Arvidsson
I am trying to create wizards but as usual I am running into problems.. To forward input to the next step I learned in the howto "Wizards made easy" that this was the way to do it: dtml-in "REQUEST.form.items()" input type="hidden" name="dtml-var sequence-key" value="dtml-var sequence-item"

[Zope] a product with external methods

2000-07-10 Thread Jerome Alet
Hi, 1st question: I'm currently creating a ZClass based product which includes some external methods. If I want to distribute this product, do I have to distribute my product AND my external methods for it to work correctly elsewhere, or just distributing the product is sufficient ? 2nd

Re: [Zope] GUF Problem

2000-07-10 Thread Cesar A. K. Grossmann
Richard Moon wrote: I don't think GUF works in its current release, or maybe the set-up instructions are incomplete. I used it before and it was ok but I tried the latest release and had the same problem as you. I reported it to GUF's author but didn't get a reply. I just added a SQL user

[Zope] [Fwd: [Zope] GUF Problem]

2000-07-10 Thread Cesar A. K. Grossmann
One reply I get from Mario: Mario Premke wrote: I remember I had the same problem. In GUF's acl_user folder I gave the special_role the same permissions as the anonymus role. As far as I remember that did it ... -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/

RE: [Zope] Newbie alert! Frustration right off the bat...

2000-07-10 Thread Pam Crosby
Create your own image file. Use anything you would like. -- Pamela Crosby Technical Writer mailto:[EMAIL PROTECTED] Digital Creations http://www.digicool.com Publishers of Zope http://www.zope.com -Original

[Zope] GUF Authentication Problems

2000-07-10 Thread Mario Premke
Hi, I cannot authenticate users with the following method: dtml-in "sql_get_password(xlogin=username)" dtml-if "password==_['sequence-item'].real_password" dtml-return "_.int('1')" /dtml-if /dtml-in dtml-return "_.int('0')" The ZSQL-Method works as well as the

Re: [Zope] Newbie: Build Object Names

2000-07-10 Thread Terry Babbey
Dieter, Thanks, that worked like a charm. I find I am really struggling trying to learn the syntax and variables for the various commands. Would an understanding of Python help me to understand the Zope commands better and is there good documentation for Python that does not expect the reader to

[Zope] Help with ZPoPyDA

2000-07-10 Thread Nitesh Dhanjani
Hello, Im trying to access a postres database from within zope. I have ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. The connection string Im using is something like: user=thierry host=myhost dbname=test port=5432 password=mypassword When I try to add a Z PoPy Database Connection with the

Re: [Zope] data record exceeds transaction record (was C:\ProgramFiles\WebSite...)

2000-07-10 Thread R. David Murray
On Fri, 7 Jul 2000, Jonathan DESP wrote: I'm getting a problem, I don't understand what it is, my friend and me didnot find the problem too. [] data record exceeds transaction record at 34224435 This may not be of any help, but I got this kind of error when I was trying to build a Zope

[Zope] Testing For Filesize

2000-07-10 Thread Terry Babbey
I am trying to create a automated drop down list, and here is my code so far: form NAME="BOOGER" SELECT name="myList" dtml-in "objectValues(['DTML Document'])" OPTION value='dtml-var id'dtml-var title/OPTION /dtml-in /SELECT /form I would like to be more specific though and only list files of

Re: [Zope] MySQLDA Won't build

2000-07-10 Thread Gregory Haley
Hi, I'm not sure if you are having the same problem, but when we built MySQLDA, I found that there are some lines in one of the configure files that need to be fixed. Did you save the compile log? (Sorry, but I cannot recall the exact file that has the problems), but there are three places

Re: [Zope] GUF Problem

2000-07-10 Thread Richard Moon
At 17:15 10/07/00 +0200, you wrote: Is it possible (and how) to use the standard ACL with a user-database behind it ??? Thanks Mario Well kind of, in the sense that you can check the user login using ACL in the normal way and then you can match AUTHENTICATED_USER against your user database so

RE: [Zope] Trouble compiling ZMySQLDA

2000-07-10 Thread Eric L. Walstad
Hello Ewald, Here's a mailing list archive that may help you: http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a b003585d4/041159ede9899734802568a700259726?OpenDocument It helped me with the same problem. Basically, It tells you how to make a few simple modifications

Re: [Zope] Help with ZPoPyDA

2000-07-10 Thread Sebastien Douche
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432

[Zope] automatic link adjustment

2000-07-10 Thread Ragnar Beer
Howdy Zopistas out there! I just ran into some kind of administrative problem: my students are not so willing anymore when it comes to changing links for the third revision of our website. There are about 200 links to change manually and they have my full sympathy. Apart from that this

[Zope] Mirroring to IIS

2000-07-10 Thread Jake LeBeau
Hello all, I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am having problems with Netscape Navigator. Because the files have no file extension, Netscape keeps trying to download and save the files to disk, rather than displaying the content as HTML. I've tried several

[Zope] ANNOUNCE: Zope 2.2.0 beta 4 released

2000-07-10 Thread Brian Lloyd
Hi all, Zope 2.2.0 beta 4 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.0b4/ This release includes fixes for a number of bugs found in the beta cycle, including a fix for the recent database packing issue. It also contains updated online help

Re: [Zope] automatic link adjustment

2000-07-10 Thread Maik Roeder
Hi Ragnar ! Ragnar Beer wrote: I just ran into some kind of administrative problem: my students are not so willing anymore when it comes to changing links for the third revision of our website. There are about 200 links to change manually and they have my full sympathy. Apart from that this

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Maik Roeder
Hi Jake ! Jake LeBeau wrote: I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am having problems with Netscape Navigator. Because the files have no file extension, Netscape keeps trying to download and save the files to disk, rather than displaying the content as HTML.

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
I did a similar thing and when I mirrored it to IIS as static files I changed the filename by adding .html You can fix the header to always add the correct content type (RESPONSE.setHeader('Content-Type', 'text/html')) - Original Message - From: "Jake LeBeau" [EMAIL PROTECTED] To:

Re: [Zope] Help with ZPoPyDA

2000-07-10 Thread Nitesh Dhanjani
On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: #

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
Oops of course you are mirroring to a static file that setting a header will do no good. Damn need more tea to wake me up. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 10, 2000 11:40 AM Subject: Re: [Zope] Mirroring to IIS I did a

Re: [Zope] Help with ZPoPyDA

2000-07-10 Thread jpenny
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along

[Zope] Document Title

2000-07-10 Thread Terry Babbey
I am trying to get a document title to print out and am having problems. As part of my web page I would like to display the title of a document, and the document id is stored in a variable. But Zope is interpretting the information in the variable as a string and not as a document id. Any

Re: [Zope] Document Title

2000-07-10 Thread ethan mindlace fremen
Terry Babbey wrote: I am trying to get a document title to print out and am having problems. As part of my web page I would like to display the title of a document, and the document id is stored in a variable. But Zope is interpretting the information in the variable as a string and not

[Zope] Re: low level HTML in Zope

2000-07-10 Thread Anser
"Henny van der Linde" [EMAIL PROTECTED] wrote: ...Zope forces you often to go to nitty gritty details of HTML programming. I think that's a good thing (for me). GUI tools tend to make you very lazy and often produce horrible HTML (for example Frontpage). Today's best WYSIWYG editors produce

Re: [Zope] product import error - please help

2000-07-10 Thread ethan mindlace fremen
Eagan hills wrote: All, I am working on a new installation of Zope under Red Hat 6.3. When trying to import any product (Portal Toolkit, Squishdot, KM news etc.), I get an error - internal server error (500). It seems as if the page isnt there. There is an import directory under the Zope

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Jake LeBeau
LOL Good catch, I was just about to e-mail more questions ;-) I've been banging my head on it for most of the day, and I think what it comes down to is - why does netscape have no problem displaying pages from ZServer that have no file extension, and yet try to save all files from IIS that

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Jake LeBeau
Hi Maik, I've been trying to use the ZMirror product and wget with varying degrees of success. See my response to Andy McKay for a description of where I am now. Of course, if I was a real Zopista, instead of a newbie, I would rewrite the ZMirror product to assign file extensions to its

Re: [Zope] FSSession used in Python???

2000-07-10 Thread Pavlos Christoforou
On Fri, 7 Jul 2000, Dan Narkiewicz wrote: inside my own python written Zope product... Any help would be.. well... helpful.. I am not sure if it is a good idea to use a Product in the manner you describe but in any case: --- a class definition --- def FStest(self):

[Zope] Customising the calling of the _add method for a product

2000-07-10 Thread icottee
I have a TimeSheet product which is currently utilising the suggestions from one of the howtos on zope.org, to make the handling of errors a little smarter. Subsequently my addForm code checks to see if any errors were detected and, if not, tries to go to the usual _add method. But this fails.

Re: [Zope] Re: low level HTML in Zope

2000-07-10 Thread Gregory Haley
Hi folks, I wholeheartedly agree that one should learn handcoded html, if only in order to be able to clean up what the html editors do that you want to customize. I have found that it is possible to write very complex files with code warrior or dreamweaver. From the zope interface, you can

[Zope] DTML?

2000-07-10 Thread Chris Withers
Brian Lloyd wrote: snip id is sometimes a method (not always though ;-) This is one of the things on my List Of Evil Things that should be changed one day in Zope3K :) RANT type="angry,frustrated" How about the nasty hacky mess that is DTML? Some priceless artifacts that need to go:

Re: [Zope] DTML?

2000-07-10 Thread Shane Hathaway
Chris Withers wrote: Okay, seriously, DTML is really hurting Zope's chances with a lot of people/companies. DTML should be easier than, say, creating a Form in Lotus Notes or writing a component in Mason. That requries, IMHO: 1. Clear definition of when it should be used. 2. A clean, concise

Re: [Zope] C:\Program Files\WebSiteC:\Program Files\WebSite\bin\python.exe

2000-07-10 Thread Dieter Maurer
Jonathan DESP writes: I'm getting a problem, I don't understand what it is, my friend and me didnot find the problem too. raise CorruptedTransactionError, message ZODB.FileStorage.CorruptedTransactionError: C:\Program Files\WebSite/var/Data.fs data record exceeds

Re: [Zope] DTML?

2000-07-10 Thread Christian Scholz
Hi! Brian Lloyd wrote: snip id is sometimes a method (not always though ;-) This is one of the things on my List Of Evil Things that should be changed one day in Zope3K :) RANT type="angry,frustrated" How about the nasty hacky mess that is DTML? Some priceless artifacts that need

Re: [Zope] ZWiki/Structured Text formatting surprise

2000-07-10 Thread Chris Withers
Jim Fulton wrote: I suggest that, since this appeared in a code snippit to begin with, it should have been written as: blah blah '(_.None,_,foo)' blah blah I don't format my code like that ;-) Note that the StructuredText underlining feature is widely considered a missfeature and

Re: [Zope] Help with ZPoPyDA

2000-07-10 Thread Nitesh Dhanjani
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from

Re: [Zope] DTML?

2000-07-10 Thread Chris Withers
Shane Hathaway wrote: The idea of making an XML compliant DTML has been tossed around before. It would remove the difference between dtml-var x and dtml-var "x", since XML allows neither syntax. :-) I'm not too hot on XML compliancy, but if it makes the problems I mentioned go away, then

Re: [Zope] Help with ZPoPyDA

2000-07-10 Thread jpenny
On Mon, Jul 10, 2000 at 05:39:27PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500,

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
:) I actually rewrote a *ahem* Perl script to do it. - Original Message - From: "Jake LeBeau" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 10, 2000 1:45 PM Subject: Re: [Zope] Mirroring to IIS Hi Maik, I've been trying to use the ZMirror product and wget with varying

[Zope] SV: [Zope] Document Title

2000-07-10 Thread peter be
You must be thinking of this: dtml-var "index_html.title" - Original Message - From: Terry Babbey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 10, 2000 9:04 PM Subject: [Zope] Document Title I am trying to get a document title to print out and am having problems. As

Re: [Zope] DTML?

2000-07-10 Thread R. David Murray
On Mon, 10 Jul 2000, Chris Withers wrote: (Who just spent 1/2 hour figuring out how to do a multi-language site in Zope, and now after 6hrs of trying has given up doing a recursive tree copy to get the old site into the new structure with a DTML method or two and is resorting to ugly hacky

RE: [Zope] Adding comments to documents like in ACS ...

2000-07-10 Thread Chris McDonough
This is something I've wanted to see for a long time too. The Portal Toolkit (http://www.zope.org/Products/PTK) evidently has a "discussable" mixin class that allows users to add comments to documents. You may want to check it out. This feature should probably be abstracted out of the portal

[Zope] MessageDialog

2000-07-10 Thread Andy McKay
The MessageDialog is cool, but a little sparse, has anyone tried overriding it with their own or fiddling with it? Im looking at including standard header and footer in it and not gotten very far. Thanks. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming

[Zope] exceptions.ImportError

2000-07-10 Thread Jonathan Desp
Title: Blank Hi, I read all the past message in your mailing lists with the keyword:exceptions.ImportError in. I'm getting that problem:exceptions.ImportError Anyone is able to help me ? You know a way to fix it ? a patch or something ? Just email me at mailto:[EMAIL PROTECTED]

[Zope] trailing whitespace optimization

2000-07-10 Thread Paul Abrams
I'm noticing that our file sizes could be reduced by 10% or more by trimming trailing whitespace. Is there a way to get Zope to do that automatically? It would be best if Zope did it whenever a method was saved. Thanks in advance, -Paul __ Do You

Re: [Zope] trailing whitespace optimization

2000-07-10 Thread Curtis Maloney
On Tue, 11 Jul 2000, Paul Abrams wrote: I'm noticing that our file sizes could be reduced by 10% or more by trimming trailing whitespace. Is there a way to get Zope to do that automatically? It would be best if Zope did it whenever a method was saved. Agreed. I have found that reformatting

Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: I have a list: mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] I want to rebuild the list sorted from high to low on the sequence-item. When i call dtml-in mylist sort=sequence-item reverse the list gets sorted on the sequence-key not the

[Zope-dev] Python (File) Product Permission Handeling

2000-07-10 Thread Stephan Richter
Hello everyone, I am writing my own Python Product and it is going well so far, except that some of the default permissions will not transfer. I have an ObjectManager object that contains another ObjectManager-based object. The first inherits the permissions of Zope just fine, but in the

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-10 Thread Toby Dickenson
On Wed, 05 Jul 2000 19:42:38 +0300, Itamar Shtull-Trauring [EMAIL PROTECTED] wrote: Shane Hathaway wrote: The place where this is needed most (IMHO) is for ZClass factories. So there needs to be a way to create meta type filters through the Web. Yes, but in Python products too, where you

[Zope-dev] _delObject Method

2000-07-10 Thread Heine, Gregor
Hello! Can anybody tell me, what the 'dp=1' attribute in the _delObject methods of the ObjectManager (OFS/ObjectManager.py) and ZClassMethodsSheet (ZClasses/Method.py) Class are for? I haven't found any method call, where dp is set and the methods themselves don't use it aswell. I would like to

RE: [Zope-dev] _delObject Method

2000-07-10 Thread Brian Lloyd
Can anybody tell me, what the 'dp=1' attribute in the _delObject methods of the ObjectManager (OFS/ObjectManager.py) and ZClassMethodsSheet (ZClasses/Method.py) Class are for? I haven't found any method call, where dp is set and the methods themselves don't use it aswell. I would like

[Zope-dev] Overriding a method in an instance.

2000-07-10 Thread Chris Withers
Hi, I guess this should be a feature request for the collector but I thought I'd see what other people thought first... I'd really like to be able to override methods in an instance of an object. Examples I can think of are Squishdot and the Tracker. In Squishdot, or any ZCatalog for that

Re: [Zope-dev] Overriding a method in an instance.

2000-07-10 Thread Chris Withers
Monty Taylor wrote: Make a folder that contains the overridden methods and call things through the context of that folder. Neat trick :-) We love acquisiton, but it won't quite do it :( The default index_html will get called, unless you put /folder/ on the end of your URL. which is horrible :(

[Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Hi, I'm trying to do a tree walk and copy with: dtml-in objectValues dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Created dtml-var id in dtml-var "REQUEST['where'][-1].id"BR dtml-if "meta_type=='Folder'" dtml-call "REQUEST['where'].append(this())" dtml-var iterate dtml-call

Re: [Zope-dev] Overriding a method in an instance.

2000-07-10 Thread Shane Hathaway
Chris Withers wrote: Monty Taylor wrote: Make a folder that contains the overridden methods and call things through the context of that folder. Neat trick :-) We love acquisiton, but it won't quite do it :( The default index_html will get called, unless you put /folder/ on the end of

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Evan Simpson
From: Chris Withers [EMAIL PROTECTED] dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Error Type: TypeError Error Value: read-only character buffer, Python Method Looks like the 'id' of something along the line is a method rather than a string. Try "_.getitem('id', 1)". Cheers,

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Evan, Thanks, that worked... Evan Simpson wrote: From: Chris Withers [EMAIL PROTECTED] dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Error Type: TypeError Error Value: read-only character buffer, Python Method Looks like the 'id' of something along the line is a method

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Chris Withers
Chris Withers wrote: Can someone please tell me why folder.id is a method and everything-else.id is a string? Sorry, that should be folder.id is a string and everything-else.id is a method. cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] More comments on ZPatterns

2000-07-10 Thread Phillip J. Eby
At 04:40 PM 7/9/00 -0500, Steve Spicklemire wrote: Wow.. alright. I think I need "ZPatterns for Dummies" or maybe there needs to be a disclaimer "ZPatterns are NOT for Dummies." ;-) I've pretty much given up on Sheets for now. Nothing I've tried has actually worked. I thought maybe I needed to

Re: [Zope-dev] More comments on ZPatterns

2000-07-10 Thread Phillip J. Eby
At 10:02 AM 7/10/00 -0400, Shane Hathaway wrote: Phillip, What if the management interface for specialists provided a way to manipulate, or at least view, the table of virtual objects (or, in ZPatterns-speak, DataSkins)? Wouldn't that make ZPatterns more accessible? Probably. The sticking

RE: [Zope-dev] Request for amplification on new Product permissions API.

2000-07-10 Thread R. David Murray
On Fri, 7 Jul 2000, Brian Lloyd wrote: Are you calling: Globals.default__class_init__(MyBasketClass) on your Basket class? This is (poorly documented but) necessary for permissions declared in __ac_permissions__ to be correctly initialized. Poorly? grin Only three classes seem to use

RE: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Brian Lloyd
Interesting commentary from the Interfaces Wiki: http://www.zope.org/Members/michel/Projects/Interfaces/ObjectM anagerItem """Some old objects provide id methods that return ids. This practice should be avoided for new objects. We can't change the old objects for backward compatability

Re: [Zope-dev] LoginManager patch considered harmful

2000-07-10 Thread Shane Hathaway
"Phillip J. Eby" wrote: At 09:22 AM 7/10/00 -0400, Shane Hathaway wrote: The new security machinery actually provides a different way to solve this problem. Since we now have an execution stack, we can limit that stack, causing an exception to be thrown rather than letting it overflow

[Zope-dev] Expanded access file (was Re: LoginManager patch consideredharmful) harmful)

2000-07-10 Thread Phillip J. Eby
At 03:07 PM 7/10/00 -0400, Shane Hathaway wrote: "Phillip J. Eby" wrote: Understood. I'll try to keep that use case in mind. Keep in mind, however, that being able to create a LoginManager is a pretty risky business in a portalish environment - you could potentially get access to

Re: [Zope-dev] More comments on ZPatterns

2000-07-10 Thread Phillip J. Eby
At 02:29 PM 7/10/00 -0400, Shane Hathaway wrote: I decided to try out this idea. It turned out to be a cinch! It doesn't restrict the manage_* methods yet; I'll get to that after I get some feedback. Thoroughly untested except on my box; use at your own risk, etc. :-)

[Zope-dev] Re: Expanded access file (was Re: LoginManager patchconsideredharmful)consideredharmful)

2000-07-10 Thread Shane Hathaway
Jim, Phillip has an idea that could make life simpler for Zope newbies. This would be intended for the next major Zope release. "Phillip J. Eby" wrote: Well, I'm hoping you'll take a look at my Collector suggestion for a new Zope feature. :) Specifically, extending the "access" file to

[Zope-dev] Re: Expanded access file (was Re: LoginManager patchconsideredharmful) consideredharmful)

2000-07-10 Thread Phillip J. Eby
FYI, I entered a Collector feature request for this over the weekend; I classified it as "somewhat important/future", IIRC. It mentions the "set up two accounts" concept you describe below, and I think there might be some other notes as well. At 05:07 PM 7/10/00 -0400, Shane Hathaway wrote:

Re: [Zope-dev] NASTY error. Why?

2000-07-10 Thread Dieter Maurer
Chris Withers writes: I'm trying to do a tree walk and copy with: dtml-in objectValues dtml-call "REQUEST['where'][-1].manage_addFolder(id)" Created dtml-var id in dtml-var "REQUEST['where'][-1].id"BR dtml-if "meta_type=='Folder'" dtml-call "REQUEST['where'].append(this())"

[Zope-dev] zope and UNIX permissions

2000-07-10 Thread Leonardo Kenji Shikida
Wetried to install zope using its tar.gz file and it created a lot of files with non-default users and with very permissive permissions on a linux box (like 777 permissions for many files). This is a HUGE security hole. We couldn't install the RPMs files on our webserver. Is there any

RE: [Zope-dev] zope and UNIX permissions

2000-07-10 Thread Chris McDonough
Which files? Know that if you untar as root, the files will be 'owned' by whoever tarred it up on our side. Untar it as a normal user. Reset the permissions of the ones you find too permissive. Then let us know so we can change the distribution. -Original Message- From: Leonardo

RE: [Zope-dev] zope and UNIX permissions

2000-07-10 Thread R. David Murray
On Mon, 10 Jul 2000, Chris McDonough wrote: Which files? Know that if you untar as root, the files will be 'owned' by whoever tarred it up on our side. Untar it as a normal user. Reset the permissions of the ones you find too permissive. Then let us know so we can change the distribution.

RE: [Zope-dev] zope and UNIX permissions

2000-07-10 Thread Chris McDonough
Using gnutar, untarring as the root user preserves ownership on expansion by default. Not sure if FreeBSD uses gnutar (I imagine not), but this is the case with gnutar under Linux. I think this is what happened to him... he said he could not use the RPM release and was working with the source

[Zope-dev] Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: I have a list: mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] I want to rebuild the list sorted from high to low on the sequence-item. When i call dtml-in mylist sort=sequence-item reverse the list gets sorted on the sequence-key not the