Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Configure Squishdot for work with Multiple Attachments.
How-To Posted by on Tuesday April 22, 11:03AM, 2003
from the dept.
I'm working for customize my Squishdot for allow multiple files in attachments.

The trouble is that i can't find the file attribute definition in class Posting, for convert it from Squishfile to SquishFile array.

Well. I need help with this, because I relative new in Python. Maybe is easyest to change Squisfile class and convert this in a list of files. Any sugestion??

<  |  >

 

Related Links

The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Re: Configure Squishdot for work with Multiple Att
by on Tuesday April 22, 03:29PM, 2003
It's tricky. The attachment is stored in YourPosting.file, but it's also stored in YourPosting.yourfile_name so that you can download in using the same name as when it was uploaded.

Look at the addPosting method and see how it stores a single file attachment.

Why do you need multiple file attachments?
[ Reply to this ]
  • Re: Configure Squishdot for work with Multiple Att
    by on Tuesday April 22, 03:51PM, 2003
    > Why do you need multiple file attachments?

    Because our user's are non technical, and maybe with one comment, they want to add more than one file.

    By now, they must make a ZIP file and upload it, but we want that in the future we could upload some files.

    I think that it isn't so dificult... :o)
    [ Reply to this ]
    • Re: Configure Squishdot for work with Multiple Att
      by on Tuesday April 22, 09:18PM, 2003
      Why not just add one file per comment, with each comment explaining exactly what the attached file is?

      I wish you good luck, if you find it isn't difficult, perhaps you could post a how-to or a patch to the Squishdot project on SourceForge...
      [ Reply to this ]
Re: Configure Squishdot for work with Multiple Attachments.
by on Tuesday April 22, 03:51PM, 2003
Is this for a public site or intranet?

If an intranet (trusted environment),an option is to use add "add a file" through Zope's manage_addProduct/OFSP/fileAdd method, then reference those files in your post throughHTML or StructuredText links.
[ Reply to this ]
  • Re: Configure Squishdot for work with Multiple Att
    by on Tuesday April 22, 04:05PM, 2003
    Ummm. It's a great Idea...

    The site is public site, but all people must be logged for use it.

    I'll Try it.
    [ Reply to this ]

 
The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Powered by Zope  Squishdot Powered
  "Any system that depends on reliability is unreliable." -- Nogg's Postulate
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 , ©2000-2002 .