[Zope] ZMySQLDA installation problem

2000-11-04 Thread Chris Gray
I'm trying to install ZMySQLDA on Solaris 5.6. Everything seems to be going fine until make tries to compile the module. Then I get the following error messages: gcc -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5

RE: [Zope] ANNOUNCE: Zope 2.2.4 beta 1 released...

2000-11-21 Thread Chris Gray
There's a bit of odd behavior, at least in the Windows binary release. Going to any /manage URL brings up a blank page in the workspace ("manage_main") frame. The workspace only appears when you click on something in the navigator ("manage_menu") frame.

Re: [Zope] ANNOUNCE: Zope 2.2.4 beta 1 released...

2000-11-21 Thread Chris Gray
I'm using win98 too. I didn't apply 2.2.4 over my existing installation but did a fresh install and I'm running 2.2.4 at port 9673 instead of 8080. I can access both instances, except for the problem that I noted. The problem does go away if only the 2.2.4 instance is running, but in the past

Re: [Zope] Multiple ZODBC sources

2000-11-22 Thread Chris Gray
I wonder if something like this would work: dtml-in selectFromTable1 dtml-in selectFromTable2 dtml-if idFromTable1 = idFromTable2 display parts of the two records /dtml-if /dtml-in /dtml-in Might be more efficient to make one of the dtml-ins a dtml-with and find

Re: [Zope] Multiple ZODBC sources

2000-11-22 Thread Chris Gray
Another thing that would work: dtml-in selectFromTable1 dtml-in expr="selectFromTable2(id=_['id'])" display record /dtml-in /dtml-in Chris On Wed, 22 Nov 2000, Phil Harris wrote: Link the SQL table into Access and then use both from Zodbcda connected to Access. hth

Re: [Zope] Zope with Microsoft Access

2000-11-22 Thread Chris Gray
Isn't the problem your else tags? Remove them and I think you'll get the effect you wanted. As it stands the condition: dtml-if "_['sequence-key'][6:9] == mykey[9:12]" is never true. Chris On Wed, 22 Nov 2000, Mike Kelland wrote: Hi, this is my first posting to the list, and about my 4th

Re: [Zope] Microsoft Access database

2000-11-23 Thread Chris Gray
Just one point of clarification added below since the original poster seemed confused on this point. Chris On Thu, 23 Nov 2000, Diny van Gool wrote: At 23:07 22-11-00 -0500, John Cappelletti wrote: [...] What is the process for connecting to a MS Access database? Can it be done? Yes,

[Zope] Objection to Python Script Name

2000-11-23 Thread Chris Gray
I know, I know. It's a little late to speak up, but I think there is a logical objection to this name: inconsistency with "DTML Method" and "ZSQL Method". I think some better options were left off the vote. ZIP Method (Zope Internal Python Method) ZoPy Method PyZo Method ZPython Method I

Re: [Zope] Objection to Python Script Name

2000-11-23 Thread Chris Gray
Greetings to the Knights-Who-Until-Recently-Said-Python-Methods, On Thu, 23 Nov 2000, Chris Withers wrote: Chris Gray wrote: I know, I know. It's a little late to speak up, but I think there is a logical objection to this name: inconsistency with "DTML Method" and &q

[Zope] DTML tags in methods(RE: [Zope] Objection to Python Script Name)

2000-11-23 Thread Chris Gray
Well, half-and-half (joking/serious, that is). I was in a speculative mood about the extent of the analogies among the different kind of methods. Actually the idea makes a little more sense to me on second thought than it did at first blush. Being able to build a Python Script on the fly might

[Zope] Apology

2000-11-23 Thread Chris Gray
Sorry, My intention was not to annoy Chris Withers or create a headache for him. Really, I'm pretty neutral about any name for any software item. I was just thinking out loud about consistent naming practices in an OO environment. It helps to talk about related things if they have related

Re: [Zope] Zope with Microsoft Access

2000-11-23 Thread Chris Gray
Here's a fix. Change the line: dtml-call UpdateHours(REQUEST) to: dtml-call "UpdateHours(myval=_['myval'], mykey=_['mykey'], sequence_item=_['sequence-item'])" and change the name of the parameter in your ZSQL method from sequence-item to sequence_item and change the dtml-var tag in the

[Zope] ZopeBook - URL to SQL

2000-11-23 Thread Chris Gray
The Zope book discusses calling a ZSQL Method via a URL, saying that a request for a URL like: http://localhost:8080/zsql_method/parameter/value "will return a result object", but what I get is the index_html document at the root, although I do get a rendered record with:

Re: [Zope] Problem with 2.2.4b1

2000-11-24 Thread Chris Gray
Yes it happens for me too and it comes and goes as you describe. Also I've noticed it in Mozilla as well as IE5.5. Chris On Fri, 24 Nov 2000 [EMAIL PROTECTED] wrote: I installed 2.2.4b1 over 2.2.3, and everything seems to work fine, but, when I IE5.5 to manage my sites, I loose some icons

Re: [Zope] Special behavior or bug?

2000-11-24 Thread Chris Gray
Make sure that the standard_html_header is a DTML Method and not a DTML Document. Make sure that the calling document is DTML Document and not a DTML Method and it should work. That way the header acquires the title of the calling document. If the calling document is a DTML Method, it acquires

RE: [Zope] Special behavior or bug?

2000-11-24 Thread Chris Gray
Sorry, but my understanding (which certainly may be wrong, since I don't fully grasp the ins and outs of this yet) is that the namespace starts with the client object to which the method is bound. The attributes (like title) of the method never get into the namespace. This is part of the design

Re: [Zope] ZopeBook - URL to SQL

2000-11-24 Thread Chris Gray
Dieter, Thanks, you've added a new room to my brain :) Possibly that point should be made in The Book since the discussion of Pluggable Brains comes at the end of the chapter. Cheers, Chris On Fri, 24 Nov 2000, Dieter Maurer wrote: Chris Gray writes: The Zope book discusses calling

RE: [Zope] Special behavior or bug?

2000-11-24 Thread Chris Gray
pr="bar.objectValues()" but then it won't work in a header called by methods not in 'bar'. Another possible modification is expr="PARENTS[1].objectValues()". Cheers, Chris On Fri, 24 Nov 2000, Chris Gray wrote: Sorry, but my understanding (which certainly may be wrong, sin

Re: [Zope] PoPy and system tables

2000-11-25 Thread Chris Gray
I can pinpoint the problem a bit more. select relname, relowner, relpages, reltuples, relhasindex, relisshared, relkind, relnatts, relchecks, reltriggers, relukeys, relfkeys, relrefs, relhaspkey, relhasrules, relacl from pg_class works fine but select reltype from pg_class select relam from

RE: [Zope] Special behavior or bug?

2000-11-26 Thread Chris Gray
I've discovered another possible solution to your problem. In a DTML Method change dtml-var standard_html_header to dtml-var "standard_html_header(client=foo)" where foo is the id of a DTML Method. Then within standard_html_header, the variables title and id will refer to foo's id and

RE: [Zope] come see new.zope.org

2000-11-27 Thread Chris Gray
Then try 63.102.49.33. The new name just hasn't propagated to your dnsserver yet. Chris On Mon, 27 Nov 2000, Andy Dawkins wrote: Ethan errr. I have a problem with that address. The following error was encountered: Unable to determine IP address from host name for

[Zope] context in Python Script

2000-11-28 Thread Chris Gray
I still can't get external Python Scripts to work as described in the Zope Book. I am using the version of Python Scripts from the public CVS. Internal Scripts work fine, but I can't seem to use the "context" object in an external script. def tryContext(): """tryContext function"""

Re: [Zope] PoPy and Delete results

2000-11-28 Thread Chris Gray
by a delete as a sequence result) before running: delete from penguins where food='Henri Bergson' Cheers, Chris On Tue, 28 Nov 2000, Dieter Maurer wrote: Chris Gray writes: In psql a delete command returns a count of the number of rows deleted. Is this returned result available to a ZSQL method

RE: [Zope] ZMySQLDA installation problem (fwd)

2000-12-01 Thread Chris Gray
PROTECTED] To: Chris Gray [EMAIL PROTECTED] Subject: RE: [Zope] ZMySQLDA installation problem Hi Chris, I ran into similar errors. Here's the response from Jo Meder that helped me get MySQLDA compiled: Hope it helps! PS, check out the NIP Ltd Mail list archives. They've got a really nice search

[Zope] Searching Problem at Zope.org

2000-12-02 Thread Chris Gray
Search results at Zope.org seem to turn up a number of items with the wrong URL. For instance, a search on ZCatalog returns the How-to on building a searchable job board (http://www.zope.org/Members/mukhsein/job_board_howto) but the link in the search results page is to http://www.zope.org/. A

[Zope] ZopeBook ZCatalog Question

2000-12-02 Thread Chris Gray
Zope Book - Chapter 9 - 2nd sentence: "You can also use it to search external data such as relational data, files, and remote web pages." Can anyone point me to further information on how to do these things? Thanks, Chris ___ Zope maillist -

Re: [Zope] Link counter

2000-12-03 Thread Chris Gray
You want something like this in your linking page: form action="count_and_pass" input type="hidden" name="target_url" value="http://www.zope.org/" input type="submit" value="Go to Zope.org" OR a href="count_and_pass?target_url=http%3a//www.zope.org/"Go to Zope.org/a Then you need a

[Zope] Public CVS Zope won't compile (fwd)

2000-12-03 Thread Chris Gray
Did a fresh checkout but "python w_pcgi.py" chokes at: Writing the pcgi resource file (ie cgi script), /home/cpgray/zope_cvs_run/Zope2/Zope.cgi chmod 0755 /home/cpgray/zope_cvs_run/Zope2/Zope.cgi Traceback (innermost last): File "w_pcgi.py", line 111, in ? if __name__=='__main__':

Re: [Zope] dtml methods and properties

2000-12-03 Thread Chris Gray
On Mon, 4 Dec 2000, Willem Broekema wrote: As a DTML method is said to work with the properties of the object it is called at: DTML method "m": dtml-var bobobase_modification_time root folder of site/m displays the date/time when the last change happened to any file in the root

Re: [Zope] newbie question -- database list/report with sort bycolumn header

2000-12-04 Thread Chris Gray
Here's a fragment from a table that allows sorting by clicking the header in a dtml method named 'displayTable': table tr tha href="displayTable?sort_key=ID+desc"ID/a/th tha href="displayTable?sort_key=product"Product/a /tr dtml-in "SQLSelectQuery(sort_key=REQUEST['sort_key'])" Then feed

Re: [Zope] newbie guide to getting CVS version of Zope?

2000-12-04 Thread Chris Gray
The page you're looking for is http://www.zope.org/Resources/CVS_info. Chris On Mon, 4 Dec 2000, Cymen Vig wrote: Is there a newbies guide to getting the CVS version of Zope off cvs.zope.org? I'd like to follow the examples in the Zope Book (draft) but that is not possible in 2.2.4.

Re: [Zope] ZSQLMethods

2000-12-04 Thread Chris Gray
You want something along these lines: dtml-in selectFromTable1 dtml-in expr="selectFromTable2(id=_['id'])" display record /dtml-in /dtml-in This would be more efficient than pulling out the whole of two tables. Chris On Mon, 4 Dec 2000, Tom Deprez wrote: Hi, I'm

Re: [Zope] ZSQLMethods

2000-12-04 Thread Chris Gray
in database1, I've to query database2 Is there another way to do this? (more efficient?, ie less database query) Tom. - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Tom Deprez" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, Decem

Re: [Zope] ZSQLMethods

2000-12-04 Thread Chris Gray
On Mon, 4 Dec 2000, Chris Gray wrote: Try something like: dtml-in selectFromTable1 dtml-in selectFromTable2 dtml-if idFromTable1 = idFromTable2 display parts of the two records /dtml-if /dtml-in /dtml-in This keeps it to two db queries and the join work

[Zope] PythonScripts and ExternalMethods

2000-12-04 Thread Chris Gray
I notice that the CVS tree for Zope2 has incorporated (internal) PythonScripts and gotten rid of (external) PythonScripts. This leaves the old ExternalMethods but without the Bindings tab. Will External Methods eventually include this and present a form for passing argument values when the

Re: [Zope] ZSQLMethods

2000-12-04 Thread Chris Gray
the tables this could get *very* slow *very* quickly. Surely the ideal would be to move/copy the tables into the same DB. Phil - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Tom Deprez" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, Dece

Re: [Zope] Public CVS Zope won't compile (fwd)

2000-12-04 Thread Chris Gray
OK. I guess I'm an abductee or something. I've successfully checked out and compiled Zope2 twice today on different machines. There is only one difference in what I did from what wasn't working for me on the weekend; today I left off the -z7 option recommended on the Zope.org CVS_Info page.

[Zope] Unit Testing DTML and ZPT

2007-07-25 Thread Chris Gray
Is there any standard way of unit testing the two page templating methods in Zope 2? Chris ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] Zope options order sensitive

2001-04-19 Thread Chris Gray
I'm just beginning my study of the zope source. Going through z2.py I noticed that order matters in specifying command line options. For instance: ./start -a 127.0.0.1 -P 8000 sets HTTP_PORT to: [('127.0.0.1', '8080')] but:./start -P 8000 -a 127.0.0.1 sets HTTP_PORT to:

Re: [Zope-dev] Zope options order sensitive

2001-04-19 Thread Chris Gray
On Thu, 19 Apr 2001, Chris McDonough wrote: Not really... do you want to only listen on 127.0.0.1? - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:43 PM Subject: [Zope-dev] Zope options order sensitive

Re: [Zope-dev] Zope options order sensitive

2001-04-19 Thread Chris Gray
. Congratulations! You've found your first bug! ;-) Can you file this with the Collector at http://classic.zope.org:8080/Collector ? - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] S

[Zope-dev] Who maintains ZPublisher?

2002-06-11 Thread Chris Gray
;-) Thanks, Chris Gray Systems Analyst University of Waterloo Library Maybe I think too much --Paul Simon ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

[Zope-dev] bug in RESPONSE.appendHeader

2002-06-12 Thread Chris Gray
First off, the on-line documentation description of this method is 'Append a value to a cookie'. Second, it breaks if you are in fact adding a second value to a header that already exists. Either: dtml-call RESPONSE.setHeader('x-i-made-this','1013') dtml-call

RE: [Zope-dev] bug in RESPONSE.appendHeader

2002-06-12 Thread Chris Gray
Glad to help. The error in the documentation string seems to have propagated to other locations. It appears in /lib/python/Products/OFSP/Response.py(line 130) and in the Zope Book http://www.zope.org/Documentation/ZopeBook/AppendixB.stx. Chris On Wed, 12 Jun 2002, Brian Lloyd wrote: First

[Zope-dev] A First Look at Zope3

2003-07-31 Thread Chris Gray
inconvenient as a container's list of contents grows. Perhaps the buttons should always be near the text input. Chris Gray ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

Re: [Zope-dev] A First Look at Zope3

2003-07-31 Thread Chris Gray
On Thu, 31 Jul 2003, Fred L. Drake, Jr. wrote: Chris Gray writes: but I see one problems. The text input appears at the top of the list and the button to commit the change is at the bottom of the list. This will become more inconvenient