Re: [Zope] confera, zope 2.2, and attachments

2000-05-31 Thread Vitaly Osipov

I guess you are using ZDconfera, not original Confera - I had the same
problems until I looked into the code. Seems like it was partly taken from
Confera, but Confera uses FileObject.py to handle attachments -  this module
is not present in ZDconfera, which instead tries to use ImageFile, but not
very successfully You could copy that fileobject from Confera distribution,
add a line like

from FileObject import *

at the beginning of ZDConfera.py,
change

try:file=ImageFile(file)
except: file=''

to
try:file=FileObject(file)
except: file=''

inside addMessage in ZDConfera.py
and maybe also change line

icon='misc_/Confera/attachment.gif'

to

icon='misc_/ZDConfera/attachment.gif'

at FileObject.py
And this problem does not raise any errors because adding file is inside
try/except clause in ZDConfera.py.

regards,
Vitaly.

- Original Message -
From: "Cary O'Brien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 30, 2000 4:30 PM
Subject: [Zope] confera, zope 2.2, and attachments


>
> With a confera discussion, I can't seem to add attachments.
> I can enter a file name into the file upload box, and there
> are no errors, but when I view the message there is no
> attachment.
>
> Am I doing something wrong?
>
> -- cary
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] confera, zope 2.2, and attachments

2000-05-31 Thread Cary O'Brien



(Vitaly ([EMAIL PROTECTED]) helped me with this.  The problems was
that it wasn't possible to add an attachment to a ZDConfera message)

Note this is with Zope 2.1.6. 

Thanks for the information on fixing attachments in ZDConfera.  Note that
the latest version of ZDiscussios (0.2.0) does use FileObject() in
ZDConfera.py, but it doesn't import FileObject, and the icon is wrong.
The error is masked by the try block.

So the fix I used was...

0) Get ZDiscussions
1) Get Confera
2) Cope FileObject.py to lib/python/Products/ZDConfera
3) Edit ZDConfera.py
1. at the beginning add "from FileObject import FileObject"
2. change "icon='misc_/Confera/attachment.gif' to 
  "icon='misc_/ZDConfera/attachment.gif'
4) Restart

Thanks again,

-- cary



___
Zope maillist  -  [EMAIL PROTECTED]
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] confera, zope 2.2, and attachments

2000-05-30 Thread Cary O'Brien


With a confera discussion, I can't seem to add attachments.
I can enter a file name into the file upload box, and there
are no errors, but when I view the message there is no
attachment.

Am I doing something wrong?

-- cary

___
Zope maillist  -  [EMAIL PROTECTED]
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 )