RE: [Zope] How to display only x records with

2001-01-15 Thread Ron Bickers
Exactly how is it not working? Without knowing that, I'll guess that you might be seeing the effects of the default orphan setting of 3, which prevents there from being a "left over" batch of less than 3. So if you only have 4 objects, setting size=2 will still cause all 4 to be returned. To fo

[Zope] How to display only x records with

2001-01-15 Thread Timothy Wilson
Hey everyone, I've got a method to display some text which uses to iterate through a bunch of "Spam and Eggs" ZClass instances. I thought that I could use size="2" in the to display only the first two instances, but it's not working. I want to display only the first two and use a link at the b

Re: [Zope] Embedding DTML

2001-01-15 Thread richard
[EMAIL PROTECTED] wrote: > > Zope 2.3 CVS > > I have a Python product that calls HTMLFile objects from within other > HTMLFile objects. Suppose the first file is: > > > > and the second file, page_html, is: > > > &dtml-URL1; > > I get a KeyError on URL1. If this file is: > >

Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]
On Tuesday 16 January 2001 12:31, Chris McDonough wrote: > 2.3 final should be out by the end of the month. The details are at > http://dev.zope.org/Resources/zope_230_plan.html > > Upgrading from 2.2.X to 2.3 should require minimal effort. > ya know, this really shows why digicool really fits yo

[Zope] DTML- &

2001-01-15 Thread Angietel
  Is equal to

Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread Chris McDonough
2.3 final should be out by the end of the month. The details are at http://dev.zope.org/Resources/zope_230_plan.html Upgrading from 2.2.X to 2.3 should require minimal effort. - Original Message - From: "Bak@kedai" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]>; <[EMAIL P

[Zope] sendmail implementation problem

2001-01-15 Thread Lee
Hi, This is more of an implementation problem that anything else, which is probably starightforward enough for those with more experience that myself. The simplified version is as follows: Form A collects usernames and send these to Form B. Form B takes the input parameters from the REQUEST obj

Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]
On Tuesday 16 January 2001 11:05, Chris McDonough wrote: > If I were you, I'd wait for 2.3 final. There are some significant changes > that need to make it into 2.3 yet as far as ZCatalog goes, including some > textindex bugfixes and merging of textindexes on update. 2.2.5 has some > Catalog bug

Re: [Zope] request for advice: using ZCatalog

2001-01-15 Thread Chris McDonough
If I were you, I'd wait for 2.3 final. There are some significant changes that need to make it into 2.3 yet as far as ZCatalog goes, including some textindex bugfixes and merging of textindexes on update. 2.2.5 has some Catalog bugfixes, but more bugs have been discovered and squashed since then

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Dennis Nichols
At 1/16/01 08:58 AM, Curtis Maloney wrote: >As for this frame problem... seems like you're voiding the best (IMHO) use of >frames, which is to prevent reloading of portions of the page. Otherwise I >just render all the objects into elements of an 'uber-table'... I agree with Curtis about frames

[Zope] request for advice: using ZCatalog

2001-01-15 Thread [EMAIL PROTECTED]
hello all i'm about to jump into uncharted waters (well, for me at least) i have a news site, and would like to use ZCatalog to present, index, etc news. all's well and good. i have a functioning ZClass, that is catalog aware, and searchable. what i'd like to know is -the stability of ZCatal

Re: [Zope] Newbie: Displaying another objects properties

2001-01-15 Thread Andy McKay
Document 2 has property: name=foo, type=string, value=bar Document 1 dtml: or Assuming Document1 and 2 are in the same folder. -- Andy McKay. - Original Message - From: "Michael Garrison Stuber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 15, 2001 5:26

Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source

2001-01-15 Thread Dirksen
The delUserForm calls 'deleteInstances' to do the job, yet 'deleteInstances' is not provided with the product, instead 'manage_deleteUsers' is. When I change 'deleteInstances' to 'manage_deleteUsers' in the code of delUserForm, things work out. Bill, it's probably a bug :) cheers Dirksen --- Bi

[Zope] Newbie: Displaying another objects properties

2001-01-15 Thread Michael Garrison Stuber
I've looked all over (the Zope book, the zope site, the Zope Newbie site, the Zope group archives) and I'm still confused. I'm trying to do something like this: DTMLDocument1: Contents{ } DTMLDocument2: Contents{ Blah blah blah } Document2Property{ Spoken by the blahster } Basically

[Zope] Can't access Control_Panel from folder with SiteRoot

2001-01-15 Thread Itai Tavor
Hi, I use Apache's ProxyPass to access a site in a Zope folder. The VirtualHost directive contains: ServerName MySite ProxyPass / http://10.0.1.20:8080/MySite/ ProxyPassReverse / http://10.0.1.20:8080/MySite/ ProxyPass /misc_ http://10.0.1.20:8080/misc_ ProxyPass /p_ h

[Zope] Searching method using DTML

2001-01-15 Thread Angietel
                             The ZOPE error is like :-   Expression (Python) Syntax error: invalid syntax , for tag , on line 20 of a

[Zope] Photo & Jpeg Support Problems

2001-01-15 Thread J. Atwood
I have been playing around with Drew's photo product and it works great with GIFs but when I try to upload a JPEG into it I get the following Error Type: IOError Error Value: decoder jpeg not available Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 2

[Zope] Embedding DTML

2001-01-15 Thread richard
Zope 2.3 CVS I have a Python product that calls HTMLFile objects from within other HTMLFile objects. Suppose the first file is: and the second file, page_html, is: &dtml-URL1; I get a KeyError on URL1. If this file is: then it works fine. Any clues? Richard -

[Zope] Adding content type to internet explorer

2001-01-15 Thread Hung Jung Lu
Hi, Can someone tell me how to add content types (and the associated program) to internet explorer on Windows platform? Is it in the registry? thanks, Hung Jung _ Get your FREE download of MSN Explorer at http://explorer.msn.com

[Zope] Strange structured-text behaviour in Python Product.

2001-01-15 Thread Max M
I have a Python product where I have a variable called self.description but when I try to show it with the text doesn't get formatted. Is there any good reason for that? It shows the text just fine, just not as structured-text. Regards Max M Max M. W. Rasmussen,Denmark. New Med

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
Timothy Wilson wrote: > > On Mon, 15 Jan 2001, Jim Washington wrote: > > > Where is the editFormAction Python Script? It should be in your ZClass's > > /methods. If you are instead acquiring it from a Folder somewhere, you > > will need to use 'context' instead of 'container' inside the Python

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Curtis Maloney
On Monday 15 January 2001 22:51, Oliver Bleutgen wrote: > > I think probably Javascript is the 'cleanest' solution in this case, > > but depending on the complexity of your UI another non-JS approach is > > to make every link target the topmost frome (e.g., target="_top") and > > redraw all frames

[Zope] online-user-list

2001-01-15 Thread urs.beyeler
i'm building up a community-site in educational use and would like to show all the online-users (like on ICQ) ... I'm using GUF for user-authentication. any ideas? thnxs. .urs ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/list

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
On Mon, 15 Jan 2001, Jim Washington wrote: > What is the name of the propertysheet in your ZClass that these values > are on? Is it 'job_info'? Yes. > Where is the editFormAction Python Script? It should be in your ZClass's > /methods. If you are instead acquiring it from a Folder somewhere,

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
Hi, Tim What is the name of the propertysheet in your ZClass that these values are on? Is it 'job_info'? Where is the editFormAction Python Script? It should be in your ZClass's /methods. If you are instead acquiring it from a Folder somewhere, you will need to use 'context' instead of 'contai

RE: [Zope] How do I authenticate through pcgi and win2000 ????

2001-01-15 Thread Max M
I just wondered if there is an "AUTHENTICATED_USER.authenticate(userName, password)" that I could call from a form. And then bypass all that IIS mumbo jumbo completely. Guess I will have to dig the sources. Regards Max M Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROT

Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source

2001-01-15 Thread Bill Anderson
Kamon Ayeva wrote: > Hi, > > Has anyone been able to use the delUserForm to delete > users added within a PersistentUserSource in the > PortalMembershipSystem object ? Yes, quite frequently. > I am not sure if this piece of code in delUserForm > preceding the HTML form snippet does the right

Re: [Zope] How do I authenticate through pcgi and win2000 ????

2001-01-15 Thread Dieter Maurer
=?iso-8859-1?Q?Max_M=F8ller_Rasmussen?= writes: > I have installed zope on port 8080 on a win 2K machine. > > It runs nicely, but due to firewalls and other reasons it has to run on port > 80. So I have added zope.pcgi etc. to the IIS. And it runs nicely. > > But when I try to use a manage

Re: [Zope] renaming python input params in DTML

2001-01-15 Thread Dieter Maurer
Lee writes: > ... > I have a Python method expecting 'text' as a parameter ... > ... > The Python method, testSQL, returns 'result'. > ... > > > > Inside 'expr="..."' you use "_['x']" instead of . As this is a Python expression that needs to be evaluated, it cannot be in a string. Yo

Re: [Zope] How to get python error output? (PIL)

2001-01-15 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > ... print in external method ... "print" does not print to the log file but to standard output. Under Unix (and I think under Windows, too) you can redirect standard output to a file. The alternative is to use Zope's Log module (called zLOG). Its output goes to the l

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
On Mon, 15 Jan 2001, Jim Washington wrote: > One point about your form: > > You have id as a form variable. You will be disappointed by its > behavior. Thanks Jim. Care to elaborate on the problems with using id as a form variable. -Tim -- Tim Wilson | Visit Sibley online: | Ch

[Zope] Folder upload ?

2001-01-15 Thread Marc Fischer
Hi, Could anyone tell me, if it is possible to upload a whole folder with all its including objekts like pictures and things into ZOPE? If yes, tell me how, please. And another question: a created my own zclass ( a newsitem). One instance of this newsitem has the same function like a folder. I c

Re: [Zope] ZMySQLDA returns truncated/corrupted data?

2001-01-15 Thread Andy Dustman
On Mon, 15 Jan 2001 [EMAIL PROTECTED] wrote: > I am running Zope from the CVS (from January 14th), MySQL 3.22.23 and > ZMySQLDA v2.0.1. Are you really running MySQL 3.22.23? This is a rather old version. > The install appears to be successfull, the Products appear in the Control > Panel, I can

Re: [Zope] REQUEST object - obtaining variables from

2001-01-15 Thread Lee
Hi there, Thanks for your help. I'm currently using the following code, which works perfectly; Randy's response provided the following code, which didn't work nor did any variation on it. Surprising as it 'appears' to be doing almost the same thing as above(?).

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
Hi, Tim I have it. The Python Script I sent you: container.propertysheets['job_info'].manage_changeProperties(REQUEST) needs to be rewritten: container.propertysheets.job_info.manage_changeProperties(REQUEST) Perhaps someone could explain why the first does not work. One point about your for

[Zope] Re: mysql connection string

2001-01-15 Thread Andy Dustman
On Mon, 15 Jan 2001, Olaf Zanger wrote: > first: > right now my setup uses a connection string "db root" which doesn't seam > to give a lot of savety :-). > at my provider i have a login, but sure no root access to the db. > * how does the connection string look for user name "peter-hauser" and

[Zope] How to get python error output? (PIL)

2001-01-15 Thread tilo . schwarz
Hi Zopians out there, thanks for helping me with my last question - here is a new one ;-) We do image-processing of traffic-video-sequences and I'd like to serve thumbnails use the following code (originally from some HOW-TO) as external method: import os, os.path, Image def get_image(self,

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Timothy Wilson
Jim (or anyone else who's feeling charitable this morning), Thanks for all your help. I really appreciate it. I wonder if you'd have time to look one more time at the two methods I've got that aren't working. I've included the actual code for my job posting product. Perhaps someone will find it i

Re: [Zope] mysql connection string

2001-01-15 Thread Oleg Broytmann
On Mon, 15 Jan 2001, Olaf Zanger wrote: > right now my setup uses a connection string "db root" which doesn't seam > to give a lot of savety :-). > at my provider i have a login, but sure no root access to the db. > * how does the connection string look for user name "peter-hauser" and > password

RE: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Max Møller Rasmussen
From: Oleg Broytmann [mailto:[EMAIL PROTECTED]] > I can assure it is. I run zope.net.ru in debug mode, and did debugging >of an External Method that draw the left column. After I modified the >source file Zope reread it, sure. I have never had problems with that either. It autorefreshes nicely

[Zope] mysql connection string

2001-01-15 Thread Olaf Zanger
hi there, two times trouble first: right now my setup uses a connection string "db root" which doesn't seam to give a lot of savety :-). at my provider i have a login, but sure no root access to the db. * how does the connection string look for user name "peter-hauser" and password "test3-.2"?

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Martijn Pieters
On Mon, Jan 15, 2001 at 12:51:01PM +0100, Oliver Bleutgen wrote: > > I think probably Javascript is the 'cleanest' solution in this case, > > but depending on the complexity of your UI another non-JS approach is > > to make every link target the topmost frome (e.g., target="_top") and > > redraw a

Re: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Chris Withers
Oleg Broytmann wrote: > > On Mon, 15 Jan 2001, Chris Withers wrote: > > > if you run zope in debug mode (./start -D) you won't have to hit 'edit" - > > > all external methods are re-read every time you access them. > > > > > That hasn't been my experience, but maybe I'm mistaken :-S > >I can

Re: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Oleg Broytmann
On Mon, 15 Jan 2001, Chris Withers wrote: > > if you run zope in debug mode (./start -D) you won't have to hit 'edit" - > > all external methods are re-read every time you access them. > > > That hasn't been my experience, but maybe I'm mistaken :-S I can assure it is. I run zope.net.ru in deb

[Zope] Re: MySQLDA and MySQL-python - patch needed?

2001-01-15 Thread paul_s_johnson
Brian, I finally got it working. Here's what I did: I uninstalled all of ZMySQLDA and MySQL-python (formerly MySQLdb - this name change didn't help any although in the big picture it probably needed to be done) deleting any trace of it. I then followed all the directions starting from here: ht

Re: [Zope] OpenBSD 2.8 woes

2001-01-15 Thread Ragnar Beer
Whereas I couldn't reproduce the error in a prior thread this time I can. On my OBSD 2.8 machine running python 1.52 -with-thread CPU load goes up to 99% when I try to access the management screens. There was a discussion on the OBSD ports list to create a 1.52 port. Did you check whether ther

Re: [Zope] OpenBSD 2.8 woes

2001-01-15 Thread Ragnar Beer
Seems you already found out what's wrong. Why didn't you post anything on the OBSD misc list so that they can fix it? Ragnar >Hello Jan: > >>I don't really know what else I could do. Right now it looks >>pretty much as if I'm going to switch to FreeBSD, my second >>favourite :-| Has anyone got

Re: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Chris Withers
Jens Vagelpohl wrote: > > if you run zope in debug mode (./start -D) you won't have to hit 'edit" - > all external methods are re-read every time you access them. > > jens That hasn't been my experience, but maybe I'm mistaken :-S Chris ___ Zope mai

Re: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Jens Vagelpohl
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them. jens on 1/15/01 6:04, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > I also would like to know, if it is possible to update a bunch of external > method zope

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
Hi, Tim You do not need to mess with the Python Script bindings. It looks like you are trying to get URL: www.isd197.k12.mn.us/hr/jobs/postings/1234/editJobAction(REQUEST) Which of course does not exist. I would change your assuming the DTML Method that has the form is called editJobAction.

Re: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Chris Withers
[EMAIL PROTECTED] wrote: > > Assume, I have a bunch of python modules / scripts, which I want to make > accessible via zope. Is it better to use the external methods to bring the > python modules into zope or should I make a Product out of my python modules. Well, do the python modules contain m

[Zope] Re-posted - How to delete users in Membership product with Persistent User Source

2001-01-15 Thread Kamon Ayeva
Hi, Has anyone been able to use the delUserForm to delete users added within a PersistentUserSource in the PortalMembershipSystem object ? I am not sure if this piece of code in delUserForm preceding the HTML form snippet does the right job: ... I can view the users but when I click on

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Oliver Bleutgen
> I think probably Javascript is the 'cleanest' solution in this case, > but depending on the complexity of your UI another non-JS approach is > to make every link target the topmost frome (e.g., target="_top") and > redraw all frames in the frameset on each 'click'. This way you know > that all

[Zope] ZMySQLDA returns truncated/corrupted data?

2001-01-15 Thread aasmund
I am running Zope from the CVS (from January 14th), MySQL 3.22.23 and ZMySQLDA v2.0.1. The install appears to be successfull, the Products appear in the Control Panel, I can add, and open a database connection. However, when I issue the following query: SHOW TABLES; I receive the following se

Re: [Zope] OpenBSD 2.8 woes

2001-01-15 Thread Luke Tymowski
Hello Jan: > I don't really know what else I could do. Right now it looks > pretty much as if I'm going to switch to FreeBSD, my second > favourite :-| > Has anyone got Zope 2.2.5 running under OpenBSD 2.8??? If so, I'd > be really curious what steps you followed to get it to work.- You will ha

[Zope] Design Q: Product vs. External Methods

2001-01-15 Thread tilo . schwarz
Hi Zope-Experts, one question concerning design using zope: Assume, I have a bunch of python modules / scripts, which I want to make accessible via zope. Is it better to use the external methods to bring the python modules into zope or should I make a Product out of my python modules. I also

[Zope] RE: ZMySQLDA and aggregate functions on Win

2001-01-15 Thread Markus Kemmerling
Thank you Dave for your answer. But what do you mean by you don't expect a SELECT returning a number to work? The error you got clearly is a mysql syntax error: If I have a table 'shop' and make a SELECT on 'show' I really wouldn't expect that to work ;-) But I don't get any mysql error, I get a

Re: [Zope] Calling other frames

2001-01-15 Thread Steve Spicklemire
I think probably Javascript is the 'cleanest' solution in this case, but depending on the complexity of your UI another non-JS approach is to make every link target the topmost frome (e.g., target="_top") and redraw all frames in the frameset on each 'click'. This way you know that all frames ref

Re: [Zope] OpenBSD 2.8 woes

2001-01-15 Thread Jan Muenther
Hello, > > Could anybody enlighten me??? I don't know Python (yet), so the > > tracebacks are not too informative for me ... > > Are you using Python 2.0? It's not yet compatible with Zope, though > efforts are being made. Just enter "python" to find out. No, I'm not. At first I tried to tak

[Zope] How do I authenticate through pcgi and win2000 ????

2001-01-15 Thread Max Møller Rasmussen
I have installed zope on port 8080 on a win 2K machine. It runs nicely, but due to firewalls and other reasons it has to run on port 80. So I have added zope.pcgi etc. to the IIS. And it runs nicely. But when I try to use a manage page I cannot log in without being a member of the win2K domain,

Re: [Zope] hasRole bug or feature in 2.2.?

2001-01-15 Thread Chris Withers
Chris McDonough wrote: > > I'll trust that you're right, Dieter, because reading the traversal > machinery code makes my head hurt. :-) Likewise... I'm sure that's not a good thing ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://li

Re: [Zope] Calling other frames

2001-01-15 Thread Martijn Pieters
On Sun, Jan 14, 2001 at 11:16:44PM -0800, Dirksen wrote: > First of all, I don't think you can achieve that with javascript. As far as I know, > neither IE nor Netscape allows javascript to access DOM objects of other frame page >for > security reasons. This restriction only applies when the two