[Zope] FYI: MyDoom Attachment

Sean Duffy swduffy at unmc.edu
Fri Jan 30 11:06:20 EST 2004


Hi,

I have an e-mail as follows:
____________________________

Received: from localhost.localdomain ([192.198.54.19])
          by UNMCNOTES02.UNMC.EDU (Lotus Domino Release 6.0.2CF1)
          with ESMTP id 2004012911071208-78831 ;
          Thu, 29 Jan 2004 11:07:12 -0600 
Received: from mail.python.org (mail.python.org [12.155.117.29])
	by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i0TGt1bj008745
	for <swduffy at unmc.edu>; Thu, 29 Jan 2004 10:55:01 -0600
Received: from localhost.localdomain ([127.0.0.1] helo=mail.python.org)
	by mail.python.org with esmtp (Exim 4.22)
	id 1AmFdH-00008A-1O
	for swduffy at unmc.edu; Thu, 29 Jan 2004 12:07:11 -0500
From: zope-request at zope.org
Subject: Zope Digest, Vol 6, Issue 49
To: zope at zope.org
Reply-To: zope at zope.org
____________________________

Send Zope mailing list submissions to
	zope at zope.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request at zope.org

You can reach the person managing the list at
	zope-owner at zope.org

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


Today's Topics:

   1. RE: importing an existing python module into Zope python (Sean)
   2. Re: Help, locked myself out with exUserFolder (axel kittenberger)
   3. Re: Help, locked myself out with exUserFolder (Marcos Iuato)
   4. Re: ImportError: No module named cPersistence (Tino Wildenhain)
   5. ALERT - GroupShield ticket number
      OA544_1075388596_PC199EXCHANGE _1 was generated
      (GroupShield for Exchange (PC199EXCHANGE))
   6. Re: Re: Help, locked myself out with exUserFolder (Paul Winkler)
   7. In Ihrer Nachricht wurde ein Virus gefunden - Virus found in
      a message you sent (virenschutz at bayern.de)
   8. Re: Beginners questions (Tino Wildenhain)
   9. Re: ImportError: No module named cPersistence (Michael Long)
  10. Re: Beginners questions (Jim Penny)


----------------------------------------------------------------------

Message: 1
Date: Thu, 29 Jan 2004 09:42:31 -0500
From: "Sean" <whysean at softhome.net>
Subject: RE: [Zope] importing an existing python module into Zope
	python
To: zope at zope.org
Message-ID: <LOBBJCJJJBIOBEAFOIDCOENFDKAA.whysean at softhome.net>
Content-Type: text/plain;	charset="us-ascii"

Rachel,

Are you a cypherpunk type? Your name sounds familiar.

To answer your question:

option iii.) is not such a big deal as to earn the term "rewrite"

A "Zope Product" is just a python module in the Zope Products directory with
some code in its "__init__.py" file that tells Zope how to add your objects
from the management interface. You can define a single new Zope object that
imports your existing code (as long as it is in your python path) and
inherits from your existing class(es), or calls your existing functions.
This wrapper class shouldn't require much code at all.

Additionally, when you run zope in Development mode ("-D" from the command
line), and I believe that ./start does this by default, you can set any
product to auto-refresh in the management interface: Control Panel ->
Products -> YourProduct -> <Refresh Tab> Click auto refresh and Update.

Also the product directory may need an empty (size=0) file called
"refresh.txt" for this to work. At least is does in the old version of Zope
I am running.

Be well.

--Sean Hastings


>
> Message: 21
> Date: Wed, 28 Jan 2004 16:38:56 +0000
> From: Rachel Willmer <rachel_lists at willmer.org>
> Subject: [Zope] importing an existing python module into Zope python
> 	script?
> To: zope at zope.org
> Message-ID: <4017E5A0.9020603 at willmer.org>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> This *must* be a FAQ, but I haven't found the answer anywhere despite
> all day looking...
>
> I've got an existing python module with a large amount of code in it
> which I want to use both inside Zope and outside in existing python
> programs. The module is still under development so will change frequently.
>
> Two burning questions:
>
> a) How do I get access to the module within Zope ?
>
> b) What do I then need to do to keep the versions in sync?
>
> As far as I can see, I have at least 3 alternatives to question (a).
>
> i) Copy it all into Zope, each function as a separate Zope python script
> (Ugh! and this then makes keeping it in sync outside Zope pretty darned
> difficult...)
>
> ii) Keep the module as-is and add an External Method in Zope for each
> function that will be called from a Zope script. Pretty awful but
> do-able. But then I think I need to do something else in the Zope
> Management Interface each time I change the module? Is that right?
>
> iii) Rewrite it all as a Zope Product?
>
> There must be an easier answer that has eluded me to date....
>
> Any answers appreciated...
>
> Rachel




------------------------------

Message: 2
Date: Thu, 29 Jan 2004 15:47:16 +0100
From: axel kittenberger <axel.kittenberger at univie.ac.at>
Subject: [Zope] Re: Help, locked myself out with exUserFolder
To: "Marcos Iuato" <marcos at hiper.com.br>
Cc: zope at zope.org
Message-ID: <200401291547.16351.axel.kittenberger at univie.ac.at>
Content-Type: text/plain;  charset="iso-8859-1"

On Thursday 29 January 2004 16:29, Marcos Iuato wrote:
> Hi,
> You can create a script python at root folder to delete de instance of
> exUserFolder.
>
> Something like:
>
> context.PloneSiteId.manage_delObjects(['acl_users'])

Hmm okay, where do I get the object "context" from?




------------------------------

Message: 3
Date: Thu, 29 Jan 2004 13:49:03 -0200
From: "Marcos Iuato" <marcos at hiper.com.br>
Subject: [Zope] Re: Help, locked myself out with exUserFolder
To: axel kittenberger <axel.kittenberger at univie.ac.at>
Cc: zope at zope.org
Message-ID: <courier.40192B6F.000002D4 at primus.hiper.com.br>
Content-Type: text/plain; format=flowed; charset="iso-8859-1"

context is a binding of script python that is the object on which the script 
is being called. 

regards 

axel kittenberger writes: 

> On Thursday 29 January 2004 16:29, Marcos Iuato wrote:
>> Hi,
>> You can create a script python at root folder to delete de instance of
>> exUserFolder. 
>>
>> Something like: 
>>
>> context.PloneSiteId.manage_delObjects(['acl_users'])
> 
> Hmm okay, where do I get the object "context" from? 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
 




------------------------------

Message: 4
Date: Thu, 29 Jan 2004 15:56:16 +0100
From: Tino Wildenhain <tino at wildenhain.de>
Subject: Re: [Zope] ImportError: No module named cPersistence
To: mlong at datalong.com
Cc: zope at zope.org
Message-ID: <40191F10.2070405 at wildenhain.de>
Content-Type: text/plain; charset=us-ascii; format=flowed

Hi Michael,

Michael Long schrieb:
>>Hi Michael,
>>
>>Michael Long schrieb:
>>
>>>Hi,
>>>
>>>In the following environment I get this traceback. What does anyone have any
>>>suggestions on what is wrong.
>>>
>>>zope 2.7.0-rc1
>>>MySQL-python-0.9.3b1
>>>ZMySQLDA-2.0.8
>>>MySQL-Max-5.0.0-0
>>>
>>>
>>>edev:/opt/zopeInstance/bin # ./runzope
>>>Traceback (most recent call last):
>>
>>[...]
>>
>>>ImportError: No module named cPersistence
>>
>>
>>You need to read the README and at least a little
>>of the docs. Apparently you just unpacked the
>>source code and tried to start it right away.
> 
> 
> Tino,
> 
> I had this instance of zope 2.7 running. I then shut it down and installed
> MySQL-python-0.9.3b1 and ZMySQLDA-2.0.8. It was at this point that I get the error.
> The reason I used runzope instead of zopectl was to have the traceback dumped to
> the console. I do not understand the use of zopectl enough yet to debug with it :(
> The bottom line is that I want to connect to MySQL 5.0 and the only option I have
> found so far is ZMySQLDA.
> 
> Thanks for the help,
> Mike

Ah. uhm.. sorry. This traceback can only occur when cPersistence.so
wasnt compiled yet, has been deleted, is for the wrong python version
or is otherwise unavailable.
It is usually generated thru installation/compilation.

I'd check paths for INSTANCE_HOME, SOFTWARE_HOME etc;
which python version is used (and if its different to
the version you installed with)

Regards
Tino Wildenhain




------------------------------

Message: 5
Date: Thu, 29 Jan 2004 15:03:18 -0000
From: "GroupShield for Exchange (PC199EXCHANGE)"
	<NAIREGENTSWHARFPC199EXCHANGE at ncvo-vol.org.uk>
Subject: [Zope] ALERT - GroupShield ticket number
	OA544_1075388596_PC199EXCHANGE _1 was generated
To: "'zope at zope.org'" <zope at zope.org>, Research Team External email
	<research at ncvo-vol.org.uk>
Message-ID: <7EA3B57281D6D411BA8D009027D090C302DA4179 at PC199EXCHANGE>

Action Taken:
The attachment was quarantined from the message and replaced with a text
file informing the recipient of the action taken.

To:
research at ncvo-vol.org.uk <research at ncvo-vol.org.uk>

From:
zope at zope.org <zope at zope.org>

Sent:
1085777280,29615820

Subject:
Hi

Attachment Details:-

Attachment Name: doc.zip
File: doc.zip
Infected? Yes
Repaired? No
Blocked? No
Deleted? No
Virus Name: W32/Mydoom.a at MM





More information about the Zope mailing list