changeset 1603:5a2a89a2f4aa maint-0.5

email file attachments added to issue files list [SF#711501]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 23 Apr 2003 12:10:51 +0000
parents df49c7d31073
children de4fa8bed9d3
files BUILD.txt CHANGES.txt COPYING.txt roundup/mailgw.py
diffstat 4 files changed, 80 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/BUILD.txt	Wed Apr 23 11:48:51 2003 +0000
+++ b/BUILD.txt	Wed Apr 23 12:10:51 2003 +0000
@@ -25,12 +25,14 @@
  python setup.py clean --all
  python setup.py sdist --manifest-only
  python setup.py sdist --quiet
+ python2.3 setup.py register
 
 or, for the sad RedHat users::
 
  python2 setup.py clean --all
  python2 setup.py sdist --manifest-only
  python2 setup.py sdist --quiet
+ python2.3 setup.py register
 
 
 Distributing Releases
--- a/CHANGES.txt	Wed Apr 23 11:48:51 2003 +0000
+++ b/CHANGES.txt	Wed Apr 23 12:10:51 2003 +0000
@@ -9,6 +9,7 @@
 - only look for CSV files when importing (thanks Dan Grassi)
 - can now unset values in CSV editing (sf bug 704788)
 - fixed rdbms email address lookup (case insensitivity)
+- email file attachments added to issue files list (sf bug 711501)
 
 
 2003-02-27 0.5.6
--- a/COPYING.txt	Wed Apr 23 11:48:51 2003 +0000
+++ b/COPYING.txt	Wed Apr 23 12:10:51 2003 +0000
@@ -1,7 +1,9 @@
 Roundup Licensing
 -----------------
 
+Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net)
 Copyright (c) 2002 eKit.com Inc (http://www.ekit.com/)
+Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -22,24 +24,6 @@
 SOFTWARE.
 
 
-Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
-
-This module is free software, and you may redistribute it and/or modify
-under the same terms as Python 2.1 (the PSF LICENSE AGREEMENT), so long
-as this copyright message and disclaimer are retained in their original form.
-
-IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
-DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OF THIS CODE, EVEN IF BIZAR SOFTWARE PTY LTD HAS BEEN
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
-BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
-BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-
 PageTemplates Licensing
 -----------------------
 
@@ -56,5 +40,67 @@
   HISTORY.txt.
 - editing to remove dependencies on Zope modules (see files for change notes)
 
-The license for this code is in doc/ZPL.txt.
+The license for this code is the `Zope Public License (ZPL) Version 2.0`_,
+included below.
+
+
+Zope Public License (ZPL) Version 2.0
+-------------------------------------
+
+This software is Copyright (c) Zope Corporation (tm) and
+Contributors. All rights reserved.
+
+This license has been certified as open source. It has also
+been designated as GPL compatible by the Free Software
+Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the
+following conditions are met:
+
+1. Redistributions in source code must retain the above
+   copyright notice, this list of conditions, and the following
+   disclaimer.
+
+2. Redistributions in binary form must reproduce the above
+   copyright notice, this list of conditions, and the following
+   disclaimer in the documentation and/or other materials
+   provided with the distribution.
+
+3. The name Zope Corporation (tm) must not be used to
+   endorse or promote products derived from this software
+   without prior written permission from Zope Corporation.
 
+4. The right to distribute this software or to use it for
+   any purpose does not give you the right to use Servicemarks
+   (sm) or Trademarks (tm) of Zope Corporation. Use of them is
+   covered in a separate agreement (see
+   http://www.zope.com/Marks).
+
+5. If any files are modified, you must cause the modified
+   files to carry prominent notices stating that you changed
+   the files and the date of any change.
+
+Disclaimer
+
+  THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS''
+  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
+  NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+  DAMAGE.
+
+
+This software consists of contributions made by Zope
+Corporation and many individuals on behalf of Zope
+Corporation.  Specific attributions are listed in the
+accompanying credits file.
+
--- a/roundup/mailgw.py	Wed Apr 23 11:48:51 2003 +0000
+++ b/roundup/mailgw.py	Wed Apr 23 12:10:51 2003 +0000
@@ -73,7 +73,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.104.2.1 2003-02-06 05:44:49 richard Exp $
+$Id: mailgw.py,v 1.104.2.2 2003-04-23 12:10:51 richard Exp $
 '''
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -836,6 +836,17 @@
             files.append(self.db.file.create(type=mime_type, name=name,
                 content=data))
 
+        # attach the files to the issue
+        if nodeid:
+            # extend the existing files list
+            fileprop = cl.get(nodeid, 'file')
+            fileprop.extend(files)
+            props['files'] = fileprop
+        else:
+            # pre-load the files list
+            props['files'] = fileprop
+
+
         # 
         # create the message if there's a message body (content)
         #

Roundup Issue Tracker: http://roundup-tracker.org/