#foswiki 2015-02-25,Wed

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

WhoWhatWhen
gac410hm Should our wysiwyg editor be converting — html entity to hex 97 character? [01:31]
***jayen has quit IRC (*.net *.split) [01:45]
................ (idle for 1h16mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/AQxC
distro/master 0aaaf65 George Clark: Item11262: Upgrade guide changes....
[03:01]
***GithubBot has left [03:01]
.......... (idle for 48mn)
ChanServ sets mode: +o SvenDowideit_ [03:49]
......... (idle for 40mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/A7ZR
distro/master 7519c12 George Clark: Item13048: Adjust upload regex
[04:29]
***GithubBot has left [04:29]
................. (idle for 1h20mn)
gac410 has left [05:49]
................. (idle for 1h24mn)
ChanServ sets mode: +o MichaelDaum [07:13]
.... (idle for 16mn)
ChanServ sets mode: +o CDot [07:29]
............................ (idle for 2h18mn)
IslandC has left [09:47]
............. (idle for 1h1mn)
GithubBot[SolrPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/A527
SolrPlugin/master ae97ee8 MichaelDaum: Item13280: Upgrade to Solr-5 and more...
[10:48]
***GithubBot has left [10:48]
.......... (idle for 49mn)
GithubBot[distro] cdot pushed 2 new commits to master: http://git.io/A59T
distro/master 13de588 Comment: Item13277: somehow these got reverted. Probably my fault
distro/master 4158b93 Comment: Item13270: add link to configured site. Sort AccessibleCFG to make comparison easier, and add a couple of missing items
[11:37]
***GithubBot has left [11:37]
.... (idle for 18mn)
ChanServ sets mode: +o Lynnwood [11:55]
................. (idle for 1h24mn)
JulianLevensFoswikiCamp2015 Amsterdam from Wed 25th to Fri 27th March is go
MichaelDaum: How do I get access to the blog?
[13:19]
MichaelDaumJulianLevens, I'll create an account 4u [13:23]
you should receive an email with the passwd [13:34]
JulianLevensThanks, I've logged in now to write my 1st ever blog [13:38]
***ChanServ sets mode: +o SvenDowideit_ [13:44]
MichaelDaumJulianLevens, yay [13:56]
GithubBot[SolrPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/Adau
SolrPlugin/master 48520ea MichaelDaum: Item13280: removed means to start solr...
[14:01]
***GithubBot has left [14:01]
ChanServ sets mode: +o gac410 [14:15]
JulianLevensOk, two blogs done: GA + Camp
I've also updated the Foswiki Calendar with the Camp
Please check out: http://foswiki.org/Community/FoswikiCamp2015
[14:27]
GithubBot[distro] FoswikiBot pushed 1 new commit to master: http://git.io/AdDk
distro/master 773c939 CH yang: Item13252: Translations updated using Weblate (Traditional Chinese)...
[14:29]
***GithubBot has left [14:29]
.... (idle for 16mn)
MichaelDaumanybody got the keys to the foswiki google plus account? [14:45]
gac410Not me [14:45]
.... (idle for 15mn)
MichaelDaumJulianLevens, did you create the propositions for board members at http://www.foswiki.org/Community/AgendaSixthGeneralAssembly ? [15:00]
JulianLevensYes, I left them in as a template more than anything, but with no actual proposer so it's not official
Actually not so much a template as an example and encouragement to propose someone
It could be done better I'm sure
[15:02]
MichaelDaumMichaelDaum going to clean that list not to create confusion [15:05]
JulianLevensThanks [15:07]
MichaelDaum... and put my name behind CDot [15:09]
.... (idle for 16mn)
gac410g'morning / afternoon all.
translate.foswiki.org seems to be working find. I committed / pushed some traditional Chinese translations and all the right stuff appeared to tie in with github and tasks.
CDot. About regexes on configure. I can't figure out where qr/..../ gets converted to '....' for values, and not applied to 'default' values. And I'm not sure which is wrong, the removal of qr or the restoration of it.
I opened http://foswiki.org/Tasks/Item13278
I initially added some code to strip qr/.../ in Types.js But then there is qr(...) used on some of the other fields.
What touched this regex all off was I was getting js errors about malformed regex on the Sandbox topic creator, which I traced back to a bad regex.
NameFilter is used in both JS and Perl
The problem with qr/.../ is the trailing overrides such as qr/.../i case insensitive, that gets lost. So a qr/.../ used inside a /.../i ends up still being case sensitive.
[15:25]
CDotgac410: I tried to eliminate qr// everywhere I could
it's simply too much trouble to deal with
REGEX should simply be a string, except for checking
[15:39]
gac410right I agree. Though it needs to be qr(delim).....\1 [15:39]
CDotCDot has no idea what that means' [15:40]
gac410My problem is I can't find where you eliminate it so I can do the same for default.
I've been grepping for qr and REGEX and whathaveyou for hours yesterday.
[15:40]
CDotoic - you mean for existing .spec that use qr//? [15:40]
gac410Where are you cleaning the qr from spec, for values. It is NOT being cleaned for default. [15:40]
CDotI'm not.
'default' is NOT a value, it's simply handled as a string
I had to do that because of your requirement for retaining formatting
so the default value will be "qr/.../"
that can be "cleaned up" to a simple string in types.js, or when the .spec is read
[15:41]
gac410Right. and that is breaking stuff :D So I need to somenow clean the qr/ / or qr( ) or qr# # whatever delimiter is used in the qr [15:42]
CDotright. One way is to add a RGEEX-specific bit of code in LoadSpec.pm, where the default is set
the other approach is to try to trim it in types.js
[15:43]
gac410I was going to fix it in types.js got it working actually, but wanted it to be consistent with what's done for values themselves.
And I could not find that part
[15:43]
CDotnothing is done for values themselves
they are treated as strings i.e. the regex is silently stringified
[15:43]
gac410How the heck does a LocalSite.cfg qr/blah/ become 'blah' then
if you eval it, it typically becomes (?:imsx.... ) or whatever
[15:43]
CDot... which is why I had to stop evalling it [15:45]
gac410right. I'm trying to find what you DO do to it. Magic doesn't count :) [15:45]
CDotValue.pm, line 396 [15:47]
gac410I think this one is probably better to clean in the LoadSpec. since qr/foobar/msi is just as legal as qr(foobar)msi [15:47]
CDotis the string conversion magic you were looking for [15:47]
gac410Okay. Thanks. I've spend hours trying to figure that out yesterday.
gac410 still gets utterly lost down in configure. :P
[15:47]
CDotgenerally type conversions only happen in three possible places; types.uncompressed.js, LoadSpec.pm, and Value.pm
I tried to localise them as much as possible.
[15:48]
gac410Damn. I didn't think of ref types. I was searching for REGEX and qr and all sorts of other strings, and missed that one. [15:49]
CDotactually, the same conversion is done in Reporter.pm, in the uneval function
^conversion^simplification
note that both these conversions are far too bullish. Both should make some attempt to retain modifiers.
[15:49]
gac410okay. That gives me an anchor to start looking. I'm wondering if we might want to also restrict the use of modifiers in the config.spec. ie qr/asdf/i should not be accepted.
Ah. okay. hm. Retain modifiers. ugh.
[15:50]
CDotright. I don't check for that (I don't check Config.spec for anything. getting it right is the dev's responsibility. [15:51]
gac410The risk with modifiers, is that core code might have it's own modifiers, that then get overriden from the config. It's a difficult area. [15:52]
I think I'll sanitize the default in types.js. That way all the conversions of defaults (quoting, unquoting, trimming, etc) will be all in the same place.
extracting $2 from ^qr(.)(.*)\1$ which begs the question of modifiers. For now maybe alert if there are modifiers.
Note that sourceforge mailing lists are having issues.
Looks like nothing has gone through since late on the 23rd. There are other tasks open at sourceforge for the issue.
[16:02]
jmk0I'm trying to put a one-step delete button in a custom template. I can get a two-step process fine but if I try and make the button behave like the final delete link in the "more topic actions" process, I get no button at all. The only difference is that the "single step" form doesn't have the nonwikiword or delete_currentwebonly inputs
.... I don't get why I don't even get a button in that case
[16:09]
gac410If you view the source of the page, is the button there but hidden by css or some other html rendering issues? [16:10]
jmk0not there at all
wait, no, i found something
[16:10]
gac410By template, you mean a file in the templates directory? [16:11]
jmk0yes
%TMPL_DEF{"delete_link"}% is in the html
[16:11]
gac410hm. you are rapidly going beyond my meager template knowledge. Make sure your def is properly closed. Not sure what else.
There is a template debug mechanism, but it really munges up the html, not something you want to enable on a live site.
[16:13]
jmk0i'm in a vm
see anything wrong here? : %TMPL:DEF{"delete_link_two_step"}%<some-html-code>\n%TMPL:END%
[16:13]
gac410lib/Foswiki/Templates.pm use constant TRACE => 0; Set to 1 to enable. It inserts comments in the generated html for each expanded template. [16:15]
jmk0k [16:15]
gac410It can really break things. html comments are ugly. [16:15]
jmk0sorry, that's the working one... broken: %TMPL_DEF{"delete_link"}%<html>%TMPL:END%
reordering didn't make a difference either
[16:16]
gac410TMPL_DEF s/b TMPL:DEF ? [16:17]
jmk0aw, fff.f...... [16:17]
gac410:D [16:17]
jmk0THANK YOU. I figured it was something obvious [16:17]
gac410Those are really the hardest ones to find. I've stared at a line like that for hours and not seen the obvious. [16:18]
jmk0bingo, that did it. :) [16:18]
MichaelDaumMichaelDaum added a flyer at http://foswiki.org/Community/FoswikiCamp2015 ... any thoughtS?
going to add it to the posting as well
[16:26]
gac410Once sourceforge starts processing email again, we can get something out to the foswiki-announce list maybe? [16:28]
JulianLevensFlyers great thanks [16:33]
jmk0Amsterdam, eh? Wish I could remember the name of the place I stayed when I was there in '90 [16:38]
.... (idle for 19mn)
... 667 deleted topics later.... /whew [16:57]
....... (idle for 30mn)
GithubBot[SolrPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/AbnI
SolrPlugin/master 38475dc MichaelDaum: Item13280: add mapping for newly supported langs
[17:27]
***GithubBot has left [17:27]
............... (idle for 1h13mn)
JulianLevens has left [18:40]
.......... (idle for 46mn)
gac410MichaelDaum: Getting pseudo-install error on jquery: WARNING: Cannot find source file for /var/www/foswiki/distro/JQueryPlugin/lib/Foswiki/Configure/Checkers/JQueryPlugin/Plugins/Supersub/Enabled.pm [19:26]
........ (idle for 37mn)
GuilainC_GuilainC_ has discovery existence of the foswiki association...5 years later his first foswiki install... [20:03]
..... (idle for 21mn)
tewardkinda just got this dropped into my lap, but is there any kind of 'access auditing' in foswiki such that we can see who accessed a page and when [20:24]
GuilainC_teward, you have events.log file [20:29]
tewardGuilainC_: is that accessible from the web side, or is that me having to dig into and grep a file on the command line [20:29]
GuilainC_by default it's from command line [20:30]
tewardGuilainC_: no way to make a FOSwiki page that allows searching events.log is there in a nice, listable format, complete with time controls, etc.?
i dont' wnat to have to code a cron script and a grep command to do all this :/
[20:30]
GuilainC_but, you probably have get into web side, if you want by "configuring" properly
probably a plugin can give you this functionnality
like piwik if i remember well
let me do a check/search
[20:30]
tewardGuilainC_: thanks
GuilainC_: i'm not a foswiki expert - i kinda inherited this and they're asking questions up on the food chain about capabilities
and i'm not 100% familiar with foswiki :/
brb, messages logged.
[20:31]
GuilainC_from http://foswiki.org/Extensions/WebHome
you have http://foswiki.org/Extensions/PiwikPlugin
[20:33]
tewardGuilainC_: prereq is Piwik installed, right? [20:36]
GuilainC_http://foswiki.org/Extensions/GoogleAnalyticsPlugin
yes you need Piwik
[20:36]
tewardyeah that second one won't work for what we need, it's an internal site
i'll have to discuss with the higher ups, see what they want me to do
[20:36]
GuilainC_is a "link" between foswiki and piwik
after you have rddtool ;)
after i'm pretty sure (but not done yet) that you can import log into simple web page
[20:37]
gac410the Foswiki events log is in somewhat human readable format (Like a foswiki TML table ) [20:38]
GuilainC_and so use searching, and displaying what you whant
s/whant/want/
[20:38]
gac410| 2015-02-25T14:26:04-05:00 info | admin | jsonrpc | Main.WebHome | configure getspec Firefox | 127.0.0.1 |
| timestamp & class | user | script | web.topic | extra info | IP |
[20:39]
tewardgac410: GuilainC_: the concern here is we want only certain users to have access to the data, and we are trying NOT to heavily modify the foswiki software installation we have
so i have to relay anything i'm learning here from you two upwards and wait :/
[20:39]
GuilainC_teward, you looking for access control (permissions) [20:40]
tewardthus is the bureaucracy of business [20:40]
gac410Logs can be *very big* so tbh offline processing is probably better than just viewing / searching the logs.
All depends on how busy your site is :)
[20:40]
tewardteward shrugs [20:40]
gac410What version of foswiki. Logs on old system are in the foswiki/data/ directory Newer foswiki, default location is foswiki/working/logs [20:41]
teward"This site is running Foswiki version v1.1.8, Release Foswiki-1.1.8, Plugin API version 2.2"
probably old
[20:43]
gac410Actually no, that's pretty recent. 1.1.9 is current [20:44]
tewardoh nice
as i said, i'm not familiar with foswiki much :/
kinda had this dropped in my lap
[20:44]
gac410we are working hard on 1.2.0 [20:45]
.... (idle for 18mn)
GuilainC_foswiki down ? or it's my internet link ? [21:03]
..... (idle for 24mn)
gac410Looks like the server may have rebooted. Just saw the emails that come when it starts.
gmc Did you reboot?
uptime: 9:17PM up 24 mins,
[21:27]
GuilainC_:/
debian question : someone know why I don't find a package for : http://foswiki.org/Extensions/PrefsCachePlugin ?
[21:34]
tewardGuilainC_: probably not packaged for Debian
or rejected by the debian people
or similar
[21:36]
........... (idle for 52mn)
***ChanServ sets mode: +o SvenDowideit_ [22:28]
Rich_MorinWhere might I find a high-level description of the Foswiki rendering pipeline? I'd like to know what transformations happen in what order, how to describe the intermediate states, etc. [22:28]
gac410GuilainC_: I'm not sure that the auto packaging code is running any more. Recent packages might be missing. Ah.. SvenDowideit / SvenDowideit_ ... what's the status of the auto built deb packages?
Rich_Morin: Rendering, or Handlers / Macros? Not sure what is out there. Code might be the best reference to be 100% certain
(Render is to convert from TML to HTML That happens after all macros are expanded.
ping gmc are you around?
[22:29]
Rich_MorinIf you don't know of a high-level summary, perhaps I could take notes and make a start on one. It annoys me not to understand the order of the main stages (eg, macro expansion, plugins, TML expansion, etc. [22:33]
gac410Rich_Morin: Macro expansion is done in Foswiki.pm subroutine _processMacros. That routine controls the removal of various blocks (verbatim. etc) and calls to the common and registered macros, finishing up with TOC. [22:34]
Rich_MorinLet's try to stay at a very high level, at least for a start. If you were to list the (half-dozen) processing stages, what would they be? [22:35]
gac410http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2015-02-24,Tue&sel=79#l75
(I just summarized yesterday :) )
[22:37]
Rich_Morin+1 [22:38]
GuilainC_thanks gac410 for your answer, it's probably the case, since i don't have the last version of plugin since several month...
nevermind, it will be a good try for myself, for trying to make my first foswiki debian package, perhaps in a new way
[22:38]
gac410Rich_Morin: http://foswiki.org/Development/TechnicalOverview has some high level information. I think somewhere is actually a detailed description,
But the wiki docs get out of date, and I usually refer to the code.
[22:39]
GuilainC_what's strange, is this plugin is not new, history tell it start in 2012...
gac410, a last organisationnal question, should we use task for working on documentation ?
[22:39]
gac410No idea GuilainC_ We really need some input from Sven on state of debian packaging, and if he plans to continue or not. And will he make the tools avaiable.
(That was your prior question .... re tasks. it depends :)
Okay, so anything in Development and Support web just use the wiki.
System web, that's documentation we ship with Foswiki, or Extension topics that are installed with extensions.
So if we package and ship it, it goes under git control.
[22:41]
GuilainC_ok, my second question was more on if i see something out of dated in documentation (specialy in developpement) should i open a task ?
ans in a other way If I've some time to spent on foswiki project, should i search for documentation task and try to fix it (if i can ;) !)
[22:44]
gac410No. You can just edit. Fix it, or insert a <blockquote> with some comments / clarification. [22:45]
GuilainC_ok.
tanks, time to sleep here. have a good nigt
[22:46]
gac410For "Shipped" System web documents, we have a catch-all task. http://foswiki.org/Tasks/Item9693
good night
[22:47]
Rich_Moringac410: I made a stab (http://pastie.org/9982610) at parsing your list. Can you help me to correct errors and fill in some empty comments? [22:48]
gac410Okay, the first line > expandMacros. outdent that. That's the subroutine that calls each of the next operations Foswiki::expandMacros()
putback blocks reverses the remove verbatim steps.
so even though takeOutBlocks is called twice, all the verbatim blocks are put back at the same time.
I skipped some steps. There is also a remove of cache dirty-areas. But I don't really understand that part.
handlers (before common, common, after common registered ... etc) are all called in order of the Plugin load order in the advanced configuration
There is probably a spot in Technical Overview where that description would fit.
[22:49]
Rich_MorinI'd prefer to keep the description in terms of data flow, if possible, ignoring procedural details
but we can certainly start with a calling tree
[22:56]
gac410hm well when "dispatch commonTagsHandler is called, each plugin's handler is called, in specified, then alpha order. The flow is important. We went through this yesderday because Plugin 1 added a <verbatim> in the commonTags, then plugin 2 encountered it.
violating the document "verbatim blocks are removed before your common tags handler is called." Answer is welll sort of . :)
[22:58]
Rich_MorinSee if this is closer - http://pastie.org/9982657 [22:59]
gac410Looks right. See https://github.com/foswiki/distro/blob/master/core/lib/Foswiki.pm#L3506 That block is actually pretty readable. [23:02]
The call to innerExpandMacros in the code. That's what I called "expandRegistered" That invokes the left -> right inside -> out recursive expansion of all tags. [23:07]
Rich_Morinhttp://pastie.org/9982710 - take another look? [23:21]
gac410You missed the commonTagsHandler. The setPreferences stuff is I think done to handle includes. I didn't follow that myself. [23:22]
..... (idle for 20mn)
***ChanServ sets mode: +o SvenDowideit_ [23:42]

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