[Zope] Delivery failure notification

Mail Delivery System postmaster@UWCMCM1M.UWCM.AC.UK
Wed, 24 Apr 2002 8:52:29 GMT0BST


--Part_Boundary-713D19
Content-type: Text/plain; charset=US-ASCII
Content-description: Mail delivery failure report
Content-disposition: Inline

With reference to your message with the subject:
   "Zope digest, Vol 1 #2065 - 8 msgs"

The local mail transport system has reported the following problems
it encountered while trying to deliver your message:

-------------------------------------------------------------------
   User mail.zope.co.uk not known at this site.
-------------------------------------------------------------------

Your mail message is being returned to you in the next part of this
message.

Should you need assistance, please mail postmaster@UWCMCM1M.UWCM.AC.UK .

--Part_Boundary-713D19
Content-type: Message/RFC822
Content-description: Contents of original mail message

Received: from UWCMCM1M/SpoolDir by UWCMCM1M.UWCM.AC.UK (Mercury 1.48)
  for <Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK>;  24 Apr 02 08:52:16 GMT0BST
Resent-from: Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK
Resent-to: mail.zope.co.uk
Resent-Date: Wed, 24 Apr 2002 8:52:16 GMT0BST
X-Autoforward: 1
Return-path: <zope-admin@zope.org>
Received: from pigeon.cf.ac.uk (131.251.0.2) by UWCMCM1M.UWCM.AC.UK (Mercury 1.48) with ESMTP;
    24 Apr 02 08:52:06 GMT0BST
Received: from mail.python.org ([63.102.49.29])
	by pigeon.cf.ac.uk with esmtp (Exim 3.22 #1)
	id 170HZM-0001b6-00
	for nichollsja@cf.ac.uk; Wed, 24 Apr 2002 08:52:04 +0100
Received: from localhost.localdomain ([127.0.0.1] helo=mail.python.org)
	by mail.python.org with esmtp (Exim 4.02)
	id 170HYS-0003IP-00; Wed, 24 Apr 2002 03:51:09 -0400
Date: Wed, 24 Apr 2002 03:50:20 -0400
Message-ID: <20020424075020.11300.295.Mailman@mail.python.org>
From: zope-request@zope.org
Subject: Zope digest, Vol 1 #2065 - 8 msgs
Reply-to: zope@zope.org
X-Mailer: Mailman v2.0.10 (101270)
MIME-version: 1.0
Content-type: text/plain
To: zope@zope.org
Sender: zope-admin@zope.org
Errors-To: zope-admin@zope.org
X-BeenThere: zope@zope.org
X-Mailman-Version: 2.0.10 (101270)
Precedence: bulk
List-Help: <mailto:zope-request@zope.org?subject=help>
List-Post: <mailto:zope@zope.org>
List-Subscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=subscribe>
List-Id: Users of the Z Object Publishing Environment <zope.zope.org>
List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=unsubscribe>
List-Archive: <http://lists.zope.org/pipermail/zope/>

Send Zope mailing list submissions to
	zope@zope.org

To subscribe or unsubscribe via the World Wide 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. Delivery failure notification (Mail Delivery System)
   2. Re: Installing Zope 2.5.0 Stable release and Python 2.1.2 (Lee)
   3. Re: BUG FSCounter: Anonymous can clean up counter file (Marcus Schopen)
   4. Re: Installing Zope 2.5.0 Stable release and Python 2.1.2 (Anthony Baxter)
   5. Advice for performance checking/tuning (Hannu Krosing)
   6. Re: Advice for performance checking/tuning (Richard Jones)
   7. RE: zope equivalent for 'du'? (Jean Jordaan)
   8. Problems with AIX4 (Jan Idzikowski)

--__--__--

Message: 1
From: Mail Delivery System <postmaster@UWCMCM1M.UWCM.AC.UK>
To: zope@zope.org
Date: Wed, 24 Apr 2002 2:11:27 GMT0BST
Subject: [Zope] Delivery failure notification

--Part_Boundary-6A8D99
Content-type: Text/plain; charset=US-ASCII
Content-description: Mail delivery failure report
Content-disposition: Inline

With reference to your message with the subject:
   "Zope digest, Vol 1 #2064 - 26 msgs"

The local mail transport system has reported the following problems
it encountered while trying to deliver your message:

-------------------------------------------------------------------
   User mail.zope.co.uk not known at this site.
-------------------------------------------------------------------

Your mail message is being returned to you in the next part of this
message.

Should you need assistance, please mail postmaster@UWCMCM1M.UWCM.AC.UK .

--Part_Boundary-6A8D99
Content-type: Message/RFC822
Content-description: Contents of original mail message

Received: from UWCMCM1M/SpoolDir by UWCMCM1M.UWCM.AC.UK (Mercury 1.48)
  for <Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK>;  24 Apr 02 02:11:27 GMT0BST
Resent-from: Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK
Resent-to: mail.zope.co.uk
Resent-Date: Wed, 24 Apr 2002 2:11:27 GMT0BST
X-Autoforward: 1
Return-path: <zope-admin@zope.org>
Received: from stork2.cf.ac.uk (131.251.0.30) by UWCMCM1M.UWCM.AC.UK (Mercury 1.48) with ESMTP;
    24 Apr 02 02:11:24 GMT0BST
Received: from mail.python.org ([63.102.49.29])
	by stork2.cf.ac.uk with esmtp (Exim 3.22 #1)
	id 170BJa-0004y2-00
	for nichollsja@cf.ac.uk; Wed, 24 Apr 2002 02:11:22 +0100
Received: from localhost.localdomain ([127.0.0.1] helo=mail.python.org)
	by mail.python.org with esmtp (Exim 4.02)
	id 170BIO-0002tn-00; Tue, 23 Apr 2002 21:10:08 -0400
Date: Tue, 23 Apr 2002 21:09:01 -0400
Message-ID: <20020424010901.10505.99840.Mailman@mail.python.org>
From: zope-request@zope.org
Subject: Zope digest, Vol 1 #2064 - 26 msgs
Reply-to: zope@zope.org
X-Mailer: Mailman v2.0.10 (101270)
MIME-version: 1.0
Content-type: text/plain
To: zope@zope.org
Sender: zope-admin@zope.org
Errors-To: zope-admin@zope.org
X-BeenThere: zope@zope.org
X-Mailman-Version: 2.0.10 (101270)
Precedence: bulk
List-Help: <mailto:zope-request@zope.org?subject=help>
List-Post: <mailto:zope@zope.org>
List-Subscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=subscribe>
List-Id: Users of the Z Object Publishing Environment <zope.zope.org>
List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=unsubscribe>
List-Archive: <http://lists.zope.org/pipermail/zope/>

Send Zope mailing list submissions to
	zope@zope.org

To subscribe or unsubscribe via the World Wide 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. Delivery failure notification (Mail Delivery System)
   2. RE: Alternate HTML Table implementation in STX (Robert Rockwell)
   3. Re[2]: [Zope] DCOracle 2 Problem (Sean Abrahams)
   4. Re: Inserting a variable in a context.manage statement in Python (Dan Shafer)
   5. Re: DCOracle 2 Problem (Matthew T. Kromer)
   6. Re[2]: [Zope] DCOracle 2 Problem (Sean Abrahams)
   7. Virtual hosting question. (Tony Schonfeld)
   8. Returning data as XML from a python script? (Alec Munro)
   9. Re: ParsedXML tree-widget (Dennis Allison)
  10. Weird Date Display Bug in HTML Form (Dan Shafer)
  11. Re: pb with the function getProperty (Dieter Maurer)
  12. Re: unquote_plus NOT working in an EM ? (Dieter Maurer)
  13. Re: Unauthorized You are not authorized to access delRows. (Dieter Maurer)
  14. Re: publish() hook (Dieter Maurer)
  15. Re: WebDAV access from MS-Office (Dieter Maurer)
  16. RE: zope equivalent for 'du'? (Dieter Maurer)
  17. Re: Problem with dtml-sendmail (Dieter Maurer)
  18. Re: ParsedXML tree-widget (Karl Anderson)
  19. Re: Weird Date Display Bug in HTML Form (Colyn Brown)
  20. Searching for FieldIndex for objects that don't containg a certain
       value (Clint Brubakken)
  21. DTML type casting? or something? / LocalFS subdirectory exists test (davis marques)
  22. Re: publish() hook (Paul Winkler)
  23. Wholesale Online Freight Calculator (service@freight-calculator.com)
  24. extra data for users (Ian!)
  25. BUG FSCounter: Anonymous can clean up counter file (Marcus Schopen)

-- __--__-- 

Message: 1
From: Mail Delivery System <postmaster@UWCMCM1M.UWCM.AC.UK>
To: zope@zope.org
Date: Tue, 23 Apr 2002 17:03:29 GMT0BST
Subject: [Zope] Delivery failure notification

--Part_Boundary-616B08
Content-type: Text/plain; charset=US-ASCII
Content-description: Mail delivery failure report
Content-disposition: Inline

With reference to your message with the subject:
   "Zope digest, Vol 1 #2063 - 22 msgs"

The local mail transport system has reported the following problems
it encountered while trying to deliver your message:

-------------------------------------------------------------------
   User mail.zope.co.uk not known at this site.
-------------------------------------------------------------------

Your mail message is being returned to you in the next part of this
message.

Should you need assistance, please mail postmaster@UWCMCM1M.UWCM.AC.UK .

--Part_Boundary-616B08
Content-type: Message/RFC822
Content-description: Contents of original mail message

Received: from UWCMCM1M/SpoolDir by UWCMCM1M.UWCM.AC.UK (Mercury 1.48)
  for <Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK>;  23 Apr 02 17:03:18 GMT0BST
Resent-from: Wmljan.STF.MEDIA.DACS.CM@UWCMCM1M.UWCM.AC.UK
Resent-to: mail.zope.co.uk
Resent-Date: Tue, 23 Apr 2002 17:03:18 GMT0BST
X-Autoforward: 1
Return-path: <zope-admin@zope.org>
Received: from stork2.cf.ac.uk (131.251.0.30) by UWCMCM1M.UWCM.AC.UK (Mercury 1.48) with ESMTP;
    23 Apr 02 17:02:46 GMT0BST
Received: from mail.python.org ([63.102.49.29])
	by stork2.cf.ac.uk with esmtp (Exim 3.22 #1)
	id 1702ke-00064n-00
	for nichollsja@cf.ac.uk; Tue, 23 Apr 2002 17:02:44 +0100
Received: from localhost.localdomain ([127.0.0.1] helo=mail.python.org)
	by mail.python.org with esmtp (Exim 4.02)
	id 1702jc-0002Ib-00; Tue, 23 Apr 2002 12:01:40 -0400
Date: Tue, 23 Apr 2002 12:00:07 -0400
Message-ID: <20020423160007.7724.94551.Mailman@mail.python.org>
From: zope-request@zope.org
Subject: Zope digest, Vol 1 #2063 - 22 msgs
Reply-to: zope@zope.org
X-Mailer: Mailman v2.0.10 (101270)
MIME-version: 1.0
Content-type: text/plain
To: zope@zope.org
Sender: zope-admin@zope.org
Errors-To: zope-admin@zope.org
X-BeenThere: zope@zope.org
X-Mailman-Version: 2.0.10 (101270)
Precedence: bulk
List-Help: <mailto:zope-request@zope.org?subject=help>
List-Post: <mailto:zope@zope.org>
List-Subscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=subscribe>
List-Id: Users of the Z Object Publishing Environment <zope.zope.org>
List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>,
	<mailto:zope-request@zope.org?subject=unsubscribe>
List-Archive: <http://lists.zope.org/pipermail/zope/>

Send Zope mailing list submissions to
	zope@zope.org

To subscribe or unsubscribe via the World Wide 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. Problem with dtml-sendmail (Markus Stoll)
   2. pb with the function getProperty (William GARCIA)
   3. Re: Re: [Zope-dev] Separate staging and development areas for a product (Oliver Bleutgen)
   4. Re: setting up a ZClass - base class of PropertyManager?  plus weird gradual broken product messages (Steve Spicklemire)
   5. Storing Images  in PostgreSQL (nico@beehive.de)
   6. Problem in ZOPE-MySQL connectivity..dll mismatch problem (Surajit Sengupta)
   7. Problems with Zope and Apache (J.C.Mcnulty@open.ac.uk)
   8. Re: Help with Page Counter (Python script), please (Maik Jablonski)
   9. Re: pb with the function getProperty (Maik Jablonski)
  10. Re: Ref: to my mail python-MySQL interface (Chris Withers)
  11. Xron Security help (Peter Bengtsson)
  12. Re: Inserting a variable in a context.manage statement in Python (tim)
  13. Re: pb with the function getProperty (William GARCIA)
  14. Re: Storing Images  in PostgreSQL (Andreas Heckel)
  15. Re: pb with the function getProperty (hans)
  16. Re: Storing Images  in PostgreSQL (nico@beehive.de)
  17. Re: DCOracle 2 Problem (Matthew T. Kromer)
  18. Re: setting up a ZClass - base class of PropertyManager?  plus weird gradual broken product messages (A M Thomas)
  19. Re: referencing tuples (Thomas B. Passin)
  20. Re: Problems with External Methods when starting Zope at boot time, Mac OS X (Kilian Koepsell)
  21. Re: unquote_plus NOT working in an EM ? (Florent Guillaume)
  22. FW: [Zope] Re: [Zope-dev] Separate staging and development areas for a product (Ted Skolnick)

--  __--__--  

Message: 1
From: "Markus Stoll" <markus.stoll@junidas.de>
To: <Zope@zope.org>
Date: Tue, 23 Apr 2002 11:18:53 +0200
Subject: [Zope] Problem with dtml-sendmail

we wrote an email form that performs a POST
on a python script. This python script calls
a dtml-method with the <dtml-sendmail>.

The dtml-sendmail does not find the MailHost
if it is not in the same folder. So I have to create
a separate MailHost in the same folder and everything is=20
fine. Acquisition otherwise works fine, the
standard_html_header is found and included.

So why does Acuqisition not work for dtml-sendmail?

Any ideas?

Markus




--  __--__--  

Message: 2
Date: Tue, 23 Apr 2002 11:18:14 +0200
To: zope@zope.org
From: William GARCIA <wgarcia@esrf.fr>
Subject: [Zope] pb with the function getProperty


--=====================_10785078==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

I would like to display a list of  images (ids) located in a folder and 
which property State equals to 'private'
Here is the code I wrote :
       <dtml-in expr="objectIds(['Image'])">
          <dtml-if "_['sequence-item'].getProperty('State')='private'">
             <dtml-var sequence-item><br>
          </dtml-if>
       </dtml-in>

Zope generate the next error :
Error Type: AttributeError
Error Value: getProperty

If somebody can help me ?
Thanks

GARCIA William

--=====================_10785078==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
I would like to display a list of&nbsp; images (ids) located in a folder
and which property State equals to 'private'<br>
Here is the code I wrote :<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in
expr=&quot;objectIds(['Image'])&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if
&quot;_['sequence-item'].getProperty('State')='private'&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;dtml-var sequence-item&gt;&lt;br&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-if&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-in&gt;<br><br>
Zope generate the next error :<br>
<b>Error Type: AttributeError<br>
Error Value: getProperty<br><br>
</b>If somebody can help me ?<br>
Thanks<br><br>
GARCIA William<br>
</html>

--=====================_10785078==_.ALT--




--  __--__--  

Message: 3
Date: Tue, 23 Apr 2002 11:12:22 +0200
From: Oliver Bleutgen <myzope@gmx.net>
To: John Schinnerer <johnschinnerer@yahoo.com>
CC: zope@zope.org
Subject: Re: [Zope] Re: [Zope-dev] Separate staging and development areas for a product

John Schinnerer wrote:
> Aloha,
> 
> <snip>...
> 
>>... but I really need my development
>>version accessible to the internet, too.  And it would be nice to
>>have three versions so I could have a separate testing version 
>>public, as well.
>>
> 
>>What should someone like me do in order to develop a product that is
>>also in use on my server?  What do other independent developers do?
>>
> 
> Zope 'version' objects (Ch. 3, zope book, near the end) supposedly
> address some of your issues (which are similar to some of mine - I too
> would like to have fully functional preview/test sites available on my
> live server).  I haven't tried versions yet, though, because...
> 
> What the zope book info on versions doesn't say (and I haven't found
> elsewhere either) is how (or if it's even possible) to access a version
>>from outside the management interface - that is, as a client would see
> it in their browser, so it can be tested before changes are committed
> to the 'public' version.  If I can't do that, and do it transparently,
> versions don't do me any good.  There'd have to be some URL trickery
> somewhere to serve up a version without breaking buckets 'o links...

When you enter a version, you just get a cookie named 'Zope-Version'
with the path to your version as a value. You can see it for yourself if 
you configure the browser to ask before accepting cookies and look at 
the cookie details.
In Zope 2.3.3, and I suspect in any zope after that also, it's possible 
to just set this cookie, and the browser is in that version. Therefore 
the permission 'join/leave versions' is quite useless IMO.
The upside is that you need just a short code snippet (setting that 
cookie) to let anyone (including anonymous) enter any version.
Downsides are obvious and manyfold.


cheers,
oliver





--  __--__--  

Message: 4
Date: Mon, 22 Apr 2002 21:52:19 -0500
Subject: Re: [Zope] setting up a ZClass - base class of PropertyManager?  plus weird gradual broken product messages
Cc: Steve Spicklemire <steve@spvi.com>, zope@zope.org
To: A M Thomas <am@virtueofthesmall.com>
From: Steve Spicklemire <steve@spvi.com>


On Monday, April 22, 2002, at 09:39  PM, A M Thomas wrote:

> Thanks, Steve,
>
> I prefer PropertyManager to property sheets at the moment for a couple
> of reasons: 1) I don't have to "group" my properties, I don't have to
> remember what property is in what sheet, I don't have to use quite so
> long a command to update the properties, and

So.. only use a single propertysheet. Long command.. yeah... it's a long 
command. ;-)

> 2) If I create an instance
> of a ZClass with a propertysheet, it seems to always define the
> properties, and I want to inherit them from a parent object unless I
> specifically define them in the new object.  I may be missing something,
> but I seemed to get this effect, and that's why I switched to using
> PropertyManager.

Hmmm... the property sheet only gives the class a value for the named 
properties. This "class" value gets used if the instance doesn't have a 
value of it's own. You can give the class value some "special" value 
(e.g., 'uninitialized') if you want to check an instance to see if 
you've set a custom value for that instance.

>
> I understand why one would be nervous about ZClasses.  It is a pain not
> to be able to change base classes easily!  Deleting instances and
> starting over will probably not be an option in the future, though, as
> my product will be used in some live sites, but I may still have to make
> significant changes.
>

Too bad. ;-) If you *need* ZClasses for some reason, you can also make a 
Python base class, and subclass from that. Then you can change the base 
class of your Python class later quite easily. You could even make this 
Python class subclass from PropertyManager if you decide that's really 
what you're after.

good luck!
-steve

> Thanks hugely for the response!
> Am
>
> Steve Spicklemire wrote:
>>
>> Hi Am,
>>
>> ZClasses have "propertsheets" already.. so you shouldn't really need to
>> inherit from PropertyManager. Also.. changing ZClasses by deleting and
>> recreating is a sort of "last ditch" scenario and likely to cause
>> problems. You're probably better off deleting all your old instances 
>> and
>> starting over. This is one of the "major problems" with ZClasses that
>> makes so many developers nervous about them. Having said all that, I
>> still find them useful in conjunction with a product like ZPatterns 
>> that
>> permits you to keep the actual data/relations in SQL or LDAP or 
>> whatever.
>>
>> -steve
>>
>> On Saturday, April 20, 2002, at 03:52 PM, A M Thomas wrote:
>>
>>> Hello there, and thank you very much in advance for any help.
>>>
>>> I'm working on my Zope (2.5.0) product through the management 
>>> interface,
>>> and realized that if I just created a ZClass with base classes of
>>> ObjectManager and CatalogAware, I couldn't add properties to it :(  
>>> So,
>>> I went to re-create my ZClass - and discovered that PropertyManager
>>> isn't in the list of selectable base classes.  Why is this?  Is there
>>> some way I can inherit directly from PropertyManager?
>>>
>>> I went ahead and created it with an additional base class of
>>> DTMLDocument, since it's got PropertyManager as one of its base 
>>> classes,
>>> but this isn't what I really want -- in addition to being slightly
>>> inelegant, now the manage_findForm method doesn't appear in the
>>> available methods for creating Views.
>>>
>>> Must I create my product in Python only to get PropertyManager 
>>> cleanly?
>>> Would this even work?  And would converting be easy?
>>>
>>> Also, I noticed a curious effect: I re-created my ZClass by moving all
>>> the methods into a temp ZClass, renaming the add and addform methods,
>>> and saving out the Class ID, then deleting the ZClass and the 
>>> remaining
>>> constructor objects (Permission, and Factory).  Then I created a new
>>> ZClass with the same name as the old one, and put in the saved 
>>> ClassID,
>>> replaced the new Add and Addform methods with my original ones (by
>>> deleting the new ones and renaming the original ones back to their
>>> original names), and pasting in the methods again.
>>>
>>> However, old instances of this ZClass _gradually_ started showing
>>> "broken product" messages.  First one, then overnight, two more - and
>>> the first one didn't seem to change immediately.  They shouldn't be
>>> broken anyway, right?  Is there some known issue about deleting and
>>> re-creating ZClasses in a product?  To make matters even more
>>> interesting, now one of them isn't broken anymore.  Yes, I've 
>>> re-created
>>> this ZClass more than once today, and this isn't a good diagnostic
>>> report, I know, but I just wanted to know if anyone knew what might be
>>> going on based on similar past experience.
>>>
>>> Thanks,
>>> Am
>>>
>>>
>>>
>>> _______________________________________________
>>> 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: 5
Date: Tue, 23 Apr 2002 12:09:32 +0200 (CEST)
From: <nico@beehive.de>
To: zope@zope.org
Subject: [Zope] Storing Images  in PostgreSQL

Hello,

I am trying to store images in a PostgreSQL 7.2 database using the Psycopg
database adapter, running Zope 2.5.0 on redhat linux.
I found a tip at
http://lists.initd.org/pipermail/psycopg/2001-June/000200.html and tried
it out. Unfortunately I get an error like "Can't parse object
'Gif123/'..."

Is there any documentation on how to store images in a PostgreSQL database
from Zope ?

cheers,
nico 




--  __--__--  

Message: 6
From: "Surajit Sengupta" <surajit@ontrackindia.com>
To: <andy@dustman.net>, <zope@zope.org>
Date: Tue, 23 Apr 2002 16:19:43 +0530
Subject: [Zope] Problem in ZOPE-MySQL connectivity..dll mismatch problem

This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C1EAE2.AD989110
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
    I'm using ZOPE Version 2.0, which is using the Python 2.1.2. Now I =
want to make a connectivity of ZOPE with MySQL.
    I've =20
    I'm using in Windows 2000 platform
  1.. Downloaded the Python-MySQL Interface(Version 0.9.0) [MySQLdb]
  2.. Downloaded the ZOPE MySQL database Adapter (Version 2.0.8) =
[ZMySQLDA]
  3..  Built MySQLdb(0.9.0)
  4.. Installed MySQLdb(0.9.0)
  5.. Inflated ZMySQLDA in required directory
=20
***Problems found : dll version mismatch
After running the ZOPE server: Following errors are generated

2002-04-23T06:49:32 ERROR(200) Zope Could not import Products.MySQLdb

Traceback (innermost last):

  File C:\PROGRA~1\Zope\lib\python\OFS\Application.py, line 531, in =
import_product

  File MySQLdb\__init__.py, line 27, in ?

ImportError: Module use of python20.dll conflicts with this version of =
Python.

=20

                Anticipations :=20

In C:\Program Files\Zope\bin there is python21.dll which I think the =
latest dll which the python exe of our ZOPE version is using. After =
putting it to the c:\winnt\system32 and registering it, the same error =
is coming.  During the run of Zope server __init__ of ZMySQLDA  is =
importing _mysql.pyd which is generating the error as it is searching =
for python20.dll(NOT python21.dll). I have a python20.dll also in my =
c:\winnt\system32, its version also does not match with the python exe =
our ZOPE version is using.=20

I don't know what to do

Help required

Regards
Surajit

------=_NextPart_000_002A_01C1EAE2.AD989110
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.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm using ZOPE =
Version 2.0,=20
which is using the Python 2.1.2. Now I want to make a connectivity of =
ZOPE with=20
MySQL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I've&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm using in Windows =
2000=20
platform</DIV>
<OL style=3D"MARGIN-TOP: 0in" type=3D1>
  <LI class=3DMsoNormal=20
  style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Downloaded the=20
  Python-MySQL Interface(Version 0.9.0) [<B><SPAN=20
  style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA">MySQLdb]</SPAN></B></SPAN></B></LI>
  <LI class=3DMsoNormal=20
  style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Downloaded the =
ZOPE MySQL=20
  database Adapter (Version 2.0.8) [<B><SPAN=20
  style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: =
AR-SA">ZMySQLDA</SPAN></B>]</SPAN></B></SPAN></B></LI>
  <LI class=3DMsoNormal=20
  style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">&nbsp;<B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Built=20
  MySQLdb(0.9.0)</SPAN></B></SPAN></B></SPAN></B></LI>
  <LI class=3DMsoNormal=20
  style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA">Installed=20
  MySQLdb(0.9.0)</SPAN></B></SPAN></B></SPAN></B></SPAN></B></LI>
  <LI class=3DMsoNormal=20
  style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><B><SPAN=20
  style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA"><B><SPAN=20
  style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA">Inflated=20
  ZMySQLDA in required=20
  =
directory</SPAN></B></SPAN></B></SPAN></B></SPAN></B></SPAN></B></LI></OL=
>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><FONT=20
face=3D"Times New Roman">&nbsp;</DIV>
<H1 class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><U>***Problems =
found :=20
dll version mismatch<?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></U></H1>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in">After running =
the ZOPE=20
server: Following errors are generated</P>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list =
.5in">2002-04-23T06:49:32=20
ERROR(200) Zope Could not import Products.MySQLdb</P>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in">Traceback =
(innermost=20
last):</P>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp; </SPAN>File=20
C:\PROGRA~1\Zope\lib\python\OFS\Application.py, line 531, in =
import_product</P>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp; </SPAN>File MySQLdb\__init__.py, line =
27, in=20
?</P>
<P class=3DMsoBodyTextIndent=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in">ImportError: =
Module use=20
of python20.dll conflicts with this version of Python.</P>
<P class=3DMsoNormal=20
style=3D"MARGIN-LEFT: 0.5in; mso-list: l0 level1 lfo1; tab-stops: list =
.5in"><SPAN=20
style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: =
12.0pt">&nbsp;<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"mso-list: l0 level1 lfo1; tab-stops: list =
.5in"><SPAN=20
style=3D"FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><SPAN=20
style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
</SPAN><B>Anticipations : <o:p></o:p></B></SPAN></P>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA">In=20
C:\Program Files\Zope\bin there is <B>python21.dll </B>which I think the =
latest=20
dll which the python exe of our ZOPE version is using. After putting it =
to the=20
c:\winnt\system32 and registering it, the same error is coming.<SPAN=20
style=3D"mso-spacerun: yes">&nbsp; </SPAN>During the run of Zope server=20
<B>__init__</B> of <B>ZMySQLDA </B><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;</SPAN>is importing _mysql.pyd which =
is=20
generating the error as it is searching for python20.dll(NOT =
python21.dll). I=20
have a python20.dll also in my c:\winnt\system32, its version also does =
not=20
match with the python exe our ZOPE version is using. </SPAN></DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA">I=20
don't know what to do</SPAN></DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN=20
style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 10pt; =
mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; =
mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV class=3DMsoNormal style=3D"mso-list: l0 level1 lfo1; tab-stops: =
list .5in">Help=20
required</DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in">&nbsp;</DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list .5in">Regards</DIV>
<DIV class=3DMsoNormal=20
style=3D"mso-list: l0 level1 lfo1; tab-stops: list =
.5in">Surajit</FONT></DIV></FONT></BODY></HTML>

------=_NextPart_000_002A_01C1EAE2.AD989110--




--  __--__--  

Message: 7
From: J.C.Mcnulty@open.ac.uk
To: zope@zope.org
Date: Tue, 23 Apr 2002 12:29:28 +0100
Subject: [Zope] Problems with Zope and Apache

I was wondering if someone could help me. I am running Zope 2.5.1b2 with CMF
1.1 (python 2.1). I want to upgrade to CMF 1.2 but when I do and try to
publish an item I get the following error:

Error Type: TypeError
Error Value: hasReplies() takes exactly 2 arguments (1 given).

Publishing a document works fine on CMF 1.1 but this error occurs under 1.2.

I have got one step further to solving the problem. The error message does
not appear if you publish through the management screen (Zserver) but does
occur is you are running it through a browser (Apache). Has anyone else had
this problem?

Any help or guidance would be a great help.

Thanks

James



--  __--__--  

Message: 8
Date: Tue, 23 Apr 2002 13:38:06 +0200
From: Maik Jablonski <maik.jablonski@uni-bielefeld.de>
To: "Uwe Schuerkamp" <uwe.schuerkamp@nionex.net>
Cc: zope@zope.org
Subject: Re: [Zope] Help with Page Counter (Python script), please

On Tue, 23 Apr 2002 09:44:12 +0200 "Uwe Schuerkamp"
<uwe.schuerkamp@nionex.net> wrote:

> I'm trying to implement a simple page request counter by checking for
> a property named "requestCount" in a DTML method, adding the property
> if not found, incrementing it otherwise and returning the new value.
> 
> I'm using the following python script: 
> 
> request = container.REQUEST
> 
> o = container.index_html
> this script lives in the top level of my Zope installation. 
> 
> When I try to get a hit counter by including the script output as a
> DTML-var like this:
> 
> <dtml-var incRequestCount>
> 
> in any subfolder the property of the Zope root folder is incremented
> (where the Python script lives), but not the container of the current
> object / container / folder whatever.

you should use 'context' instead of 'container'. have a look at the
description of the python-script-bindings (bindings-tab)...

request = context.REQUEST
...
o = context.index_html

greetings, maik.



--  __--__--  

Message: 9
Date: Tue, 23 Apr 2002 13:40:39 +0200
From: Maik Jablonski <maik.jablonski@uni-bielefeld.de>
To: "William GARCIA" <wgarcia@esrf.fr>
Cc: zope@zope.org
Subject: Re: [Zope] pb with the function getProperty

On Tue, 23 Apr 2002 11:18:14 +0200 "William GARCIA" <wgarcia@esrf.fr> wrote:

>           <dtml-if "_['sequence-item'].getProperty('State')='private'">

you must use == instead of = for comparisions in python.

 <dtml-if "_['sequence-item'].getProperty('State')=='private'">

-mj



--  __--__--  

Message: 10
Date: Tue, 23 Apr 2002 12:43:35 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Surajit Sengupta <surajit@ontrackindia.com>
CC: zope@zope.org
Subject: Re: [Zope] Ref: to my mail python-MySQL interface

Why are you posting in HTML to a non-HTML list?

If you'd bothered to search the various archives you'd probably have the answer to this
already :-(

> Surajit Sengupta wrote:
> 
>   File MySQLdb\__init__.py, line 27, in ?
> ImportError: No module named _mysql

...probably means you haven't actually compiled MySQLdb!

Google is such a wonderful tool, why not use it?

cheers,

Chris



--  __--__--  

Message: 11
From: Peter Bengtsson <mail@peterbe.com>
Reply-To: mail@peterbe.com
To: zope@zope.org
Date: Tue, 23 Apr 2002 14:44:37 +0200
Subject: [Zope] Xron Security help

Dear all Xron masters,

I have a Xron method that works fine as Manager. If I hit the Trigger id does 
what it is supposed to.
But as cron script it doesn't work; probably because you need to Manager or 
something. 
If I visit the Xron not being logged in like this:

"mozilla 
http://host:8050/gskolan/Style/2002/suckImage_xron/manage_triggerXronEvent"

It asks for authentication but the method itself doesn't require it. I double 
checked that by dtml-commenting the whole script and replace it with "HELLO 
WORLD". Still asking for authentication.
What security settings do I need to do?
Zope 2.5.0 linux python 2.1 Xron 0.0.10

Cheers, Peter



--  __--__--  

Message: 12
From: tim <tim@sitefusion.co.uk>
Date: Tue, 23 Apr 2002 14:33:41 +0100 (BST)
Subject: Re: [Zope] Inserting a variable in a context.manage statement in Python
To: <pydan@danshafer.com>, <zope@zope.org>

> c = REQUEST.get('clearing_id','')
> context.manage_addFolder(c) # this works
> # Now what I want to do is add a document to the folder
> # If I include a hard-coded value for the folder name I just created as a
> test, it works
> # But this doesn't:
> context.c.manage_addDocument('NewDoc')

I think you should be able to do either of (both untested):

getattr(context, c).manage_addDocument('NewDoc')
context[c].manage_addDocument('NewDoc')

As far as I understand, your version doesn't work because you are telling
python/zope to look for the c string object that is an attribute of context,
instead of telling it to get hold of the attribute of context that is called
whatever str(c) returns.

hth

tim






--  __--__--  

Message: 13
Date: Fri, 03 May 2002 15:33:28 +0200
To: zope@zope.org
From: William GARCIA <wgarcia@esrf.fr>
Subject: Re: [Zope] pb with the function getProperty


--=====================_26100109==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 11:18 23/04/2002 +0200, you wrote:
>I would like to display a list of  images (ids) located in a folder and 
>which property State equals to 'private'
>Here is the code I wrote :
>       <dtml-in expr="objectIds(['Image'])">
>          <dtml-if "_['sequence-item'].getProperty('State')=='private'">
>             <dtml-var sequence-item><br>
>          </dtml-if>
>       </dtml-in>
>
>Zope generate the next error :
>Error Type: AttributeError
>Error Value: getProperty

>In order to answer the reply of Maik Jablonski (it was just a forbid, the 
>problem is not due to the comparaison operator ==
>I don't know how to proceed, perhaps can I find a soltuion with a Python 
>script
>
>If somebody can help me ?
>Thanks
>
>GARCIA William


--=====================_26100109==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
At 11:18 23/04/2002 +0200, you wrote:<br>
<blockquote type=cite class=cite cite>I would like to display a list
of&nbsp; images (ids) located in a folder and which property State equals
to 'private'<br>
Here is the code I wrote :<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in
expr=&quot;objectIds(['Image'])&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if
&quot;_['sequence-item'].getProperty('State')=='private'&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;dtml-var sequence-item&gt;&lt;br&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-if&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-in&gt;<br><br>
Zope generate the next error :<br>
<b>Error Type: AttributeError<br>
Error Value: getProperty<br>
</b></blockquote><br>
<blockquote type=cite class=cite cite>In order to answer the reply of
Maik Jablonski (it was just a forbid, the problem is not due to the
comparaison operator ==<br>
I don't know how to proceed, perhaps can I find a soltuion with a Python
script<br>
<b><br>
</b>If somebody can help me ?<br>
Thanks<br><br>
GARCIA William</blockquote><br>
</html>

--=====================_26100109==_.ALT--




--  __--__--  

Message: 14
Date: Tue, 23 Apr 2002 13:32:16 +0200
From: Andreas Heckel <andreas@easyleading.org>
Reply-To: andreas@easyleading.org
To: nico@beehive.de
CC: zope@zope.org
Subject: Re: [Zope] Storing Images  in PostgreSQL

nico@beehive.de wrote:
> 
> Hello,
> 
> I am trying to store images in a PostgreSQL 7.2 database using the Psycopg
> database adapter, running Zope 2.5.0 on redhat linux.
> I found a tip at
> http://lists.initd.org/pipermail/psycopg/2001-June/000200.html and tried
> it out. Unfortunately I get an error like "Can't parse object
> 'Gif123/'..."
> 
> Is there any documentation on how to store images in a PostgreSQL database
> from Zope ?

You need a postgres DA that supports commands for handling postgres
Large Objects (loimport,getlo,unlink ...)

As far as I know popy tries to store binary data into a bytea field ...
don't know if it works.  

-- 
_______________________________________________________________________
Andreas Heckel                                  andreas@easyleading.org



--  __--__--  

Message: 15
Date: Tue, 23 Apr 2002 15:49:12 +0100
From: hans <hans@beehive.de>
To: William GARCIA <wgarcia@esrf.fr>
CC: zope@zope.org
Subject: Re: [Zope] pb with the function getProperty

William GARCIA wrote:

>    Part 1.1Type: Plain Text (text/plain)

plz no html mails
At 11:18 23/04/2002 +0200, you wrote:
>I would like to display a list of  images (ids) located in a folder and

>which property State equals to 'private'
>Here is the code I wrote :
>       <dtml-in expr="objectIds(['Image'])">
>          <dtml-if
"_['sequence-item'].getProperty('State')=='private'">
>             <dtml-var sequence-item><br>
>          </dtml-if>
>       </dtml-in>
>
>Zope generate the next error :
>Error Type: AttributeError
>Error Value: getProperty

>In order to answer the reply of Maik Jablonski (it was just a forbid,
the
>problem is not due to the comparaison operator ==
>I don't know how to proceed, perhaps can I find a soltuion with a
Python
>script

http://www.zope.org/Documentation/ZopeBook/AppendixB.stx
tells us
objectIds(type=None) This method returns a list of the ids of the
contained
      objects.

very clearly, an id does not have an attribute "getProperty"
(an Image-object has).
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299





--  __--__--  

Message: 16
Date: Tue, 23 Apr 2002 15:51:36 +0200 (CEST)
From: <nico@beehive.de>
To: Andreas Heckel <andreas@easyleading.org>
cc: zope@zope.org
Subject: Re: [Zope] Storing Images  in PostgreSQL

hi andreas,

thanks!
I do not use popy DA but Psycopg DA that supports commands for handling
postgres large objects. I uploaded an image from the file system into my
sql table using lo_import in a ZSQL mehtod. What I don't know is, how to
store an image using a simple input form similiar to upload an image into
the ZODB. Furthermore, I did not found any documentation on how to get
the image from the database table to display it in DTML. Once I get it
running, I should write a how-to. :-)

nico 


On Tue, 23 Apr 2002, Andreas Heckel wrote:

> nico@beehive.de wrote:
> > 
> > Hello,
> > 
> > I am trying to store images in a PostgreSQL 7.2 database using the Psycopg
> > database adapter, running Zope 2.5.0 on redhat linux.
> > I found a tip at
> > http://lists.initd.org/pipermail/psycopg/2001-June/000200.html and tried
> > it out. Unfortunately I get an error like "Can't parse object
> > 'Gif123/'..."
> > 
> > Is there any documentation on how to store images in a PostgreSQL database
> > from Zope ?
> 
> You need a postgres DA that supports commands for handling postgres
> Large Objects (loimport,getlo,unlink ...)
> 
> As far as I know popy tries to store binary data into a bytea field ...
> don't know if it works.  
> 
> -- 
> _______________________________________________________________________
> Andreas Heckel                                  andreas@easyleading.org
> 




--  __--__--  

Message: 17
Date: Tue, 23 Apr 2002 10:22:33 -0400
From: "Matthew T. Kromer" <matt@zope.com>
To: Sean Abrahams <sa@sfsu.edu>
CC: zope@zope.org
Subject: Re: [Zope] DCOracle 2 Problem

Sean Abrahams wrote:

>All right, I made DCOracle2-PR1 and copied the dco2.so to my
>/usr/lib/python2.1/site-packages/ directory.
>
>I go into python to test it out, here's what I get:
>
>Python 2.1.3 (#1, Apr 11 2002, 00:19:11)
>[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
>Type "copyright", "credits" or "license" for more information.
>
>>>>import dco2
>>>>db = dco2.connect("xxxxx", "xxxxx", "xxxxx")
>>>>dbc = db.cursor()
>>>>dbc.execute("select * from table")
>>>>
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>TypeError: an integer is required
>
>
>
>Any ideas?
>
>Thanks,
>Sean
>

My guess is a column which was supposed to have a date in it has a NULL 
date... not sure though.

I'm going to upload rel 1.1 this morning, which has some fixes in it.

-- 
Matt Kromer
Zope Corporation  http://www.zope.com/ 






--  __--__--  

Message: 18
Date: Tue, 23 Apr 2002 10:29:17 -0400
From: A M Thomas <am@virtueofthesmall.com>
Organization: Virtue of the Small
To: Steve Spicklemire <steve@spvi.com>
CC: zope@zope.org
Subject: Re: [Zope] setting up a ZClass - base class of PropertyManager?  plus weird gradual broken product messages

Hi Steve,

Thanks for the follow up!

I have to respond about property sheets again... what I want is to take
advantage of the famous "acquisition" mechanism, but I want my class
instances to acquire from their _containing objects_ rather than from
their class property sheet values.  They seem to be inheriting from the
property sheet values even if the value is "blank" in the property
sheet.

Is there some way to control this, other than testing each thing? 
Creating an "undefined" value is not really going to work here; I've got
a whole bunch of different properties, some are selections, some boolean
(hard to set an undefined value for those), some text...  I could, of
course, define an additional property for each property already defined,
that specifies whether the property should come from the containing
object (true by default), but isn't the whole acquisition model supposed
to make this unneccessary?

I'm trying to do things the "right" way within Zope, but I'm still not
sure what that is for what I'm trying to accomplish.  I'm starting to
suspect that the ZClass approach may not be the best for what I want.

Many thanks,
Am

Steve Spicklemire wrote:
> > 2) If I create an instance
> > of a ZClass with a propertysheet, it seems to always define the
> > properties, and I want to inherit them from a parent object unless I
> > specifically define them in the new object.  I may be missing something,
> > but I seemed to get this effect, and that's why I switched to using
> > PropertyManager.
> 
> Hmmm... the property sheet only gives the class a value for the named
> properties. This "class" value gets used if the instance doesn't have a
> value of it's own. You can give the class value some "special" value
> (e.g., 'uninitialized') if you want to check an instance to see if
> you've set a custom value for that instance.
>





--  __--__--  

Message: 19
From: "Thomas B. Passin" <tpassin@mitretek.org>
To: <zope@zope.org>
Subject: Re: [Zope] referencing tuples
Date: Tue, 23 Apr 2002 10:40:56 -0400

Have your method return a dictionary instead of a list of tuples.  Then you
can directly access an item by its key.  A tuple is not indexed except by
position, so you can't jump into the middle by using a key.

It's probably a non-issue, though.  The length of your list would have to be
pretty large for there to be a noticable delay because you have to look
through the list.  Still, a dictionary is what you want.

Cheers,

Tom P

[Dianne Van Dulken]
>
> I was wondering if what I am trying to do is possible, or not.
>
> I have a method that returns a list of tuple pairs eg:
>
> [(firstname, Di), (lastname, van Dulken), (address, ...) ] etc.
>
> I have no problem looping through this to get the sequence-item,
> sequence-key information:
>
> <dtml-in "getDetails(_.None, _, status='Active')">
>  <dtml-in sequence-item>
>   <dtml-var sequence-key> = <dtml-var sequence-item>
>  </dtml-in>
>  <hr>
> </dtml-in>
>
> works fine.
>
> BUT, I really only want (on this page, the method is used on other pages)
to
> know a couple of the tuple details in the list.
> I know I can get this by looping through the whole sequence and using
>
> <dtml-if "sequence-key == 'firstname'">
>
> but that seems an incredibly slow and clunky way of referencing it to me.
> Is there anyway I can reference the tuple value by the tuple key without
> having to loop through them that way?  I've tried getitem('firstname') and
> sequence-var-firstname, but neither of these work.  I couldn't find any
one
> else asking this, so I assume it is too basic for normal people to query
on.
>
> I also know I can reference THE tuple I am after by using sequence-item[1]
> (or whatever), but that rather removes the whole point of having name
> variables.





--  __--__--  

Message: 20
Date: Tue, 23 Apr 2002 16:54:45 +0200
From: Kilian Koepsell <kilian@koepsell.de>
To: zope@zope.org
Cc: Andreas Reuleaux <reuleaux@web.de>
Subject: Re: [Zope] Problems with External Methods when starting Zope at boot time, Mac OS X

On Tue, Apr 23, 2002 at 05:38:18AM +0200, Andreas Reuleaux wrote:
> To: zope@zope.org
> Subject: Re: [Zope] Problems with External Methods when starting Zope at boot time, Mac OS X
>
> the zope pkg from fink (which uses python2.1 from fink unstable
> as you privately mailed me) works great by the way
> 

thank you for the feedback. it will make it's way into the binary distro soon...

cheers,
  kilian



--  __--__--  

Message: 21
To: zope@zope.org
From: Florent Guillaume <fg@nuxeo.com>
Subject: Re: [Zope] unquote_plus NOT working in an EM ?
Date: Tue, 23 Apr 2002 15:37:53 +0000 (UTC)
Organization: Nuxeo

In an external method, do not use "print" but "return".

Florent

Doyon, Jean-Francois <Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
> Hello,
> 
> Anybody know why if I have:
> 
> from urllib import urlopen, urlencode, unquote_plus
> 
> and then something like:
> 
> print unquote_plus(innerlist[1])
> 
> the string WILL NOT come out unquoted for some reason? When I run a test
> from the CLI, no problem, but when inside an External Method, nothing
> happens!
> 
> Help! :)
> 
> Thanks a bunch,
> 
> Jean-François Doyon
> Internet Service Development and Systems Support
> GeoAccess Division
> Canadian Center for Remote Sensing
> Natural Resources Canada
> http://atlas.gc.ca
> Phone: (613) 992-4902
> Fax: (613) 947-2410
> 
> 
> 
> _______________________________________________
> 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 )
> 


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com



--  __--__--  

Message: 22
From: "Ted Skolnick" <ted.skolnick@reis.com>
To: <Zope@zope.org>
Subject: FW: [Zope] Re: [Zope-dev] Separate staging and development areas for a product
Date: Tue, 23 Apr 2002 11:40:38 -0400



-----Original Message-----
From: Ted Skolnick [mailto:ted.skolnick@reis.com]
Sent: Tuesday, April 23, 2002 11:40 AM
To: 'Oliver Bleutgen'
Subject: RE: [Zope] Re: [Zope-dev] Separate staging and development
areas for a product


Hi,
Ted here. I started this thread a while back, and came up with a solution
that works for me.   I hope it is helpful for others too.  If u find a flaw
in it, please let me know.

Goal:
To run both a dev and staging environment on one Zope.  This must work with
external methods, and modules imported by those external methods (i.e. file
based products).  In other words, I will have files with the same name on
the system in different directories.

What I did:
1) Created my dev project
The external methods reside in
/usr/zope/lib/python/Products/dev/Extensions
Python files that r imported by those external method modules also reside in
that same directory (or a package within there).

2) Made a copy of dev, both in Zope and on file system, called it staging.
Now all the same files exist in
/usr/zope/lib/python/Products/staging/Extensions as well.
(don't forget ur __init__.py files in all dirs!)

3) Update the external method path's in the Zope mgmt. interface.  Lets say
I had an external method module called myfuncs.py .  In dev the external
module path is dev.myfuncs, while in staging I need to make it
staging.myfuns.   So, there is no code changes between dev and staging.  The
only changes r in the zope mgmt interface for hooking up the external method
paths.

4) The interesting part:
If u just do the above, it will not work.  The reason is that external
methods use the ExternalMethod product, which in turn uses Extensions.py.
When u invoke an external method, it is loaded with an exec command from
within Extensions.py.   As a result, it is loaded within the context of
Extensions.py and can not import other modules from the directory that
actually contains ur external method.  At first I fixed this by adding to my
python path.  But if u do that, u can only import either dev or staging
files, whichever comes first in the python path.   So....  I hacked
Extensions.py with a very small change.
Instead of allowing Extensions.py to do an exec, I made it do an import to
load the module so that my dev and staging modules will be loaded from the
context of their own directories, and will therefore import modules from
their own directory.  In this way dev external methods import modules from
the Products/dev/Extensions directory, and staging will import from
Products/staging/Extensions/.

The hack could be more robust, but it is very short, and is getting me back
on the road to staging...

code excerpt from Extensions.py.....

Starting at line 140:

    else:
        try: execsrc=open(p)
        except: raise "Module Error", (
            "The specified module, <em>%s</em>, couldn't be opened."
            % module)
        #m={}  <<<<<<<<<<<<<< Commented out the old way of loading module
        #exec execsrc in m   <<<<<<<<<<<<<< Commented out the old way of
loading module

        # >>>> Start of my new stuff
        modNameParts = split( module, "." )
        module = "Products." + modNameParts[0] + ".Extensions." +
modNameParts[1]
        exec ( "import " + module + " as m" )
	  # >>>> End of my new stuff

    funcToRetrieve = "m." + name
    try: r= eval( funcToRetrieve ) #<<<<<<< I replaced this line too.. usde
to say r = m[name]

-Ted




-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Oliver Bleutgen
Sent: Tuesday, April 23, 2002 5:12 AM
To: John Schinnerer
Cc: zope@zope.org
Subject: Re: [Zope] Re: [Zope-dev] Separate staging and development
areas for a product


John Schinnerer wrote:
> Aloha,
>
> <snip>...
>
>>... but I really need my development
>>version accessible to the internet, too.  And it would be nice to
>>have three versions so I could have a separate testing version
>>public, as well.
>>
>
>>What should someone like me do in order to develop a product that is
>>also in use on my server?  What do other independent developers do?
>>
>
> Zope 'version' objects (Ch. 3, zope book, near the end) supposedly
> address some of your issues (which are similar to some of mine - I too
> would like to have fully functional preview/test sites available on my
> live server).  I haven't tried versions yet, though, because...
>
> What the zope book info on versions doesn't say (and I haven't found
> elsewhere either) is how (or if it's even possible) to access a version
>>from outside the management interface - that is, as a client would see
> it in their browser, so it can be tested before changes are committed
> to the 'public' version.  If I can't do that, and do it transparently,
> versions don't do me any good.  There'd have to be some URL trickery
> somewhere to serve up a version without breaking buckets 'o links...

When you enter a version, you just get a cookie named 'Zope-Version'
with the path to your version as a value. You can see it for yourself if
you configure the browser to ask before accepting cookies and look at
the cookie details.
In Zope 2.3.3, and I suspect in any zope after that also, it's possible
to just set this cookie, and the browser is in that version. Therefore
the permission 'join/leave versions' is quite useless IMO.
The upside is that you need just a short code snippet (setting that
cookie) to let anyone (including anonymous) enter any version.
Downsides are obvious and manyfold.


cheers,
oliver




_______________________________________________
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 )





--  __--__--  

_______________________________________________
Zope maillist  -  Zope@zope.org



End of Zope Digest

--Part_Boundary-616B08--




-- __--__-- 

Message: 2
From: Robert Rockwell <RobertR@intouchcorp.com>
To: "'zope@zope.org'" <zope@zope.org>
Subject: RE: [Zope] Alternate HTML Table implementation in STX
Date: Tue, 23 Apr 2002 12:14:14 -0400

Andreas,

My intent here is handling columnar data, so colspan and rowspan would be
rarely needed.  I'm sure there would be a tidy way to establish a syntax
that supported spanning, were it desirable.

As I read through the various documentation on STX, the idea seems to be to
create a source format that is as close to readable as the rendered format.
Given this concept, I can see the reasoning behind the existing way of
describing tables using ascii drawings of the table.  Nonetheless, as with
most technology STX constantly proves trickier to implement that expected.  

e.g.
1. In Zope, failing to properly close the table breaks the entire page,
thereby losing all access via a Wiki interface.
2. Entries within the table are still subject to STX rules, with sometimes
strange results.  For example, a cell that contains a only number will be
converted to a 1 since it is interpreted as an ordered list element.

Also, my earlier suggestion using a DTML tag is bad form for STX.  Maybe I
should have said something like:

[TABLE=1, Lecture Halls]
"Room", "Capacity" ,"Sound".
"B-100", "200" ,"Yes".

which would render like:

|-----------------------------|
| Room   | Capacity | Sound   |
|-----------------------------|
| B-100  |   200    | Yes     |
|-----------------------------|
Table 1. Lecture Halls

Anyhow, I am not proposing a standard, but trying to find out an easy way to
do this with STX or move on.

Thanks in advance,
--ira (via Bob's account)

-----Original Message-----
From: Andreas Jung [mailto:andreas@zope.com]
Sent: Friday, April 19, 2002 11:51 AM
To: Robert Rockwell; zope@zope.org
Subject: Re: [Zope] Alternate HTML Table implementation in STX


How do you handle colspan and rowspan?

-aj
----- Original Message -----
From: "Robert Rockwell" <RobertR@intouchcorp.com>
To: <zope@zope.org>
Sent: Friday, April 19, 2002 11:44
Subject: [Zope] Alternate HTML Table implementation in STX


> Hello,
>
> This question is motivated by attempts to maintain some tabular lists in
> Zwiki (v0.9.6 on Zope 2.5).
>
> I've noticed that HTML tables can be described in wiki's using an STX
> convention involving dashes (-) and vertical bars (|).  Although this
> doesn't require HTML knowledge, it certainly requires skill on the
author's
> part to get it right.  For simple tablular lists of data, the extra
> flexibility of this convention is more of an obstacle.
>
> Does anyone know of simpler convention for describing columns of data?
I'm
> thinking more along the lines of something like (now entering dream mode)
>
> <DTML-TABLE>
> Name; email; phone
> Joe Smith; js@nowhere.comm; 555-1111
> Sarah Conner; sc@adomain.nett; 555-5555
> </DTML-TABLE>
>
> which would render something like
>
> |-------------------------------------------|
> | Name         | email           | phone    |
> |-------------------------------------------|
> | Joe Smith    | js@nowhere.comm | 555-1111 |
> |-------------------------------------------|
> | Sarah Conner | sc@adomain.nett | 555-5555 |
> |-------------------------------------------|
>
> People have an easier time grasping the concept of editing comma delimited
> lists than using the ascii drawing skills.
>
> Due to constraints on my time, I would rather not do this with tables and
> sql.
>
> Thanks in advance,
> --ira (via Bob's account)
>
>
>
>
> _______________________________________________
> 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: 3
Date: Tue, 23 Apr 2002 09:35:24 -0700
From: Sean Abrahams <sa@sfsu.edu>
Reply-To: Sean Abrahams <sa@sfsu.edu>
Organization: SFSU : Fiscal Affairs Business Systems
To: zope-admin@zope.org, "Matthew T. Kromer" <matt@zope.com>
CC: zope@zope.org
Subject: Re[2]: [Zope] DCOracle 2 Problem

Matthew,

I updated to 1.1 that you uploaded an am still getting the same error.
Running dco2 on my linux test box, and accessing an oracle 8.1.6 server on a
ibm unix 4.3 box.

I get the error no matter what table i query, with or without a date
field, and even if i misspell the table name.

since connecting and querying seems to work (ie data is getting sent
and returned), this is most likely not a fault of a bad build or other
module correct?

I'm relatively new to gnu/linux and still learning everyday.

cx_Oracle works fine, but I wanted to use DCOracle2 for Zope and its
callproc() feature.

What do you suggest I do?

Thanks for your help,
Sean

Tuesday, April 23, 2002, 7:22:33 AM, you wrote:

MTK> Sean Abrahams wrote:

>>All right, I made DCOracle2-PR1 and copied the dco2.so to my
>>/usr/lib/python2.1/site-packages/ directory.
>>
>>I go into python to test it out, here's what I get:
>>
>>Python 2.1.3 (#1, Apr 11 2002, 00:19:11)
>>[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
>>Type "copyright", "credits" or "license" for more information.
>>
>>>>>import dco2
>>>>>db = dco2.connect("xxxxx", "xxxxx", "xxxxx")
>>>>>dbc = db.cursor()
>>>>>dbc.execute("select * from table")
>>>>>
>>Traceback (most recent call last):
>>  File "<stdin>", line 1, in ?
>>TypeError: an integer is required
>>
>>
>>
>>Any ideas?
>>
>>Thanks,
>>Sean
>>

MTK> My guess is a column which was supposed to have a date in it has a NULL 
MTK> date... not sure though.

MTK> I'm going to upload rel 1.1 this morning, which has some fixes in it.




-- __--__-- 

Message: 4
Date: Tue, 23 Apr 2002 09:59:38 -0700
From: Dan Shafer <pydan@danshafer.com>
Subject: Re: [Zope] Inserting a variable in a context.manage statement in Python
To: tim <tim@sitefusion.co.uk>
Cc: pydan@danshafer.com, zope@zope.org

Fantastic! This was exactly the missing key, Tim. Thanks very much! I think 
this was the last major technical gap I had before I can complete this 
application.

This list is wonderful. You are most helpful. One more reason to keep using 
Zope and Python.

At 02:33 PM 4/23/2002 +0100, tim wrote:
> > c = REQUEST.get('clearing_id','')
> > context.manage_addFolder(c) # this works
> > # Now what I want to do is add a document to the folder
> > # If I include a hard-coded value for the folder name I just created as a
> > test, it works
> > # But this doesn't:
> > context.c.manage_addDocument('NewDoc')
>
>I think you should be able to do either of (both untested):
>
>getattr(context, c).manage_addDocument('NewDoc')
>context[c].manage_addDocument('NewDoc')
>
>As far as I understand, your version doesn't work because you are telling
>python/zope to look for the c string object that is an attribute of context,
>instead of telling it to get hold of the attribute of context that is called
>whatever str(c) returns.
>
>hth
>
>tim




-- __--__-- 

Message: 5
Date: Tue, 23 Apr 2002 12:57:34 -0400
From: "Matthew T. Kromer" <matt@zope.com>
To: Sean Abrahams <sa@sfsu.edu>
CC: zope@zope.org
Subject: Re: [Zope] DCOracle 2 Problem

Sean Abrahams wrote:

>Matthew,
>
>I updated to 1.1 that you uploaded an am still getting the same error.
>Running dco2 on my linux test box, and accessing an oracle 8.1.6 server on a
>ibm unix 4.3 box.
>
>I get the error no matter what table i query, with or without a date
>field, and even if i misspell the table name.
>
>since connecting and querying seems to work (ie data is getting sent
>and returned), this is most likely not a fault of a bad build or other
>module correct?
>
>I'm relatively new to gnu/linux and still learning everyday.
>
>cx_Oracle works fine, but I wanted to use DCOracle2 for Zope and its
>callproc() feature.
>
>What do you suggest I do?
>

OK,

Step 1:  

    export DCO2TRACEDUMP=dco2.tcd
    export DCO2TRACEFLAGS=255
    ... run your python program ...

Step 2:

   Go to http://www.zope.org/Members/matt/dco2/Tracker and open a 
problem report, uploading the tracedump from step 1.  Edit the file if 
necessary to remove any plaintext you don't want others to see (like 
passwords if they appear).

If that doesnt work, I need better tracebacks for why an integer is 
required -- "stdin line 1" is not helpful, since it doesn't tell me what 
the statement was that failed.

If that STILL doesn't work, then I need to see the schema description 
for your table, which you can get from DCOracle2 by doing the following

    db = DCOracle2.connect(connectstring)
    d = db.describe(SCHEMANAME)  # most schema names are all caps e.g. 
"TABLE"
    print db.decodedesc(d)

If the decoding fails, then I will look at the raw description:

    import pprint
    pprint.pprint(d)

There are certain things DCOracle2 doesn't do, like Oracle objects, so I 
need to see the schema data to make sure it isn't getting back anything 
that it should be doing, but isn't.


-- 
Matt Kromer
Zope Corporation  http://www.zope.com/ 






-- __--__-- 

Message: 6
Date: Tue, 23 Apr 2002 11:39:32 -0700
From: Sean Abrahams <sa@sfsu.edu>
Reply-To: Sean Abrahams <sa@sfsu.edu>
Organization: SFSU : Fiscal Affairs Business Systems
To: "Matthew T. Kromer" <matt@zope.com>
CC: zope@zope.org
Subject: Re[2]: [Zope] DCOracle 2 Problem

Matthew,

All right, cancel all the previous messages out. Looks like it was an
install and usage error on my side. Thanks for all the tips and I
apologize for any frustration caused.

Just so you know, I was importing dco2 instead of DCOracle2.

Of course, it also helps when the installer isn't a newbie.

Thanks,
Sean


Tuesday, April 23, 2002, 9:57:34 AM, you wrote:

MTK> Sean Abrahams wrote:

>>Matthew,
>>
>>I updated to 1.1 that you uploaded an am still getting the same error.
>>Running dco2 on my linux test box, and accessing an oracle 8.1.6 server on a
>>ibm unix 4.3 box.
>>
>>I get the error no matter what table i query, with or without a date
>>field, and even if i misspell the table name.
>>
>>since connecting and querying seems to work (ie data is getting sent
>>and returned), this is most likely not a fault of a bad build or other
>>module correct?
>>
>>I'm relatively new to gnu/linux and still learning everyday.
>>
>>cx_Oracle works fine, but I wanted to use DCOracle2 for Zope and its
>>callproc() feature.
>>
>>What do you suggest I do?
>>

MTK> OK,

MTK> Step 1:  

MTK>     export DCO2TRACEDUMP=dco2.tcd
MTK>     export DCO2TRACEFLAGS=255
MTK>     ... run your python program ...

MTK> Step 2:

MTK>    Go to http://www.zope.org/Members/matt/dco2/Tracker and open a 
MTK> problem report, uploading the tracedump from step 1.  Edit the file if 
MTK> necessary to remove any plaintext you don't want others to see (like 
MTK> passwords if they appear).

MTK> If that doesnt work, I need better tracebacks for why an integer is 
MTK> required -- "stdin line 1" is not helpful, since it doesn't tell me what 
MTK> the statement was that failed.

MTK> If that STILL doesn't work, then I need to see the schema description 
MTK> for your table, which you can get from DCOracle2 by doing the following

MTK>     db = DCOracle2.connect(connectstring)
MTK>     d = db.describe(SCHEMANAME)  # most schema names are all caps e.g. 
MTK> "TABLE"
MTK>     print db.decodedesc(d)

MTK> If the decoding fails, then I will look at the raw description:

MTK>     import pprint
MTK>     pprint.pprint(d)

MTK> There are certain things DCOracle2 doesn't do, like Oracle objects, so I 
MTK> need to see the schema data to make sure it isn't getting back anything 
MTK> that it should be doing, but isn't.




-- __--__-- 

Message: 7
Date: Tue, 23 Apr 2002 20:51:14 +0200
From: Tony Schonfeld <tony@schonfeld.eu.org>
To: zope@zope.org
Subject: [Zope] Virtual hosting question.

hello everybody , 

I need to use virtual hosting with a Zope server and dymanic Ip.
The most know method is with a apache front end server but
can i use zope without apache by example with VHM and Dyn Ip ?

many thanks for all comments and examples.

Best Regards , Tony


-- 
     Tony Schonfeld  * F5GIT * Phone: +33 675 236 530
Email: tony@schonfeld.eu.org - WWW: http://www.schonfeld.eu.org


             
 



-- __--__-- 

Message: 8
From: "Alec Munro" <alec.munro@eoascientific.com>
To: <zope@zope.org>
Date: Tue, 23 Apr 2002 16:21:26 -0300
Subject: [Zope] Returning data as XML from a python script?

Hi all,
I'm trying to set up a fairly generic system for retrieving data from a
database and bundling it so that it can easily be placed in any front
end medium. For the moment, this means simply finding a data format that
I can use in both HTML and Flash. I'm fairly certain that I could get
Python to return XML easily, but the question I have right now is: is
there an easy way I can leverage this so that Python doesn't care
whether it was a page template or a flash movie that made the call, and
that it will work in either situation? I love Flash, but I know many
people don't, and we don't have the budget for redoing our entire site
anyway, so it is a given that HTML will be the presentation medium of
choice. But I would like to have the data there if I want to put a Flash
front-end on a specific page. 
As I understand it now, Flash would be happy simply receiving the text
of an XML document, and then parsing it into useful information, while
ZPT would prefer to have an object that it can reference the properties
of. Is there an easy solution? I suppose I could simply have a wrapper
class for HTML, Flash, and any other mediums we choose to utilize? Well
maybe I answered my own question, but I'm a Zope newbie, and I have yet
to make extensive use of Flash's XML streaming facilities, so I would
appreciate if everyone would throw in their comments on this, as I'm
sure there are many things I am overlooking.  
Thanks for your time, and I'm really sorry if outlook mangles this.

Alec Munro
EOA Scientific Systems




-- __--__-- 

Message: 9
Date: Tue, 23 Apr 2002 12:52:08 -0700 (PDT)
From: Dennis Allison <allison@sumeru.stanford.EDU>
To: Karl Anderson <kra@monkey.org>
cc: zope@zope.org, faassen@vet.uu.nl
Subject: [Zope] Re: ParsedXML tree-widget

Just wanted to follow up on the ParsedXML queries that were posted
earlier.  My problem was getting the dtml-tree widget to not show all the
nodes in the DOM-tree.  I ended up with a brain surgery solution which 
hacked tpValues so it wouldn't consider non-XML-ish nodes as acceptable 
children.  (and there was also an associated namespace problem...)

Well, it looks like that was the wrong solution.  Apparently, the various
nodes in the DOM have a nodeType and the nodes I wanted to display have a 
nodeType on 1.  :-(

It would have been helpful had there been some documentation separate from
the implemenation on the storage model, what aspects were maintained, and
how XML is mapped onto the DOM tree.







-- __--__-- 

Message: 10
Date: Tue, 23 Apr 2002 13:13:59 -0700
From: Dan Shafer <pydan@danshafer.com>
To: zope@zope.org
Subject: [Zope] Weird Date Display Bug in HTML Form

I have an HTML form with a text field into which I wish to place the 
current date, properly formatted, as a default value.

In the form, I have the following DTML:

<
input type="text" name="start_date" value=<dtml-var 
"(_.DateTime().strftime('%b. %d, %Y'))">>

This code is copied verbatim from another page on one of my other Zope 
sites where it produces the day's date just beautifully. In this case, it 
only displays the first formatted element (day name in this case, but I've 
proven that it will display the first item whatever it is) in the form's 
text field.

If I use the exact same code in a textarea multi-line field on an HTML 
form, it displays the entire formatted date correctly.

Known bug? Workarounds? Personal insanity?




-- __--__-- 

Message: 11
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 21:41:18 +0200
To: "William GARCIA" <wgarcia@esrf.fr>, zope@zope.org
Subject: Re: [Zope] pb with the function getProperty

Maik Jablonski writes:
 > On Tue, 23 Apr 2002 11:18:14 +0200 "William GARCIA" <wgarcia@esrf.fr> wrote:
 > 
 > >           <dtml-if "_['sequence-item'].getProperty('State')='private'">
 > 
 > you must use == instead of = for comparisions in python.
 > 
 >  <dtml-if "_['sequence-item'].getProperty('State')=='private'">
Additionally, you probably must use "_.getitem('sequence-item')" to
get the object and not the result of it being rendered.


Dieter



-- __--__-- 

Message: 12
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 21:56:19 +0200
To: "Doyon, Jean-Francois" <Jean-Francois.Doyon@CCRS.NRCan.gc.ca>
Cc: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] unquote_plus NOT working in an EM ?

Doyon, Jean-Francois writes:
 > Anybody know why if I have:
 > 
 > from urllib import urlopen, urlencode, unquote_plus
 > 
 > and then something like:
 > 
 > print unquote_plus(innerlist[1])
 > 
 > the string WILL NOT come out unquoted for some reason? When I run a test
 > from the CLI, no problem, but when inside an External Method, nothing
 > happens!
"print" will print to "sys.stdout". Where goes this content to?

The output may be buffered.
Use "import sys; sys.stdout.flush()" to flush the buffer.


Dieter



-- __--__-- 

Message: 13
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 21:54:17 +0200
To: Hamzal Kamal <k_hamzat@yahoo.com>
Cc: zope@zope.org
Subject: Re: [Zope] Unauthorized You are not authorized to access delRows.

Hamzal Kamal writes:
 > Site Error
 > An error was encountered while publishing this resource. 
 > Unauthorized
 > You are not authorized to access delRows. 
 > 
 > I am sure that this error is coming from these statements from
 > sredirect method :
 > <dtml-call "svalues.delRows(surv=surv,ans=ans)">
 > <dtml-call "svalues.setRow(surv=surv,ans=ans,counter=cnt)">
 > <dtml-call "hostlist.setRow(name=REMOTE_ADDR,surv=surv)">
 > 
 > I have tried to play around the security screen of the svalues table
 > but not successful.
One possible approach:

    Start Zope with "ZOPE_SECURITY_POLICY=PYTHON".

    Use "DocFinder" to analyse how "delRows" is protected.

    Ajust the correct permission to role mapping.

You find "DocFinder" via 

  <http://www.dieter.handshake.de/pyprojects/zope>




Dieter



-- __--__-- 

Message: 14
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 21:58:30 +0200
To: "Stadtverwaltung Schwarzenberg" <stadtverwaltung@schwarzenberg.de>
Cc: <zope@zope.org>
Subject: Re: [Zope] publish() hook

Stadtverwaltung Schwarzenberg writes:
 > I'd like to add a little functionality to my ZPublisher.Publish.publish
 > method. So I created a new Product and in the __init__.py file of ths
 > product I put code like this:
 > 
 > import ZPublisher
 > 
 > def publish_new(same fingerprint as ZPublisher.Publish.publish):
 >     response = ZPublisher.Publish.publish_old(paramaters)
 >     #
 >     #aditional functionality
 >     #
 >     return respone
 > 
 > ZPublisher.Publish.publish_old = ZPublisher.Publish.publish
 > ZPublisher.Publish.publish = publish_new
 > 
 > Using this code Zope starts up w/o error but I don't see any effects of my
 > new publish method. In fact - even if there is an error in my additional
 > code it never raises an exception so I figure that my new pubish method
 > never gets called.
 > 
 > Some additional info: I'm running Zope 2.4.1 on a WinNT machine.
 > 
 > Can anyone help me out? Please?
The "user" probably does

    from ZPublisher.Publish import publish

Then, later changes to "ZPublisher.Publish" do not affect the imported
"publish".

If that's the reason, you need to find the "publish" and change it
there, too.


Dieter



-- __--__-- 

Message: 15
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 20:52:37 +0200
To: andreas@andreas-jung.com
Cc: Thomas Guettler <zopestoller@thomas-guettler.de>, zope@zope.org
Subject: Re: [Zope] WebDAV access from MS-Office

Andreas Jung writes:
 > On Mon, Apr 22, 2002 at 09:21:50PM +0200, Dieter Maurer wrote:
 > > Andreas Jung writes:
 > >  > > Is it possible to use umlauts in file names?
 > >  > 
 > >  > No (at least not without hacking the corresponding check for
 > >  > valid Ids).
 > > Should we kill this restriction?
 > > 
 > >    I think/hope it is no longer necessary.
 > 
 > We discussed this problem last year and the key question was,
 > what characters should be allowed: utf-8, latin-1, iso-8859-X..
Looks like a configuration/startup parameter, similar to "-L".
It would control the default encoding of (all) non-Unicode strings inside
Zope -- similar to Python's "default_encoding".

 > or whatever. I would really love to see the restriction lifted.
 > However lifting the restriction must not break existing code.
Lifting a restriction is not likely to break existing code.
Of course, we must be careful when URLs are constructed.
When I looked at it for the last time, it appeared to correctly
quote the components. But there may be lots of places...


Dieter



-- __--__-- 

Message: 16
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 21:49:42 +0200
To: "Jean Jordaan" <jean@upfrontsystems.co.za>
Cc: <tdickenson@geminidataloggers.com>, <zope@zope.org>
Subject: RE: [Zope] zope equivalent for 'du'?

Jean Jordaan writes:
 > Eeew .. Should I worry about this? Zope's performing fine .. 
 > 
 > upfront:~/Zope/var$ ../../tranalyzer.py Data.fs > ~/tranalyzer.out
 > Traceback (innermost last):
 >   File "../../tranalyzer.py", line 333, in ?
 >     main(sys.argv)
 >   File "../../tranalyzer.py", line 325, in main
 >     t = Transaction(f, off, refs)
 >   File "../../tranalyzer.py", line 170, in __init__
 >     self.obs.append(Record(f, refs))
 >   File "../../tranalyzer.py", line 201, in __init__
 >     self.prevrec = f.u64()
 >   File "../../tranalyzer.py", line 121, in u64
 >     self.checkleft(8)
 >   File "../../tranalyzer.py", line 87, in checkleft
 >     raise 'Not enough data left, %d < %d' % (self.left, n)
 > Not enough data left, 0 < 8
Apparently, "tranalyser" needs to be updated.

Me, too, I hit this problem today. It appears "tranalyser" cannot
handle versions.

I used "lib/python/ZODB/fsrecover.py -v2" instead.


Dieter



-- __--__-- 

Message: 17
From: Dieter Maurer <dieter@handshake.de>
Date: Tue, 23 Apr 2002 22:05:32 +0200
To: "Markus Stoll" <markus.stoll@junidas.de>
Cc: <Zope@zope.org>
Subject: Re: [Zope] Problem with dtml-sendmail

Markus Stoll writes:
 > we wrote an email form that performs a POST
 > on a python script. This python script calls
 > a dtml-method with the <dtml-sendmail>.
 > 
 > The dtml-sendmail does not find the MailHost
 > if it is not in the same folder. So I have to create
 > a separate MailHost in the same folder and everything is 
 > fine. Acquisition otherwise works fine, the
 > standard_html_header is found and included.
 > 
 > So why does Acuqisition not work for dtml-sendmail?
It does!

Why do you make a standard error?

  DTML objects want to be called with two positional arguments.
  Please read "Calling DTML objects" in

    <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>



Dieter



-- __--__-- 

Message: 18
To: Dennis Allison <allison@sumeru.stanford.EDU>
Cc: zope@zope.org, faassen@vet.uu.nl
From: Karl Anderson <kra@monkey.org>
Organization: Ape Mgt.
Date: 23 Apr 2002 13:37:23 -0700
Subject: [Zope] Re: ParsedXML tree-widget

Dennis Allison <allison@sumeru.stanford.EDU> writes:

> Just wanted to follow up on the ParsedXML queries that were posted
> earlier.  My problem was getting the dtml-tree widget to not show all the
> nodes in the DOM-tree.  I ended up with a brain surgery solution which 
> hacked tpValues so it wouldn't consider non-XML-ish nodes as acceptable 
> children.  (and there was also an associated namespace problem...)
> 
> Well, it looks like that was the wrong solution.  Apparently, the various
> nodes in the DOM have a nodeType and the nodes I wanted to display have a 
> nodeType on 1.  :-(
> 
> It would have been helpful had there been some documentation separate from
> the implemenation on the storage model, what aspects were maintained, and
> how XML is mapped onto the DOM tree.

I thought that I documented this pretty well.  If you had trouble
finding this frome the Parsed XML documetation, it's a bug that should
be filed.

NodeType is a DOM implementation feature, which is described by the
W3C docs and linked to in several help screens.  There is also
discussion on the Parsed XML & Zope XML wikis, linked to by the docs.
The DOM interfaces that Parsed XML implements are listed in the Parsed
XML docs, and any deviations from this list are also bugs that should
be filed.

-- 
Karl Anderson      kra@monkey.org           http://www.monkey.org/~kra/



-- __--__-- 

Message: 19
Date: Tue, 23 Apr 2002 13:32:10 -0800
Subject: Re: [Zope] Weird Date Display Bug in HTML Form
From: Colyn Brown <cbrown@ep.newtimes.com>
To: <zope@zope.org>

Put quotes around your value variable. Don't ask me why that works, but it
does.

<input type="text" name="start_date" value="<dtml-var
"(_.DateTime().strftime('%b. %d, %Y'))">">

--colyn brown
Phoenix New Times
Web Developer

> From: Dan Shafer <pydan@danshafer.com>
> Date: Tue, 23 Apr 2002 13:13:59 -0700
> To: zope@zope.org
> Subject: [Zope] Weird Date Display Bug in HTML Form
> 
> I have an HTML form with a text field into which I wish to place the
> current date, properly formatted, as a default value.
> 
> In the form, I have the following DTML:
> 
> <
> input type="text" name="start_date" value=<dtml-var
> "(_.DateTime().strftime('%b. %d, %Y'))">>
> 
> This code is copied verbatim from another page on one of my other Zope
> sites where it produces the day's date just beautifully. In this case, it
> only displays the first formatted element (day name in this case, but I've
> proven that it will display the first item whatever it is) in the form's
> text field.
> 
> If I use the exact same code in a textarea multi-line field on an HTML
> form, it displays the entire formatted date correctly.
> 
> Known bug? Workarounds? Personal insanity?
> 
> 
> 
> _______________________________________________
> 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: 20
From: Clint Brubakken <cabrubak@inetic.com>
To: zope@zope.org
Date: 23 Apr 2002 16:10:44 -0500
Subject: [Zope] Searching for FieldIndex for objects that don't containg a certain
 value

I have a  ZCatalog, and I have a field index called category, and I
want all results where category != 'foo' , is this done easily?

Or do I have to filter all results and reject those where
category='foo'?








-- __--__-- 

Message: 21
From: "davis marques" <davismarques169@hotmail.com>
To: zope@zope.org
Date: Tue, 23 Apr 2002 14:22:17 -0700
Subject: [Zope] DTML type casting? or something? / LocalFS subdirectory exists test

I'm having a DTML problem here.  I'm trying to test whether a subdirectory 
(whose id=ProjectID) exists under a LocalFS object.

<dtml-with ProjectID>
      <dtml-if "'&dtml-ProjectID;' in projectfiles.fileIds()">
            The directory "<dtml-var ProjectID>" exists
      <dtml-else>
            "<dtml-var ProjectID>" does not exist
      </dtml-if>
</dtml-with>

When I manually enter a value in place of ProjectID it works fine (ex. 
"'202006' in projectfiles.filesIds()").  When I use &dtml-ProjectID; it 
doesn't work.  I presume that the value of ProjectID is not being translated 
into an appropriate format for the expression to work, but I don't know how 
to test this or to resolve this.  Any thoughts?  Better ways to do this?

thanks


Davis

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




-- __--__-- 

Message: 22
Date: Tue, 23 Apr 2002 14:57:20 -0700
From: Paul Winkler <pw_lists@slinkp.com>
To: zope@zope.org
Subject: Re: [Zope] publish() hook

On Tue, Apr 23, 2002 at 09:58:30PM +0200, Dieter Maurer wrote:
> The "user" probably does
> 
>     from ZPublisher.Publish import publish
> 
> Then, later changes to "ZPublisher.Publish" do not affect the imported
> "publish".

python cookbook to the rescue!
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/92823

Ignore the specifics, just notice the principle. 
Here's a simple example:

$ python
Python 1.5.2 (#1, Aug 25 2000, 09:33:37)  [GCC 2.96 20000731 (experimental)] on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> class Foo:
...   def bar(self, arg):
...     print arg 
... 
>>> def newbar(self, arg, oldbar=Foo.bar):  # have to pass in the old method
...   print "Now in newbar, and calling the old one"
...   oldbar(self, arg)
... 
>>> x = Foo()
>>> x.bar(1)
1
>>> Foo.bar=newbar  # substitute the new method
>>> x.bar(1)   
Now in newbar, and calling the old one
1


So you can redefine a method and see the effect in all existing
(and future) instances. AFAIKT this should work regardless of how the 
class gets imported anywhere else.
 
When I first heard this idea, I mistakenly thought it was just the Decorator
design pattern, but clearly it's much more wide-reaching...

Decorator, for any readers who don't know, shows how to change the behavior
of a *single instance* of a class and leave all other instances alone.
Probably not what you want in this case, but a very powerful tool anyway,
and very easy in python.

Here's an example, continuing from the above python session:

>>> class Decorator:
...    def __init__(self, original):
...        self.original=original
...    def bar(self, arg):
...        print "This is the decorated version..."
...        self.original.bar(arg)
...        print "we now return to your regularly scheduled programming."
... 
>>> 
>>> y = Foo()
>>> x = Decorator(x)
>>> x.bar("blah")
This is the decorated version...
Now in newbar, and calling the old one
blah
we now return to your regularly scheduled programming.
>>> y.bar("bleah")
Now in newbar, and calling the old one
bleah
>>> x = x.original    
>>> x.bar("wheeee")
Now in newbar, and calling the old one
wheeee


Now back to my C++ homework. It's not nearly this much fun. :(

--PW





-- __--__-- 

Message: 23
From: service@freight-calculator.com
Date: Tue, 23 Apr 2002 18:27:39 -0400
To: zope@zope.org
Organization: APX
Subject: [Zope] Wholesale Online Freight Calculator

To better facilitate pricing we have developed online calculators for a variety of services. Freight-Calculator.Com has developed this unique pric1. Wholesale Door to Door Air at Wholesale RATES http://www.freight-calculator.com/wholeicr.asp

2. Small LCL Ocean Shipments From USA to Worldwide Ports http://www.freight-calculator.com/worldocr.asp

3. Small LCL Ocean Shipment to Hawaii and Asia http://www.freight-calculator.com/dhx/dhxocr_select.asp

4. Small LCL Ocean Shipments From ASIA to USA http://www.freight-calculator.com/ocean-asia/oceanasia.asp

5. Small LCL Ocean Shipments Fom EUROPE to USA http://www.apx-air-cargo.com/netherlands.htm

6. 20 & 40 Foot FCL Ocean Containers From USA http://www.freight-calculator.com/apxocean.asp

7. Air Cargo to Latin America from MIAMI HUB http://www.freight-calculator.com/acrlatacarr.asp

8. Air Cargo From West Coast USA http://www.freight-calculator.com/california-air/ca.asp

9. Air Cargo From London to Worldwide http://www.freight-calculator.com/uk-air/uk_select.asp

Our Shipping Documents are located at http://www.apx-air-cargo.com/airwaybill.html

The only instant online calculators in the world for air and ocean cargo.


Regards,

Andres Guerra-Mondragon
Marketing Mgr.
APX Air Parcel Express
APX International NVOCC
http://www.apx-air-cargo.com
Member of the World Cargo Alliance
Member of the Gold Medalion Group
Member of Atlas Line NVOCC
Member of All World Shipping NVOCC
866-597-0258 TOLL FREE TEL
866-597-0259 TOLL FREE FAX
305-597-0258 TEL USA
305-592-0266 FAX USA



-- __--__-- 

Message: 24
Date: Tue, 23 Apr 2002 16:07:17 -0700
From: Ian! <imcmeans@shaw.ca>
Subject: [zope] extra data for users
To: zope@zope.org

Sorry if this is a newbie question, but I'm having a hard time finding
general advice on this. I'm really new to zope.

I'm running zope, CFM and plone. I am trying to build a "secret santa"
system, where each user will eventually be given the address and name of
another user that they will send a gift to. This means that each user needs
to have the additional "address" and "gives-to" fields.

Can someone give a recommendation of how I should store this extra data?
Should I extend the zope users, or should I store the data with the CFM
member's folder (what format would this be?), or should I put it all in a
database?

Ideally I'd have the data with the zope user object, so that when someone
deletes themself from the system I can track down their recipient and find
the recipient a new giver. Is there an easy way to add new attributes to the
user, and are they easily modified after the user is created?




-- __--__-- 

Message: 25
Date: Wed, 24 Apr 2002 03:03:38 +0200
From: Marcus Schopen <marcus.schopen@uni-bielefeld.de>
Organization: LOCALGURU
To: zope@zope.org
CC: marc@bowery.com
Subject: [Zope] BUG FSCounter: Anonymous can clean up counter file

Hi,

if using FSCounter it's possible for user Anonymous to clean up the
counter's file with an easy:

	http://yourdomain.de/counterobject/write/count=crashme

Now the counter file on server's filesystem is empty and FSCounter's
"read" method breaks with "ValueError: invalid literal for int()". 

On most websites FSCounter instances are just called "counter" or
"Counter" and placed in the root folder. So it's a secound to reset the
counter and in some cases this crash the front site too if the counter
object is called without a dtml-try tag.

a short fix:

change write method to:

    def write(self):
        ''' increment file '''
	count = 1
        value = self.read()
        outfile = open(str(Globals.data_dir) + os.sep +
str(self.filename), 'wb')
        outfile.write(str(value + count))
        outfile.close()
        return int(value + count)

and increase method to:

    def increase(self, REQUEST=None):
        ''' increase '''
        return self.write()


Bye
Marcus

-- 

 ,---- [ Marcus Schopen ] 
|  (0>   
|  //\   P.O. Box 10 25 25
|  V_/_  33525 Bielefeld
|        Germany
 `----

__________________________________________________

Petition for a Software Patent Free Europe 
http://petition.eurolinux.org





-- __--__-- 

_______________________________________________
Zope maillist  -  Zope@zope.org



End of Zope Digest

--Part_Boundary-6A8D99--




--__--__--

Message: 2
Date: Tue, 23 Apr 2002 21:24:37 -0400
Subject: Re: [Zope] Installing Zope 2.5.0 Stable release and Python 2.1.2
Cc: <zope@zope.org>
To: "Josef Meile" <jmeile@hotmail.com>
From: Lee <lmarzke@comcast.net>


--Apple-Mail-1-502088254
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

I installed python 2.1.3 ( Zope 2.5.0 ) on RH Linux 2.4. and the crashes=20=

went away.
Much more stable platform.


Lee Marzke  <lee@n99.com>

On Monday, April 22, 2002, at 03:06  PM, Josef Meile wrote:

> Hi,
> according to this page:
> http://www.python.org/2.1.3/
> =A0
> Python=A02.1.2,=A0version which=A0Zope 2.5.0 uses, has a bug which =
causes
> Zope to crash. So, I just wondering which python source should I=20
> install for
> Zope 2.5.0 stable release. Or perhaps Do the two hotfixes for Zope=20
> 2.5.0=A0correct it?
> =A0
> Thanks in advanced,
> Josef.

--Apple-Mail-1-502088254
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

I installed python 2.1.3 ( Zope 2.5.0 ) on RH Linux 2.4. and the
crashes went away.

Much more stable platform.



Lee Marzke  <<lee@n99.com>


On Monday, April 22, 2002, at 03:06  PM, Josef Meile wrote:


=
<excerpt><fontfamily><param>Arial</param><smaller>Hi,</smaller></fontfamil=
y>

<fontfamily><param>Arial</param><smaller>according to this page:

=
<underline><color><param>1999,1999,FFFF</param>http://www.python.org/2.1.3=
/</color></underline></smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>Python=A02.1.2,=A0version
which=A0Zope 2.5.0 uses, has a bug which causes</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Zope to crash. So, I just
wondering which python source should I install =
for</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Zope 2.5.0 stable release. Or
perhaps Do the two hotfixes for Zope 2.5.0=A0correct =
it?</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>Thanks in =
advanced,</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Josef.</smaller></fontfamily>

</excerpt>=

--Apple-Mail-1-502088254--




--__--__--

Message: 3
Date: Wed, 24 Apr 2002 03:25:49 +0200
From: Marcus Schopen <marcus.schopen@uni-bielefeld.de>
Organization: LOCALGURU
To: Marcus Schopen <marcus.schopen@uni-bielefeld.de>
CC: zope@zope.org
Subject: Re: [Zope] BUG FSCounter: Anonymous can clean up counter file

sorry typo, it's:

	http://yourdomain.de/counterobject/write?count=crashme


Marcus Schopen wrote:
> 
> Hi,
> 
> if using FSCounter it's possible for user Anonymous to clean up the
> counter's file with an easy:
> 
>         http://yourdomain.de/counterobject/write/count=crashme
> 
> Now the counter file on server's filesystem is empty and FSCounter's
> "read" method breaks with "ValueError: invalid literal for int()".
> 
> On most websites FSCounter instances are just called "counter" or
> "Counter" and placed in the root folder. So it's a secound to reset the
> counter and in some cases this crash the front site too if the counter
> object is called without a dtml-try tag.
> 
> a short fix:
> 
> change write method to:
> 
>     def write(self):
>         ''' increment file '''
>         count = 1
>         value = self.read()
>         outfile = open(str(Globals.data_dir) + os.sep +
> str(self.filename), 'wb')
>         outfile.write(str(value + count))
>         outfile.close()
>         return int(value + count)
> 
> and increase method to:
> 
>     def increase(self, REQUEST=None):
>         ''' increase '''
>         return self.write()
> 
> Bye
> Marcus
> 

-- 


 ,---- [ Marcus Schopen ] 
|  (0>   
|  //\   P.O. Box 10 25 25
|  V_/_  33525 Bielefeld
|        Germany
 `----

__________________________________________________

Petition for a Software Patent Free Europe 
http://petition.eurolinux.org




--__--__--

Message: 4
To: Lee <lmarzke@comcast.net>
cc: "Josef Meile" <jmeile@hotmail.com>, zope@zope.org
From: Anthony Baxter <anthony@interlink.com.au>
Reply-to: Anthony Baxter <anthony@interlink.com.au>
Subject: Re: [Zope] Installing Zope 2.5.0 Stable release and Python 2.1.2 
Date: Wed, 24 Apr 2002 11:40:46 +1000


>>> Lee wrote
> I installed python 2.1.3 ( Zope 2.5.0 ) on RH Linux 2.4. and the crashes=20=
> went away.
> Much more stable platform.

This is correct. If your Zope version required a version of python 2, you
should be using 2.1.3. 2.2.x is only suitable for Zope3x, and other versions
of python 2.x have known bugs that Zope manages to trigger.

Anthony
-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.




--__--__--

Message: 5
From: Hannu Krosing <hannu@tm.ee>
To: zope@zope.org
Date: 24 Apr 2002 09:41:25 +0200
Subject: [Zope] Advice for performance checking/tuning

Hi

We are investigating use of Zope for a portal that will have 
about ~500.000 users.

However our test shows that zope is only capable of delivering 
about 4 request/sec of medium complexity page on dual PIII 833 
which seems way too low.

We did our tests to straight Zope 2.3.4 (no apache or squid in 
front of it). Even when told to use 10 thread only 4 were active
in top (others were there but were idle) and load average was 
never over 30%.

Where/what should I start investigating ?

Where do I find some docs on what makes zope extremely slow (I 
have found that <dtml-if xxx> where xxx is missing or overly 
complex authorization schemes can do it, but what else) ?

--------------
Hannu






--__--__--

Message: 6
From: Richard Jones <rjones@ekit-inc.com>
Organization: ekit.com Inc
To: Hannu Krosing <hannu@tm.ee>, zope@zope.org
Subject: Re: [Zope] Advice for performance checking/tuning
Date: Wed, 24 Apr 2002 16:52:29 +1000

On Wed, 24 Apr 2002 17:41, Hannu Krosing wrote:
> We are investigating use of Zope for a portal that will have
> about ~500.000 users.

How many concurrently?


> We did our tests to straight Zope 2.3.4 (no apache or squid in
> front of it). Even when told to use 10 thread only 4 were active
> in top (others were there but were idle) and load average was
> never over 30%.
>
> Where/what should I start investigating ?

Try using the CallProfiler product from zope.org to find out what your 
requests are doing - and where they're slow. Then optimise those sections of 
code. If you can, use caching to remove whole slabs of the call tree.


    Richard




--__--__--

Message: 7
From: "Jean Jordaan" <jean@upfrontsystems.co.za>
To: "Dieter Maurer" <dieter@handshake.de>
Cc: <zope@zope.org>
Subject: RE: [Zope] zope equivalent for 'du'?
Date: Wed, 24 Apr 2002 09:10:29 +0200

Hi Dieter

> Me, too, I hit this problem today. It appears "tranalyser" cannot
> handle versions.

Ah, is this the problem! 

> I used "lib/python/ZODB/fsrecover.py -v2" instead.

Hmm, this is a newer version of the script (takes options [1]) than the
one that came with 2.4.3 .. I'll upgrade it, thanks!

-- 
Jean Jordaan
Upfront Systems                         http://www.upfrontsystems.co.za

[1] looks like this was the change:
http://mail.python.org/pipermail/zodb-checkins/2001-November/000786.html



--__--__--

Message: 8
Date: Wed, 24 Apr 2002 11:50:35 +0200
From: Jan Idzikowski <idzikowski@atsolute.com>
To: zope@zope.org
Organization: knowledge tools gmbh
Subject: [Zope] Problems with AIX4

Problems with Zope on AIX:

Zope-2.5.1b2
Python 2.1.3 on AIX4

i install python and zope without any error.
the start of zope also works fine, and i can connect to the startpage of zope, but when i try the /Examples or the /manage i get the message "the when i start zope with option -r i get a "Segmentation fault (core dumped)" and zope chrashed.
i have also try it with Zope-2.5.0 and i get the same error. but zope-2.3 works without any problems on our AIX.





--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



End of Zope Digest

--Part_Boundary-713D19--