Tags:
create new tag
view all tags

SID-01285: Upload pre-generated wiki page

Status: Answered Answered TWiki version: 4.2.0 Perl version:
Category: CategoryEditing Server OS: Window Server 2003 Last update: 14 years ago

I have a specific wiki page that is automatically generated from application source code when it is compiled. The generated page is in the TWiki "raw" format, and I currently upload it to the correct place in the directory hierarchy using SCP, however using SCP, in this case, requires root access.

I would like to allow my other developers, who do not have root access, to also upload updates to this wiki page when they compile the aforementioned source code. I cannot give SCP access to the developers, because the wiki also contains company information for other departments, to which the developers are not allowed access (read or write).

Is there some URL in the wiki to which the raw page could be POSTed or PUT, and have it replace the existing page?

We run TWiki-4.2.0, Tue, 22 Jan 2008, build 16278.

-- RalphKuntz - 2011-10-05

Discussion and Answer

TWiki has several Extensions:import options, such as UploadToTWikiAddOn. You could programmatically attach your generated file to a TWiki page, then INCLUDE that attachment in a TWiki page.

You could also simply use CurlTool, WwwMechanize or another http library to programmatically push content into a TWiki page by POSTing to the save script. Parameters are documented in TWikiScripts.

-- PeterThoeny - 2011-10-06

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2012-01-23

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Upload pre-generated wiki page
SupportCategory CategoryEditing
TWiki version 4.2.0
Server OS Window Server 2003
Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-01-23 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.