rehacktored out of IndigoPerlCookbook
By the way, I chatted with Indy Singh (owner of IndigoStar the makers of
IndigoPerl). He confirmed that there are no known reasons why
IndigoPerl would not work installed into c:\Program Files\IndigoStar\IndigoPerl and that it would quite likely default to there in a future release. (He's waiting for a code contribution)
That made me think: for Edinburgh, etc, TWiki could install to c:\program files\, with data/pub aliasing to My Documents.
My primary motivation for writing
AutomaticAttachments was to be able to have TWiki work with my My Documents folder...
--
MartinCleaver - 11 Oct 2005
Using
My Documents\TWiki makes sense if you want people to easily edit TWiki .txt files on a personal TWiki. However, it doesn't make a lot of sense generally, since TWiki provides a reasonably friendly user interface for editing, as you would expect. It's better if this data goes into something like
C:\Documents and Settings\FredSmith\Application Data\TWiki, alongside things like
FirefoxBrowser profiles and other data that is not directly editable by users. Should use the
SYSTEMDRIVE environment variable instead of C:, I think.
If you want to get
AutomaticAttachments working, why not just put the pub directory under My Documents? Or better still, have a way of detecting the change in the auto attachments folder and then doing an attachment operation on a suitable topic.
I never use these Windows-specific paths as they are too long and break some applications, but that's just me
--
RichardDonkin - 13 Oct 2005
The reason why I want to have the data directory (
MoveAttachmentsOutOfPub) have this in My Documents is because I want to be able to dump stuff directly into topics using the filesystem.
For example, I use the
ScrapbookFireFoxExtension which saves a copy of specific pages I want onto disk, together with a record of when I took them. By telling
ScrapBook to save its files into a pub/web/topic directory I can view them from TWiki on my laptop.
>
better still, have a way of detecting the change in the auto attachments folder and then doing an attachment operation on a suitable topic.
Whenever you put something into the pub folder it is automatically attached, the operation happens temporarily and during view, so there is no 'detection of change' in the 'auto attachments folder', as files go in pub/web/topic/
While I am hesitant to use filenames with spaces they are a reality and I venture we must get twiki to work with them.
--
MartinCleaver - 13 Oct 2005
It's worth distinguishing personal TWiki installs (which seems to be your application, i.e. on a desktop/laptop PC), from server TWiki installs. TWiki users on Windows seem to need both, and the latter would be best served by the option of a more traditional directory structure that doesn't use My Documents etc.
--
RichardDonkin - 31 Jan 2006