#foswiki 2016-12-13,Tue

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
GithubBot[distro] gac410 pushed 1 new commit to Release02x01: https://git.io/v1ihn
distro/Release02x01 ec153a8 George Clark: Item13884: xgettext run
[01:31]
***GithubBot has left [01:31]
FoswikiBothttps://foswiki.org/Tasks/Item13884 [ Item13884: Translation changes for master and Foswiki 2.1 ] [01:31]
GithubBot[distro] gac410 pushed 2 new commits to master: https://git.io/v1ij6
distro/master f2e0d57 George Clark: Merge branch 'Release02x01'
distro/master 04efc0b George Clark: Item13884: xgettext run
[01:32]
***GithubBot has left [01:32]
............................. (idle for 2h20mn)
GithubBot[distro] gac410 pushed 1 new commit to Release02x01: https://git.io/v1PIx
distro/Release02x01 98cffdb George Clark: Item13883: Preparing docs for release.
[03:52]
***GithubBot has left [03:52]
FoswikiBothttps://foswiki.org/Tasks/Item13883 [ Item13883: Documentation changes for master and 2.1 ] [03:52]
GithubBot[distro] gac410 pushed 1 new commit to master: https://git.io/v1PIp
distro/master 15488d9 George Clark: Merge branch 'Release02x01'
[03:52]
***GithubBot has left [03:52]
...... (idle for 28mn)
ChanServ sets mode: +o SvenDowideit_ [04:20]
................................................................ (idle for 5h15mn)
ChanServ sets mode: +o MichaelDaum [09:35]
...................................................... (idle for 4h28mn)
ChanServ sets mode: +o Lynnwood [14:03]
ChanServ sets mode: +o gac410 [14:08]
ChanServ sets mode: +o Lynnwood__ [14:13]
.... (idle for 17mn)
zak256Hi. We want to use the results of a %SEARCH{}% and process them further outside the wiki with a perl script. What would be the most clean/convenient way to do this?
My first thought is creating a public page, and then parse this in the file system. But I guess this could be accomplished better?
[14:30]
gac410We do this sort of thing in the Foswiki extensions installer. It retrieves the list of extensions from the Extensions web using a search topic.
Actually a couple of variations. Older version returns a formatted list. Newer version returns JSON for easier processing
You can fetch it using whatever tool your platform supports. wget / curl for example. or LWP for native perl access.
[14:33]
zak256Ok, the extensions installer does the same thing? wget-ing the page and parsing it?
(or similar)
[14:36]
gac410Ex: https://foswiki.org/Extensions/JsonReport?raw=on to see the source of the page.
Yes. Here is an operational JSON example
https://foswiki.org/Extensions/JsonReport?contenttype=application/json;skin=text;name=^Pattern\$"
whoops - didn't work .. hang on.
https://foswiki.org/Extensions/JsonReport?contenttype=application/json;skin=text;name=^TablePlugin$
And code that processes the returned JSON: https://github.com/foswiki/distro/blob/master/core/tools/check_extensions.pl#L284
[14:36]
zak256That sounds cool.
I will try that.
[14:40]
gac410Extensions/FastReport does the same thing, but pulls the entire list of extensions rather than a search
And doesn't use JSON so you have to parse it yourself.
[14:41]
zak256Great. Thanks again for the hints. [14:43]
Well... one factor is authentication, I am just realizing... it has to be given to the wget (or similar) call. [14:49]
gac410There are a few ways to handle that. Really depends on the type of auth. Do you use Template login, or Apache login, or some other auth? [14:51]
zak256Apache Login [14:52]
gac410okay. in that case either curl or wget can pass in the credentials. Template gets a bit more complex. [14:53]
zak256Yes, I suppose... [14:54]
gac410If you can run directly on the web server, you could also sudo as your web server user, and run the view script directly. Be sure to use the correct server user or you will change ownership of the logs, and that's not good ;) [14:55]
zak256ah... yes, we do have access to the server of course :) [14:58]
gac410when run from CLI, it should automatically run as admin.
See Foswiki:System.CommandAndCGIScripts
[14:59]
FoswikiBothttps://foswiki.org/System.CommandAndCGIScripts [ CommandAndCGIScripts ] [14:59]
zak256Ok, very good. I love it when a plan comes together ;) [15:02]
.......................... (idle for 2h6mn)
GithubBot[distro] FoswikiBot pushed 2 new commits to master: https://git.io/v1XEM
distro/master 2ba24e8 Raul F Rodriguez: Item13884: Translations updated using Weblate (French)...
distro/master 68add5c Raul F Rodriguez: Item13884: Translations updated using Weblate (Spanish)...
[17:08]
***GithubBot has left [17:08]
FoswikiBothttps://foswiki.org/Tasks/Item13884 [ Item13884: Translation changes for master and Foswiki 2.1 ] [17:08]
GithubBot[distro] FoswikiBot pushed 1 new commit to Release02x00: https://git.io/v1XEy
distro/Release02x00 c59978e Raul F Rodriguez: Item13505: Translated using Weblate (Spanish)...
[17:09]
***GithubBot has left [17:09]
FoswikiBothttps://foswiki.org/Tasks/Item13505 [ Item13505: Translations for Foswiki 2.0.x ] [17:09]
GithubBot[ListyPlugin] FoswikiBot pushed 1 new commit to master: https://git.io/v1XEQ
ListyPlugin/master 3c7e687 Raul F Rodriguez: Item13990: Translated using Weblate (Spanish)...
[17:09]
***GithubBot has left [17:09]
FoswikiBothttps://foswiki.org/Tasks/Item13990 [ Item13990: translations for ListyPlugin ] [17:09]
......................................................... (idle for 4h42mn)
***ChanServ sets mode: +o Lynnwood [21:51]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)