#foswiki 2014-10-21,Tue

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

WhoWhatWhen
***ChanServ sets mode: +o Lynnwood [01:58]
..... (idle for 22mn)
RiskRewardHi, I've got a problem with DataForms attached to topics. When I update the information in a dataform the topic revision updates (as expected). However, when I look at the previous revision, it still shows the latest change in the dataform. It should show the previous entry. The txt,v file correctly records the change, but it's not visible in the browser. Anyone know what's going on? [02:20]
gac410Are you sure it's a data form, and not * Set type variables? Set statements always work with the current topic.
If you look at Tasks in the tasks web, the "checkins" fields in the data forms clearly track against Rev= levels.
[02:21]
RiskRewardPretty sure it's a DataForm. It's initially populated and attached to a topic by a form using the FormPlugin. Then I can click on it's edit link and change it's content. [02:23]
gac410I don't know then. You can see the operation - look at http://foswiki.org/Tasks/Item12952?rev=10 ?rev=100 the form contents follows the revs. [02:25]
RiskRewardThanks, I'll take a quick look. [02:26]
gac410You can also see that Use ?raw=all;rev=10 and ?raw=all;rev=100 and look at the %META statements for the dataform.
Check your own topic out using raw=all;rev=n to look at the raw contents of the form at specified revisions.
[02:26]
RiskRewardOK, giving that a go. [02:29]
gac410If the form data is referenced using Set statements, then the Set statement will always get data from the current revision. Set's never look backwards. It would be a real mess for ACL's for sure. [02:30]
RiskRewardJust tried the raw view. the %META:FIELD changes between revision as expected, so don't know why it's not visible in normal view. [02:32]
gac410Running 1.1.9, right? [02:32]
RiskRewardYep. Could this be a web server thing? (I'm on IIS7, not Apache). [02:33]
gac410hm maybe. I don't really know. Very few iis users with foswiki, so I don't hear much. [02:34]
RiskRewardOK, so raw view is OK, rendered view is wrong. What do I do next? [02:36]
gac410I just checked trunk.foswiki.org (1.2), and it works same there as well. Trunk has other differences. trunk is CGI, RcsWrap. foswiki.org is FastCGI, and RcsLite
Are you using any custom view templates? Or is this just a plain old topic with an attached form displayed.
[02:36]
RiskRewardI'm using a custom view template. [02:38]
gac410How are you getting the form data into the template?
I'm just poking around here. I don't do very much with data forms at all. Other than being a user of Tasks web, and a few other forms apps on f.o
[02:38]
RiskRewardI basically copied the Tasks web approach from Foswiki.org, except that I use a form written using FormPlugin to create the topic and populate it with the data the user entered. I'll post the explanation I've written:
The form being used is TrainingFm. When you click on the "Create record" button in the form, the wiki generates a topic (record) called TRAINING0000X, where X is the next sequential number available. The generated topic is based on the template TrainingTopicTemplate, and is viewed as defined in TrainingViewTemplate. The form TrainingDataForm is attached, and is automatically populated with data the user entered into TrainingFm.
The record starts life in the "WAITING-FOR-CONFIRMATION" state. The person nominated on the form as the "Assessor" must log in and approve the form for the record to transition to the 'CONFIRMED' state.
Movement through to this state is handled by the WorkflowPlugin, following the instructions defined in TrainingApprovalWorkflow.
[02:41]
gac410hm... Maybe it's an issue with FormPlugin
I've never used it.
Are you using a FormPlugin based macro to extract the data?
[02:42]
RiskRewardI just tested a plain topic with DataForm attached. It works properly (shows revisions). I'll try applying the view template and see what happens.
Ah ha! Applying the view template breaks things (can no longer see the changes between revisions).
I apply the view template by going to the topic's "Edit topic preference settings" and adding the line " * Set VIEW_TEMPLATE = Records.TrainingView". Is that wrong?
[02:45]
gac410Hm, Probably okay. We use a ViewTemplate in the Tasks web. http://foswiki.org/Tasks/ItemViewTemplate?raw=on
And set it in a meta set: %META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Set" value="ItemView"}%
But that's equivalent to a * Set statement
[02:48]
RiskRewardI'll try it in a meta set and see if it makes a difference. [02:50]
gac410I'd be really surprised if that makes a difference. [02:51]
RiskRewardOk, it didn't make any difference.
Maybe there's something in my View_Template that's causing the problem?
[02:52]
gac410no idea. Certainly something to explore. Check out how the Tasks ItemViewTemplate is coded. [02:54]
RiskRewardOK. What does the "DON'T FORGET PatternSkinItemViewTemplate" do? [02:55]
gac410Ah. If you override the ViewTemplate, I'm guessing that the skin version is important too. Not really sure though... let me look
Yeah... it exists: http://trunk.foswiki.org/Tasks/PatternSkinItemViewTemplate?raw=on
[02:56]
RiskRewardHmmm. I don't have one of those. I need to figure out what it does. [03:00]
gac410I don't really understand why we need both templates.
Someone like MichaelDaum would probably be able to give you a good answer.
[03:01]
RiskRewardMaybe I could email him? He's usually asleep when I'm awake. [03:02]
gac410No idea. He has a consulting business. [03:04]
RiskRewardMy view_template is almost identical to the ItemViewTemplate, except for references to Workflowtransition. I'll try taking those out and see what happens. [03:05]
gac410Templates are resolved as part of the Skin path.
The "topic" based templates and file (/templates dir) templates are resolved from both the operation and the skin. So there is a "view.tmpl" which is the primary view template. "view.pattern.tmpl" is the Pattern skin override.
So with SKIN = pattern, that causes view.<skin>.tmpl to be resolved as view.pattern.tmpl. view.pattern.tmpl INCLUDES view.tmpl
[03:05]
RiskRewardThanks. I've deleted the content of my view_template and am progressively add lines back in, to see which one is causing the issue. [03:11]
I've found the culprit, but it's strange. I have a line with a QUERY statement that reports the Workflow state the document is in. When I remove that line, you can see the changes in the dataform from revision to revision. [03:18]
gac410Ah... I'll bet %QUERY loads the current rev of the topic. [03:18]
RiskRewardThe line in the view_template is: %QUERY{"'%WEB%.%TOPIC%' /META:WORKFLOW.name"}% [03:19]
gac410QUERY has a rev= option. I wonder if you could override it to get the requested rev.
Reading the code Foswiki/Macros/QUERY..pm If the rev= param is not passed, it checks if the current rev is loaded, if not it reloads the topic.
elsif ( !$topicObject->latestIsLoaded() ) { # load latest rev $topicObject = $topicObject->load();
I'm not sure if that's a bug or not.
[03:19]
RiskRewardRight! So in my situation it's causing it to reload (and hence display) the topic's current rev, rather than showing the requested rev. It's a bug in the sense that it's not showing you the topic revision you requested. [03:24]
gac410So you could probably use rev="%URLPARAM{'rev'}%"
QUERY is probably defined as always extracting from the latest rev unless otherwise specified.
[03:25]
RiskRewardYes, this works: %QUERY{"'%WEB%.%TOPIC%' /META:WORKFLOW.name" rev="%URLPARAM{'rev'}%"}%
Thanks for helping me figure it out!!
[03:28]
gac410cool. Yeah you pass QUERY the named web.topic, it doesn't care whether you ar viewing that paritcular topic or some other topic containing the QUERY [03:29]
RiskRewardI was a bit worried about that one. Happy to have traceability back on form data.
I have another question eating away at me, but it has to do with validating FormPlugin data. Are you interested?
Actually gac410, don't worry. I know it's late where you are, and I have a work around anyway. Thanks again for your help tonight.
[03:32]
gac410RiskReward: Actually that's an area that I don't know much about. hm... I think there is a FormFieldsPlugin or something that adds more formfield types for validation purpopse.
I've seen Michael's checkins on it... no idea if it's released.
[03:37]
RiskRewardThanks, I'll take a look. [03:38]
gac410https://github.com/foswiki/MoreFormfieldsPlugin [03:38]
RiskRewardBTW, I see that Michael did a video of the evolution of Foswiki's code and put it on Foswiki.org [03:38]
gac410Yeah... it's pretty cool. [03:39]
RiskRewardDo you think he read my IRC post about how to make one? :)
http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2014-09-23,Tue&sel=8#l4
[03:39]
...... (idle for 29mn)
gac410g'night RiskReward Time to sleep for me. [04:11]
***gac410 has left [04:11]
................ (idle for 1h15mn)
cz99 has left [05:26]
.................................................................... (idle for 5h36mn)
ChanServ sets mode: +o Lynnwood [11:02]
......... (idle for 41mn)
ZogendralHello. I'm wondering if anyone's awake that could tell me what I do after I install the packages in an Ubuntu install... Having a hard time finding any instructions about that. [11:43]
............ (idle for 55mn)
***ChanServ sets mode: +o Babar
ChanServ sets mode: +o Babar
[12:38]
ChanServ sets mode: +o gac410 [12:51]
.......... (idle for 48mn)
gac410ping gmc, are you around?
nope I guess not ... Babar? Are you around?
[13:39]
....... (idle for 34mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/YEeH_A
distro/master a315760 George Clark: Item13059: Unit test for tml corruption
[14:14]
***GithubBot has left [14:14]
GithubBot[distro] gac410 pushed 1 new commit to Release01x01: http://git.io/baMJXw
distro/Release01x01 c0a6ba1 George Clark: Item13058: WebFilter user is a global, not a function
[14:28]
***GithubBot has left [14:28]
TravisBarkeranyone familliar with mailincontrib? Mine isnt working and i need to find the log so i can trace the issue
im not sure the cron job is being executed or if the mail setup is correct
[14:37]
....... (idle for 34mn)
ModAcOstTravisBarker: Do not run your cronjob with -q and pipe the output to a file, eg.: cd bin; ../mailercontrib Public > ../working/logs/mailercontrib.log 2>&1
Remember: If you save two times in short succession, no new revision will be produced and thus no notification will be send (use forcenewrevision).
[15:12]
gac410Hm ModAcOst ... he asked about mail IN contrib. I've never used that one. [15:14]
ModAcOstAh, ok, never mind then [15:14]
gac410well, either that or TravisBarker had a typo. [15:14]
....... (idle for 33mn)
TravisBarkermailin,,, yes
mailer is working
[15:47]
................................................... (idle for 4h12mn)
foswiki_irc7ciao a tutti
i went on FW through a link on freemind. like what I see and think would be very nice tool for connecting a bunch of people i work with on a e-commerce project---> BUT HOW TO START?
i was expecting something like: WIKI installation tutorial for dummies / WIKI jump on the basic tutorial for dummies... but sincerally there is nothing i can spot to: get using this "tool" right now. so suggestions are very welcomed.
[20:00]
gac410There is a foswiki.org/System/InstallationGuide
er... http://foswiki.org/System/InstallationGuide
What type of server do you have available?
[20:04]
foswiki_irc7I can install it on an APACHE server
thx
[20:06]
gac410Linux? windows? [20:06]
foswiki_irc7windows [20:06]
gac410okay. Windows is definitely a bit more challenging platform. Foswiki will work, but some things can be difficult. [20:07]
foswiki_irc7i have a classic XAMPP installation running in local and an APACHE hosting. would be grat to test the features on XAMP and then put everytihing on line
ok assume I can get it installed - read the guide and make it working. what avout the best rump up for a user?
[20:08]
gac410On http://foswiki.org/System/WebHome there are 1 minute / 15 minute / 20 minute tutorials, Users guide, and pointers to other documentation. [20:14]
foswiki_irc7yes- went through. but i was trying to understand if there are best practice to deploy a WIKI for a small group. someting like "get started" package
ask to much? ;-)รน
[20:18]
gac410Hm Nothing comes to mind. Foswiki gets used in a lot of very different situations. It's as much an app development platform as wiki. It all really depends on what you want to accomplish.
Big things: Have champions who seed the wiki with useful info. If it's not current / useful, it won't get used. Keep it open and avaiable. Lots of security, "permission to edit" turns off perspective users.
[20:20]
foswiki_irc7also the extendion, great in pricipal... but practially I need to open each one by one to understand what can make the case to support a project collaboration... or I am simply looking in the wrong place? [20:22]
gac410Extensions? ... they tend to be needs focused. "I wish the wiki could ... <do something>" Search for an extension that might help.
I'd recommend starting with the basic wiki and getting to know what foswiki can do. It does have a "learning curve" add extensions once you identify needs and decide to get more complex.
[20:24]
foswiki_irc7mmm thx ... seems this platform is a bit far from what a user like me can grasp... at least in a reasonable time... [20:26]
gac410Basic foswiki is quite functional without any extensions. It all depends on what you want to do.
(Or I should say without any non-default extensions. )
[20:27]
foswiki_irc7correct.. well, the inspiring ideas was: would be great to have a web.based place where: 1) have a page with to do actions, 2) have a page with a mindmap of actions and one with a mindmap of topics 3) have a page with a gannt chart connected with the actions 4) a page with a repositori of documents with a direcory tree... [20:31]
gac410All certainly doable, but clearly a development effort, not something readily out-of-the-box.
1) to-do list, pretty simple topic per "action" along with a SEARCH page to show open ToDo actions. Lots of examples, our http://foswiki.org/Tasks web is one example
and http://foswiki.org/Development/FeatureProposals
mindmap -.... there is a http://foswiki.org/Extensions/FreeMindPlugin I have never tried it, I have no idea how useful it may or may not be.
[20:34]
foswiki_irc7thx
interesting. well thx for now . i will give a try and probably come back.
[20:38]
gac4103) gannt chargs, not sure. 4) Document repository with directory tree hm that probably doesn't fit all that well. it can do it,
okay glad to help good luck with it.
There are lots of extensions for doing graphics. But I've not worked with gannt charts so I don't konw for sure.
[20:41]
foswiki_irc7thx ciao FLA [20:44]
........ (idle for 38mn)
ZogendralHello, I'm wondering if anyone's around that could help me with an Ubuntu installation-- specifically, what to do after I've installed the package, like where the document root is. [21:22]
gac410How did you install? Unzip the foswiki tar file or the debian packages? [21:23]
ZogendralThe Debian packages
I did find two tar.gz files in /usr/share/foswiki, but they didn't seem to unzip to anything useful
Well, no doubt they're useful, I mean I already had that data installed, /var/lib/foswiki
[21:26]
gac410hm... okay. I'm not as familiar with the .deb pkgs. You should not need to do much after installing the deb, I think it installs the http conf file too. [21:29]
ZogendralIt didn't, the instructions told me to use a generator for that.
Which, I have some complaints about, but is not the point right now.
[21:30]
gac410Really? ApacheConfigGenerator? I'm surprised. I was always told to use the conf file provided with the .deb pkg. [21:31]
ZogendralHm, any idea where the file might be?
It didn't put it in the /etc/apache2/sites-available
[21:31]
gac410SvenDowideit_: built the .deb pkgs, But he doesn't come around very often.
I think I only installed the debs once to give them a try. years ago. Just booted one vm, but not the right one, still looking.
[21:32]
ZogendralIn that case, would the tar.gz files be more familiar?
I'm fine with using manual installation, can't be any harder than MojoMojo was
[21:33]
gac410For sure. :) I'm the release manager for the last few releases. The project builds the tgz files, [21:34]
ZogendralAlright, let me download it and compare it to what the deb made [21:35]
gac410Generally just choose your webroot. /var/www/foswiki, /srv/www/foswiki ??? Not sure, I don't use debian often. Extract the tgz, [21:36]
ZogendralIt's /var/www on Debians [21:36]
gac410There is a sample httpd.conf file in the root, or use http://foswiki.org/Support/ApacheConfigGenerator. One warning though. [21:36]
ZogendralSourceforge is being shockingly slow... [21:36]
gac410If you are up to Apache 2.4, then there are some syntax errors in the configs. due to Apache syntax changes :( [21:37]
ZogendralOh, yes, I noticed that. I rewrote everything that the configurator gave to me
Even after that it still exploded my server due to some shenanigans with SSL, but I'll work that out...
[21:37]
gac410On ubuntu, / debian. be sure to a2enmod cgi (or whatever the command is). CGI not enabled by default. [21:37]
ZogendralDoes it work with fcgi?
I already have that all enabled and set up from doing MojoMojo
[21:37]
gac410Yes, but need to install first with cgi, get system running, and then install FastCGIEngineContrib it's an optional extension.
Otherwise the fcgi handler won't be there.
I'd much rather we include fcgi by default ... but ... I don't always get my way :)
[21:38]
ZogendralOh, I did install the FastCGIEngineContrib, but that was before I actually got it running
The extension management seems to be nicer using APT
[21:39]
gac410Ah... Installing it first is fine. It doesn't hurt anything. [21:39]
ZogendralDo I still have to do it first with cgi in that case? [21:40]
gac410Well, FastCGIEngine won't be there when you extract the tgz... And the easy way to install extensions is with bin/configure whic requires cgi.
bin/configure doesn't run well with fcgi, (in the current release). so you really want cgi for that anyway.
[21:41]
ZogendralI see... So, I've extracted it, what do I do with it? It created a directory that looks very similar to what the deb made in /var/lib/foswiki, with a few more files [21:41]
gac410er... /var/lib or /var/www ? [21:42]
ZogendralIt made it in /var/lib for some reason.
I tried symlinking that to /var/www, but it doesn't seem to work.
[21:42]
gac410hm well the tgz will expand into whatever directory you were in when you ran tar -zxf [21:42]
ZogendralShould I drop its contents into my document root then? [21:43]
gac410Generally that's where it goes [21:43]
ZogendralOkay. I wasn't sure if there was some subdirectory that it wanted to be referenced from [21:43]
gac410And there is a sample httpd.conf Most people put it in a "foswiki" directory, but foswiki doesn't care.
Just need the http.conf to reflect your choices.
[21:44]
ZogendralYeah, I have several directories there, doing a name-based virtual host setup
If that's the case, then what I did should have worked... hm
[21:44]
gac410Yeah that should work fine. That's what I use. /var/www/<virtual-host> [21:44]
ZogendralOther people are accessing the server right now, so considering the threat of the config file crashing the server, I think I'll use a local server first.. [21:45]
gac410The http.conf just needs to make the bin/ directory processable as cgi and usually an alias for UrlHost. [21:45]
Zogendraluntil I get it working [21:45]
gac410Sorry ... supper time here ... I need to get dinner cooking :) [21:46]
ZogendralAlright. Thanks for the help [21:46]
....... (idle for 34mn)
cz99Hi Guys, still pleading for help with solr eg http://foswiki.org/Support/Question1522. Does anyone know how to get FW to actually talk to Solr? [22:20]
........ (idle for 37mn)
Actually, if anyone knows leila pearson who wrote the invaluable guide attached here http://foswiki.org/Tasks/Item12763 (which i used to get this far), maybe they could ask her to take a look please? (unluckily for me Michael Daum is on holiday....). thanks - chris [22:57]
....... (idle for 33mn)
How about this: JQUERYPLUGIN::FOSWIKI: requires= missing ids: JQUERYPLUGIN - can anyone tell me what this means? [23:30]
gac410Where do you see that? [23:30]
cz99in the src code for the home page i'm trying to test the solr search from. I have a suspicion that there should be a second search box, just for solr as per this line "<script src='/foswiki/pub/System/SolrPlugin/solr-searchbox.js'></script><!--SOLRPLUGIN::SEARCHBOX-->" but i can't see it. so i started searching for any other oddity in the html src [23:38]
The full line for that is '<script type='text/javascript' src='/foswiki/pub/System/JQueryPlugin/plugins/foswiki/jquery.foswiki.js?version=2.01'></script><!--JQUERYPLUGIN::FOSWIKI: requires= missing ids: JQUERYPLUGIN::MIGRATE-->' & there's another one for JQUERYPLUGIN::UI [23:44]
gac410Ah... a html comment. I think that these are okay. It might be ordering of the javascript. This is another one that MichaelDaum would know for sure.
Make sure that all the JQuery plugins that should be enabled by defaulit are enabled. (bin/configure Extensions, JQuery tab. )
I think that you'll get warnings/errors if required plugins are not enabled though.
[23:45]
cz99& of course he's on hols. can you give me hint/list. i've taken the default install, but I've no idea what it SHOULD look like.
if you tell me what to look for I can post it/them
[23:48]
ZogendralHey gac410, I managed to get the deb version working. Something was wrong with my fastcgi, so I just set it to cgi and it's fine now, I'll look into upgrading it in the future [23:49]
cz99all Default themes are ticked, all default plugins are ticked [23:49]
gac410When the page renders there are ADDTOZONE macros (or something like that) that add jquery requirements to the zones.
I recall that the warning is not really an issue. If you were missing something major, configure would tell you .
Let me search tasks / support see if others have asked. If the pages are working, esp. things like twisties, tinymce, etc. you are probably okay
[23:49]
cz99hmmm can't find string 'addtozone' in html src or plugin cfg page .. i think things are generally working; no 'errors' flagged in Configure page [23:52]
gac410I'm guessing that solr-searchbox.js just inserts itself to take control of the regular search box. I don't think you'd have two different search mechanisms for the user.
No the Zone stuff is done in the templates, etc. and generates the <script ... elements into the HTML.
Documented in your System web System/VarADDTOZONE
[23:52]
cz99sounds sensible, but as above (9.31, 10.08) when i do a search and run tcpdump on port 8983, i don't see any pkts going to solr, although it (FW) does some sort of search and returns a page
help... foswiki/System/varaddtozone returns 'Topic 'Varaddtozone' does not exist ' i'm an idiot in regards to wiki; need more detailed steps ... sorry about this
[23:54]
gac410Case sensitive http://foswiki.org/System/VarADDTOZONE
Web names and topic names must start with an upper-alpha letter. And names are case sensitive.
If you visit System/InstalledPlugins, is SolrPlugin enabled, and reporting no errors?
Again case sensitive, ie http://foswiki.org/System/InstalledPlugins
[23:57]

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