[Zope] OT: maybe - max file, proc limits on linux and zope

2000-10-13 Thread Bak @ kedai
hi all, this may be off topic, feel free to ignore. while trying to stop zope i encountered error stating max file limit met. what i did to stop this is running echo "8192" /proc/sys/fs/file-max can i do this? good bad? any tips on tuning max file open, process open, etc? linux and zope

[Zope] Zope nominated for Webtechniques Web Tools Awards

2000-10-13 Thread Martijn Pieters
Zope has been nominated for the Webtechniques Webtool Awards, and the pollboxes are open! Go vote by putting you email address (or any email address you like ;)) at the end of the following URL: http://www.webreview2.com/cgi-bin/poll/ballot_gen.pl?[EMAIL PROTECTED] So, I voted at the URL

RE: [Zope] Access Control vs Publishing Protoco

2000-10-13 Thread Seb Bacon
Oh dear, I fear that this is going round and round and round in circles a bit, and that no-one else is following it, but here goes anyway : The "traversable" permission would be an additional requirement to view any object. Its main purpose would be to distinguish between "use via Web" and

Re: [Zope] dtml-if and dtml-var question

2000-10-13 Thread Paul Zwarts
Hi there, I've been having problems with DateTimes as well. My colleague and I (using Zope 201) found a problem with the module that causes any dbase timestamp to be rendered to a non-standard UNIX time that has an annoying DST appended if in the Daylight savings time zone, thus leaving the

[Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Stephan Goeldi
OK let me state that I don't think so (subject line). I had to choose this subject, because it seems to me, that nobody was interested in my previous attempts to get information about my problem. So here is my newbie (?) question again: I have the folders: /www/folder1 /www/folder2 Apache

[Zope] DTML Acquisition NameSpace Help Needed.....

2000-10-13 Thread J Kinsley
I am building a framed site using Zope and I am trying to get functionality that after hours of reading documentation I am beginning to think is not possible, but since what I have read is so obscure I have decided to post a message before giving up. The code examples below *DO NOT* work, but

Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Tim Cook
Stephan Goeldi wrote: OK let me state that I don't think so (subject line). I had to choose this subject, because it seems to me, that nobody was interested in my previous attempts to get information about my problem. So here is my newbie (?) question again: I have the folders:

[Zope] Converting PHP3 - Zope

2000-10-13 Thread Mario Olimpio de Menezes
Hi, I'm planning to convert (migrate) a entire site from php3 to zope and i'm looking for suggestions, hints, etc on this. It's a GPL management school system done in php3+postgresql, and any user must be authenticated against a database and his privileges are those from the

[Zope] Fw: mysqldb

2000-10-13 Thread Dale Lance
Hi, I am trying to build ZMySQLDA 1.20 mysql has been built successfully on RedHat 7.0 and resides in /usr/local/mysql I have followed the instructions for editing /etc/ld/so/conf adding /usr/local/mysql/lib/mysql /usr/local/mysql/lib /usr/local/mysql to it. (just tomake sure) yet I still get the

Re: [Zope] Fw: mysqldb

2000-10-13 Thread jensebaer
- Original Message - From: "jensebaer" [EMAIL PROTECTED] To: "Dale Lance" [EMAIL PROTECTED] Sent: Friday, October 13, 2000 2:43 PM Subject: Re: [Zope] Fw: mysqldb Hi Dale, put this in your setup or/and setup.in file under ../lib/python/Products/ZMySQLDA/MySQLdb-0.1.2/

Re: [Zope] Fw: mysqldb

2000-10-13 Thread Oleg Broytmann
On Fri, 13 Oct 2000, Dale Lance wrote: anyone know where mysqlclient is supposed to be? gcc -shared _mysqlmodule.o -L/usr/local/mysql/lib -lmysqlclient -o _mysqlmodule.so /usr/bin/ld: cannot find -lmysqlclient It supposed to be in the /usr/local/mysql/lib/libmysqlclient.so. Check

Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Joachim Werner
Create the user in the top level folder that they are allowed to see. Not in the /www folder That alone wouldn't do it if we are talking about "seeing the objects", e.g. by calling the "objectIds" method in the root folder. You also have to switch off the root folder's "Access contents

Re: [Zope] How to see if two objects are the same (minor fix)

2000-10-13 Thread Tres Seaver
Ron Bickers [EMAIL PROTECTED] wrote: From my previous post, it looked like the parent was changing. I had the first two lines swapped. Fixed below. I want to see if an object is the one aqcuired from the root, but I'm hitting walls. dtml-var "PARENTS[-1].myObject"

Re: [Zope] Fw: mysqldb

2000-10-13 Thread Bill Welch
In Debian, this library is in a separate packge. On Fri, 13 Oct 2000, Dale Lance wrote: anyone know where mysqlclient is supposed to be? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

[Zope] Authentication headers firewall port redirection

2000-10-13 Thread Roland C. Reumerman
As stated in an email some time before I ran into some problems concerning accessing my password protected Zope site. The situation: * Zope 2.2.2 runs on a web server called www.datadistilleries.com on port 8080 * the web site it offers is protected with Zope's own authentication mechanism *

Re: [Zope] LoginManager - with SQL?

2000-10-13 Thread ed colmar
Has anyone been able to use LoginManager with a SQL db? with or without encryption? I'm still baffled by this how-to: http://www.zope.org/Members/jok/SQL_based_LoginManager In this example, there are dtml-methods that do the work of the UserSource, but there is no retrieveItem? I would

Re: [Zope] dtml-sqltest and capital column names

2000-10-13 Thread Oliver Bleutgen
Talking to myself A slight correction to my patch so that tablename.columname will be rendered as to "tablename"."columnname". 146c146 from string import find, split, join, atoi, atof --- from string import find, split, join, atoi, atof, replace 165,166c165,166 if

[Zope] Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.
I'm working on a simple auction site as a newbe challenge. I am taking bids on three static items, none will be added or removed. I have a folder named bid_records in which there is a folder for each item. These item folders have current bid information in properties and bid history in ZClass

[Zope] ZCatalog question. boolean and wildcards.

2000-10-13 Thread Hannes Grund
Im running Zope 2.2.2 on Linux 2.2.13. When mixing boolean operators and wildcards '*' in queries within a Textindex the 'AND' operator is replaced by 'OR'. Also, the possibility of constructing nested terms using brackets seems to be not supported (contrary to the chapter 'Searching and

[Zope] product.dat

2000-10-13 Thread Seb Bacon
In the Zope PTK there are a couple of products that have been packaged as product.dats. What format are these? How do I do it? Cheers seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

[Zope] Ability to catalog localFS objects in the portal catalog

2000-10-13 Thread neeloy_saha
Hi all, I have lots of old html/ documents that I want to publish through my zope portal. To ensure that I do not tweak html files I have used the LocalFS product, also I do not want to load the data.fs Now. I am running into search problems. How do i do a search the filesystem file? and also

[Zope] Any examples of use of manage_addFile()?

2000-10-13 Thread complaw
I want to create a user-interface so that users can upload files to my Zope site. I have done this with DTMLDocuments, however I don't quite understand how to get the file itself into the Zope site via ... self.manage_addProduct['OFSP'].manage_addFile() ..that is in Python. I looked through

Re: [Zope] Database Pack

2000-10-13 Thread Marcus Mendes
"Júlio Dinis Silva" wrote: Hi all, is there a way to do a pack to zodb without using the managment screens pack button? Maybe a python script we could execute from the file system. Regards, Júlio Dinis Silva _

Re: [Zope] dtml-with syntax question

2000-10-13 Thread Geoffrey L. Wright
Tim Cook writes: I'm sure someone will correct me if I'm wrong. But I believe you want: dtml-with "_.getitem(attribute3)" Haven't tried it in my code yet, but thanks to your post I found the section about _.getitem(). That'll come in handy all over the place, so many thanks for the

Re: [Zope] LoginManager - with SQL?

2000-10-13 Thread Holger Lehmann
Well we use the UserDbFolder Product after havin the same/similar problems with the LoginManager :-) - Holger Am Fri, 13 Oct 2000 schrieben Sie: Has anyone been able to use LoginManager with a SQL db? with or without encryption? I'm still baffled by this how-to:

Re: [Zope] Ability to catalog localFS objects in the portal catalog

2000-10-13 Thread Jonothan Farr
There are some patches floating around to add cataloging to LocalFS objects. I haven't gotten around to including them in the standard distro. --jfarr - Original Message - From: "neeloy_saha" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 13, 2000 4:56

[Zope] Help Debugging External Methods

2000-10-13 Thread Robert_J_Roberts
What are my options for debugging External Methods in Zope running on Windows NT? Is there ANY way to get the external method to run in a DOS window that I can watch? What little tricks/techniques have others use to make debugging external methods easier/possible? Thanks, Robert J. Roberts

[Zope] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Daniel Dittmar
Can anyone explain what the advantages are of using an RDBMS for Zope object storage over the standard file system storage? Is it simply the convenience to have the data in one place (for backup etc)? Does it scale better? In connection with ZEO? I'm asking because I'm contemplating writing

[Zope] Variable name use in with statement

2000-10-13 Thread Spicklemire, Jerry
Scott Butchill wonders if: "there is a simpler way to do this." Not much simpler, but how about: dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])" dtml-with bid_records dtml-in user_select dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']" dtml-with

RE: [Zope] Access Control vs Publishing Protoco

2000-10-13 Thread Dieter Maurer
Seb Bacon writes: OK, I think we're talking about the same thing now...but could you give me an example of any object that would need to be traversable by Anonymous? index_html, for example, doesn't need to be traversable (I still prefer 'listable'). Viewable TTW, yes, but that's all. I

[Zope] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Spicklemire, Jerry
Daniel asked: "Can anyone explain what the advantages are of using an RDBMS for Zope object storage over the standard file system storage?" The folks I know that have asked for that feature have stated their concerns as being: Keeping everything in a single large file is risky,

[Zope] proxied proxies with Zope Apache

2000-10-13 Thread Aaron Straup Cope
Hi, I have Zope set up running with Apache/SSL using mod_proxy and the SiteRoot product. Everything works fine. The thing is, if I understand stuff correctly, all the requests to https://hostname.com get handed off to Zope. I would like to be able use the same hostname for plain old Apache-isms

[Zope] RE: Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.
Ok, this worked : dtml-with bid_records dtml-with "_.getitem(_['selection'])" dtml-call "REQUEST.set('cur_bidder', bidder)" /dtml-with /dtml-with Thanks for the direction, Jerry! sbb -Original Message- From: Spicklemire, Jerry [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: [Zope] Any examples of use of manage_addFile()?

2000-10-13 Thread Peter Bengtsson
Here you go. dtml-call "PARENTS[0].manage_addFile(thisID,myFile,thisTitle)" This uploads a file in the current working directory. thisID [ the id ] and thisTitle [ the Title ] are optional, and I don't know if you have to put '' double-apostrofies for the ID then. You try. - Original

Re: [Zope] Thanks for the comments

2000-10-13 Thread Phil Harris
Rik, I've upped both the Zope_book.lit and the Zope quick Reference. The ZQR is not as readable as the zBook due to the formatting. I'll get the XML and reformat it to look a bit better. hth Phil [EMAIL PROTECTED] - Original Message - From: "Rik Hoekstra" [EMAIL PROTECTED] To: "Phil

RE: [Zope] date comparison

2000-10-13 Thread michael angelo ruberto
hi, i had tried something similar already without success. here is the error your script caused: DOH! Zope Error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: unsubscriptable object for some reason Zope just doesn't want to compare ZopeTime

Re: [Zope] dtml-if and dtml-var question

2000-10-13 Thread Dieter Maurer
[EMAIL PROTECTED] writes: ... get today's date into a dtml-var ... dtml-var "ZopeTime().Date()" Look at the "DateTime" documentation, if this does not give you the needed date format. Dieter ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Variable name use in with statement

2000-10-13 Thread Dieter Maurer
Burchill, Scott B. writes: I am finding myself doing the following and am sure there is a simpler way to do this. Any help would be greatly appreciated! Thanks. dtml-with bid_records dtml-if "_.str(REQUEST.form['selection']) == 'walkon'" dtml-with walkon

Re: [Zope] DTML Acquisition NameSpace Help Needed.....

2000-10-13 Thread Dieter Maurer
J Kinsley writes: /FrameSet - DTML Method . XXX - How can I negate this? IE. dtml-if "not section" dtml-unless section dtml-if section dtml-else dtml-call "REQUEST.set('section', '/ViewFrame')" /dtml-if section XXX - I do not think calling REQUEST.set() is the best way to

Re: [Zope] Medusa Monitor

2000-10-13 Thread Dieter Maurer
Hung Jung Lu writes: I know that, the stupid log file thingy. But you'll have to write an independent thread to display the log file (or peek the file manually each time), or implement some CString stuff to capture the file output (if that is possible). As I understand it, the logging

Re: [Zope] Tiny tables

2000-10-13 Thread Dieter Maurer
Graham Chiu writes: I tried storing these in tiny tables, but it doesn't seem that tiny tables allow one to store tokens. If I specify the value as say, criteria:tokens, it gets changed to just criteria. Probably, This is a ZPublisher feature. It interpretes ":type" suffixes of form

Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread knight
Also, consider adding an accessrule. This won't stop them from using __no_before_traverse__ or _SUPPRESS_ACCESSRULE but it will make it 'appear' there is nothing more than the current level. knight [EMAIL PROTECTED] On Fri, 13 Oct 2000, Tim Cook wrote: Stephan Goeldi wrote: OK let me

Re: [Zope] Fw: mysqldb

2000-10-13 Thread knight
Have you run ldconfig after editting the /etc/ld/so/conf file? Run ldconfig -v | grep mysqlclient and see if the library appears. If so, everything is all set. Also try an ls -l /usr/local/mysql/lib/libmysql*. Knight [EMAIL PROTECTED] On Fri, 13 Oct 2000, Dale Lance wrote: Hi, I am trying

[Zope] Creating Recursive Folders

2000-10-13 Thread Jason Spisak
Zopists, I am trying to use DTML to create folders within folders for me 3 levels deep. Two levels works, but 3 won't. For example: This works: dtml-in expr="_.range(0, 10)" dtml-let a=sequence-item dtml-call "manage_addFolder(_.str(a), _.str(a))" dtml-in expr="_.range(0, 10)" dtml-let

Re: [Zope] Tiny tables

2000-10-13 Thread andres
The problem with the TinyTable and TinyTablePlus products is that they use the tokenize.py module which treats any field value as a possible Python expression. Since ":" is a special token in Python, it gets interpreted as such. One quick way to get around this is to quote your field value -

Re: [Zope] Converting PHP3 - Zope

2000-10-13 Thread andres
Take a look at my HOWTO: www.zope.org/Members/Mamey/PHP On Fri, Oct 13, 2000 at 09:47:17AM -0200, Mario Olimpio de Menezes wrote: Hi, I'm planning to convert (migrate) a entire site from php3 to zope and i'm looking for suggestions, hints, etc on this. It's a GPL management

[Zope] Python regular expression help

2000-10-13 Thread Peter Bengtsson
[ this might be more of a Python question, but it's got a lot to do with the web and is to be used in Zope ] I want to replace all occurences of email address's and URLs in a textstring, to a href="mailto:%s"%s/a and a href="%s"%s/a. Must admit that I am not an regex expert, and I wasn't able

[Zope] backing up

2000-10-13 Thread matt
Is there a nice way to backup dtml documents and methods from a certain point in the object tree onwards without having to save all the other objects too? regards Matt ___ Zope maillist - [EMAIL PROTECTED]

[Zope-dev] Re: SessionManager, BerkeleyDB, and license compatability

2000-10-13 Thread Stefane Fermigier
On Thu, Oct 12, 2000 at 12:00:07PM -0700, [EMAIL PROTECTED] wrote: From: Toby Dickenson [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: James Wilson [EMAIL PROTECTED] Subject: [Zope-dev] SessionManager, BerkeleyDB, and license compatability Date: Thu, 12 Oct 2000 15:04:28

Re: [Zope-dev] Xron fragility

2000-10-13 Thread Toby Dickenson
Yes, using Client.py was the easiest way to do that. The biggest problem with Client.py is its dependency on HTTP. If your server is set up to only accept HTTPS, then you can't use Xron -- not a desirable trade-off. If security is the problem, you could configure the HTTP part to listen only on

[Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers
Jim Fulton wrote: snip __call__ stuff Okay, this is almost the same, but apparently not the same. I have a Python Product Class, with a method, a_method, that gets called from some of the Python Product's management screens (encapsulation is good ;-) This method needs several parameters from

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Toby Dickenson
On Fri, 13 Oct 2000 11:48:39 +0100, Chris Withers [EMAIL PROTECTED] wrote: I have a Python Product Class, with a method, a_method, that gets called from some of the Python Product's management screens (encapsulation is good ;-) This method needs several parameters from the namespace, so when

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers
Toby Dickenson wrote: http://www.zope.org/Members/htrd/howto/FunctionTemplate you would use def a_method(self,md): do_stuff_with(md['param1'],md['param2']) a_method = FunctionTemplate(a_method) That looks like it'll do the trick... I wonder if there's any way you can

RE: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Toby Dickenson
That looks like it'll do the trick... I wonder if there's any way you can role it up into a Product so that I don't need to have FunctionTemplate.py in each folder of a product that needs to use it? Im working on a set of tools to aid my transition to a dtml-free Zope. Eventually I will

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers
Toby Dickenson wrote: That looks like it'll do the trick... I wonder if there's any way you can role it up into a Product so that I don't need to have FunctionTemplate.py in each folder of a product that needs to use it? Im working on a set of tools to aid my transition to a dtml-free

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers
Toby Dickenson wrote: http://www.zope.org/Members/htrd/howto/FunctionTemplate you would use def a_method(self,md): do_stuff_with(md['param1'],md['param2']) a_method = FunctionTemplate(a_method) Okay, spoke too soon... when I do the above and then call the method

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers
Jim Fulton wrote: In any case, if you *just* want to get your function to be called from DTML (and your class is an extension class), you can give it the isDocTemp attribute like so: class MyClass( include some extension class ...): some_methodisDocTemp=1 def

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway
Jim Fulton wrote: Chris Withers wrote: Toby Dickenson wrote: http://www.zope.org/Members/htrd/howto/FunctionTemplate you would use def a_method(self,md): do_stuff_with(md['param1'],md['param2']) a_method = FunctionTemplate(a_method) That looks

Re: [Zope-dev] Thanks for the comments

2000-10-13 Thread Josh Zeidner
WROX contacted me a while back saying they wanted to do a Zope book as well. Does anyone know anything about this? -josh Just thought we'd mention that we have gotten lots of great comments on the Zope book so far, especially in the last week or so. You're all helping make it a better

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Jim Fulton
Shane Hathaway wrote: Jim Fulton wrote: Chris Withers wrote: Toby Dickenson wrote: http://www.zope.org/Members/htrd/howto/FunctionTemplate you would use def a_method(self,md): do_stuff_with(md['param1'],md['param2']) a_method =

Re: [Zope-dev] Wrox Book

2000-10-13 Thread Brad Clements
On 13 Oct 2000, at 15:59, Chris Withers wrote: Josh Zeidner wrote: WROX contacted me a while back saying they wanted to do a Zope book as well. Does anyone know anything about this? -josh Yeah, that project has just been pulled, I think ;-) Pulled as in cancelled? -Brad

Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway
Jim Fulton wrote: The fact that ZPublisher will pass it is documented. Whether or not something else calls it is up to the something else. The method designer specified an interface that includes RESPONSE. If it requires RESPONSE, by not specifying a default, then it requires the clients to

[Zope-dev] WriteLocking Proposal Revisited. Again.

2000-10-13 Thread Jeffrey P Shell
WriteLocking http://dev.zope.org/Wikis/DevSite/Proposals/WriteLocking Revisited and rewritten again after some internal discussions and a decision to ensure that the proposed Write Locking for WebDAV behaves in a matter that the clients (particularly the more popular ones) expect. There's less

[Zope-dev] Re: FW: [Support] [ZOPE Collector] Zope Bug entry: Ghost ZClasses

2000-10-13 Thread Shane Hathaway
Brian Lloyd wrote: A new bug entry was added with the following information: Title: Ghost ZClasses At: http://classic.zope.org:8080/Collector/1676/sview Submitter: lalo Email: [EMAIL PROTECTED] Description: Some ZClasses in a ZODB migrated from 2.1.6 did not handle the

[Zope-dev] Programatically trying to create recursive folders

2000-10-13 Thread Jason Spisak
Zopists, In orderto get around the confliting writes issues I am experiencing, I would like to create recrusive folders like, /0/1, /0/2, etc., so that my objects will be in many different folders. I am trying to get DTML to create these pre-set drop folders automatically, but am unable to do