To do list
BUGS:
- fix userstat.xml bug where white space is being inserted for no good reason.
FEATURES
- Imaging:
- when users upload pics of any size, have PIL automatically resize and save the 'original' image as a 1K horizontal image (keeping the x by y ratio of course), so that when the user points to it from a Thumbnail, the pic doesn't open to the original hi res, which could be far larger than the display size. At 1000 pixels across, that should open up nicely in most any vintage PC or laptop. Actually here, if you can insert a #def for the resized resolution in the localwikiconfig.py that would be nice, so I can change it as I need.
- Image uploader (the pop up you get when you click on Edit -> Images
- page title should add the name of the page of that we're editing
- change layout of image library (see Vistas page for best example) to a matrix of thumbnail, and underneath each thumbnail (150 pel across, initially, and configurable via localwikiconfig.py) we could have the Delete | Get | View actions.
- add the capability to upload multiple photo's. move the 'Save as' field to the right of the 'File to upload' field. Then have a button for 'Add another file', in which case the 'Upload' and 'Close and Preview' buttons move down and another new blank 'File to upload' and 'Save as' field show up underneath the first pair. The 'Add another file' then moves to join the new second pair. Hope that's clear... if not I can make a screen shot example.
Other stuff to work on next:
Add better WYSIWYG controls up above. We badly need basic font control... color, size, basic typefaces.
Changelog:
1. 08-11-2005: remove all the whitespace (due to 'prettyprint' bug according to MikeIvanov) in userstats.xml:
-
• in file util apps/add to userstats:
- added function removeWhiteSpaceAndRename which takes the following arguments:
- fro: temporary filename of the new file, created by the wiki
- to: file to be written to, this should be userstats.xml (+ path)
-
• in file installhtml/dwiki/localwiki config.py:
- added variable maxWidth which denotes the maximum with of uploaded images. Bigger images are resized, smaller images are left alone
- MaxWidth now set to 1024 pixels... aspect ratio is kept, but all uploaded images are resized so that width is 1024, if they were bigger than 1024 pixels wide to begin with
- added function resizeImage, which gets the uploaded image as string and returns the resized image as string
3. 12-11-2005: in "Edit -> Images" popup the page title is now visible in the window title:
- added in file LocalWiki/action/AttachFile.py, function send_title
4. 14-11-2005: show preview of attached images in "Edit -> Images" popup:
- 3 variables added in localwiki_config.py:
- previewImages: toggle preview and standard view
- previewSize: width of preview images
- previewPerRow: how many images in a row when doing preview
- see code additions in function _get_filelist in file LocalWiki/action/AttachFile.py
5. 14-11-2005: adding multiple images at once is supported. I hope I have tested this enough:
- changed function do_upload in LocalWiki/action/AttachFile.py to support multiple pairs of "file location"<->"file name"
- changed function send_uploadfrom in LocalWiki/action/AttachFile.py: added button that adds another input line
6. 14-11-2005: revised the preview of the attached images. Now thumbnails are generated in directoy .../attachments/tiny. This dir does not show in the list of attachments. This dir should be emptied from time to time to remove outdated thumbnails.
7. 16-11-2005: When clicking on "Add another file" you are now returning to the upload fields, when the popup reloads. I also resized the attachment popup.
Phase 2:
1. 2005-12-09: Uploading of arbitrary file types is now supported. All image types are resized to width of 1k, if bigger. Any other attachments are simply saved.
- ** Can you, also for this Phase, address item 7 below, there is a slight bug in the Upload another attachment code. -TonyZuccarino
2. 2005-12-12: The Thumbnail macro now checks, if the underlying image is newer than the respective image. If so, the thumbnail is recreated. Please note, that you might have to clear the browser cache, or hold shift, while clicking the reload button.
- ** I notice that the satellite thumbnails are being recreated and OK. The radar Thumbnails though look like old images, even if I hit reload. Can you check this? TonyZuccarino
3. 2005-12-12: Location and whitespace bugs on the events board are now fixed. Editing of events remains.
Phase 2 ToDo:
next phase of dwiki improvements:
1) add edit to Events Board - DONE
2) change Thumbnail to check mod date of baseline image... remake Thumbnail if the file has changed. - DONE
3) add NOAA advisory to weather and front page... or in blue part of every page?
4) post files to pages.... make change to Upload function, not just Images, but Attachments? - DONE
5) how about a News ticker or section for Front Page?
-
5.1) we need a News page, that one can simply add comments to, but the entry field should be called News, not comments. The page could be editable.
6) font color?
7) bug in Upload another attachment... if you click on Another Attachment after entering the file info for a first upload, then the 2nd upload field is added, but the first field's entry goes away. - NA -
Comments:
Note: You must be logged in to add comments2005-11-15 15:35:13 Matthias, I think we're pretty much done with this phase. If you can figure out the anchor issue so as to return the Image popup to where it was after "add another file" in the Upload section... then that would complete this phase. —TonyZuccarino


