Re: [Zope] upgrade 2.2.0 to 2.2.1b1

2000-08-17 Thread Chris McDonough
The couldn't load state errors are probably from a product not getting initialized properly. If you set up your STUPID_LOG_FILE environment variable and point it at a file before starting Zope (if you haven't already), you may be able to see a failed product init before the state errors, which

Re: [Zope] ZCatalog key error

2000-08-17 Thread Chris McDonough
Yeah, it's running 2.2.1b1 and it's still hosed. :-( When Ethan gets back from LinuxWorld, I'm going to try to have him update to the latest CVS and see if we can pin the problem down. I added logging code to the catalog that was *supposed* to make it easier to track down why these keyerrors

[Zope] ProxyPass trouble II

2000-08-17 Thread Stephan Goeldi
I forgot to mention: The ProxyPass works ok. After some work in the management folder, Apache sends me the error message: "The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Could not connect to remote machine:

[Zope] ProxyPass trouble

2000-08-17 Thread Stephan Goeldi
I use Zope with Apache 1.3.12 via ProxyPass. This is a nice workaround, because I don't have to struggle with the Rewrite stuff. My httpd.conf settings are the following: VirtualHost 1.2.3.4 ServerName www.leimental.net ProxyPass / http://1.2.3.4:8080/leimental.net/

[Zope] Old Zope packages

2000-08-17 Thread Jarkko Veijalainen
Where can i download older versions of Zope. I need Zope 2.1.6. on solaris. I previously did my project on RH6.2 / Zope 2.1.6 and i have this week to get my project work on Zope 2.2.0 with solaris. It doesn't work (it doesn't pass authentication, when i try post data to another dtml document)

[Zope] unable to login with newly created user

2000-08-17 Thread Corey
Hello all, I'm new to Zope - extreme apologies if this question has already been answered, but I'm simply at wits end here... Linux 2.2.14 Python 1.5.2 Zope 2.2.0 from source wo_pcgi Zserver I simply cannot for the life of me log in as non-superuser. I've installed and

Re: [Zope] unable to login with newly created user

2000-08-17 Thread Martijn Pieters
On Thu, Aug 17, 2000 at 01:58:04AM -0700, Corey wrote: Hello all, I'm new to Zope - extreme apologies if this question has already been answered, but I'm simply at wits end here... Linux 2.2.14 Python 1.5.2 Zope 2.2.0 from source wo_pcgi Zserver I simply cannot for

[Zope] Pb with MIME Type x-vCard

2000-08-17 Thread Didier Georgieff
Hello, I'm doing a method for getting vCards from a directory. It works fine, until i want to put some dtml-var with the x-vCard MIME type 1 - If i only put hard coded text it works fine. I get the usual vCard page on Netscape. Content-type:text/x-vCard

Re: [Zope] Old Zope packages

2000-08-17 Thread Corey
And upon Thursday of August 17, the illustrious Jarkko Veijalainen spake thusly... Where can i download older versions of Zope. snip http://www.zope.org/Products/Zope/ ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] unable to login with newly created user

2000-08-17 Thread Corey
And upon Thursday of August 17, the illustrious Martijn Pieters spake thusly... On Thu, Aug 17, 2000 at 01:58:04AM -0700, Corey wrote: Hello all, I'm new to Zope - extreme apologies if this question has already been answered, but I'm simply at wits end here... snip I simply

Re: [Zope] Invalid Date-Time String

2000-08-17 Thread Oliver Frommel
Unfortunately I am getting an "Invalid Date-Time String" error when calling the manage_editProperties. I tried some possible solutions from the mailing lists but failed so far, e.g. using ZopeTime or ZopeTime().DateTime() Any help? ... dtml-let

[Zope] jcNTUserFolder questions

2000-08-17 Thread Jean Jordaan
Hi all I'm trying out jcNTUserFolder-0.0.7.zip now. It's looking great, but it looks like I've run across some gotchas. 1. I copied the entire installation from one computer to another:: robocopy \\corpcomms\ZopeCorpComms \\jean\programs\ZopeCorpComms /MIR (which under W2K does an

[Zope] OQL for Zope

2000-08-17 Thread Francois-Regis CHALAOUX
Will Zope.org implement OQL? FR

Re: [Zope] Old Zope packages

2000-08-17 Thread Chris Withers
Martijn Pieters wrote: See http://www.zope.org/Products/Zope I agree there should be a link from the Products page. I'm just wondering what '2.0.0-donotuseme' was? ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Old Zope packages

2000-08-17 Thread Martijn Pieters
On Thu, Aug 17, 2000 at 01:42:45PM +0100, Chris Withers wrote: Martijn Pieters wrote: See http://www.zope.org/Products/Zope I agree there should be a link from the Products page. I'm just wondering what '2.0.0-donotuseme' was? ;-) From the Zope 2.0.1 CHANGES file: Zope 2.0.1

[Zope] Announce: Squishdot 0.5.0 now available!

2000-08-17 Thread Chris Withers
Squishdot 0.5.0 is now available from http://www.zope.org/Members/chrisw/Squishdot/ The following changes were made: - Support has been added for postings to be formatted as Plain Text, HTML or Structured text on the same site. - You can preview when editing postings through the

[Zope] open a database connection

2000-08-17 Thread Tom Deprez
Hi, How can I open a database connection from dtml? Thanks in advance, Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Re: Pb with MIME Type x-vCard

2000-08-17 Thread Didier Georgieff
Le 17 Aug 00, à 11:31, [EMAIL PROTECTED] a écrit : I'm doing a method for getting vCards from a directory. It works fine, until i want to put some dtml-var with the x-vCard MIME type I respond to my own post. It seems that vCard doesn't like a line WITH propertyname AND WITHOUT

[Zope] Zope Hosting without Long Running Processes

2000-08-17 Thread Chris Withers
Bob Horvath wrote: snip Zope without Zope ;-) Where does this leave me? In a not very nice position ;-) I have seen where Zope can be run as a CGI, but is unbearably slow. Is unbearable truly unbearable? Yup, it would be if you had to start up Zope for every HTTP request. That takes 20

Re: [Zope] Announce: Squishdot 0.5.0 now available!

2000-08-17 Thread Chris Withers
albert boulanger wrote: If I have an existing squishdot instance and want to gain the plain text feature, is there a recipie for doing so? Is it simply replacing the squisdot product or do I need to modify the existing one after adding the new product version? whoops, sorry, forgot to

Re: [Zope] open a database connection

2000-08-17 Thread Tom Deprez
Hi, sorry, found it by myself somewhere in the zope directory: for the people who are interesed: manage_open_connection manage_close_connection Regards, Tom. At 14:46 17/08/2000 +0200, Tom Deprez wrote: Hi, How can I open a database connection from dtml? Thanks in advance, Tom.

[Zope] Re: concerning Xron with DA

2000-08-17 Thread Loren Stafford
From: "Nicholas Lo" [EMAIL PROTECTED] I just wonder if Xron works with ZSQL Methods. I know that ZSQL Methods only works with the request thread. Thanks. I can think of no reason Xron would not work with ZSQL Methods; but I haven't tried it, because I have no SQL in my applications. Xron's

Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Marcin Kasperski
Vincent wrote: Is it possible to access Python function within a ZClass ? If yes, how should I do that ? Two methods 1) create External Method (python code in separate file placed in Extensions directory + information which file should be called in Zope management interface) 2) create

Re: [Zope] ProxyPass trouble II

2000-08-17 Thread Stephen Harrison
Stephan Goeldi wrote: I forgot to mention: The ProxyPass works ok. After some work in the management folder, Apache sends me the error message: If the proxy rules are all working fine to start with, then there shouldn't be any reason for them to suddenly stop working. "The proxy server

[Zope] Zope is very slow!

2000-08-17 Thread Christiano Anderson
Hi, This is my first message to the list... I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... The Zope is running with Apache, using the ProxyCache and SiteAccess to convert all requests from port 8080 to

[Zope] jcNTUserFolder troubles ..

2000-08-17 Thread Jean Jordaan
Hi all Owww, now I understand nothing anymore. There's an NTUserFolder in '/' with user zopeman (on the local machine) with Manager and Debugger roles (Debugger doesn't have any permissions, it's just used to trigger the output of debugging information). 'standard_html_header' contains:

Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Toby Dickenson
On Thu, 17 Aug 2000 15:42:17 +0200, Marcin Kasperski [EMAIL PROTECTED] wrote: Vincent wrote: Is it possible to access Python function within a ZClass ? If yes, how should I do that ? Two methods 1) create External Method (python code in separate file placed in Extensions directory +

[Zope] How to assing a string value to a variable in DTML?

2000-08-17 Thread iap_y2fun.com
Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example: dtml-let a='a' b='b' dtml-var "a+b" /dtml-let it causes error, not what I expected: given a="", b="", and eval a+b to "" Thanks iap

Re: [Zope] How to assing a string value to a variable in DTML?

2000-08-17 Thread Daniel Rusch
dtml-let a="'a'" b="'b'" dtml-var "a+b" /dtml-let Notice the quotes. See the How to on Let tags: http://www.zope.org/Members/michel/HowTos/LetTagHow-To DR "iap_y2fun.com" wrote: Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example:

Re: [Zope] Zope is very slow!

2000-08-17 Thread J. Atwood
Hi Christiano (nice first message... :) ) First of all, lets define slow. What does slow mean? Have you tested it with AB (apachebench)? You sure it is not your connection? Watched it in TOP? My guess is that with 2.1.6 (straight) on that system you should be able to get about 200 requests per

RE: [Zope] How to use RESPONSE.redirect ?

2000-08-17 Thread Stuart Foster
Thanks for the input. I ended up putting the info I needed into the url dtml-var "someurl?a=blah" I put it in a method that is usuble from a couple of forms and it seems to work. Thanks again. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil

[Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread Francois-Regis CHALAOUX
Hi, When I create a ZClass instance from an external Method I create by default the instance in the same place where is located my external method (see the code below). How to select a different place in my script where will be create the ZClass ? Code def addZClass(self,id,data):

RE: [Zope] How to use RESPONSE.redirect ?

2000-08-17 Thread Stuart Foster
Thanks for the input. -Original Message- From: Curtis Maloney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 5:59 PM To: Stuart Foster; Zope List Subject: Re: [Zope] How to use RESPONSE.redirect ? On Wed, 16 Aug 2000, Stuart Foster wrote: I want to use redirect to call

[Zope] mysqlUserFolder woes

2000-08-17 Thread Stephen Harrison
I've been trying out mysqlUserFolder lately, but have had quite a major problem with it. Basically, everything works fine - for a while - then it starts to intermittently fail as the load to the server increases, until it is completley broken, with the system error below. Has anyone else come

[Zope] zCatalog and subobjects

2000-08-17 Thread Menard . Jean-Francois
I'm trying to search a zCatalog to find all the objects containing a certain type of sub-object. Right now, I use a dtml-if inside the result loop, but the result count is obviously wrong. There must be a better way to do this, right? Jean-François Ménard Intranet DPAS Pratiques d'affaires

[Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
Hey all, Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . The question is, (I think the answer is no) is there a way to

Re: [Zope] mysqlUserFolder woes

2000-08-17 Thread Stephen Harrison
Tony McDonald wrote: I'd suggest using UserDB. It's been pretty good for us. I looked at mysqlUserFolder (seemed overly complex), GUF (couldn't get it to work) and even LoginManager (too much Zen needed) and came back to UserDB. One of the reasons I was trying to get mysqlUserFolder to

[Zope] Zope and VirtualHost

2000-08-17 Thread William JOYE
What's is the best way to host multiple virtual domain in Zope with Apache sever ? Actually, I use PCGI method with rewrite rules in Apache configuration like this : RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/MySite/$1

Re: [Zope] Zope and VirtualHost

2000-08-17 Thread Andy McKay
Yep Site Access is the product to go for, it includes help on how to use with Apache if I recall. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "William JOYE" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: [Zope] getting rid of PTKDemo

2000-08-17 Thread Tony McDonald
At 7:22 pm +0200 16/8/00, [EMAIL PROTECTED] wrote: Hello Tony, sure I would come for such a pint offered, but for now, I am in just the same situation - without access to this tab of any ZSQL method. So, please, should you get an answer (I mean, a solution) could you be so kind to share it with

Re: [Zope] mysqlUserFolder woes

2000-08-17 Thread Tony McDonald
At 4:12 pm +0100 17/8/00, Stephen Harrison wrote: I've been trying out mysqlUserFolder lately, but have had quite a major problem with it. Basically, everything works fine - for a while - then it starts to intermittently fail as the load to the server increases, until it is completley broken,

Re: [Zope] Old Zope packages

2000-08-17 Thread Martijn Pieters
On Thu, Aug 17, 2000 at 05:01:01PM +0300, Jarkko Veijalainen wrote: problem is that it don't allow ANY of my users (including managers and superuser) to pass Authentication when i'm trying to POST data to another dtml document, which calls external method? How i manage this? I'm

RE: [Zope] Zope and VirtualHost

2000-08-17 Thread William JOYE
Are there restrictions or problems to use SiteAccess ? -Message d'origine- De : Andy McKay [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 17 août 2000 17:53 À : William JOYE; [EMAIL PROTECTED] Objet : Re: [Zope] Zope and VirtualHost Yep Site Access is the product to go for, it

Re: [Zope] Product inhetitance question

2000-08-17 Thread Andy McKay
Well by inheritance B has all the methods, properties etc you have in A. So the answer is yes, if A has the foobar method then B will have a foobar method. Or do I misunderstand your question? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the

[Zope] Total newbie with NTUserFolder 1.3 issues

2000-08-17 Thread Christian Adams
I'm running Zope 2.2.0 over NT Server 4. I installed Python 1.5.2 and the latest Win32 Extensions, then unzipped NTUserFolder1.3.zip into C:\Program Files\ZopeServer\NTUserFolder, then ran both the init.py and NTUserFolder.py files after entering my Domain and PDC info into NTUserFolder.py I

Re: [Zope] Zope is very slow!

2000-08-17 Thread Andy McKay
Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com

Re: [Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread Andy McKay
Get a handle to the object where you wish to create the object then create the object. For example: newobj = getattr(self, 'folderA') will give you folderA in self. The new object will be created in folderA. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com

Re: [Zope] Announce: Squishdot 0.5.0 now available!

2000-08-17 Thread Andy McKay
Good job Chris. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 5:36 AM Subject: [Zope]

[Zope] NewBIE Question

2000-08-17 Thread CURTIS David
After re-installing zope on NT box, I noticed that I am now running two instances of the Zope service. I was able to disable one instance but how can I permanatly remove the service and how do I know which Zope service is running?

Re: [Zope] Zope is very slow!

2000-08-17 Thread Chris Withers
Andy McKay wrote: Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. I thought only ZEO would make good use fo dual

Re: [Zope] Zope is very slow!

2000-08-17 Thread J. Atwood
I am pretty sure (61%) that in the original release of 2.2.0 there was something about a speed increase. One talked about on single processor (20-40%) and the other was dual processor (60-80%). It partly has to do with that "one line of magic code" in the z2.py. Ethan? Paul? DC? Care to shed

[Zope] NTUserFolder-1.3-Comments

2000-08-17 Thread Jean Jordaan
Hi Toby In the source of NTUserFolder from end of last year I see: ## Experimental support for authenticating from a domain ## (rather than the local computer) Use this at your own ## risk. If you do, please let me know how you get on. I will ## only include a user interface for these

Re: [Zope] Zope and VirtualHost

2000-08-17 Thread J. Atwood
From: William JOYE [EMAIL PROTECTED] Date: Thu, 17 Aug 2000 18:06:08 +0200 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: [Zope] Zope and VirtualHost Are there restrictions or problems to use SiteAccess ? I have been using it for a couple of different sites (2 served off of one

[Zope] Zserver vs Apache

2000-08-17 Thread Corey
I keep seeming to notice that the docs are constantly referring to Zserver as the recomended choice for the http backend. Why is this? Should I not attempt to integrate our Apache server with Zope, and simply use Zserver instead? Thanks, Corey ___

Re: [Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread R. David Murray
On Thu, 17 Aug 2000, Andy McKay wrote: Get a handle to the object where you wish to create the object then create the object. For example: newobj = getattr(self, 'folderA') will give you folderA in self. The new object will be created in folderA. Isn't it actually that he wants to do the

[Zope] Getting rid of PTK

2000-08-17 Thread Jean Jordaan
Hi list I've seen others having problems with this as well .. I made a ZClass, not consciously touching anything about PTK. Now when I export it ('ccDoc.zexp') and import it into another Zope, I get:: Error Type: ImportError Error Value: No module named PTKDemo.PersistentUserSource

RE: [Zope] Zope is very slow!

2000-08-17 Thread Brian Lloyd
I am pretty sure (61%) that in the original release of 2.2.0 there was something about a speed increase. One talked about on single processor (20-40%) and the other was dual processor (60-80%). It partly has to do with that "one line of magic code" in the z2.py. Ethan? Paul? DC? Care to

Re: [Zope] Zope culture (Was: [Zope] Simple DTML date-stamp)

2000-08-17 Thread Andy Dustman
On Mon, 14 Aug 2000, William BC Crandall wrote: Andy Dustman's documentation for what seems like a nice MySQL interface puts it clearly: PWindows is EMnot/EM a supported platform. Yeah, that's just me. I don't support Windows in any way. However, MySQLdb does work there, so I am

Re: [Zope] Zope is very slow!

2000-08-17 Thread J. Atwood
I have limited experience with ProxyPass. I have many Zope installations (2.1.4, 2.1.6, 2.2.0b2, 2.2.0) on all sorts of different hardware configurations (all RH Linux) and non of them are slow. Most are running just plain ZServer but one (and the most hit) is running behind Apache with Zope.cgi.

Re: [Zope] Zserver vs Apache

2000-08-17 Thread J. Atwood
(man this is coming up a lot today) It is not ZServer vs Apache but ZServer alone or behind Apache. Either way you are using ZServer. ZServer will do all of your http requests and as a stand alone server it will work just fine. It is faster than putting Apache in front of it and is certainly

[Zope] Zope appears to be busy ;-)

2000-08-17 Thread Chris Withers
Christiano Anderson wrote: The TOP result is: Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python 30% seems qutie high to me. What are

Re: [Zope] Zope is very slow!

2000-08-17 Thread Christiano Anderson
Hi J, Thanks a lot for replying my message! :) Do you have any example of the best Apache and ProxyCache configuration to running zope? My configuration looks like this: IfModule mod_proxy.c ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache"

[Zope] Zserver+Apache ProxyPass beats Apache + Zope CGI?

2000-08-17 Thread Chris Withers
Corey wrote: I keep seeming to notice that the docs are constantly referring to Zserver as the recomended choice for the http backend. Why is this? Should I not attempt to integrate our Apache server with Zope, and simply use Zserver instead? Well, ZServer seems to be the best way to go.

[Zope] New Release of gvibDA Interbase Adapter

2000-08-17 Thread Bob Tierney
Hello Everyone, We just release Version 0.9.1 of our Interbase Database Adapter. This release fixes a memory leak when fething BLOB data and also dramtically improves performance when fetching BLOB data. Thank you and the code is at http://www.zope.org/Members/RETierney/gvibDA Regards, Bob

[Zope] The date in Dutch

2000-08-17 Thread Michel Houben
How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000 instead of Thursday 17 August 2000. I hope someone can solve this problem. Michel Houben. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

[Zope] EventLogManger

2000-08-17 Thread Chris McDonough
The 1.0 version of EventLogManager (a configurable logging facility product) depended on code that only existed inside of the CVS version of Zope. It would not install cleanly as a result on Zope 2.2.1b1 and previous. A new release (1.1) is available at

Re: [Zope] Product inhetitance question

2000-08-17 Thread Andy McKay
- Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Daniel Rusch" [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 11:21 AM Subject: Re: [Zope] Product inhetitance question Ah... ok sorry you are right, stuff outside the class doesnt get inherited. What I did for this was

[Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . now in class B I want to add a new property. Is the a way of getting

Re: [Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Andy McKay
class A: _properties = [ {'a':'A', 'aa':'AA'}, ] class B(A): _properties = [ {'b':'B', 'bb':'BB'}, ] _properties = _properties + A._properties b = B() print b._properties Works for me. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming

[Zope] Re: Zope appears to be busy ;-)

2000-08-17 Thread J. Atwood
30% is not bad... depends on what it is doing and for how much time. My experience is that it can pop up to as much as 90% (on a slower CPU like 166 Mhz) but only for a split second. At idle (no one doing anything) it should be using no CPU. PID USER PRI NI TSIZE SIZE SWAP RSS SHARE STAT

Re: [Zope] mysqlUserFolder woes

2000-08-17 Thread Dieter Maurer
Stephen Harrison writes: Error Type: SystemError Error Value: Failed to import class ImplicitAcquirerWrapper from module Acquisition Traceback (innermost last): File /usr/local/zope/2-1-6/lib/python/ZODB/Connection.py, line 396, in setstate SystemError: (see above)

Re: [Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: Hi, When I create a ZClass instance from an external Method I create by default the instance in the same place where is located my external method (see the code below). How to select a different place in my script where will be create the ZClass ?

Re: [Zope] class name of current object

2000-08-17 Thread Dieter Maurer
Scott Shepherd writes: Is there a way to get the current object's class name? dtml-var "this.__class__.__name__" doesn't work. You will not be able to access any attribute/method that starts with '_'. If the "meta type" is sufficient for you, you may use: dtml-var

[Zope] zCatalog and subobjects

2000-08-17 Thread Menard . Jean-Francois
(Post #2) I'm trying to search a zCatalog to find all the objects containing a certain type of sub-object. Right now, I use a dtml-if inside the result loop, but the result count is obviously wrong. There must be a better way to do this, right? Jean-François Ménard Intranet DPAS Pratiques

Re: [Zope] modifying/changing DTML properties

2000-08-17 Thread Dieter Maurer
R. David Murray writes: This: b!--#var eggs --/b dtml-call "manage_changeProperties({'eggs': 'blue'})" p!--#var eggs -- results in: bgreen/b pgreen did i miss something? Hmm. That should have worked. You could try

Re: [Zope] zCatalog and subobjects

2000-08-17 Thread Chris McDonough
ZCatalog doesn't do well on hierarchical searches like this. The way you're doing it (without some sort of change to your objects' structures) is pretty much the only way. There's a "ZTopics" product floating around that is supposed to provide functionality like this, but 1) I don't know if

Re: [Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
This worked for me, what a hack _ properties=[] for i in range(0,len(A._properties)): _properties.append(A._properties[i]) _properties.append({'id':'RenderStandardHeader', 'type':'int','mode':'w'}) tuple(_properties) Andy McKay wrote: Hmm i just tested it in Zope

Re: [Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
I can't believe it, but I didn't have the last comma ({'b':'B', 'bb':'BB'}, ) and that's what was killing me .agh BTW, I noticed you are using lists of dictionaries instead of the "standard" tuple of dictionaries. I don't know if there are any consequences to doing this. Anyway, since

Re: [Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Andy McKay
Aargh isnt that annoying. Gosh you are right im using lists of dictionaries... my Zope code is correct, but that example is wrong. The example still works though... -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original

[Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Jonothan Farr
What if an object id contains a period? --jfarr - Original Message - From: Chris Withers [EMAIL PROTECTED] To: Steve Alexander [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 11:59 AM Subject: [Zope-dev] Cool, we like the . :-) Steve Alexander wrote: I

[Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Chris Withers
Jonothan Farr wrote: What if an object id contains a period? Yeah, Steve noticed that too :S What about dtml-:folder:object; ? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] Zugriff auf Mootcourt Server

2000-08-17 Thread Marcus Schopen
Hallo, der Zugriff auf den Mootcourt-Server von den Rechnern im HiWi-Raum funkt. nach Lokalisierung des Firewallproblems seit heute wieder. Die User tom und bernhard koennen wieder uneingeschraenkt arbeiten. Gruesse Marcus __ (0 Marcus Schopen

[Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
So far so good, Next hurdle, at least the problems have been cut down to hurdles from walls. I have a folderish product say myFolder, in the manage_addMyFolder function I want to create an object of my product B. so I do this: def manage_addmyFolder(self, id, title='',

Re: [Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Shane Hathaway
Chris Withers wrote: Jonothan Farr wrote: What if an object id contains a period? Yeah, Steve noticed that too :S What about dtml-:folder:object; ? That would probably work, but isn't kind of ugly? Now we'd be forcing people to realize that colons can be path separators. Only

Re: [Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Zope
Jonothan Farr wrote: What if an object id contains a period? Yeah, Steve noticed that too :S What about dtml-:folder:object; How about dtml-zope.foo.bar; or dtml-app.foo.bar; //Johan Carlsson ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Creating an object from within another

2000-08-17 Thread Andy McKay
Not to sure there Im afraid. The obvious answer is the manage_addB doesnt exist whereas manage_addDTMLDocument does. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" [EMAIL PROTECTED]

Re: [Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Andy McKay
I vote we continue the dtml tradition and go for some strange unpredictable combination of _[']'_''['] ;-) -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Zope" [EMAIL PROTECTED] To: "Chris Withers"

Re: [Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
Yeah, that's what i thought, but I know it exists cause I can create an object of type B and I copied and pasted the manage_addB part? For any one else who is reading this: the problem is: I have a product I'll call B. Additionally I have a folderish product I'll call myFolder. What I want

[Zope] Amazing Disappearing Self

2000-08-17 Thread Spicklemire, Jerry
Hi Zope Fans, Has anyone seen a case where acquisition works, but only in the topmost folder? The site I'm working on shows no problem on a test server, but upon moving to a production server any URL pointing to a subfolder, or a document contained in a subfolder returns an error (below).

[Zope] Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Andy McKay
Dont put . in id's... I try not to anyway. Could we say . or if your id has a . use something else eg: dtml-foo.[bar.dot].y ? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers" [EMAIL

[Zope] looking for DTML Property examples

2000-08-17 Thread Jason Cunliffe
Hello I am looking for some basic examples on using Properties in Zope. For example: How-To write methods which put and get properties, and with these examples of accessing properties via URLs directly as wellas via custom methods. There must be a ton of examples _somewhere_, but somehow, I

Re: [Zope] looking for DTML Property examples

2000-08-17 Thread Loren Stafford
http://www.zope.org/Members/lstaffor/zProperties falls just a little short of what you're asking for. There's been a lot of discussion on the subject recently on this list. Perhaps you could search back, piece together the collected wisdom, and write the next chapter on Properties. BTW,

Re: [Zope] Zope is very slow!

2000-08-17 Thread Andy McKay
How many processors? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: "J. Atwood" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 4:14 PM

Re: [Zope] Zope is very slow!

2000-08-17 Thread Terry Kerr
We did some pretty heavy performance testing of a particar application comparing 2.1.6 and 2.2.0 and 2.2.0 was slower in most cases. The testing was done on a Celeron533 128Meg RAM running RH6.1. terry "J. Atwood" wrote: I am pretty sure (61%) that in the original release of 2.2.0 there was

Re: [Zope] Zope is very slow!

2000-08-17 Thread Terry Kerr
one! Andy McKay wrote: How many processors? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: "J. Atwood" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

[Zope] manage_addDTMLMethod vs. manage_addZSQLMethod

2000-08-17 Thread Hannu Krosing
Why does this work dtml-call "_['testadd'].manage_addDTMLMethod('MethodId', 'Method Title','method text')" While this does not: dtml-call "_['testadd'].manage_addZSQLMethod('DB', 'DB', 'DB','DB','DB')" (the database connection DB is there) I studies the Znolk product and found that it uses

[Zope] Patch for Netscape 'tree' bug?

2000-08-17 Thread Tony . McDonald
Hi, It seems that 2.2.0 doesn't have the patch for the infamous Netscape 'tree' bug. The site that did have the patch is no longer available. Has anyone got the patch availble? TIA Tone ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Nested Tag Creation

2000-08-17 Thread Andrew Kenneth Milton
I want to create a tag that has sub-tags. Now I know I can use blockContinuations to approximate this, but, I think it would be cleaner to be able to define tags that are only available within the context of the main tag (namespaces and all that). Is this possible? Without rolling my own

[Zope-dev] stemmed and stopped: problems with stopwords and the 'and' operator

2000-08-17 Thread R. David Murray
OK, so the TextIndex of a ZCatalog says that it "stems and stops" the words before indexing them and, one would hope, before searching for them. I always thought that "stem" meant "derive the stem of the word" (so as to make the index smaller). I just peeked at the Splitter.c source code for

Re: [Zope-dev] Caching problems

2000-08-17 Thread Bob Pepin
On Wed, Aug 16, 2000 at 05:31:29PM +0100, Carlos Neves wrote: You directly change a nonpersistence participant object. As stated in http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html : [...] but mainly... RTFM ;-) Well, thanks, but too bad the only FM I've been able

  1   2   >