#foswiki 2012-08-15,Wed

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

WhoWhatWhen
kip3fmailnotify - it seems that it always notifies users from $Foswiki::cfg{NotifyTopicName}. Any way to customize it from the command-line? [02:09]
gac410kip3f: I don't think so. [02:09]
kip3fkip3f contemplating a new feature request
do you know off-hand what is the regex for web names? is '-' legal?
[02:09]
gac410I don't think it's legal. But I'd have to look. [02:10]
kip3fbecause the way mailnotify processes options right now ...
it treats -unrecognized as meaning to exclude 'unrecognized'
not really thinking about the possibility of adding more options
grr ...
where's the web name regex? I can look
[02:10]
gac410hyphen not legal in webname. Tried it from a url, and it says "missing or invalid. Without the hyphen, it says not found. [02:12]
kip3fok cool [02:12]
gac410All the regexes are in Foswiki.pm [02:12]
kip3ftnx
mailnotify --notifytopic MyWebNotify
(that's two hyphens)
[02:12]
gac410The shell scripts all use single hyphen for parameters. [02:13]
kip3fYes but it should be backwards compatible
admittedly, it seems unlikely that someone will have a web called 'notifytopic'
but ... you never know
well another idea that I have, is to make it possible to override the config setting
from the command line
hum the webpage lists the option "[-user UserName]" but the script doesn't honor that
wierd
[02:14]
gac410hm. It should ... though mailnotify really needs to run as admin or things won't work. [02:21]
kip3fperhaps something else magically scans @ARGV [02:22]
gac410hm. Actually mailnotify is not a cli script that uses the Engine::CLI - so it does it's own parsing.
So the docs that says "All scripts accept the following parameters .." ... is wrong for mailnotify.
[02:24]
kip3fthe MailerContrib page says "The script is used as follows:
perl -I bin mailnotify [-q] [-user UserName] [-nonews] [-nochanges] [ web1 web2 ... webN ]"
[02:26]
gac410ah... didn't look there. Interesting.
The normal scripts use $Foswiki::engine->run() ... that gets all of the standard options processing. mailnotify doesn't do that. Looks like it only supports -q, -nonews and -nochanges
[02:27]
kip3fit adds 'user' to the @exwebs and the username to @webs
oh man
[02:30]
gac410Why do you want to run as another user? [02:31]
kip3fI don't
mailnotify --notifytopic MyWebNotify
I want to read the list of users to be notified from a different topic
... or at least, I was thinking of that as a solution to my problem
Maybe I will go in the direction of adding a query to WebNotify
Say, for example
* KipLubliner: ContactUsMessage* : Type = 'press'
[02:31]
gac410The WebNotify processing in MailerContrib is really complex. I've dug into it a few times ... usually wishing that I hadn't [02:38]
kip3fthanks for the warning [02:38]
gac410What are you trying to accomplish. I didn't understand the ContactUsMessage [02:39]
kip3fI am trying to establish granular notifications, so that users are notified depending on what type of topic is being changed
I have a 'contact us' web page with a form
that creates a topic
the HTML form has a select that lets me set a field on the Foswiki Data form
[02:42]
gac410I think I understand. I was just wondering if ImmediateNotifyPlugin could help. But I don't think so. [02:43]
kip3fand my original plan was that different people would be notified for different types of 'contact us' inquiries
well, after writing it out ... I think that the 'out of the box' features are probably good enough for now
[02:43]
gac410The other thing with webnotify, it sets a timestamp for the "last run" for the web. So you can't do something like run it for news, and then changes. Or in your case, NotifyTopic1, and NotifyTopic 2 [02:45]
kip3fgood point, thanks
maybe at some point later on I will think about the idea of adding query parsing ability to WebNotify.
but it is *very* geeky
[02:45]
...... (idle for 29mn)
foswiki_irc0first time foswiki user here. do any of you know of a tutorial to generate a theme? i'm stuck with the documentation... i would need something like a 'tutorial for dummies'... [03:16]
gac410Hm. Creating themes are a rather advanced topic. [03:16]
foswiki_irc0i was afraid of that 8) i am mainly looking to change all the bright/white backgrounds of webs. we are working in an dark environment. every software we use is 30% grey... except the wiki 8) [03:17]
gac410Ah... let me look. I believe all of that is in the CSS files. Are you using the current release? [03:18]
foswiki_irc0i believe so - let me check: foswiki 1.1.2 - i have it currently running locally on my box for testing, so it's not on the apache server... [03:19]
gac410oh.. 1.1.2 is pretty old. not sure how much of PatternSkin has changed since then. [03:20]
foswiki_irc0ah! well... uhm. maybe i should not use the mac for testing? is 1.1.5 the latest version for linux? [03:21]
kip3fI think 1.1.2 should be OK for that
I just searched for 'FOSWIKI_LAYOUT_URL'
and found a 1.0.0 wiki
that uses 'FOSWIKI_LAYOUT_URL'
https://wiki.dosar.org/Main/SitePreferences
see the first three settings after 'patternSkin'
[03:21]
gac410The colors are all in colors.css part of the PatternSkin themes. [03:22]
kip3fwhere they defined their own CSS
the easiest thing to do is to copy the default and hack away at it
and set FOSWIKI_COLORS_URL to your CSS
[03:22]
foswiki_irc0ah cool! ok, i can figure it out from there... but this brings me to my second question. i am on the Main WebHome page and i am trying to change the web's preferences. unfortunately ii am getting access denied errors... [03:25]
gac410You need to be in the AdminGroup or temporary login as admin user.
The Main/AdminUser topic has instructions on how to get admin rights.
[03:25]
foswiki_irc0when i try to login as internal admin i'm getting this error message: Can't locate object method "login" via package "Foswiki::LoginManager" [03:27]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::LoginManager [03:27]
foswiki_irc0and i can't see another way to 'login' as a user on this default install... [03:27]
kip3fDo you have access to the 'configure' page?
Under 'Security and Authentication', what is the setting for {LoginManager}?
or you can look in the file system
in lib/LocalSite.cfg
I'm sorry I have to go. sorry I can't help you diagnose further now
[03:30]
mariocapeis there a way to remove a bunch of attachments from a topic? a user of ours uploaded 60 (!) attachments, and now wants to remove them… but if possible, not one attachment at a time 8) [03:47]
gac410Not with default installation. hm. Move the whole topic to trash, and then cut/paste the topic text into a new topic? [03:48]
blafuselclever! yes! i'll try that! thanks! [03:49]
gac410Note you need to be admin to view trash topics. So if not, copy/paste the topic text first :) [03:49]
blafusel8) of course! ts…. ha. [03:51]
***gac410 has left [04:02]
................... (idle for 1h30mn)
Babargmc: ok, I've removed that from my conf then. But how come, if it's discontinued, it had your v6 IP in it all of a sudden? [05:32]
.................. (idle for 1h27mn)
***Babar sets mode: +oo AndreU CDot [06:59]
.......... (idle for 45mn)
ChanServ sets mode: +o MichaelDaum [07:44]
........................................................... (idle for 4h52mn)
gmcbabar: i don't know, all i know is that the service is discontinued [12:36]
Babaranyway, I've removed it [12:36]
...... (idle for 29mn)
AlexanderStCDot: Hi, i´m just wondering, if there is any difference between WikiAppStorePlugin and WikiAppInstallerPlugin ? [13:05]
........ (idle for 35mn)
***Madox has left [13:40]
...................... (idle for 1h45mn)
CDotAlexanderSt: where do you see WikiAppStorePlugin?
I seem to recall that the name was changed to avoid any issues with Apple's protection of the "AppStore" moniker.
[15:25]
AlexanderStCDot i found it in the git repo
...appstore sounds more impressive than WikiInstaller ;-)
CDot: Do you have ideas how to implement an installer if the "appstore" is not based on the same wiki? we just thought about a local repo solved like the WikiInstallerPlugin and a additional global AppStore with a plugin syncing the local appstore with the global one
[15:29]
CDotthe installer plugin was a bar camp work done during the foswiki summit, and only goes as far as is documented. IIRC it was focused on just installing to a demo web - but there's no reason the same code couldn't be used to install to *any* web.
actually now I look at the doc, the WikiAppInstallerPlugin does that, as well as subsuming all the functions of the WikiAppStorePlugin
[15:41]
..................................... (idle for 3h4mn)
***ChanServ sets mode: +o Babar [18:46]
............ (idle for 57mn)
MartinCleaver has left [19:43]
............................... (idle for 2h33mn)
Babar sets mode: +v FoswikiBot [22:16]

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