[Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

Administrator Administrator" <Administrator@fd.org
Mon, 07 Aug 2000 11:50:01 -0400


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney (Administrator)
  2. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney (Administrator)
  3. Re: server instability: ZODB corruption? (Dieter Maurer)
  4. sybase - hmmm (Dr. Ross Lazarus)
  5. Re: sybase - hmmm (Andrew Kenneth Milton)
  6. Re: Problem with proxy role... (Aleksander Salwa)
  7. Python Method question (entropia)
  8. (OT) Re: [Zope] sybase - hmmm (Bill Anderson)
  9. Where to find ducument of ZODB (iap_y2fun.com)
  10. Re: (OT) Re: [Zope] sybase - hmmm (Andrew Kenneth Milton)
  11. Installing ZOPE on a Digital platform (Alexandru Cucereanu)
  12. is this possible? (boogie)
  13. FTP into Zope.org? (Chris Withers)
  14. Re: Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem) (Toby Dickenson)
  15. Re: XMLRPC returns error sometimes (Toby Dickenson)
  16. [ANN]: ZMailIn 0.3.0 Now Available (Andy Dawkins)
  17. Format problem? (Marko MARKOVIC)
  18. Changing user pwds (Aaron Williamson)
  19. Re: is this possible? (=?iso-8859-1?Q?Maik=2ER=F6der?=)
  20. Sth wrong with ZCatalog? (Marcin Kasperski)
  21. ZPatterns Question (RC Compaan)
  22. ZClass authorization problem (You are not authorized to access manage_changeProperties) (Gaspard, Bradley S)
  23. edit_propertiesForm traceback (Jean Jordaan)
  24. Newbie question: referring to <dtml-call> documents (David Loeffler)
  25. RE: Python Method question (Chris McDonough)
  26. RE: Installing ZOPE on a Digital platform (Chris McDonough)
  27. Accessing .gif on disk with Python Product? (Performance.net Strategic Internet Solutions)
  28. threading (Nicholas Lo)
  29. Re: Python Method question (entropia)
  29. SQL Result (Tom Deprez)
  29. Zope is slow on a windows 2000 server (Meeting Maker Webmaster)
  30. Re: Accessing .gif on disk with Python Product? (Martijn Pieters)

--__--__--

Message: 1
Date: Sun, 06 Aug 2000 15:20:21 -0400
To: zope@zope.org
From: "Administrator" <Administrator@fd.org>
Reply-To: "Administrator" <Administrator@fd.org>
Subject: [Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. New Zope classes announced for San Diego, California & Denver, Co
 lorado (Gary Graham)
  2. New Zope Training Dates Announced for San Diego, California and Denver, Colorado (Gary Graham)
  3. Re: dtml-calendar question (I GOT IT!!!!!!!!) (R. David Murray)
  4. Re: Zope with two platforms. (R. David Murray)
  5. Zope on old hardware?? (Steve Nicholson)
  6. Re: Precondition (R. David Murray)
  7. Re: Vocabulary?? (R. David Murray)
  8. Zope in single thread mode during DTML rendering (Dieter Maurer)
  9. Confusing "sqlvar" error message (Dieter Maurer)
  10. Re: ZCatalog attachments? (Dieter Maurer)
  11. Re: Pluggable brains aren't seen by first-nnn in <dtml-in>? (Dieter Maurer)
  12. Re: Solution Suggestions? (Dieter Maurer)
  13. Re: Less than helpful traceback (Dieter Maurer)
  14. Re: REPOST: README.txt Tab (Erik Enge)
  15. Re: Python Product Tutorial (Erik Enge)
  16. server instability: ZODB corruption? (Guido A.J. Stevens)
  17. Using MailHost with an SMTP server that wants authentication (Jean Jordaan)
  18. riddle me this Batman, coded copy/paste syntax? (Darran Edmundson)
  19. Troubles with ZOracleDA successfully resolved (Pedro Vega)
  20. Python Class trickyness (Erik Enge)
  21. Re: ZCatalog attachments? (Phil Harris)
  22. (Fwd) Re: [Zope] Pluggable brains aren't seen by first-nnn in  - SOLUTION (Brad Clements)
  23. Problems adding Properties to ZClass (Erich Seifert)

-- __--__-- 

Message: 1
From: Gary Graham <gary@digicool.com>
To: "'zope@zope.org'" <zope@zope.org>
Subject: [Zope] New Zope classes announced for San Diego, California & Denver, Co
lorado
lorado
Date: Fri, 4 Aug 2000 18:42:13 -0400

Digital Creations has scheduled 2 new Zope Training dates and locations.


The dates are September 25-28, 2000 for Zope 101 & 201 in San Diego,
California and also October 2-5, 2000 for Zope 101 & 201 in Denver,
Colorado.

See http://www.digicool.com/Solutions/Training/ for details.

--Gary

Gary Graham         gary@digicool.com  
Director, Sales & Marketing
Digital Creations    Fredericksburg, Virginia
mobile: 540.840.3813  office: 540.371.6909 ext 117
fax: 540.371.1201   private eFax: 781.394.7868
----------------------------------------------------
Creators of Zope: The Open Source Application / Content Management
Server
www.zope.org
www.digicool.com 




-- __--__-- 

Message: 2
Date: Fri, 4 Aug 2000 18:58:07 -0400
From: Gary Graham <gary@digicool.com>
Subject: [Zope] New Zope Training Dates Announced for San Diego, California and Denver, Colorado
To: Zope Annoucements <zope@zope.org>
Organization: Micro Applications

New Zope training dates were announced today for San Diego, California and Denver, Colorado.  See the Zope training page at http://www.digicool.com/Solutions/Training/ for details.

--Gary

Gary Graham         gary@digicool.com  
Director, Sales & Marketing
Digital Creations    Fredericksburg, Virginia
mobile: 540.840.3813  office: 540.371.6909 ext 117
fax: 540.371.1201   private eFax: 781.394.7868
----------------------------------------------------
Creators of Zope: The Open Source Application / Content Management Server
www.zope.org
www.digicool.com 

-- __--__-- 

Message: 3
Date: Fri, 4 Aug 2000 21:11:06 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: tom smith <tom@othermedia.com>
cc: zope <zope@zope.org>
Subject: Re: [Zope] dtml-calendar question (I GOT IT!!!!!!!!)

On Fri, 4 Aug 2000, tom smith wrote:
> notice the startDateString=StartDateString...which I thought the <dtml-let
> would've handled, anyway....this seems to have fixed it
> 
> can anyone tell me why?

ZSQL methods do not pick variables up out of the name space because
the possability of unintended collision with database variables is
considered too high.  So ZSQL forces you to be fairly explicit
about which variables you are passing.

--RDM


-- __--__-- 

Message: 4
Date: Fri, 4 Aug 2000 21:58:47 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Francisco Assis Rosa <rosa@dynamicdiagrams.com>
cc: zope@zope.org
Subject: Re: [Zope] Zope with two platforms.

On Fri, 4 Aug 2000, Francisco Assis Rosa wrote:
> We would like to be able to have
> new developments on products to be passed
> from the development platform to the
> staging platform and to have new
> content to be passed from the staging
> platform to the development platform.

I wonder if you could put your content in a mountable
storage and just periodically copy that storage down
to the development machine, and similarly periodically
copy the master storage (containing the ZClasses) up
from the development machine.  If your products
are Python products you wouldn't even need a mountable
storage.

> Also, how would you see schema versioning
> How could we for instance deal with
> objects generated from a product if the product
> schema changes ?

Zope uses the __setstate__ method for handling this
case in Python products.  I think there's a howto somewhere but I'm
not sure.  If not you can find examples of calling it in
the Zope sources.  For ZClasses the objects get all their
info from the ZClass, so you generally don't run into upgrade
problems (though people have run into trouble with properties
they have tried to delete hanging around on existing instances).

--RDM


-- __--__-- 

Message: 5
Reply-To: <Steve.Nicholson@yoursolutions.com>
From: "Steve Nicholson" <Steve.Nicholson@yoursolutions.com>
To: <zope@zope.org>
Subject: [Zope] Zope on old hardware??
Date: Sat, 5 Aug 2000 03:27:26 +0100
charset="iso-8859-1"

Hi I'm looking at running Linux 6.1 and zope on a dual processor P90 Dell
powerEdge server, 128Mb RAM.  Is this a viable proposition for hosting, I'm
not anticipating millions of hits?? I realise it's not the fastest thing in
town but for a good price it gives me a RAID drive for reliability.  What
sort of load will it handle, hits etc? Does Zope take advantage of the Dual
processors?  What improvement is there over one processor?  This box can be
upgraded to P166's what would be the improvement?  Is anyone out there
running Linux on Dell EX590-2, can I expect lots of problems or easy to
set-up?  Pointers to sites with more information would be appreciated.

I haven't got it yet, so want to find out more before I waste to much
time/energy/money on it.

Thanks for any help/advice you can offer.

Steve.


-- __--__-- 

Message: 6
Date: Fri, 4 Aug 2000 22:11:55 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: RC Compaan <roche@up-front.co.za>
cc: Zope <zope@zope.org>
Subject: Re: [Zope] Precondition

On Fri, 4 Aug 2000, RC Compaan wrote:
> What does the "Precondition" property of the file class refer to?

As far as I can tell from a quick scan of the source, the precondition
is an object that is called just before the file object is rendered.
It can raise an exception, in which case the object will not get
rendered.  I could swear I read that documented somewhere, but I
can't find it.  Someone should submit a doc patch for the API help
pane.  I'd do it, but I haven't gotten around to learning how the
help system works yet so I don't know what file to patch <grin>.

--RDM


-- __--__-- 

Message: 7
Date: Fri, 4 Aug 2000 22:15:26 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Sven Hohage <sven.hohage@zeitspringer.de>
cc: zope@zope.org
Subject: Re: [Zope] Vocabulary??

On Fri, 4 Aug 2000, Sven Hohage wrote:
> think I've missed something.
> What is the feature "Vocabulary"??Just a hint please!

A Vocabulary allows you to associate an arbitrary method of parsing
input text into words for the purposes of cataloging and searching in
text indexes.  The default Vocabulary uses the original Splitter.c
word parser, which is very English centric.

--RDM


-- __--__-- 

Message: 8
From: Dieter Maurer <dieter@handshake.de>
Date: Fri,  4 Aug 2000 23:00:11 +0200 (CEST)
To: zope@zope.org
Subject: [Zope] Zope in single thread mode during DTML rendering

A collegue of mine succeeded today to implement an infinite DTML
loop. That happens ...
However, during this loop, Zope did not respond to any request.
Effectively, it was in single thread mode.

	Zope 2.1.6 Binary Distribution for Sparc Solaris 2.6
	ZOracle DA, DCOracle, Oracle 8.1.6

After several minutes, Zope reported an "infinite recursion in document
template" and the world awoke from its sleep.


I was unable to reproduce this at home, though:

	Zope 2.1.6 Source Distribution on Linux 2
	No database connections.


Hugh, I have been lying:

  I just removed the "-D" from the Linux start script,
  and Zope blocked during the infinite loop.

  The behaviour is not related to the "-D" set or unset.

  It just blocks sometimes and at other times, it does
  not.


Dieter

-- __--__-- 

Message: 9
From: Dieter Maurer <dieter@handshake.de>
Date: Fri,  4 Aug 2000 22:25:51 +0200 (CEST)
To: zope@zope.org
Subject: [Zope] Confusing "sqlvar" error message

Today, I analysed a confusing error message from "dtml-sqlvar".

	SQL query template:
		....
		<dtml-sqlvar "_[name]" type=string>
		....

	reported: "missing input variable: _[name]"


Of cause, I did not expect that such an input variable should
be necessary and I suspected the DTML parser not to
see the "..." around "_[name]".


After analysis, the explanation was simple:

	SQLVar.render is a bit stupid in its error handling:

        try:
            expr=self.expr
            if type(expr) is type(''): v=md[expr]
            else: v=expr(md)
        except:
            if args.has_key('optional') and args['optional']: return 'null'
            raise 'Missing Input', 'Missing input variable, <em>%s</em>' % name


        This error handling is only senseful for "type(expr) == type('')",
	i.e. for plain variable access.
	For true expressions, the original exception would be
	*much* more useful.

	In my case, unwrapping the "try ... except ..."
	produced "KeyError: FOLLUP_UP",
	an obvious type (FOLLOW_UP rather than FOLLUP_UP).


	Thus, the above exception handling should become:

        except:
            if args.has_key('optional') and args['optional']: return 'null'
	    if type(self.expr) != type(''): raise
            raise 'Missing Input', 'Missing input variable, <em>%s</em>' % name
	
		  
I will put it into the collector.


Dieter

-- __--__-- 

Message: 10
From: Dieter Maurer <dieter@handshake.de>
Date: Fri,  4 Aug 2000 22:06:41 +0200 (CEST)
To: Simon Coles <simon@nipltd.com>
Cc: zope@zope.org
Subject: Re: [Zope] ZCatalog attachments?

Simon Coles writes:
 > We have binary files stored in Zope, for example Word documents (but 
 > could be any of a variety of document types).
 > 
 > We would like to be able to index and search the contents of these 
 > files using ZCatalog. So if a Word file contains the word "Fred", 
 > then any search for "Fred" would include that file in the list of 
 > documents returned.
Someone else already told you, that you must create a parameterless
method (it need not necessary be named "PrincipiaSearchSource")
that returns the files content.

You may not need to keep the rendered version around but
may be able to extract the plain text on demand.
I think, there is a "word.dll" that provides access to
MS Word from applications. Alternatively, you could
control Word via COM.


Dieter

-- __--__-- 

Message: 11
From: Dieter Maurer <dieter@handshake.de>
Date: Fri,  4 Aug 2000 22:10:27 +0200 (CEST)
To: bkc@murkworks.com
Cc: zope@zope.org
Subject: Re: [Zope] Pluggable brains aren't seen by first-nnn in <dtml-in>?

Brad Clements writes:
 > However first-eventday is ALWAYS true, however when I print &dtml-
 > eventday; the output value is always the same for each row, so first-
 > eventday shouldn't be true on any row except the first.

Almost surely, the "in" tag does not call a callable object
(because it does not expect, they could be callable).
You, therefore, get the method itself.
It is identical for all records.


Dieter

-- __--__-- 

Message: 12
From: Dieter Maurer <dieter@handshake.de>
Date: Sat,  5 Aug 2000 10:16:53 +0200 (CEST)
To: Craig <craig@tool.net>
Cc: zope@zope.org
Subject: Re: [Zope] Solution Suggestions?

Craig writes:
 > ... special "Tips" objects in Zope ...

It seems, this is an ideal task for a Catalog Aware ZClass.

On zope.org, you will find tutorials for ZClass and ZCatalog.


Dieter

-- __--__-- 

Message: 13
From: Dieter Maurer <dieter@handshake.de>
Date: Sat,  5 Aug 2000 10:21:54 +0200 (CEST)
To: "Spicklemire, Jerry" <Jerry.Spicklemire@IFLYATA.COM>
Cc: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] Less than helpful traceback

Spicklemire, Jerry writes:
 > Any thoughts about how to find out what the erro message 
 > (below) means? If I could just find out what exactly is 
 > not being found, it would help alot, but there's no hint.

 > Zope has encountered an error while publishing this resource. 
 > 
 > Resource not found
 > 
 > ....
 > Troubleshooting Suggestions
 > 
 > ....
 > For more detailed information about the error, please refer to the HTML
 > source for this page. 

For unknown (but strange) reasons, at least earlier Zope versions
(up to 2.1.6), sometimes place the URL of the missing resource into
an HTML comment. Therefore, you will not see it in rendered problem report,
only in its HTML source.

Thus, follow the hint: tell your browser you want to see
the HTML source of the error report.


Dieter

-- __--__-- 

Message: 14
Date: Sat, 5 Aug 2000 11:23:35 +0200 (CEST)
From: Erik Enge <erik@src.no>
To: Robert_J_Roberts@rl.gov
cc: zope@zope.org
Subject: Re: [Zope] REPOST: README.txt Tab

On Fri, 4 Aug 2000 Robert_J_Roberts@rl.gov wrote:

> I'll re-ask the question:
> 
> > How do I get the README tab to appear in a product?

In the Squishdot Product I discovered this:

    Readme = Document('', __name__='')    
    Readme.__roles__ = None

This one seems to add a README tab.  If you have a README.txt file in your
Products directory it displays it.


-- __--__-- 

Message: 15
Date: Sat, 5 Aug 2000 11:24:55 +0200 (CEST)
From: Erik Enge <erik@src.no>
To: Loren Stafford <lstaffor@dynalogic.com>
cc: zope@zope.org, Erik Enge <erik@enge.net>
Subject: Re: [Zope] Python Product Tutorial

On Fri, 4 Aug 2000, Loren Stafford wrote:

> I don't know of any tutorial. ZScheduler creates a container (a subclass of
> Catalog in fact), so you might use that code as a starting point. It doesn't
> put other objects in the container, tho.

Thanks, but I'm really interested in how I would add other objects.  I
guess if I dig deep enough, I'll find it. :-)


-- __--__-- 

Message: 16
To: zope@zope.org
Cc: Paul J Stevens <paul@nfg.nl>
Subject: [Zope] server instability: ZODB corruption?
Organization: Net Facilities Group    ***   http://www.nfg.nl
From: gyst@nfg.nl (Guido A.J. Stevens)
Date: 05 Aug 2000 14:22:30 +0200

I'm hunting down an arcane problem in one of our Zope sites and find
myself hitting new and wildly diverse problems every day. I hope
somebody can point me in the direction of some solution strategies.

Main suspect is a corrupted Data.fs.in file. How can I audit and
repair it?

problem A: access denied vs. KeyError
============================

For starters, we built a website with a lot of custom programming. I
created the NFGnav product
http://www.zope.org/Members/gyst/NFGnav
and my partner built a collection of ZClasses. 

All this was Tested And Working Fine (TM).

Since some weeks, part of the site gives an 'access denied' error. We
had to shut down that subtree. Strange thing is, it also gives access
denied for the manager/owner logins of the site - that's me and I
really have access to everything. What is even stranger, is that when
I logon as superuser, I get a KeyError instead of an access denied
error.

=> Question: which parts of zope would be prone to denying access to a 
privileged user, while generating KeyErrors for the superuser?


problem B: hanging zope thread zombies all zope sites
========================================

While debugging this problem, I found a strange correlation with
another problem we're having: zope threads consuming 99.9% CPU. Now
and again, a zope thread hangs. All zope sites are dead. I have to not
only restart zope; I have to stop zope, restart apache, and start zope
again to get rid of the hanging thread and get the zope sites alive
again.

As soon as I start digging around in the buggy site, the number of
thread crashes jumps up. In combination with the problems we're having 
with that site itself, this suggests two possible causes:

1) ZODB curruption. We've had a complete server crash 3 weeks ago and
it is quite possible the ZODB isn't 100% healthy. In my zope
installation I found a utility 'bbb.py' to audit data storage
files. Alas, it is of no use:
 | zeno:/usr/lib/zope/utilities# python bbb.py /var/lib/zope/import/www.intratuin.nl.zexp
 | 
 | The input file is not a ZODB 2 database file.
 | This script only works with ZODB 2 (BoboPOS) data or export files.

=> Question: is there another utility for checking and repairing
object stores?

2) Another possible cause would be an infinite loop in one of our
custom scripts. To try and debug this I wanted to import a copy of the 
offending site into one of our testlab machines. However, on importing 
the zexp file I got:

  <STRONG>Error Type: TypeError</STRONG><BR>
  <STRONG>Error Value: ('len() of unsized object', <class Shared.DC.ZRDB.DA.SQL at 845bd28>, None)</STRONG><BR> 
 
<!--
Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_importObject)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
    (Object: manage_importObject)
  File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 478, in manage_importObject
    (Object: ApplicationDefaultPermissions)
  File /usr/lib/zope/lib/python/ZODB/ExportImport.py, line 284, in importFile
TypeError: (see above)

I get the same error if I export another part of our production zope
installation and try to import it to another test machine.

Which points back into the direction of a file corruption again,
doesn't it? 

=> So, what can I do about it?

:*CU#
-- 
***    Guido A.J. Stevens      ***    mailto:gyst@nfg.nl    ***
***    Net Facilities Group    ***    tel:+31.43.3618933    ***
***    Postbus 1143            ***    fax:+31.43.3560502    ***
***    6201 BC  Maastricht     ***    http://www.nfg.nl     ***

Liefde en emoties, haat en afkeer zitten erin verstopt. Zoals
mensen cyborgs zijn, is het technische ding altijd een hybride.
Dat maakt zowel mensen als dingen zo fascinerend.
[Achterhuis, ISBN 90-263-1524-4, p.391]

-- __--__-- 

Message: 17
From: Jean Jordaan <Jean@mosaicsoftware.com>
To: "'zope@zope.org'" <zope@zope.org>
Subject: [Zope] Using MailHost with an SMTP server that wants authentication
Date: Sat, 5 Aug 2000 15:50:38 +0200
charset="iso-8859-1"

Hi Zopers

Looking at the attributes of the dtml-sendmail tag, I don't 
see any way of conveying authentication data to the smtphost. 
Our setup here (using Exchange) requires a username/password 
to send. Any way of coping with this?

-- 
Jean Jordaan   --    technical writer    --    Mosaic Sofware

-- __--__-- 

Message: 18
From: Darran Edmundson <dee124@rsphy1.anu.edu.au>
Subject: [Zope] riddle me this Batman, coded copy/paste syntax?
To: zope@zope.org
Date: Sun, 6 Aug 2000 01:15:24 +1000 (EST)
Reply-To: Darran.Edmundson@anu.edu.au


The Zope quick reference lists the following methods
for the stock folder object:

   manage_copyObjects(self, ids, [REQUEST, RESPONSE])
   manage_cutObjects(self, ids, [REQUEST])
   manage_delObjects(self, [ids, REQUEST])
   manage_pasteObjects(self, [cb_copy_data, REQUEST])

For the life of me I can't get copy|cut and paste
to work even for the simplest of examples.  I've
tried snippets like the following (embedded within
a DTML method in a folder) but to no avail:

  <dtml-call "manage_copyObjects(['subobjectid']">
  <dtml-call "manage_pasteObjects()">

  <dtml-call "manage_copyObjects([_['subobjectid']])">
  <dtml-call "manage_pasteObjects()">

Can someone shed some light on my misunderstanding?

Cheers,
Darran.


-- __--__-- 

Message: 19
From: "Pedro Vega" <pvega@clientes.euskaltel.es>
To: <Zope@zope.org>
Subject: [Zope] Troubles with ZOracleDA successfully resolved
Date: Sat, 5 Aug 2000 19:04:18 +0200
charset="iso-8859-1"

All the problem was an permissions issue;

Pedro Vega


-- __--__-- 

Message: 20
To: zope@zope.org
Subject: [Zope] Python Class trickyness
From: Erik Enge <erik@enge.net>
Date: 05 Aug 2000 18:49:29 +0200


Good evening.

I know how to make a Python Class, which is a container.  But how do
I make another Class which can only be added from the container-class
I have created.  Know what I mean?  The last class should only show up
in the "Available Objects"-list if the user is in a instance of the
first class.  Did this make any sense?

Thanks for any answers.  :-)

-- __--__-- 

Message: 21
From: "Phil Harris" <phil.harris@zope.co.uk>
To: "Dieter Maurer" <dieter@handshake.de>, "Simon Coles" <simon@nipltd.com>
Cc: <zope@zope.org>
Subject: Re: [Zope] ZCatalog attachments?
Date: Sat, 5 Aug 2000 19:35:14 +0100
charset="iso-8859-1"

All,

Doing the text pulling from COM is *SLOW* to say the least,  You'd probabnly
be better converting them to RTF and then using something like OmniMark to
convert to XML.

That way you'd have the best of both worlds, including something you can
render to HTML when zDOM/zXSLT becomes a reality.

I already do this and it's fast enough at the conversion, a 500k doc takes
about 2 seconds.

hth

Phil
phil.harris@zope.co.uk
----- Original Message -----
From: Dieter Maurer <dieter@handshake.de>
To: Simon Coles <simon@nipltd.com>
Cc: <zope@zope.org>
Sent: Friday, August 04, 2000 9:06 PM
Subject: Re: [Zope] ZCatalog attachments?


> Simon Coles writes:
>  > We have binary files stored in Zope, for example Word documents (but
>  > could be any of a variety of document types).
>  >
>  > We would like to be able to index and search the contents of these
>  > files using ZCatalog. So if a Word file contains the word "Fred",
>  > then any search for "Fred" would include that file in the list of
>  > documents returned.
> Someone else already told you, that you must create a parameterless
> method (it need not necessary be named "PrincipiaSearchSource")
> that returns the files content.
>
> You may not need to keep the rendered version around but
> may be able to extract the plain text on demand.
> I think, there is a "word.dll" that provides access to
> MS Word from applications. Alternatively, you could
> control Word via COM.
>
>
> Dieter
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


-- __--__-- 

Message: 22
From: "Brad Clements" <bkc@murkworks.com>
Organization: MurkWorks, Incorporated.
To: zope@zope.org
Date: Sat, 5 Aug 2000 14:50:24 -0400
Subject: [Zope] (Fwd) Re: [Zope] Pluggable brains aren't seen by first-nnn in  - SOLUTION
Reply-to: bkc@murkworks.com

On 4 Aug 2000, at 22:10, Dieter Maurer wrote:

> Brad Clements writes:
>  > However first-eventday is ALWAYS true, however when I print &dtml-
>  > eventday; the output value is always the same for each row, so first-
>  > >
>  eventday shouldn't be true on any row except the first.
> 
> Almost surely, the "in" tag does not call a callable object
> (because it does not expect, they could be callable).
> You, therefore, get the method itself.
> It is identical for all records.


So true, the solution is to define an __init__ class in the brain class,
then use that to populate "self".

class   PackageEvent:
    """Package Event Pluggable Brain"""
    def __init__(self):
        """initialize"""
        self.__dict__['eday'] = self.eventday()

    def eventday(self):
        return
        DateTime(apply(time.mktime,self.eventtime.tuple()[:3]+(0,0,0,0,0,-1
        )))


Now 'first-eday' works.


Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements

-- __--__-- 

Message: 23
Date: Sat, 05 Aug 2000 20:59:00 +0200
From: Erich Seifert <e.seifert@gmx.net>
To: zope@zope.org
Subject: [Zope] Problems adding Properties to ZClass

Hi,

I'm having problems with adding Properties to a ZClass propertysheet.
I always get an IndexError (no traceback, sorry) when I've hit the Add button.
There are no special characters in the name ('Daten').
Does someone know what could be the problem?

Thanks in advance
Eric



-- __--__-- 

_______________________________________________
Zope maillist  -  Zope@zope.org



-- __--__-- --

End of Zope Digest



--__--__--

Message: 2
Date: Sun, 06 Aug 2000 16:45:41 -0400
To: zope@zope.org
From: "Administrator" <Administrator@fd.org>
Reply-To: "Administrator" <Administrator@fd.org>
Subject: [Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. LoginManager and ZPatterns - Sparse Install Docs, Help. (Darin Lee)
  2. DA threading issues (was: server instability: ZODB corruption?) (Gui
do A.J. Stevens)
  3. Re: Python Class trickyness (Andrew Kenneth Milton)
  4. Zope 2.2 under Debian (Woody) broken? (Pedro I. Sanchez)
  5. RE: Zope 2.2 under Debian (Woody) broken? (Chris McDonough)
  6. Re: Zope 2.2 under Debian (Woody) broken? (Terry Kerr)
  7. Re: Zope 2.2 under Debian (Woody) broken? (Pedro I. Sanchez)
  8. Re: Zope 2.2 under Debian (Woody) broken? (Terry Kerr)
  9. Sybase & Thread (Nicholas Lo)
  10. Re: Precondition (Martijn Pieters)
  11. RE: riddle me this Batman, coded copy/paste syntax? (Dr. Ross Lazarus)
  12. XMLRPC returns error sometimes (Gijs Reulen)
  13. Re: File upload failure. Help needed. (Monty Taylor)
  14. Installation error? (Jake Biernacki)
  15. Problem with proxy role... (Magnus Lie Hetland)
  16. Re: Precondition (R. David Murray)
  17. RE: XMLRPC returns error sometimes (Chris McDonough)
  18. Re: Problem with proxy role... (LinuxFreedom)
  19. Sequence problem (peter be)
  20. RESPONSE.write() (Pedro Vega)

-- __--__-- 

Message: 1
From: "Darin Lee" <dlee@usol.com>
To: <zope@zope.org>
Subject: [Zope] LoginManager and ZPatterns - Sparse Install Docs, Help.
Date: Sat, 5 Aug 2000 16:00:29 -0400
charset="iso-8859-1"

Zopistas,

Maybe I'm making this harder than it needs to be.

I want to set up a membership system for the site I am developing with Zope.
I do not want to "restrict" any part of the site - instead I want a user to
login (at their convenience) and then extend the "menu" options based on
their group membership. If a user is not logged in - no problem, they just
won't be able to view the advanced options - they'll still be able to surf
the site (I want to maintain my user list in an external database as well).

What is the best tool in Zope to accomplish this? After searching the site,
I find there are several products - ACL Users, GUF, and LoginManager. Is GUF
deprecated (The intro tends to give me this feeling)? Is LoginManager the
way to go?

It also appears GUF is more tailored toward restrictive authentication (I've
already perused the "Using GUF with an SQL Database" how-to). I want a user
to login (via HTML form/cookie) whenever they like, and get presented with
additional menu options (based on their AUTHENICATED/GROUP status). Not have
them try to access a "restricted" page (or type "manage") and get a basic
authentication login box to get in.

As far as LoginManager itself is concerned, I assume it requires ZPatterns.
However, the Zpatterns install instructions are *very sparse.*  How do I get
the thing set up? Here's verbatim from the ZPatterns docs:

-----
After unpacking the ZPatterns product, you will need to build this [c]
>extension using the included Setup file in the ZPatterns directory.
-----

How do I use the "Setup" file?? With the command "python Setup"? It doesn't
say *how* to use it.

-----
Please follow the standard procedures for building a Python module on your
platform. (On Unix-ish systems, this usually consists of copying a
Makefile.pre.in to the directory, then doing a make -f Makefile.pre.in boot
>followed by make.
-----

What are these standard procedures?? I built Python itself with
"configure|Make|Make install". Where do I get this "Makefile.pre.in" file in
the first place, from my Python src/build directory?? Correct me if I'm
wrong, but there's usually some kind of script file to run that get's things
going, or a "configure" script. I find none of this in the
lib/python/Products/ZPatterns directory after I untarred it.

So, I'm basically stumped. It doesn't appear GUF will do what I need, and I
have failed on multiple attempts to get Loginmanager/ZPatterns installed. If
someone could point me in the right direction on this I sure would
appreciate it.

Thanks much,
-Darin Lee


-- __--__-- 

Message: 2
To: "Luis Cortes" <LCortes@imeme.net>
Cc: zope@zope.org, Paul J Stevens <paul@nfg.nl>
Subject: [Zope] DA threading issues (was: server instability: ZODB corruption?)
Organization: Net Facilities Group    ***   http://www.nfg.nl
From: gyst@nfg.nl (Guido A.J. Stevens)
Date: 05 Aug 2000 22:10:07 +0200


If I'm running current stable versions of Zope and Zope-MysqlDA, do I
need to consider threading issues or are these safely abstracted away
in the DA?

"Luis Cortes" <LCortes@IMEME.NET> writes:

>     It may just be the version of Zope you have ( with regard to the Thread
> problem ) there exists a version of zope that was known to cause the thread
> death problem.  You might want to check the patches or upgrade to a good
> version.

I'm running the Debian frozen release, i.e. 2.1.6 with security
patches. Do you have any specific references on the thread problem? I
find nothing on it in the changelogs I've found. Do I need to go to
2.2.0 for this? 

A seach on 'threading problem' turns up a hornet's nest of deep
technical shit. Most of those mails are a year old, is this still an
issue? As a developer, do I need to understand threading issues when
developing database accessing products, or may I safely assume that
threading, locking and transaction semantics are handled between the
Database Adapter and Zope itself?

I found a mail that says I should run Zope single-threaded when using
MySQL: http://lists.zope.org/pipermail/zope/1999-July/006487.html
Checking my installation, I find I have no threading option activated, 
which means I'll be running the default number of 4 threads. What will 
my server performance look like if I reduce this to 1 thread? Not
that I'm having such a wonderful performance now, having my pager go
off every hour :-(

Is there a way to allocate different threads to different SiteRoot
virtual websites, so I can lock a single site in a single thread but
let my installation as a whole still retain some multi-threading
performance?

:*CU#
-- 
***    Guido A.J. Stevens      ***    mailto:gyst@nfg.nl    ***
***    Net Facilities Group    ***    tel:+31.43.3618933    ***
***    Postbus 1143            ***    fax:+31.43.3560502    ***
***    6201 BC  Maastricht     ***    http://www.nfg.nl     ***

Cyberspace is portrayed as some strange realm inside the network,
in a theoretical realm, or in some utopia. The concept of
being-in-the-world brings us back to the significance of
everyday involvement in keyboards, desks, monitors, cables,
workstations, and practices...
[Coyne, ISBN 0-262-03228-7, p.168]

-- __--__-- 

Message: 3
From: Andrew Kenneth Milton <akm@mail.theinternet.com.au>
Subject: Re: [Zope] Python Class trickyness
pm"
To: Erik Enge <erik@enge.net>
Date: Sun, 6 Aug 2000 11:56:40 +1000 (EST)
CC: zope@zope.org

+----[ Erik Enge ]---------------------------------------------
| 
| Good evening.
| 
| I know how to make a Python Class, which is a container.  But how do
| I make another Class which can only be added from the container-class
| I have created.  Know what I mean?  The last class should only show up
| in the "Available Objects"-list if the user is in a instance of the
| first class.  Did this make any sense?
| 
| Thanks for any answers.  :-)

This is easier than you might think:-

Step 1: Do not register your 'sub' class(es) in your __init__.py

Step 2: In your container class import your sub class manage_add function(s)
        (not sure if this is really needed, but, I do it for completeness).

Step 3: In your container class add:-

meta_types=({'name':'Sub Product', 'action':'manage_addSubProduct'},) # Sub-ob
ject types that are specific to this object

You can add as many as you like...

Step 5: Optionally add a meta_type to your sub class (if you haven't)
Step 6: Optionally add icon='thisIcon.gif" into your sub classes so they get
        pretty icons.

Copy over new Product, and Restart Zope :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au| 

-- __--__-- 

Message: 4
Date: Sun, 06 Aug 2000 02:39:03 +0000
From: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
To: zope@zope.org
Subject: [Zope] Zope 2.2 under Debian (Woody) broken?

Hello,

I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
problems are reported during the installation but when I try to access
http://localhost:9673/ I get the following error:

Zope Error

                Zope has encountered an error while publishing this
resource. 

                Error Type: TypeError
                Error Value: unexpected keyword argument: validated_hook

The same happens when I try to access the management menus.

Is the Woody package broken? Any ideas?

Thank you,

-- 
Pedro

-- __--__-- 

Message: 5
From: Chris McDonough <chrism@digicool.com>
To: "'Pedro I. Sanchez'" <pedro.i.sanchez@altavista.net>, zope@zope.org
Subject: RE: [Zope] Zope 2.2 under Debian (Woody) broken?
Date: Sat, 5 Aug 2000 22:50:34 -0400

It would seem to be broken.... you might want to contact the package
maintainer.  I think it's Glyph Lefkowitz?

> -----Original Message-----
> From: Pedro I. Sanchez [mailto:pedro.i.sanchez@altavista.net]
> Sent: Saturday, August 05, 2000 10:39 PM
> To: zope@zope.org
> Subject: [Zope] Zope 2.2 under Debian (Woody) broken?
> 
> 
> Hello,
> 
> I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> problems are reported during the installation but when I try to access
> http://localhost:9673/ I get the following error:
> 
> Zope Error
> 
>                 Zope has encountered an error while publishing this
> resource. 
> 
>                 Error Type: TypeError
>                 Error Value: unexpected keyword argument: 
> validated_hook
> 
> The same happens when I try to access the management menus.
> 
> Is the Woody package broken? Any ideas?
> 
> Thank you,
> 
> -- 
> Pedro
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- __--__-- 

Message: 6
Date: Sun, 06 Aug 2000 13:02:24 +1000
From: Terry Kerr <terry@adroit.net>
To: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
CC: zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

Did u upgrade an existing zope instance with the new distribution, or was
it a clean install?  Did you install the SiteAccess product?  This sounds
like the error you get with an old SiteAccess object in the new zope2.2.
You need to upgrade to the new SiteAccess.

"Pedro I. Sanchez" wrote:

> Hello,
>
> I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> problems are reported during the installation but when I try to access
> http://localhost:9673/ I get the following error:
>
> Zope Error
>
>                 Zope has encountered an error while publishing this
> resource.
>
>                 Error Type: TypeError
>                 Error Value: unexpected keyword argument: validated_hook
>
> The same happens when I try to access the management menus.
>
> Is the Woody package broken? Any ideas?
>
> Thank you,
>
> --
> Pedro
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




-- __--__-- 

Message: 7
Date: Sun, 06 Aug 2000 03:15:48 +0000
From: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
To: Terry Kerr <terry@adroit.net>
CC: zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

Thank you for the hint.

I had purged my old zope (dpkg --purge) but it seems something was still
there hanging around. I did an "rm -rf /var/lib/zope /usr/lib/zope" and
reinstalled zope and it worked!

I then tried to install the package "zope-siteaccess" from Woody but it
depends on zope (>= 2.0.0-2) which is not available :|

I'm sort of new to zope so may I ask, Do I need this "zope-siteaccess"
package from Woody?

Thank you,

Terry Kerr wrote:
> 
> Did u upgrade an existing zope instance with the new distribution, or was
> it a clean install?  Did you install the SiteAccess product?  This sounds
> like the error you get with an old SiteAccess object in the new zope2.2.
> You need to upgrade to the new SiteAccess.
> 
> "Pedro I. Sanchez" wrote:
> 
> > Hello,
> >
> > I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> > problems are reported during the installation but when I try to access
> > http://localhost:9673/ I get the following error:
> >
> > Zope Error
> >
> >                 Zope has encountered an error while publishing this
> > resource.
> >
> >                 Error Type: TypeError
> >                 Error Value: unexpected keyword argument: validated_hook
> >
> > The same happens when I try to access the management menus.
> >
> > Is the Woody package broken? Any ideas?
> >
> > Thank you,
> >
> > --
> > Pedro
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> --
> Terry Kerr (terry@adroit.net)
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax:     +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ:     79303381

-- __--__-- 

Message: 8
Date: Sun, 06 Aug 2000 13:35:07 +1000
From: Terry Kerr <terry@adroit.net>
To: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>, zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

You only need the siteaccess product if you wish to server multiple domains
from one zope instance.

"Pedro I. Sanchez" wrote:

> Thank you for the hint.
>
> I had purged my old zope (dpkg --purge) but it seems something was still
> there hanging around. I did an "rm -rf /var/lib/zope /usr/lib/zope" and
> reinstalled zope and it worked!
>
> I then tried to install the package "zope-siteaccess" from Woody but it
> depends on zope (>= 2.0.0-2) which is not available :|
>
> I'm sort of new to zope so may I ask, Do I need this "zope-siteaccess"
> package from Woody?
>
> Thank you,
>
> Terry Kerr wrote:
> >
> > Did u upgrade an existing zope instance with the new distribution, or was
> > it a clean install?  Did you install the SiteAccess product?  This sounds
> > like the error you get with an old SiteAccess object in the new zope2...2.
> > You need to upgrade to the new SiteAccess.
> >
> > "Pedro I. Sanchez" wrote:
> >
> > > Hello,
> > >
> > > I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> > > problems are reported during the installation but when I try to access
> > > http://localhost:9673/ I get the following error:
> > >
> > > Zope Error
> > >
> > >                 Zope has encountered an error while publishing this
> > > resource.
> > >
> > >                 Error Type: TypeError
> > >                 Error Value: unexpected keyword argument: validated_hook
> > >
> > > The same happens when I try to access the management menus.
> > >
> > > Is the Woody package broken? Any ideas?
> > >
> > > Thank you,
> > >
> > > --
> > > Pedro
> > >
> > > _______________________________________________
> > > Zope maillist  -  Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> > --
> > Terry Kerr (terry@adroit.net)
> > Adroit Internet Solutions Pty Ltd (www.adroit.net)
> > Phone:   +613 9563 4461
> > Fax:     +613 9563 3856
> > Mobile:  +61 414 938 124
> > ICQ:     79303381

--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




-- __--__-- 

Message: 9
From: "Nicholas Lo" <nicklo@computer.org>
To: <zope@zope.org>
Subject: [Zope] Sybase & Thread
Date: Sun, 6 Aug 2000 12:29:56 +0800
boundary="----=_NextPart_000_0019_01BFFFA2.07B5C100"

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01BFFFA2.07B5C100
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I just wonder if anyone can help me with my problem. Recently, I've=20
been working on creating a ZOPE product which requires periodic=20
access to my Sybase. I have created a thread process using the=20
Threading module. There is no problem of periodically wake up the=20
thread and print something to the screen. So, I guess I have no=20
problem with thread programming under ZOPE. However, when I add some=20
database related routines to the thread, problems started to occur. I=20
sometimes got '... not connected to the database'. When I did an=20
SQL 'update', nothing has been updated on the database server when I=20
actually looked into the database using isql. After a whole day of=20
trial & error, now I've got 'ZOPE Memory Error'! I just wonder what=20
has gone wrong. I really have no clue and my deadline is pressing :(

1) I want to know what is the proper way of using thread under ZOPE.
2) Is there any critical limitation of SybaseDAv2?
3) Can SybaseDAv2 & Threading live together happily?
4) What the role of ZODB in such situation?

Thanks a million if anyone can help!

Regards,
Nick



------=_NextPart_000_0019_01BFFFA2.07B5C100
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffecd8>
<DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>I just wonder if anyone can =
help me with=20
my problem. Recently, I've <BR>been working on creating a ZOPE product =
which=20
requires periodic <BR>access to my Sybase. I have created a thread =
process using=20
the <BR>Threading module. There is no problem of periodically wake up =
the=20
<BR>thread and print something to the screen. So, I guess I have no =
<BR>problem=20
with thread programming under ZOPE. However, when I add some =
<BR>database=20
related routines to the thread, problems started to occur. I =
<BR>sometimes got=20
'... not connected to the database'. When I did an <BR>SQL 'update', =
nothing has=20
been updated on the database server when I <BR>actually looked into the =
database=20
using isql. After a whole day of <BR>trial &amp; error, now I've got =
'ZOPE=20
Memory Error'! I just wonder what <BR>has gone wrong. I really have no =
clue and=20
my deadline is pressing :(<BR><BR>1) I want to know what is the proper =
way of=20
using thread under ZOPE.<BR>2) Is there any critical limitation of=20
SybaseDAv2?<BR>3) Can SybaseDAv2 &amp; Threading live together =
happily?<BR>4)=20
What the role of ZODB in such situation?<BR><BR>Thanks a million if =
anyone can=20
help!<BR><BR>Regards,<BR>Nick<BR><BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0019_01BFFFA2.07B5C100--


-- __--__-- 

Message: 10
Date: Sun, 6 Aug 2000 07:14:55 +0200
From: Martijn Pieters <mj@digicool.com>
To: "R. David Murray" <bitz@bitdance.com>
Cc: RC Compaan <roche@up-front.co.za>, Zope <zope@zope.org>
Subject: Re: [Zope] Precondition
RC Compaan <roche@up-front.co.za>, Zope <zope@zope.org>

On Fri, Aug 04, 2000 at 10:11:55PM -0400, R. David Murray wrote:
> On Fri, 4 Aug 2000, RC Compaan wrote:
> > What does the "Precondition" property of the file class refer to?
> 
> As far as I can tell from a quick scan of the source, the precondition
> is an object that is called just before the file object is rendered.
> It can raise an exception, in which case the object will not get
> rendered.  I could swear I read that documented somewhere, but I
> can't find it.  Someone should submit a doc patch for the API help
> pane.  I'd do it, but I haven't gotten around to learning how the
> help system works yet so I don't know what file to patch <grin>.

  Precondition

      Allows you to specify a precondition for the File. A precondition is a
      method or document which is executed before the File is viewed or
      downloaded. If the precondition raises an exception then the File cannot
      be viewed. 

This is from the Help page presented when you click the 'help' button on the
'Edit' tab of a 'File' object.

-- 
Martijn Pieters
| Software Engineer            mailto:mj@digicool.com
| Digital Creations          http://www.digicool.com/
| Creators of Zope               http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------

-- __--__-- 

Message: 11
Date: Sun, 06 Aug 2000 17:37:31 +1000
From: "Dr. Ross Lazarus" <rossl@med.usyd.edu.au>
Organization: University of Sydney
To: zope@zope.org
Subject: [Zope] RE: riddle me this Batman, coded copy/paste syntax?

This code worked fine in 2.1.6 but is broken
(http://classic.zope.org:8080/Collector/1371/view) for me when moving
zclass instances in 2.2.0

However...YMMV, so here it is for what it's worth.

Note that thingstocopyidlist is just a list containing the object ids
you want cloned from sourcefolder into targetfolder and that the
clipboardstuff trick came out of a latenight reading of some python
source
deep in the bowels of zope....


     <dtml-with "_.getitem(sourcefolder)">
     <dtml-call
"REQUEST.set('clipboardstuff',manage_copyObjects(ids=thingstocopyidlist))">
     </dtml-with>
     <dtml-with "_.getitem(targetfolder)">
     <dtml-call "manage_pasteObjects(cb_copy_data=clipboardstuff)">
     </dtml-with>

> The Zope quick reference lists the following methods
> for the stock folder object:
> 
>    manage_copyObjects(self, ids, [REQUEST, RESPONSE])
>    manage_cutObjects(self, ids, [REQUEST])
>    manage_delObjects(self, [ids, REQUEST])
>    manage_pasteObjects(self, [cb_copy_data, REQUEST])
> 
> For the life of me I can't get copy|cut and paste
> to work even for the simplest of examples.  I've
> tried snippets like the following (embedded within
> a DTML method in a folder) but to no avail:
> 
>   <dtml-call "manage_copyObjects(['subobjectid']">
>   <dtml-call "manage_pasteObjects()">
> 
>   <dtml-call "manage_copyObjects([_['subobjectid']])">
>   <dtml-call "manage_pasteObjects()">
> 
> Can someone shed some light on my misunderstanding?
> 
> Cheers,
> Darran.

-- __--__-- 

Message: 12
From: "Gijs Reulen" <greulen@gilsing.nl>
To: <zope@zope.org>
Subject: [Zope] XMLRPC returns error sometimes
Date: Sun, 6 Aug 2000 12:52:30 +0200
charset="iso-8859-1"

I am experimenting with xml-rpc and Zope. Some Methods from the API work ok,
but others return an error. A common error is:

Error Value: cannot marshal <extension class
Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects

I receive this error for example when for Zope 2.1.6 I execute:
ObjectManager.objectValues
Where as the next Method works ok:
ObjectManager.objectItems

Maybe the to be returned info is to complex ?

Gijs Reulen


-- __--__-- 

Message: 13
Date: Sun, 06 Aug 2000 13:55:07 +0200
From: Monty Taylor <mtaylor@goldridge.net>
Reply-To: mtaylor@goldridge.net
Organization: Information Innovation
To: Urvashi Singh <urvashis@getafix.infogain.com>
CC: zope@zope.org
Subject: Re: [Zope] File upload failure. Help needed.

What version of Zope are you using?

Urvashi Singh wrote:
> 
> Hi,
> 
> I am a new user of Zope. I have Zope--linux2-x86.tar.gz bundle installed
> on my Linux machine, up and working. While I was trying to create a simple
> page using dtml files, I wanted to upload a few files from my hard drive
> onto Zope database. When I choose the Browse button to select a file from
> the targeted directory and say "Add", I get an error message:
> 
>        "The document contacined no data.
>         Try again later, or contact the server's administrator."
> 
> I fail to understand, why am I getting this error when the targeted file
> size is 25519 bytes ?
> 
> Kindly advice.
> 
> Also kindly suggest which document to go through before writing Zope
> applications.
> 
> Thanks and Regards,
> Urvashi
> - --
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- __--__-- 

Message: 14
From: "Jake Biernacki" <jake@ybm.co.za>
To: <zope@zope.org>
Subject: [Zope] Installation error?
Date: Sun, 6 Aug 2000 14:41:34 +0200
boundary="----=_NextPart_000_0040_01BFFFB4.6AD567B0"

This is a multi-part message in MIME format.

------=_NextPart_000_0040_01BFFFB4.6AD567B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am having trouble running zope on my machine I have installed it but =
keep getting the following error when I try to start it
"socket error host not found".=20

Jake

------=_NextPart_000_0040_01BFFFB4.6AD567B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am having trouble running zope on my =
machine I=20
have installed it but keep getting the following error when I try to =
start=20
it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"socket error host not found". =
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jake</FONT></DIV></BODY></HTML>

------=_NextPart_000_0040_01BFFFB4.6AD567B0--


-- __--__-- 

Message: 15
From: "Magnus Lie Hetland" <mlh@idi.ntnu.no>
To: <zope@zope.org>
Cc: "Amund Tveit" <amundt@anick.com>
Subject: [Zope] Problem with proxy role...
Date: Sun, 6 Aug 2000 16:43:18 +0200
charset="iso-8859-1"

Hi!

I'm trying to set up a site with user registration (similar to that on the
zope site), and have been using the JobBoard HOWTO as an example
of how to let anonymous users add objects. The code works just like
it should when I'm logged in as Manager, and I *have* set the proxy
role of the method that processes the form to Manager, but still, when
I try to use it anonymously, I get the message that I don't have access
to the user class... I've tried several implementations, but I don't
understand
the problem...

If the method is proxied as Manager, shouldn't it (and all
the methods it calls) have the rights of Manager? (I also tried adding
Owner, but that didn't help...) In that case - why doesn't it work, while
it *does* work for me when I'm logged in as Manager?

Can there be a standard problem hiding here? (Or, perhaps, it's
obvious?)

Any help is appreciated. Thanks.

--

  Magnus Lie Hetland      (magnus at hetland dot org)

 "Reality is what refuses to disappear when you stop
  believing in it"                 -- Philip K. Dick



-- __--__-- 

Message: 16
Date: Sun, 6 Aug 2000 11:09:57 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Martijn Pieters <mj@digicool.com>
cc: Zope <zope@zope.org>
Subject: Re: [Zope] Precondition

On Sun, 6 Aug 2000, Martijn Pieters wrote:
>   Precondition
> 
>       Allows you to specify a precondition for the File. A precondition is a
>       method or document which is executed before the File is viewed or
>       downloaded. If the precondition raises an exception then the File cannot
>       be viewed. 
> 
> This is from the Help page presented when you click the 'help' button on the
> 'Edit' tab of a 'File' object.

I knew I'd read it somewhere!

First I ran through the help menu, but I must have looked at
File/Image Add and missed File/Image Edit.  Then I looked at an
Image (I had no File objects handy), and when I saw that the help
tab for the Edit, page had no description of precondition, and indeed
that there was no way to set it, I figured the docs for it must
only be in the API section.  But the API section does not discuss
*any* of the call paramters.  So I thought it was undocumented.

Since the code supports preconditions on an Image, is this an interface
error or a design decision (the latter seems more likely)?  If it's
a design decision, shouldn't precondition still be documented in
the Image api help doc?

This is an example of a systematic problem with the (very useful
<grin>) help docs as they stand:  if the API docs implicitly assume
that the parameters are documented in the corresponding management
interface panel then there should at least by a cross link; and if
there are sometimes parameters that are *not* documented on the
manage page, then that needs to be taken into account somehow.

--RDM


-- __--__-- 

Message: 17
From: Chris McDonough <chrism@digicool.com>
To: "'Gijs Reulen'" <greulen@gilsing.nl>, zope@zope.org
Subject: RE: [Zope] XMLRPC returns error sometimes
Date: Sun, 6 Aug 2000 11:56:35 -0400

Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
and special "datetime", base64, and fault objects can be passed via
XML-RPC.   Anything else is too complex.  The spec at
http://www.xml-rpc.com/spec is useful.

> -----Original Message-----
> From: Gijs Reulen [mailto:greulen@gilsing.nl]
> Sent: Sunday, August 06, 2000 6:53 AM
> To: zope@zope.org
> Subject: [Zope] XMLRPC returns error sometimes
> 
> 
> I am experimenting with xml-rpc and Zope. Some Methods from 
> the API work ok,
> but others return an error. A common error is:
> 
> Error Value: cannot marshal <extension class
> Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects
> 
> I receive this error for example when for Zope 2.1.6 I execute:
> ObjectManager.objectValues
> Where as the next Method works ok:
> ObjectManager.objectItems
> 
> Maybe the to be returned info is to complex ?
> 
> Gijs Reulen
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- __--__-- 

Message: 18
From: "LinuxFreedom" <web@linuxfreedom.com>
To: "Magnus Lie Hetland" <mlh@idi.ntnu.no>
Cc: <zope@zope.org>
Subject: Re: [Zope] Problem with proxy role...
Date: Sun, 6 Aug 2000 13:02:47 -0400
charset="iso-8859-1"

Magnus:

In setting up the JobBoard from the HOWTO, what worked for me was setting
the proxy role for both the method in the JobBoard product that processes
the form to "Manager" (Product
at/Control_Panel/Products/JobBoard/job_board_entry_add); as well as the
regular method that processes the form to "Manager".

The HOWTO seems to indicate that only the regular method must be set to
proxy, i.e., "Important:The "entry_addProcessor" must be set to "Manager"
proxy for it to work."  When I followed only this instruction, I ran into
the same problem that you did.

However, while this works for me, I am not sure that this is the zen way of
doing things.

Regards,
Roger



> Hi!
>
> I'm trying to set up a site with user registration (similar to that on the
> zope site), and have been using the JobBoard HOWTO as an example
> of how to let anonymous users add objects. The code works just like
> it should when I'm logged in as Manager, and I *have* set the proxy
> role of the method that processes the form to Manager, but still, when
> I try to use it anonymously, I get the message that I don't have access
> to the user class... I've tried several implementations, but I don't
> understand
> the problem...
>
> If the method is proxied as Manager, shouldn't it (and all
> the methods it calls) have the rights of Manager? (I also tried adding
> Owner, but that didn't help...) In that case - why doesn't it work, while
> it *does* work for me when I'm logged in as Manager?
>
> Can there be a standard problem hiding here? (Or, perhaps, it's
> obvious?)
>
> Any help is appreciated. Thanks.
>
> --
>
>   Magnus Lie Hetland      (magnus at hetland dot org)
>
>  "Reality is what refuses to disappear when you stop
>   believing in it"                 -- Philip K. Dick
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


-- __--__-- 

Message: 19
From: "peter be" <peter@grenna.net>
To: <zope@zope.org>
Subject: [Zope] Sequence problem
Date: Sun, 6 Aug 2000 18:07:41 +0100
charset="iso-8859-1"

This little DTML code is supposed to be generic for alla folder is the profil folder.

What I want to do is a to have a next folder and previous folder in evey one.

/profil/
    /folder_XHJSD
    /folder_GIEHG
    /folder_OWKD
    /and_many_more
    /....
    /folders_here

    document_html

Document_html is acquired in all folders in the profil folder.
I started doing something like this:
<dtml-in "profil.objectValues(['Folder'])" sort=id>
    <dtml-var id>, 
</dtml-in>
... and this returns: folder_XHJSD, folder_GIEHG, folder_OWKD....

What I want to do is something like this:

<dtml-call "REQUEST.set('thisid',_.string.split(URL,'/')[-2])">
<dtml-in "profil.objectValues(['Folder'])" sort=id>
    <dtml-if "_['id'] == _['thisid']">
        <a href="<dtml-var sequence-previous>">previous</a>
        <a href="<dtml-var sequence-next>">next</a>
    </dtml-if>
</dtml-in>

.... but this returns 
Error Type: KeyError
Error Value: sequence-next
so it is obviuosly the wrong way of doing it.

Grateful for help!


-- __--__-- 

Message: 20
From: "Pedro Vega" <pvega@clientes.euskaltel.es>
To: <Zope@zope.org>
Subject: [Zope] RESPONSE.write()
Date: Sun, 6 Aug 2000 20:59:23 +0200
charset="iso-8859-1"

Hi all.
I am using RESPONSE.write() for stream oriented output in a python function,
but I don´t know the length of the data so I can´t set Content-Length and
the browser don´t display anything if the Content-Length header is not set.

This is my little problem, any suggestion ?

Pedro Vega




-- __--__-- 

_______________________________________________
Zope maillist  -  Zope@zope.org



-- __--__-- --

End of Zope Digest



--__--__--

Message: 3
From: Dieter Maurer <dieter@handshake.de>
Date: Sun,  6 Aug 2000 21:30:02 +0200 (CEST)
To: gyst@nfg.nl (Guido A.J. Stevens)
Cc: zope@zope.org
Subject: Re: [Zope] server instability: ZODB corruption?

Guido A.J. Stevens writes:
 > Main suspect is a corrupted Data.fs.in file. How can I audit and
 > repair it?
"Data.fs.in" is only used during installation.
Probably, you mean "Data.fs".

 
 > problem A: access denied vs. KeyError
 > ============================
 > ...
 > => Question: which parts of zope would be prone to denying access to a 
 > privileged user, while generating KeyErrors for the superuser?
What key is missing?
Where is it missing (traceback)?

 > problem B: hanging zope thread zombies all zope sites
 > ========================================
 > ...
 > => Question: is there another utility for checking and repairing
 > object stores?
There is a "tranalys" product at zope.org.
It allows to analyse the transactions made to "Data.fs".




Dieter

--__--__--

Message: 4
Date: Mon, 07 Aug 2000 15:22:27 +1000
From: "Dr. Ross Lazarus" <rossl@med.usyd.edu.au>
Organization: University of Sydney
To: zope@zope.org
Subject: [Zope] sybase - hmmm

I know that zope runs on everything else, but how do we reconcile the
DC/Sybase partnership announced late last year

"Sybase is committed to delivering best of breed products supporting
open platform development. We are pleased to partner with Digital
Creations, and by supporting the Zope application server with Adaptive
Server Enterprise, we deliver an enterprise-class database solution for
customers using Open Source technology," said David Jacobson, director
of product marketing for Sybase Enterprise Solutions Division."  (see
http://linuxpr.com/releases/661.html)

with today's Sybase announcement that

"Sybase will not be incorporating Linux into its internet application
product range in a move that runs contrary to current industry trends
and to the company's overall strategy. The move comes after a trial run
failed to grab customer interest."
(see
http://www.silicon.com/public/door?REQUNIQ=965611102&6004REQEVENT=&REQINT1=38967&REQSTR1=newsnow)

We're becoming a sybase/zope/linux dependent outfit; to whom should I
email my concerns - or is it time to move to another SQL backend?

--__--__--

Message: 5
From: Andrew Kenneth Milton <akm@mail.theinternet.com.au>
Subject: Re: [Zope] sybase - hmmm
To: "Dr. Ross Lazarus" <rossl@med.usyd.edu.au>
Date: Mon, 7 Aug 2000 15:29:19 +1000 (EST)
CC: zope@zope.org

+----[ Dr. Ross Lazarus ]---------------------------------------------
| I know that zope runs on everything else, but how do we reconcile the
| DC/Sybase partnership announced late last year

[ snip... ]

| We're becoming a sybase/zope/linux dependent outfit; to whom should I
| email my concerns - or is it time to move to another SQL backend?

They picked the wrong free UNIX platform. Linux has a whole lot of 
machines installed, but, not too many of them would be deployed in an
Enterprise environment, where people would be happy to pay money for
licenses.

An OS heavily promoted by one specific individual who doesn't really believe
in commercial software doesn't seem like the ultimate platform to aim
high-priced internet application software at.

I think you'll find that Sybase the DB will still be released for Linux,
just not their Internet Application Suite, which is a different kettle
of fish.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au| 

--__--__--

Message: 6
Date: Mon, 7 Aug 2000 08:11:23 +0200 (CEST)
From: Aleksander Salwa <ololo@zeus.polsl.gliwice.pl>
To: zope@zope.org
Subject: Re: [Zope] Problem with proxy role...


On Sun, 6 Aug 2000, Magnus Lie Hetland wrote:

> I'm trying to set up a site with user registration (similar to that on the
> zope site), and have been using the JobBoard HOWTO as an example
> of how to let anonymous users add objects. The code works just like

This how-to was written before Zope 2.2.0 was released. 2.2.0 involved major
security policy changes.

> If the method is proxied as Manager, shouldn't it
> (and all the methods it calls) have the rights of Manager? (I also tried

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not in 2.2.0. Now, AFAIK, you have to explicitly set proxy roles for each
method.

> Can there be a standard problem hiding here? (Or, perhaps, it's
> obvious?)
> 

Try to set role 'Manager' for job board entry's constructor
(job_board_entry_add).


ololo@zeus.polsl.gliwice.pl

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/


--__--__--

Message: 7
Date: Mon, 07 Aug 2000 09:20:14 +0200
From: entropia <entropiamax@jazzfree.com>
To: zope@zope.org
Subject: [Zope] Python Method question

I hava a question regards Python Method: How can I
import a Python Method from a Product module?


--__--__--

Message: 8
Date: Mon, 07 Aug 2000 02:16:45 -0600
From: Bill Anderson <bill@libc.org>
To: zope@zope.org
Subject: [Zope] (OT) Re: [Zope] sybase - hmmm

Andrew Kenneth Milton wrote:
> 
> +----[ Dr. Ross Lazarus ]---------------------------------------------
> | I know that zope runs on everything else, but how do we reconcile the
> | DC/Sybase partnership announced late last year
> 
> [ snip... ]
> 
> | We're becoming a sybase/zope/linux dependent outfit; to whom should I
> | email my concerns - or is it time to move to another SQL backend?
> 
> They picked the wrong free UNIX platform. Linux has a whole lot of
> machines installed, but, not too many of them would be deployed in an
> Enterprise environment, where people would be happy to pay money for
> licenses.

Whilst I would ordinarily agree with some ofthis, in the case of Sybase, I have to disagree. I work primarily at a
company called Hewlett Packard, not exactly a small company. We have service contracts with Sybase on NT and HP-UX
(suprise). After over six months of trying to get sybase to work with us on getting the appropriate libraries to us to
compile the SybaseDA on HP-UX, and then being told it must be faulty programming on the part of whomever developed the
adapter, we gave up.

This experience has left a real bad taste in my mouth regarding sybase.

The good side of the coin, is that we dumped Sybase for the, and moved to straight ZODB. :)


The claim that Linux is not deployed in Enterprise environments is uninformed at best. The most recent announcement came
from Google, which claims 4000+ Linux servers. Clearly an enterpise environment. 
( http://www.internetwk.com/lead/lead060100.htm )

HP is migrating many, many Enterprise Servers from NT and even HPUX to Linux boxes, in addition to porting Linux to
their hardware (PA-RISC), and their tools to Linux. I am personally aware of over 600 machines deployed in that
particular enterprise, and the number literally grows weekly.

And, of course, there is IBM.

> An OS heavily promoted by one specific individual who doesn't really believe
> in commercial software doesn't seem like the ultimate platform to aim
> high-priced internet application software at.

While I don't mean any offense, your characterization here is both unwarranted and unfounded. ESR and Linus (not sure
exactly whom you refer to) both believe in commercial software just fine. 

In addition, if you look at the largest promoters of Linux, you will not find any one individual. Rather, you will find
an array of companies, of all sizes; from ISP's to ol' Big Blue. IBM, for example, is in the process of porting most
everything they have to Linux. And they do it for commercial reasons.

 
> I think you'll find that Sybase the DB will still be released for Linux,
> just not their Internet Application Suite, which is a different kettle
> of fish.

IIRC, this is accurate.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

--__--__--

Message: 9
From: "iap_y2fun.com" <iap@y2fun.com>
To: <zope@zope.org>
Subject: [Zope] Where to find ducument of ZODB
Date: Mon, 7 Aug 2000 16:15:44 +0800
boundary="----=_NextPart_000_0015_01C0008A.BD37A000"

This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C0008A.BD37A000
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Is there anyone can tell me how to "alter table" in Zope?
and where to find a tutorial or manual of ZODB.
I am new to POS ,
Is there any stuff that will give me a senerio of
working with POS, such as ZODB.

Thanks a lot.

Iap, Singaun




------=_NextPart_000_0015_01C0008A.BD37A000
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dbig5" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>Is there anyone can tell =
me how to "alter table" in=20
Zope?</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>and where to find a =
</FONT></FONT><FONT face=3D=B2=D3=A9=FA=C5=E9=20
size=3D2>tutorial or manual&nbsp;of ZODB.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>I am new to POS =
,</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>Is there any stuff that =
will give me a senerio=20
of</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>working with POS, such as =
ZODB.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>Thanks a lot.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>Iap, =
Singaun</FONT></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0015_01C0008A.BD37A000--


--__--__--

Message: 10
From: Andrew Kenneth Milton <akm@mail.theinternet.com.au>
Subject: Re: [Zope] (OT) Re: [Zope] sybase - hmmm
am"
To: Bill Anderson <bill@libc.org>
Date: Mon, 7 Aug 2000 18:56:35 +1000 (EST)
CC: zope@zope.org

+----[ Bill Anderson ]---------------------------------------------
| Andrew Kenneth Milton wrote:
| > 
| > +----[ Dr. Ross Lazarus ]---------------------------------------------
| > | I know that zope runs on everything else, but how do we reconcile the
| > | DC/Sybase partnership announced late last year
| > 
| > [ snip... ]
| > 
| > | We're becoming a sybase/zope/linux dependent outfit; to whom should I
| > | email my concerns - or is it time to move to another SQL backend?
| > 
| > They picked the wrong free UNIX platform. Linux has a whole lot of
| > machines installed, but, not too many of them would be deployed in an
| > Enterprise environment, where people would be happy to pay money for
| > licenses.
|
| The claim that Linux is not deployed in Enterprise environments is uninformed at best. The most recent announcement came
| from Google, which claims 4000+ Linux servers. Clearly an enterpise environment. 
| ( http://www.internetwk.com/lead/lead060100.htm )

err no. Read again... "not deployed in Enterprise environment, where people
would be happy to pay money for..." as opposed to deployed where people
want stuff for free - or as free as they can get it. Face it if you're
doing web stuff using Zope (or anything else), you're not looking to go and 
pay Sybase for something just as good, with a hefty price-tag. You still 
have to pay developers, and 'commercial' stuff usually attracts people at
twice the rate of the going Open Source developers.

PHP is firmly entrenched as the ASP of Linux at this stage and it's going
to take a very long stick and a very firm place to stand to shift it.

| And, of course, there is IBM.

Who do a lot of open stuff, with FreeBSD as well. But marketing requires
a Linux presence these days... mustn't let that share price slip.. :-)

| > An OS heavily promoted by one specific individual who doesn't really believe
| > in commercial software doesn't seem like the ultimate platform to aim
| > high-priced internet application software at.
| 
| While I don't mean any offense, your characterization here is both unwarranted and unfounded. ESR and Linus (not sure
| exactly whom you refer to) both believe in commercial software just fine. 

Actually referring to RMS...

| In addition, if you look at the largest promoters of Linux, you will not find any one individual. Rather, you will find
| an array of companies, of all sizes; from ISP's to ol' Big Blue. IBM, for example, is in the process of porting most
| everything they have to Linux. And they do it for commercial reasons.

One wonders if Oracle's Linux product has actually recouped them the
development costs. Most of the larger Linux promoters are trying to get a
leg into the 'smaller' market that was dominated by NT. If they can offer
their products on hardware that doesn't cost more than a house, then they
have opened a new market. Linux is obviously a means to an end here. They're
trying to make a sale, they don't particularly care about Linux.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au| 

--__--__--

Message: 11
Date: Mon, 07 Aug 2000 12:04:00 +0300
From: Alexandru Cucereanu <cia@ccir.ro>
Organization: CCIRB- Business Information Centre
To: zope@zope.org
Subject: [Zope] Installing ZOPE on a Digital platform

Dear Sirs,
I would like to know if it is possible to install and to use
ZOPE on 
a DEC 2100 A 500 MPR system.
The operating system is Compaq(Digital) TrueUnix 4.04E the
RDBMS is
Oracle 8.05 and we use Apache 1.3.3.
Please indicate me an Internet address(URL) to download
theproduct and the documentation.
Thank you in advance for your kind assistance.
Alexandru Cucereanu

--__--__--

Message: 12
Date: Mon, 07 Aug 2000 10:30:41 +0200
From: boogie <boogie@imec.be>
Organization: IMEC
To: zope@zope.org
Subject: [Zope] is this possible?

is it possible to use zope to run a demo program written in c++, online
in a html environment? If it is possible, than how do you do this?

thanks, boogie.

boogie@imec.be

--__--__--

Message: 13
Date: Mon, 07 Aug 2000 10:07:21 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: zope@zope.org
Subject: [Zope] FTP into Zope.org?

Hi,

Are the FTP ports into Zope for www.zope.org and dev.zope.org open?

If so, what are they?

Here's hoping...

Chris

--__--__--

Message: 14
From: Toby Dickenson <mbel44@dial.pipex.net>
To: "bak @ kedai" <kedai@kedai.com.my>
Cc: "Ragnar Beer" <rbeer@uni-goettingen.de>, <zope@zope.org>
Subject: Re: [Zope] Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem)
Date: Mon, 07 Aug 2000 10:22:29 +0100
Reply-To: tdickenson@geminidataloggers.com

>has anybody had bad experience with caching when using ie?  i've done as

For caching, IE is one of the better behaved browsers

Check the content of your "Temporary Internet Files" directory - this
will show when the cached documents expire.

You might find you need to manually purge your browsers cache after
fixing a caching bug, to eliminate all traces of the bug.


>what you did, but ie keeps showing old data.  this with a no-cache
>header,must-revalidate.


Toby Dickenson
tdickenson@geminidataloggers.com

--__--__--

Message: 15
From: Toby Dickenson <mbel44@dial.pipex.net>
To: Chris McDonough <chrism@digicool.com>
Cc: "'Gijs Reulen'" <greulen@gilsing.nl>, zope@zope.org
Subject: Re: [Zope] XMLRPC returns error sometimes
Date: Mon, 07 Aug 2000 10:28:00 +0100
Reply-To: tdickenson@geminidataloggers.com

On Sun, 6 Aug 2000 11:56:35 -0400 , Chris McDonough
<chrism@digicool.com> wrote:

>Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
>and special "datetime", base64, and fault objects can be passed via
>XML-RPC.   Anything else is too complex.  The spec at
>http://www.xml-rpc.com/spec is useful.


Also, xmlrpclib will marshall a class instance as a dictionary, using
it's __dict__.

This applies to instances of python classes, but not extension
classes. Fixing this would be a bad idea: ObjectManager.objectItems
would try to return your whole database.

>> -----Original Message-----
>> From: Gijs Reulen [mailto:greulen@gilsing.nl]
>> Sent: Sunday, August 06, 2000 6:53 AM
>> To: zope@zope.org
>> Subject: [Zope] XMLRPC returns error sometimes
>> 
>> 
>> I am experimenting with xml-rpc and Zope. Some Methods from 
>> the API work ok,
>> but others return an error. A common error is:
>> 
>> Error Value: cannot marshal <extension class
>> Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects
>> 
>> I receive this error for example when for Zope 2.1.6 I execute:
>> ObjectManager.objectValues
>> Where as the next Method works ok:
>> ObjectManager.objectItems
>> 
>> Maybe the to be returned info is to complex ?
>> 


Toby Dickenson
tdickenson@geminidataloggers.com

--__--__--

Message: 16
From: "Andy Dawkins" <andyd@nipltd.com>
To: "Zope" <zope@zope.org>
Subject: [Zope] [ANN]: ZMailIn 0.3.0 Now Available
Date: Mon, 7 Aug 2000 11:03:47 +0100
charset="iso-8859-1"

ZMailIn 0.3.0 is now available here:
http://www.zope.org/Members/NIP/ZMailIn/

Major Revisions:
  -- Global ZCatalog to index ZMailIn instances.
  -- Support for Multi-Mime type emails.
  -- Customisable Message handling via DTML-Methods.
  -- CatalogAware + Folderish.


Cheers
-Andy

--__--__--

Message: 17
From: "Marko MARKOVIC" <marko.markovic@isp.lu>
To: "Zope" <zope@zope.org>
Subject: [Zope] Format problem?
Date: Mon, 7 Aug 2000 12:10:58 +0200
charset="iso-8859-1"

hi all,

when I do a insert with a ZSQLMethod in my database, in the SQLMethod I use
for a field fmt=newline_to_br. Now, when I want edit this field and put the
value in a textarea, I get the caracter <br>, but I don't want this.

How can i do to hide this <br> when i read this field?


$Regards
MM


--__--__--

Message: 18
Date: Mon, 07 Aug 2000 12:08:01 +0100
From: Aaron Williamson <aaronw@c.ict.om.org>
Organization: OM
To: zope@zope.org
Subject: [Zope] Changing user pwds

Hello,

    I created a form to allow users to change their own passwords.  I
hate the idea of giving them all "Manage Users" permissions, but ok
whatever.  But "acl_users.manage_users('Change', REQUEST, RESPONSE)"
won't work unless the user has "View Management Screens" permissions.
Not only does this make no sense, because the procedure doesn't involve
viewing management screens, but it would be absolute insanity to give
all of my users those permissions, because then they could go in and
delete users at will!  There has to be a way to do this, but can I get
around this problem without additional products (i.e. Login Manager)?

Thanks,

  Aaron


--__--__--

Message: 19
Date: Mon, 07 Aug 2000 13:49:40 +0200
From: =?iso-8859-1?Q?Maik=2ER=F6der?= <roeder@berg.net>
To: boogie <boogie@imec.be>
CC: zope@zope.org
Subject: Re: [Zope] is this possible?

Hi boogie !

boogie schrieb:

> is it possible to use zope to run a demo program written in c++, online
> in a html environment? If it is possible, than how do you do this?

Python is a glue language, so it surely is possible. Just create an
external method for Zope, and in that you can call your program. Look 
into the Python documentation for further information. (os.system, I think)

Greetings,

Maik Röder

--__--__--

Message: 20
Date: Mon, 07 Aug 2000 14:12:18 +0200
From: Marcin Kasperski <Marcin.Kasperski@softax.com.pl>
To: Zope List Submission <zope@zope.org>
Subject: [Zope] Sth wrong with ZCatalog?

I have some strange problem with ZCatalog: after clicking 'Find items to
catalog' I get Zope error:

Error Type: IndexError
Error Value: list index out of range

Traceback (innermost last):
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /opt/Zope-2.2.0-linux2-x86/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: manage_catalogFoundItems)
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: manage_catalogFoundItems)
  File
/opt/Zope-2.2.0-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py,
line 321, in manage_catalogFoundItems
    (Object: ElementWithAttributes)
IndexError: (see above)


I have already working ZCatalog, all I wanted was to add a few new pages
to it.

Maybe the problem has something to do with SiteAccess rule present in my
directory?


By the way: as I need to add only 5 pages, is it possible to add them to
zcatalog manually?


-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| One way to perform analysis is to build models and discuss them with  
| users. But another, very valid way, is to build working increments of 
| the project and have the users examine those slices. (Martin)

--__--__--

Message: 21
From: "RC Compaan" <roche@up-front.co.za>
To: "Zope" <zope@zope.org>
Subject: [Zope] ZPatterns Question
Date: Mon, 7 Aug 2000 15:14:45 +0200
charset="iso-8859-1"

I created a ZClass called "Product" with Dataskin as baseclass.

I also added a specialist called ProductManager containing a default rack.
Under storage for the rack I selected the newly created Product ZClass.

My product ZClass needs to query both a RDBMS and the ZODB for
attributevalues.  At this point I get lost.
I guess i should add an attributeprovider plug-in???

What should go into the fromexpr and attrsexprs properties of the
attributeprovider?  Should one add an attributeprovider for each attribute
of the product?

Roché



--__--__--

Message: 22
From: "Gaspard, Bradley S" <BRADLEY.S.GASPARD@saic.com>
To: "'zope@zope.org'" <zope@zope.org>
Subject: [Zope] ZClass authorization problem (You are not authorized to access manage_changeProperties)
Date: Mon, 7 Aug 2000 09:28:21 -0400
charset="iso-8859-1"

I have created a new ZClass which contains a dtml method that first clones
an object and then edits it's properties:

    <dtml-with manage_clone(News, REQUEST['new_id'], REQUEST)">
	<dtml-call manage_changeProperties(
	        title=REQUEST['new_title'],
	        blah blah blah,
             )">
    </dtml-with>

When I fill out the 'add' form and try to create a new instance I am
presented with the error message (as a user with
a manager role):

    You are not authorized to access manage_changeProperties

I am able to successfully create an instance if I am the superuser.

How do I fix this??

Brad




--__--__--

Message: 23
From: Jean Jordaan <Jean@mosaicsoftware.com>
To: "'zope@zope.org'" <zope@zope.org>
Subject: [Zope] edit_propertiesForm traceback
Date: Mon, 7 Aug 2000 15:36:53 +0200
charset="iso-8859-1"

Hi Zopers ..

I'm trying to get a Zclass of mine to be properly
catalog-aware. This is turning out to be quite a 
mission, unless I'm seriously astray. 

First I followed the steps in 
  http://www.zope.org/Documentation/How-To/ZCatalogTutorial/
and then I tried to follow 
  http://www.zope.org/Members/AlexR/CatalogAware/
 .

Everything seemed to go OK until I attempted to make 
  http://www.zope.org/Members/AlexR/CatalogAware/edit_props.zip
work for me. That gets me:

  <P>
  <STRONG>Error Type: TypeError</STRONG><BR>
  <STRONG>Error Value: string member test needs char left
operand</STRONG><BR> 
  </P>

<!--
Traceback (innermost last):
  File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File C:\PROGRA~1\ZOPECO~1\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
    (Object: CatalogAware)
  File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
  File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: edit_propertiesForm)
  File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
    (Object: edit_propertiesForm)
  File C:\PROGRA~1\ZOPECO~1\lib\python\OFS\DTMLMethod.py, line 150, in
__call__
    (Object: edit_propertiesForm)
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
    (Object: edit_propertiesForm)
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_With.py, line
148, in render
    (Object: propertysheets)
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_With.py, line
148, in render
    (Object: ccDocProperties)
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_In.py, line 691,
in renderwob
    (Object: propertyMap)
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_In.py, line 691,
in renderwob
    (Object: _[select_variable])
  File C:\PROGRA~1\ZOPECO~1\lib\python\DocumentTemplate\DT_Util.py, line
335, in eval
    (Object: _['sequence-item'] in getProperty(id))
    (Info: getProperty)
  File &lt;string&gt;, line 0, in ?
TypeError: (see above)

-->

when I try to edit the properties of an instance of my Zclass. 
Itamar's dtml is a bit too subtle for me to follow at this stage.
Anyone know what's happening? I don't see any "&lt;string&gt;" in
edit_propertiesForm, which is what triggers this traceback.

-- 
jean

--__--__--

Message: 24
From: "David Loeffler" <loefflerdavid@hotmail.com>
To: zope@zope.org
Subject: [Zope] Newbie question: referring to <dtml-call> documents
Date: Mon, 07 Aug 2000 14:44:44 BST

My site has a number of DTML Document objects which simply redirect the user 
to another site. These are all created automatically as clones of each 
other. The text of the document is simply
<dtml-call "RESPONSE.redirect(dest)">
and dest is a property automatically set on creation.

I need to provide a simple form to allow users to edit the value of this 
property, so I have to retrieve the current value of the property. However, 
whenever I try to get hold of this with anything like <dtml-var 
"_[objId].getProperty(dest)"> (objId is the id of the document) it simply 
redirects the user immediately to the site named by dest. How do I just get 
the property value as a string?

David
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--__--__--

Message: 25
From: Chris McDonough <chrism@digicool.com>
To: "'entropia'" <entropiamax@jazzfree.com>, zope@zope.org
Subject: RE: [Zope] Python Method question
Date: Mon, 7 Aug 2000 09:58:26 -0400

Do you mean you want to use a Python Method (in the sense of a methodish
object instantiated from Evan Simpson's Python Method Product) from a
Python Product?  You *should* be able to call it by getting a hold of it
through acquisition or by otherwise getting a hold of an object in the
ZODB and traversing from it.

> -----Original Message-----
> From: entropia [mailto:entropiamax@jazzfree.com]
> Sent: Monday, August 07, 2000 3:20 AM
> To: zope@zope.org
> Subject: [Zope] Python Method question
> 
> 
> I hava a question regards Python Method: How can I
> import a Python Method from a Product module?
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

--__--__--

Message: 26
From: Chris McDonough <chrism@digicool.com>
To: "'Alexandru Cucereanu'" <cia@ccir.ro>, zope@zope.org
Subject: RE: [Zope] Installing ZOPE on a Digital platform
Date: Mon, 7 Aug 2000 10:00:41 -0400

Alexandru,

You'll need to get the source code and compile it yourself.  Tru64 isn't
a DC-supported platform, but it may compile properly.

Here's the download URL:
http://www.zope.org/Products/Zope/2.2.0/Zope-2.2.0-src.tgz

> -----Original Message-----
> From: Alexandru Cucereanu [mailto:cia@ccir.ro]
> Sent: Monday, August 07, 2000 5:04 AM
> To: zope@zope.org
> Subject: [Zope] Installing ZOPE on a Digital platform
> 
> 
> Dear Sirs,
> I would like to know if it is possible to install and to use
> ZOPE on 
> a DEC 2100 A 500 MPR system.
> The operating system is Compaq(Digital) TrueUnix 4.04E the
> RDBMS is
> Oracle 8.05 and we use Apache 1.3.3.
> Please indicate me an Internet address(URL) to download
> theproduct and the documentation.
> Thank you in advance for your kind assistance.
> Alexandru Cucereanu
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

--__--__--

Message: 27
From: "Performance.net Strategic Internet Solutions" <support@performance-net.com>
To: "ZOPE Mailing List" <zope@zope.org>
Subject: [Zope] Accessing .gif on disk with Python Product?
Date: Mon, 7 Aug 2000 11:21:53 -0300
charset="iso-8859-1"

I am writing a python product and want to display a GIF file in some of the
manage_pages. It is not meant to be the "icon" property of the class, just
an image to be included in DTML. I included it in my class as follows:

  chooser = ImageFile('images/chooser.gif',globals()),

but when I call it in DTML (<dtml-var chooser>) I get the following:

    <ImageFile instance at 014F1D90>

I thought maybe I could use an instance of the Image class:

  chooser = OFS.Image('images/chooser.gif',globals()),

but this doesn't seem to work.

How do you create an instance of an Image in a Python Product?

kh




--__--__--

Message: 28
Date: Mon, 07 Aug 2000 23:06:13 +0800
From: Nicholas Lo <nicklo@siliconcreation.com>
Organization: Silicon Creation Limited
To: zope@zope.org
Subject: [Zope] threading
boundary="------------89058EF200FCB3C4EA85CC71"

This is a multi-part message in MIME format.
--------------89058EF200FCB3C4EA85CC71
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Just a simple question.
According to Amos' How-To: Thread Safety in Zope 2, what is mutable
global or shared variables?? What is the scope of such global variables?
Zope wide? module wide?
If global variable is not permitted, how can I approach thread
programming in Zope? Without global variables, how can I control
threads?
Please kindly help

Regards,
Nicholas Lo
--------------89058EF200FCB3C4EA85CC71
Content-Type: text/x-vcard; charset=us-ascii;
 name="nicklo.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Nicholas Lo
Content-Disposition: attachment;
 filename="nicklo.vcf"

begin:vcard 
n:Lo;Nicholas
tel;pager:+852 7475 5330
tel;cell:+852 9225 0555
tel;fax:+852 2610 2225
tel;work:+852 7111 9353
x-mozilla-html:FALSE
url:http://www.siliconcreation.com
org:Silicon Creation
version:2.1
email;internet:nicklo@siliconcreation.com
title:Technical Director
adr;quoted-printable:;;18/F=0D=0ATower 2=0D=0AMetroPlaza;Kwai Fong;;;Hong Kong
x-mozilla-cpt:;0
fn:Nicholas Lo
end:vcard

--------------89058EF200FCB3C4EA85CC71--


--__--__--

Message: 29
Date: Mon, 07 Aug 2000 17:09:09 +0200
From: entropia <entropiamax@jazzfree.com>
To: Chris McDonough <chrism@digico--__--__--

Message: 29
Message-Id: <4.3.2.7.2.20000807165246.031e2e40@timeport.metrailler.net>
Date: Mon, 07 Aug 2000 17:20:33 +0200
To: zope@zope.org
From: Meeting Maker Webmaster <webmaster@meetingmaker.com>
Subject: [Zope] Zope is slow on a windows 2000 server
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

I've been using Zope on a Linux box without any problem this last month. I 
now have to move the Zope server to it's final location, which is a Windows 
2000 server (it's not my choice ;-(

I am trying to get the user authenticated based on his IP address to allow 
everybody on the subnet we are here to access the Zope server, but not 
other IPs. This works fine except it is really slow (about 5 seconds to go 
to an object to start downloading). I've tried it on a clean Win2k box to 
check if I had a problem with my configuration, but it didn't change anything.

Here are the basic operations I did. First create a local role "test" in / 
that has the same authorization as anonymous. Then disable any 
authorization for this Anonymous user. Create a user in acl_user which 
don't have a password but has a domain entry 192.168.0.* and the role 
"test". Now when I connect from the 192.168.0. subnet, I have access to the 
Zope server, but it is very slow to answer. When I add a user that has to 
log in (password instead of IP check), it goes much faster.

I am using Zope 2.2.0 with the built-in Medusa web server.

As I am with the Win2000 questions, is there a way to configure IIS to 
behave like Apache an the rewrite rules?

Thank you for your help.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: webmaster@meetingmaker.com
Web: http://www.meetingmaker.com


--__--__--

Message: 30
Date: Mon, 7 Aug 2000 17:19:39 +0200
From: Martijn Pieters <mj@digicool.com>
To: "Performance.net Strategic Internet Solutions" <support@performance-net.com>
Cc: ZOPE Mailing List <zope@zope.org>
Subject: Re: [Zope] Accessing .gif on disk with Python Product?
ZOPE Mailing List <zope@zope.org>

On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic Internet Solutions wrote:
> I am writing a python product and want to display a GIF file in some of the
> manage_pages. It is not meant to be the "icon" property of the class, just
> an image to be included in DTML. I included it in my class as follows:
> 
>   chooser = ImageFile('images/chooser.gif',globals()),
> 
> but when I call it in DTML (<dtml-var chooser>) I get the following:
> 
>     <ImageFile instance at 014F1D90>
> 
> I thought maybe I could use an instance of the Image class:
> 
>   chooser = OFS.Image('images/chooser.gif',globals()),
> 
> but this doesn't seem to work.
> 
> How do you create an instance of an Image in a Python Product?

ImageFile objects do not (like ZODB stored Image objects) generate an IMG tag
when called. Image object, when called, generate an IMG tag that points the
browser to the correct address to retrieve tha actual image.

With an ImageFile object, you need to construct the tag yourself. If this
class has an instance foo, with this ImageFile attribute chooser, and the
instance foo is stored in the root of your Zope ZODB, you need to point the
browser to http://yoursever/foo/chooser. So your DTML needs to generate the
following HTML:

  <img src="http://yoursever/foo/chooser">

I don't know enough about your DTML, but if it is another attribute of the
same class, you could use one of the URLx REQUEST variables or something to
construct the URL for the image. Also, absolute_url() called on the foo
instance may also work for a base URL.

Hope this helps.

-- 
Martijn Pieters
| Software Engineer            mailto:mj@digicool.com
| Digital Creations          http://www.digicool.com/
| Creators of Zope               http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------



--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



--__--__----

End of Zope Digest