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 -
http://mail.zope.org/m
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.
Wa
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, December
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 TryIt
Just had a few additional points:
Should be of course.
You'll have problems if columns have the same name in the two tables. You
may have to modify ZSQL methods from 'select column_name' to 'select
column_name as distinct_name' to get around this.
Chris
On Mon, 4 D
ther 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, Dec
You want something along these lines:
display record
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 wondering how the following can be done.
>
> I've 2 databases. I want to do a 'join'
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.
>
Here's a fragment from a table that allows sorting by clicking the header
in a dtml method named 'displayTable':
ID
Product
Then feed sort_key into your SQLSelectQuery to use in an ORDER BY clause.
select * from table order by
You can change the properties of an object in DTML by callling
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":
>
>
> /m
> displays the date/time when the last change happened to any file
> in the root folder
This _is_ the folder's bobobase_modifica
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__': main(sys.
You want something like this in your linking page:
http://www.zope.org/">
OR
Go to
Zope.org
Then you need a 'count_and_pass' DTML Method like:
and a ZSQL Method called 'increment' that takes 'target_url' as an
argument and increments the count for that URL. Or you can get fancier
and us
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 - [EMAI
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 n
Walstad <[EMAIL 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.
D'oh!
Thanks, Michel. That was the problem. Right now bindings all default to
blank in a new external script.
Cheers,
Chris
On Tue, 28 Nov 2000, Michel Pelletier wrote:
> Chris Gray wrote:
> >
> > I still can't get external Python Scripts to work as described in
ected 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
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"""
retu
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 n
In psql a delete command returns a count of the number of rows
deleted. Is this returned result available to a ZSQL method using PoPy or
PyGreSQL?
Cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
I've discovered another possible solution to your problem. In a DTML
Method change
to
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 title.
Cheers,
Chris
___
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 pg
fication is expr="PARENTS[1].objectValues()".
Cheers,
Chris
On Fri, 24 Nov 2000, Chris Gray wrote:
> 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
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 discu
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
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
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
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:
http://localhost:8
Here's a fix. Change the line:
to:
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 method
to .
Cheers,
Chris
On Wed, 22 Nov 2000, Mike Kelland wrote:
> What does actually do? Looks like all it would do is
>
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
nam
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
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 &
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 thin
I've gone through the catalog aware example in the Zope book but there was
one small problem. The vocabulary was not being updated until I went in
and clicked the update catalog button. Is this a known bug or should I
retrace my steps to figure out where I messed up?
Chris
_
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?
>
Isn't the problem your else tags? Remove them and I think you'll get the
effect you wanted. As it stands the condition:
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 day working with
> Zope. I have a bit of a pro
Another thing that would work:
display record
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
>
> Phil
> - Original Message -
> From: "Capesius, Alan" <[EMAIL PROTECT
I wonder if something like this would work:
display parts of the two records
Might be more efficient to make one of the dtml-ins a dtml-with and find
the item with the matching id.
Interesting problem, I wish I had some time to play around with it.
Chris
O
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 I'
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.
_
Make sure that all three objects (navigation, standard_html_header, and
index_html) are DTML Methods and _not_ DTML Documents. If they are
documents objectValues list the folders they contain (none) rather than
the folders contained by the folder you call the method on. If any of
these are Docum
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
-DHAVE_CONFI
42 matches
Mail list logo