#foswiki 2015-12-29,Tue

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

WhoWhatWhen
GithubBot[distro] vrurg pushed 4 new commits to Item13897: http://git.io/vE9L9
distro/Item13897 36596d1 Vadim Belman: Merge remote-tracking branch 'origin/master' into Item13897
distro/Item13897 5f51907 Vadim Belman: Merge remote-tracking branch 'origin/master' into Item13897
distro/Item13897 d81582b Vadim Belman: Item13897: Merge remote-tracking branch 'origin/master' into Item13897
[01:41]
***GithubBot has left [01:41]
FoswikiBothttp://foswiki.org/Tasks/Item13897 [ Item13897: Implement ImproveOOModel proposal. ] [01:41]
................................................... (idle for 4h13mn)
***GuilainC_away is now known as GuilainC [05:54]
......................... (idle for 2h1mn)
GuilainC is now known as GuilainC_away [07:55]
......... (idle for 43mn)
wdenk has quit IRC (Ping timeout: 272 seconds) [08:38]
............................ (idle for 2h19mn)
ShawnBeasleyHello all.
I know this is the foswiki channel, but I was hoping to find help on Twiki. There is no one in the #twiki channel.
Would anyone be willing to help? I've broken my Create New Topic, and don't know how or why.
[10:57]
..................... (idle for 1h41mn)
Would anyone please attempt to field a TWiki question? [12:39]
.............................. (idle for 2h26mn)
***SvenDowideit_ has quit IRC (Ping timeout: 250 seconds)
ChanServ sets mode: +o SvenDowideit_
Guest61 has left
[15:05]
........ (idle for 37mn)
Pitz_Hi all, i have foswiki running and like to have a clean and simple template
i tried plain for a while
but now i try to add some custom css
i stuck with adding my own css-file
What is the best or easy way to add my own css to a existing template (in my case plain)?
[15:44]
......... (idle for 41mn)
***Pitz_ has left "Textual IRC Client: www.textualapp.com" [16:27]
............. (idle for 1h1mn)
ReneMHi all
is there any way to execute shell scripts from the webinterface of foswiki?
I cannot find any plugin who's able to do it
but found a plugin for twiki
is it possible to reuse this plugin as foswiki is a fork of twiki?
http://twiki.org/cgi-bin/view/Plugins/ExecutePlugin
or is there another way doing it?
[17:28]
................ (idle for 1h19mn)
***GuilainC_away is now known as GuilainC [18:52]
....... (idle for 32mn)
ReneMis there someone ? [19:24]
vrurgHi ReneM , you're definetely here. So, your question is a bit incorrect. ;)
Try looking at TWikiCompatibilityPlugin, may be it would help.
[19:32]
ReneMright :-)
wanted to avoid this plugin as it makes the impression to me that this cant be a plugin that I can use forever using sort of compatibility mode
may I'm wrong with this, I'm still just beginning even if foswiki seems more and more what I'm searched a long time for
[19:34]
vrurgI'm not sure if Execute is secure enough. Breif doc reading shows that it tries to take certain measures to secure it but still, for example, there is no way to limit user's access to it. It looks like a self-advertising but for the moment only DBIQueryPlugin has this kind of ACL granulation. Nevermind the name because it's the only plugin providing direct access to perl scripting within a topic.
I use it, for example, to generate a PDF from generated latex sources. Surely it involves running a shell script.
[19:41]
ReneMI'm just considering another method to get it working: the idea is to monitor file changes on file system level and use this for triggering script calls
that give at least the most secure solution as well as don't expecting foswiki for what it's not intended for
[19:43]
vrurgHow do you monitor the changes? And how Foswiki is involved into this? I have a feeling that you somewhat overcomplicate the task. [19:46]
ReneMwhat I want to achieve is that a user is hits a button in a form and a script will be called including params that are defined in select fields on this form
as long as this isn't possible I have to use tools like ie inotifywait
[19:48]
vrurgStill I don't see the whole picture. There is no place for monitoring in relation to what user does.
Perhaps it's better to generate some output from monitoring which then could be processed by wiki itself?
[19:51]
ReneMoh, excuse me, the file change monitoring is just looking at a specific text file that is generated by foswiki in ../data/web/topic.txt that is representing the topic. As soon as this file/topic is changing a script should be called, the script parses the content of the file and gets the params [19:56]
jastReneM: in our wikis we use inotify-based stuff for this, works pretty well. you can even use existing software, e.g. iwatch, to set it up.
we have a custom plugin for out-of-order execution, too, that you could use to roll your own secure solution, but it's fairly underdocumented right now
[19:56]
ReneMok, feels good that I'm not on the completely wrong path [19:58]
jastbasically it consists of a message queue daemon and workers [19:58]
ReneMI'm anyway interested in this plugin, would be very nice to test it [19:59]
jastwe use it for near-realtime fulltext indexing, mainly, but it's designed to allow any asynchronous processing
as I said, it's very sparsely documented, but feel free to have a look:
[19:59]
ReneMsounds like exactly what I'm searching for [19:59]
jasthttps://github.com/modell-aachen/TaskDaemonPlugin
what you'd do is write a small worker that integrates with this and accepts messages from a tiny plugin
[19:59]
ReneMwill have a look at it an evening this week, thanks a lot [20:01]
jastthere's a worker included that basically just calls a custom function in a Foswiki session context, a worker that doesn't need a foswiki session would be much simpler
if you decide to give it a try and need any help, let me know. I won't be online much until the 4th, though.
[20:01]
ReneMwill see how far I get with it and let you know
now just before finish this day a stupid last question: Can anybody give me a hint how to create read only fields when using flexformplugin?
[20:05]
jastwell, you can easily make your interface render some fields as non-input fields (e.g. plain text), so that people can't edit the field there
example macro parameter: Iamareadonlyfield_format="$value"
[20:08]
ReneMdon't yet have a clue how that is working [20:10]
jastokay, what have you got so far? [20:11]
ReneMplayed a bit with dataform and flexformplugin to render a form and save it using a button with cgi call save [20:11]
jastso you probably used the RENDERFOREDIT macro [20:12]
ReneMright [20:12]
jastare you using a single macro to render all the fields? [20:12]
ReneMyes [20:12]
jastokay. basically you can influence how the output looks for all fields at once, but there's also a way to override various things for individual fields [20:13]
ReneMand within the dataform definition I cannot find any attribute for "read only" [20:13]
jastthere are no strictly "read only" fields as far as foswiki is concerned
if someone has CHANGE rights for a topic they'll always be able to change a field's value, even if they have to bypass the normal user interface
for most purposes it's enough to just make it *look* as though the field can't be edited
(and prevent the user from entering anything for that field in the normal interface, of course)
[20:13]
ReneMyeah, this is what I try to go for [20:15]
jastfor the field types you'd normally use, e.g. text, select and so on, there is no built-in way in foswiki itself to do that
(without plugins, that is)
[20:15]
ReneMand I don't want to render it every time when adding or removing a field to the dataform [20:15]
jastthe only ways foswiki has for suppressing editing is using the 'H' (hidden) attribute, or using the field type 'label'
both are probably not ideal for your kind of situation... hidden fields aren't shown at all, and label fields aren't technically meant to actually store anything, they're just for adding extra explanatory text to the normal form interface
with FlexFormPlugin and particularly RENDERFOREDIT, however, you can directly override what the output for each field should look like
so for that you wouldn't change the data form, but the RENDERFOREDIT macro
[20:15]
ReneMfield type label is a good workarround so far, but it's bad formatted as the description is below the label and not beside it as a usual text field
ok, got it, I try to get an idea of the macro and how it works the next days
[20:17]
jastfor instance, %RENDERFOREDIT% renders all fields using a default format, and %RENDERFOREDIT{Hello_format="$value"}% should do the same, except the field called 'Hello' should get rendered as text, rather than a user-editable form field [20:17]
ReneMand then modify it as necassary if I'm capable doing this :-) [20:18]
jastthat's the basic idea, anyway [20:18]
ReneMoh, ok, I see
will see how far I get with it
thanks again
[20:19]
jastit's a little bit more complicated than what I just showed as an example, though... because the format specifies the whole "row" for the field
so if we override that with just "$value", it will insert the value there without any heading, spacing etc., and it will look really strange
[20:20]
ReneM:-) I anyway will find a solution for my requirement and you gave me a few directions where to go to
btw: where to spend a virtual beer for you?
[20:21]
jastI've never really gone to the trouble of setting it up so I can get virtual beer. I prefer asking people to pay it forward: just help someone else in need if a situation ever comes up... even if it's about something completely unrelated to foswiki :)
also, I don't even like beer ;)
[20:24]
foswiki_irc5Is it possible to reference a setting in another web?
like SYSTEM.%PREF%
[20:24]
jastfoswiki_irc5: there's a way that I know works if the preference was set using the META:PREFERENCE mechanism... it probably doesn't work for inline ' * Set FOO = bar' style preferences [20:25]
ReneMthank you anyway jast! [20:26]
jastReneM: you're welcome [20:26]
foswiki_irc5is there a way to have a default value for a "select" field in a form? [20:33]
GuilainChi all
foswiki_irc5, first parameter enable you a default value in the form definition
| myfield | | select, 1, default value, one, two, etc
by memory...
oops confusion between select in a table definition, and select in a dataforms (see System.DataForms)
but I reread your question, in simple form (in your page), you just have to add the html stuff <option> </option>
[20:43]
.... (idle for 18mn)
foswiki_irc8Hello, I need some help: I have install Foswiki 1.1.9. everytime I try to delete a file, I got the error, that "regex.db" is "No such file or directory"
Topic is deleted, but the message sucks
[21:05]
jastregex.db doesn't seem familiar from anything that is built in... do you have any extra plugins installed? [21:14]
foswiki_irc8Yes, I have installed many Plugins
I think it has something to do with tuning or Cache
but the RegexCacheSearchPlugin is disabled
[21:15]
jastdo you have shell access to the server? quickest way might be to just look for code that references this file [21:17]
foswiki_irc8Yes I have [21:17]
jastfrom foswiki install dir: grep -r --include='*.pm' regex.db lib [21:17]
foswiki_irc8Please tell me, what should I do
kk
lib/Foswiki/Store/SearchAlgorithms/PurePerlCached.pm: my $workfile = $workArea . '/regex.db'; lib/Foswiki/Plugins/RegexCacheSearchPlugin.pm: my $workfile = $workArea . '/regex.db'; lib/Foswiki/Plugins/RegexCacheSearchPlugin.pm: my $workfile = $workArea . '/regex.db';
lib/Foswiki/Store/SearchAlgorithms/PurePerlCached.pm: my $workfile = $workArea . '/regex.db';
lib/Foswiki/Plugins/RegexCacheSearchPlugin.pm: my $workfile = $workArea . '/regex.db';
lib/Foswiki/Plugins/RegexCacheSearchPlugin.pm: my $workfile = $workArea . '/regex.db';
3 hits
[21:17]
jastokay, so probably you've got the plugin disabled but part of it is still referenced in the Store configuration
do you use /bin/configure (web interface) to configure foswiki, or directly edit lib/LocalSite.cfg?
[21:22]
foswiki_irc8./bin/configure
of course ;-)
[21:23]
jastit's a matter of taste :) [21:26]
foswiki_irc8yes :) [21:27]
jastokay, the config is in the Store page, change {Store}{SearchAlgorithm} to "Foswiki::Store::SearchAlgorithms::Forking" or "Foswiki::Store::SearchAlgorithms::PurePerl" [21:27]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store::SearchAlgorithms::Forking http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store::SearchAlgorithms::PurePerl [21:27]
jastit's probably ...PurePerlCached right now
on Linux Forking is allegedly the faster choice, I don't know because I rarely use the built in search
[21:27]
foswiki_irc8ok, I will try
error message still there
[21:29]
jastare you using FastCGI or mod_perl or something like that? if so, changes to the configuration may apply only after you have reloaded/restarted the web server [21:33]
foswiki_irc8i have restarted apache and error is still there :-( [21:40]
***GuilainC is now known as GuilainC_away [21:45]
....... (idle for 31mn)
LucasNavahello [22:16]
jasthi [22:16]
LucasNavaCan i set web level skin in the WebPreferences page? Shouldn't it still use Site level skin as backup? (web inherits from system)?
because i'm trying to do " * SKIN = mySubSkin "
and it messes everything up
but ?cover=mySubSkin works fine
(my battery is about to die... brb)
made it :)
I guess it doesn't work that way... had to do mySubSkin, mySkin, pattern
[22:19]
jastI *think* you can " * Set COVER", too
SKIN doesn't inherit in the sense that it automatically appends the skins from SitePreferences
preferences are only inherited from there if you don't set them at all at the web level
[22:30]
LucasNavaoh.... but cover will layer skins that way? [22:32]
jastcover is just one layer on top of skin
i.e. if you set the COVER preference but then use the ?cover=... URL param, the URL param will overwrite the preference
basically foswiki determines THE value for cover, and THE value for skin, and combines them
[22:44]
....... (idle for 33mn)
***ChanServ sets mode: +o gac410 [23:18]
LucasNavajast++ [23:27]
FoswikiBotKarma for jast is now 2 [23:27]
***fsfs has quit IRC (Ping timeout: 246 seconds) [23:29]
jastI didn't even know we had virtual internet points here [23:30]

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