You are here: Foswiki>Tasks Web>Item12126 (08 Oct 2012, TimotheLitt)Edit Attach

Item12126: IpPlugin port

pencil
Priority: Normal
Current State: Being Worked On
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: IpPlugin
Branches: trunk
Reported By: TimotheLitt
Waiting For:
Last Change By: TimotheLitt
I released IpPlugin on the other wiki recently. Probably a good thing to have here.

I did a quick port and verified it on trunk. This item is so I can check it into svn.

I will leave it to others to decide on packaging, but I'll see if it will upload to Extensions... If so, the IpPlugin topic explains all the bells and whistles.

Enjoy.

-- TimotheLitt - 08 Oct 2012

Well, someone will have to explain to me how to get automated upload to work. I uploaded to Extensions by hand. But I don't care to do that again - too many files to load one at a time. (I suppose I should update drag and drop attachments, if I can figure out HTML5.)

I also noticed that the conditional that decides whether the plugin is present, which works on the other wiki, gives a false positive here.

Perhaps someone can help out by looking into that.

I'll leave this item open for fixes, but functionally everything should work.

-- TimotheLitt - 08 Oct 2012

I put the %IF compatiblity issue into Support.Question1177 with the relevant lines of the topic extracted as a simple test case.

-- TimotheLitt - 08 Oct 2012

If you have BuildContrib working, upload is just another build target.
  • change to the IpPlugin/lib/Foswiki/Plugins/IpPlugin/ directory
  • perl build.pl upload
That should prompt you for the destination url's and locations. Note that it can be more reliable to upload to the trunk.foswiki.org site. It uses RcsWrap which handles big attachments better than RcsLite.

-- GeorgeClark - 08 Oct 2012

Thanks George,

I thought I had BuildContrib working, but found I had no clue how to answer the questions. Recover package form? Alternate name? I started guessing url paths, but the questions kept coming and I gave up rather than use automation I don't understand. smile

It also seemed confused since I have both TWiki and Foswiki svn trees; I suspect it was using ~/.BuildContrib for defaults, which had previously been used for uploading to TWiki. Anyhow, there were definite twikisms in its prompts.

On my end, foswiki is on server.net/wiki/*; the other is on server.net/twiki/*. On disk, it's www/servers/{fos,t}wiki/trunk/core

Here's the session transcript:
# FOSWIKI_LIBS=../../../../../core/lib perl build.pl upload
WARNING: Foswiki lib path ../../../../../core/lib/Foswiki.pm is relative; you should make it absolute, otherwise some scripts may not run from the command line.Building with BuildContrib $Rev: 1340 $ - 1.7.0
Using Foswiki libraries found on relative paths
Build libraries: /var/www/servers/foswiki/lib ../../../../../core/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /var/www/servers/foswiki/lib/CPAN/lib/arch /var/www/servers/foswiki/lib/CPAN/lib/5.14.2/x86_64-linux-thread-multi /var/www/servers/foswiki/lib/CPAN/lib/5.14.2 /var/www/servers/foswiki/lib/CPAN/lib
Loaded config from /root/.buildcontrib
Preparing to upload to:
Web:     Plugins
PubDir:  http://foswiki.org/p/pub
Scripts: http://foswiki.org/cgi-bin
Suffix:

If upload target does not exist, recover package form from:
Web:     Sandbox
Scripts: http://myserver.net/twiki/bin
Suffix:
Is that correct? Answer 'n' to change? [y/n] n
Enter the name of the web that contains the target repository
Web (Plugins): Extensions
Enter the full URL path to the pub directory
PubDir (http://foswiki.org/p/pub): http://foswiki.org/pub
Enter the full URL path to the bin directory
Scripts (http://foswiki.org/cgi-bin):
Enter the file suffix used on scripts in the bin directory (enter 'none' for none)
Suffix ():
Suffix (): none

Enter the alternate name of the web that contains the package form
Web (Sandbox): Extensions
Enter the full URL path to the alternate bin directory
Scripts (http://myserver.net/twiki/bin): ^C
#

I'm obviously missing something - probably something obvious.

How exactly should I answer the prompts?

A BIG BY-THE-WAY: Editing this page, I did preview, then "back". No edits. Forward recovered. IE9. I'll create a Bugs Item for that!

-- TimotheLitt - 08 Oct 2012

 
Topic revision: r5 - 08 Oct 2012, TimotheLitt
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy