#foswiki 2012-04-17,Tue

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

WhoWhatWhen
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/R3YWMQ
[foswiki/Release01x01] Item9526: Uncommitted translations in the last 4 hours - WikiTranslationGnome
[00:17]
***GithubBot has left [00:17]
FoswikiBothttp://foswiki.org/Tasks/Item9526 [ Item9526: Translation work (needed for Pootle auto-checkin - please donĀ“t close) ] [00:17]
.... (idle for 19mn)
gac410Are Meta form names supposed to include the webname? ie: %META:FORM{name="System.FAQForm"}% ... or is %META:FORM{name="FAQForm"}% okay?
Or do I need %META:FORM{name="%SYSTEMWEB%.FAQForm"}%
[00:36]
SvenDowideitextremely hard q - we allow and use forms defined in other webs
and iirc %25SYSTEMWEB%25 works
but its scary
i think pharvey actually poked code for that stuff most recently
[00:38]
gac410But for the portability of the System web, it's "okay" to use the unqalified formname in our shipped topics? (We are inconsistent - some FAQs use the qualified, others not.
er. not portability - rename-ability
I'm about to check in a de-System-ifcation of the System topics converting System, Main and Sandbox references to %SYSTEMWEB%, %SANDBOXWEB% and %USERSWEB%
[00:39]
SvenDowideitnice [00:41]
gac410just minor cleanup stuff. 30 some odd topics have degraded to explicit references. Though there are some cases where % macros can't be used. Can't think of it now. [00:42]
SvenDowideitSvenDowideit is procrastinating again - this time looking into how to get apache.conf to add an expire header to _some_ wiki topic html responses [00:43]
gac410hm. /me wonders if this really ought to be done by the view script [00:45]
SvenDowideitthis is a 1.1.5 install
so 'future' is too late :)
[00:45]
gac410:P [00:45]
SvenDowideitbut it would be good for the System web to not bother requesting System.VarSERCH [00:46]
gac410Esp. since the name is VarSEARCH :D [00:46]
SvenDowideitSvenDowideit selpts
spelts
[00:46]
gac410Ah I remember what the "don't do that" case was. Changing Foswiki::Sandbox::blah() to Foswiki::%SANDBOXWEB%::blah() [00:49]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Sandbox [00:49]
SvenDowideitgiggle [00:49]
.... (idle for 19mn)
oh dear.
changed the Foswiki.pm max-age to 120
and now my wiki is fast.
shame thats a code change
[01:08]
flexibeastWhat's max-age do? [01:09]
SvenDowideitlooks like apache only manages to add to the Cache-Control header, not replace the one our scripts set
it means the browser won't re-request that url for Xsecs
[01:09]
flexibeastAh, okay. [01:10]
gac410On some topics that would be **really** annoying. [01:10]
SvenDowideitI am playing with cheap speedups for a badly performing vm&nfs based install
what i want to do, is set it for view on %SYSTEM%
cos its unlikely to matter in a 2min timeframe
basic win has been to use jqloader to load the 40+ weblist in the sidebar
and if i can then also get it cached, we win bigger
SvenDowideit is adding to the list of stuff i meant to implement years ago
1.2 will be very sweet
there's another possibilty
if we presume that any change to a topic will take 32.6 seconds miniumu
we can set the cache time to that :)
and the only hicups are when someone views, someone else saves, then they refresh too soon
[01:10]
flexibeastSvenDowideit: Still having difficulties getting my form data saved, even after setting things up (i believe) like the f.o Tasks system. [01:18]
GithubBot[foswiki] foswiki pushed 2 new commits to master: http://git.io/0_qnnQ
[foswiki/master] Item9693: Remove explicit webname references - GeorgeClark
[foswiki/master] Item11308: Add support for dates before 1970 - GeorgeClark
[01:19]
***GithubBot has left [01:19]
FoswikiBothttp://foswiki.org/Tasks/Item9693 [ Item9693: Documentation updates for Foswiki 2.0 ]
http://foswiki.org/Tasks/Item11308 [ Item11308: can't parse dates earlier than 1970 ]
[01:19]
SvenDowideitflexibeast, can you make your work public?
or semipublic?
i'm not feeling well enough to guess :)
[01:19]
flexibeastWell, i'll pastebin taskview.tmpl. [01:20]
SvenDowideit:/
that won't let me try things and poke em
but itsastart
[01:20]
flexibeastHere's the last bit of taskview.tmpl: http://pastebin.com/iziDzw3K [01:23]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/kWWR8Q
[foswiki/master] Item11480: Protect input fields from rendering - GeorgeClark
[01:30]
***GithubBot has left [01:30]
FoswikiBothttp://foswiki.org/Tasks/Item11480 [ Item11480: exclamation (!) marker not protected in input values ] [01:30]
SvenDowideitso, what actually happens?
and can yu pastebin the form def topic
[01:34]
flexibeastWhen i click 'Save changes', i'm returned to the topic page for that task (though i want to return to the task list page - have to work on that), but none of the changes have been committed.
Complete wiki text of TaskForm: http://pastebin.com/TPGTBG1V
[01:38]
SvenDowideitmmm, i bet its something simple - cos i can't see it
SvenDowideit ponders the relative merits of insanity
[01:41]
gac410What are your thoughts on blocking rename of System web. Really the right solution should be to use the shell to rename the directory I suspect. [01:43]
SvenDowideitmy thoughts are: why does it break - does it show our rename is dumb? [01:43]
flexibeastSvenDowideit: Heh, i've been thinking much the same thing. :-) [01:44]
gac410Same for users web. It's really easy to break your system. Well the return from rename is trashed because the System web no longer exists.
And we probably shouldn't do a wholesale change of System. I think that's the purpose of using %SYSTEMWEB%
[01:44]
SvenDowideiter
so if it all works fine
[01:45]
gac410If you change configure first, things are **very** broken, [01:45]
SvenDowideitexcept that the return redirect is wrong
then er...
ok - so _taht_ makes sense
[01:45]
gac410Well, no, no skin, no javascript, [01:45]
SvenDowideitdoes sound like both should be done from configure only\ [01:46]
gac410yeah. configure or configure + shell. [01:46]
SvenDowideitmmm, to add more madness for you flexibeast
http://home.org.au/view/Sandbox/TodoDataForm
[01:47]
gac410My assumption is it's probably something that is typically changed during install, not casually done months later. (There was a irc visitor a few weeks ago with a trashed system - some admin accidentally renamed System. [01:48]
SvenDowideitit won't work for you tho
as that wiki is editable only by me
y
given all the bits
i think it'd make sense to prevent it in live mode
[01:48]
gac410It's a minor change. I have it stashed. Doesn't even need a string change.
hm. doIhaveaTask
Yeah Item11736
[01:49]
FoswikiBothttp://foswiki.org/Tasks/Item11736 [ Item11736: Block rename of the System or Users web ] [01:50]
gac410Ah. I'll "fix" it for 1.2, and we can revert if someone doesn't like it. If a user has had a destroyed wiki, it's probably worth preventing. [01:51]
SvenDowideitconsidering that most core devs don't like the rename system/main web feature at all
because its risky
i doubt there will be much objection
[01:52]
AlexisHazelli'm pretty sure it's not at all practical, for obvious reasons, but it would be great if 'Main' was instead called 'Admin' or something. [01:57]
SvenDowideitmost people want it called User [01:57]
pharveyboo [01:57]
gac410It is "supported" ... but YMMV [01:58]
SvenDowideitbut then others want Werkers
eeek pharvey :)
[01:58]
pharveyI've been using Test::Class. It's nifty. I don't know what CDot's complaining about :P [01:58]
AlexisHazelli could work with 'User'.
:-)
[01:58]
SvenDowideitpharvey, Cdot's complaining about having to rewire our brainz
I think in 90% of wiki's i've setup, the Main web is totally hidden
so the name is irrelevant
[01:58]
pharveyhe seemed to have quite a negative opinion of the cpan test libs, but I wonder if that's based on old data [01:59]
gac410AlexisHazell: Rename the Main web and update the UsersWebName setting in LocalSite.cfg. It should work. [01:59]
AlexisHazellSvenDowideit: True. The particular person who found it confusing is someone who's a member of AdminGroup. [01:59]
SvenDowideitremove them '
they're not worthy'
[02:00]
gac410Though you must use the Extension installer then. Unzip of tgz/zip for extensions, and .deb / .rpm I suspect will be confused [02:00]
SvenDowideityes [02:00]
AlexisHazellgac410: Hm, okay, didn't realise i could do that! - Might leave it until i have unbroken other things, though. :-) [02:00]
pharveypharvey created a FoswikiAddressable moose role, adds ->address, ->put_data() & ->get_data() for (almost) any address type :}
committoring soon
[02:00]
gac410Yeah ... it's probably considered a risky configuration AlexisHazell [02:01]
SvenDowideitwe have to use moose?
or what are you actually not saying :p
[02:01]
AlexisHazellgac410: i'm generally using the Extension installer, except for my own plugins i want to check work on my production site.
(Why yes, i do need to package up the plugins i've created so they're available somewhere other than trunk. :-) )
[02:01]
SvenDowideithttp://foswiki.org/Development/IncreaseCacheControlMaxAgeForSystemWeb [02:01]
pharveyun-moosifying the code would only take a few minutes
erm, it's some MigrationScriptsContrib stuff, I'm not mangling core or anything.
[02:01]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/xYSrQw
[foswiki/master] Item11736: Prevent rename of System, Main webs - GeorgeClark
[02:02]
***GithubBot has left [02:02]
gac410The Extension installer will properly map topics.
oh, and pseudo-install would almost certainly choke with renamed Main / System / Sandbox
[02:02]
AlexisHazell*nod* [02:03]
pharveypharvey wishes he could sponsor someone to fix it so configure & pseudo were the same script >:( [02:03]
gac410that would be nice. [02:04]
SvenDowideitmumble [02:05]
gac410bah. We need a non-expanding version of the IF "ingroup" So UI can determine if remove from group makes sense.
"inthisgroup" ingroup that does not expand to subgroups?
[02:18]
SvenDowideitthats hard to grok
if this usecase is rare
then perhaps use IF{"'user' ~ '%GROUPINFO%'
or somesuch
just to make sure we have extra molassis
[02:20]
gac410oh... yeah.. I'll try that. [02:22]
%IF{ "'$USERNAME' ~ '%GROUPINFO{\"%groupname%\" expand=\"0\"}%'" ... That should work. But doesn't :( [02:31]
SvenDowideitAlexisHazell, on thing to try
is to change the save to edit
as that should get filled with your custom form's values too
and add forcenewrev
but even so, i really can't think of anything
[02:31]
AlexisHazellSvenDowideit: i.e. in the 'action' attribute of the form element? [02:32]
SvenDowideithttp://foswiki.org/System/CommandAndCGIScripts#A_61save_61
er, y
[02:33]
AlexisHazellSvenDowideit: Okay, thanks, will give it a try. :-) [02:33]
SvenDowideitlast resourt is to set it up on a public wiki so we can all poke it
mind you - if you're making a cusomt form that contains all the fields
then you can avoid that entirely
oh dear, there's another idea :(
i really need to stop getting distracted from the last 2% of this job - i need to get paid :/
[02:34]
AlexisHazellSvenDowideit: Hm, changing 'save' to 'edit' just sends me to the standard WYSIWYG edit screen for a topic when i click the "save changes" button. [02:35]
SvenDowideity, it should [02:36]
AlexisHazellSvenDowideit: i'd best stop bothering you then!
Thank you for your help thus far. :-)
[02:36]
SvenDowideitbut you should see the values set to what you ask for
its not your fault i'm lettimg myself be distracted :)
i just had another fun idea using jsloader
[02:36]
AlexisHazellHm, there doesn't seem to be a dataform attached to the topic .... wut. [02:36]
SvenDowideitaha - _that sounds like the root of your problem_
cos its not going to save fields unless they should be there
[02:36]
AlexisHazellOddly enough. :-)
Don't understand why dataforms aren't being attached to new tasks though - they certainly were in the past! Obviously i've done something silly.
[02:37]
SvenDowideitok, make sure you have forcenewrev on your form
so you can track what its doing to yuor topic
[02:38]
AlexisHazellSvenDowideit: Okay, thanks, will do. :-) [02:40]
gac410Sven - $USERNAME is understood by %IF ingroup. Does the QUERY syntax understand $USERNAME or is there some other way to test the current user? [02:41]
SvenDowideiti use %USERNAME%
as that gest evaluated
[02:41]
gac410Ah.. okay. [02:41]
SvenDowideiti never understood the point of the $crud
i don't know why cdot felt the need to add another pointless syntax
especially as its hard to know what $something is
[02:41]
kip3fit'$ confu$ing [02:42]
SvenDowideitit could be a url param, or a variable or who the f knows [02:42]
kip3fit actively pissed me off when I figured out what it meant. It lets you save ... one character.
and it seems like it's doing something different than %
[02:43]
SvenDowideitor more for urlparams
it is
it sources the values from 3 different places iirc
ie, its dangerous and a ugly
or to mis-quote crawford - expedient
SvenDowideit gets hit in the face by patternskin 'expedience'
[02:43]
pharveyI guess the 'nice' thing is that if the variable being tested contains ", you won't break your IF macro's string [02:48]
SvenDowideitreally? [02:48]
gac410gac410 is about to add inthisgroup Perl makes SO much more sense than our IF syntax. [02:48]
SvenDowideitgac410, that name does not evoke the meaning your giving it [02:49]
pharvey%IF{"'%FOO%' ~ '*blah*'" can break if %FOO% expands with either an ' or " [02:49]
SvenDowideitpharvey, that sounds like a bug to me
(so ner)
[02:49]
gac410This should be so simple I agree. Just **really** frustrated, not serious [02:49]
pharveySvenDowideit, fixing that bug wants... Foswiki::DOM :P [02:49]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::DOM [02:49]
SvenDowideitall the more reason to work out ways to make it simpler
SvenDowideit wishes upon a fish
[02:49]
pharveygac410, sorry - I missed something - what're you doing?
pharvey thought ingroup was useful
[02:50]
SvenDowideithe wants a non-expanded ingroup [02:50]
gac410ingroup expands the group. I need to know if the user is in THIS group - unexpanded.
So I can add a "remove me" button.
[02:50]
pharveyoh.
containedingroup
you're right, we don't have an op for that
[02:50]
SvenDowideitinunexpandedgroup
and we probly shouldn't
as its probably not needed often enough to justtify it
[02:51]
gac410well as SvenDowideit says, It **should** be easy to use the GROPUINFO macro. But /me doesn't grok our if syntax [02:51]
SvenDowideitas it should be possible to use %GROUPINFO% or something
why not?
its a really simple syntax - use lots of '%MACRO%'
make sure you have the ''s
[02:51]
pharveyif in-line vs META:PREFs were synchronised, you could just do %IF{"'Somebody' IN 'SERSWEB%.GroupGroup'/preferences[name='GROUP'].value"}%
if in-line vs META:PREFs were synchronised, you could just do %IF{"'Somebody' IN '%USERSWEB%.GroupGroup'/preferences[name='GROUP'].value"}%
[02:52]
SvenDowideitno [02:52]
gac410why not? 'cuz every time I start down the nested hell of single, double \" $quots and ... me goes into lalaland [02:52]
SvenDowideityou can't
pharvey, that presumes topicmapper
which is rubbish
[02:52]
pharveytrue :)
gac410, can you get a list of all members of a group? That assumes the group is of a trivial size I guess
[02:53]
gac410%IF{ "'%USERNAME%'~'%GROUPINFO{\"%groupname%\" expand=\"0\"}%'" That **should** work. %groupname% is a macro parameter with the groupname.
yes %GROUPINFO{"MyGroup" expand="0"}%
[02:54]
SvenDowideiter no [02:54]
pharveygac410: ~ needs wildcards around the ends of the string you want fuzzy matched, so sadly, that will only match if the group contains only one person, %USERNAME% [02:54]
SvenDowideityou want the GROUPINFO to expand before the IF
so you do NOT want to escape its "s
escaping is to delay processing
you need the processing to do the inner first
[02:54]
pharvey%IF{"'%USERNAME%' IN '%GROUPINFO{"%groupname%" expand="0"}%'" [02:55]
gac410er... I thought \" was needed to prevent the " inside groupinfo from terminating the surrounding quotes. [02:55]
SvenDowideitno
we process the inner things first
[02:55]
pharveyun-delayed macros are expanded inside-out, left-to-right
IF doesn't evaluate %GROUPINFO, because GROUPINFO is already expanded by the time IF is expanded
~ is kinda crappy for checking if something is in a list. You really need to use IN or use =~'\bThing\b' instead
otherwise ~'*Bob*' might match 'Jim,Joe,JimBob'
[02:56]
gac410Yeah. I was realizing that but trying to get *anything* to match my group with one user. :( [02:58]
pharveyah, gotcha. Understood
I feel as if %IF{"'%USERNAME%' IN '%GROUPINFO{"%groupname%" expand="0"}%'" doesn't work, there's a bug
then there's a bug*
oh, wait.
IN won't work
[02:58]
gac410It seems to break the rest of the group template.
Now I'm getting the group names without linking. :(
[02:59]
pharveyIN would only work if you had IN ('Jim', 'Joe', 'JimBob') [03:00]
gac410er Member names [03:00]
pharveyso it probably needs to be %IF{"'%GROUPINFO{"%groupname%" expand="0"}%'=~'\bSERNAME%\b'" then=""...
so it probably needs to be %IF{"'%GROUPINFO{"%groupname%" expand="0"}%'=~'\b%USERNAME%\b'" then=""...
[03:00]
gac410or use format="'$username'" separator="," ? [03:01]
pharveythat could work to
IN likes to take a list
i.e. wrapped in ()
but that might be trunk-only
pharvey forgets :(
[03:01]
gac410Well this is trunk only. Do the list entries need to be enclosed in single quotes? It's breaking the outer single quoted if
and this doesn't match.
%IF{"'%USERNAME%' IN '(%GROUPINFO{"%groupname%" expand="0" format="$username" separator=","}%)'" then="MATCH" else="NOMATCH"}%
So I have the () but not the 'user',
(user1,user2)
[03:06]
pharveythe list items are themselves QuerySearch expressions, so if they aren't quoted they'll be treated as Formfield names to examine [03:07]
gac410So how do I nest single quotes?
escape \' ?
[03:07]
pharveyI think so, yes [03:07]
gac410Missing operator in ''JoeUser' IN '('JoeUser')'' [03:08]
AlexisHazellPossibly relevant? i have a SEARCH that goes: %SEARCH{"'%GROUPINFO{"StaffGroup" separator=" "}%' =~ info.author" [03:09]
pharveygac410: hang on, I'll try to make it work [03:09]
gac410Don't let me distract you too badly pharvey [03:10]
pharveywell, I just want to make sure I'm not telling you complete lies :) [03:10]
gac410I'll try the '\b%USERNAME%\b variation [03:10]
pharveygac410: http://trunk.foswiki.org/Sandbox/TestTopic44761 seems to be running without syntax error
but trunk.foswiki doesn't have any groups set up :)
[03:11]
gac410thanks. ... trying
yeah - seems to work. Thanks
[03:12]
pharveyhooray! :)
pharvey adds it to QueryCookBook
[03:13]
gac410Cool - I have a new GroupViewTemplate that adds a "Join BlahGroup" / "Leave BlahGroup" button if the logged in user can change the group.
thanks SvenDowideit pharvey
It's a generic form of the "Make me an admin button"
[03:20]
pharveycool [03:27]
gac410Can also add it to your leftbar. %INCLUDE{"GroupViewTemplate" section="manageself" groupname="AdminGroup"}% [03:28]
........ (idle for 37mn)
AlexisHazellSvenDowideit: Hm, found bug with HomePagePlugin (will lodge a report) - seems that it takes the rendered text of the specified home page as the page to redirect to.
SvenDowideit: So MyWeb.AlexisHazell gets rendered as AlexisHazell, and then HomePagePlugin tries to direct me to Main.AlexisHazell.
SvenDowideit: Which is fine if i have access to that page, but bad if i don't. In particular: None of my users have access to Main.WebHome, so when i've specified MyWeb.WebHome as their home page, they're getting access denied errors when it tries sending them to Main.WebHome.
[04:05]
SvenDowideitso gac410 [04:21]
gac410Yes SvenDowideit? [04:22]
SvenDowideitdid you realise that we send the entire topic text / html when we hit cancel on an edit?
i'm wondering if we're dumb, or just stupid :/
[04:22]
gac410You mean back in... doesn't surprise me. [04:22]
SvenDowideiti can't work out why canceling an action that reserves a lease using GET should use a POST
i had a user complain that they got a 500 error cancelling an edit
[04:23]
gac410It was the same issue with the edit settings. But we were smarter on that one. We saved anyway.. [04:23]
SvenDowideitit turned out that they had added text to the textarea, and that it thus caused the payload to be greater than fcgi was set up to accept (defaults to 128k now)
i was very glad to be at home and not talking to them face2face
as my reaction was not very nice :)
[04:24]
gac410yeah ... if you use attachments, that fcgi size limit is really too small. [04:25]
SvenDowideitits too small for real topics too [04:25]
gac410At least they were not on 1.1.4, canceling a bit edit settings. :D
s/bit/big/
[04:25]
SvenDowideitluckily they went from twiki 2003 beta to foswiki 1.1.5 :)
with a 2 week sojurn of 1.1.4 plus patches
oh, another real q
do we actually have a practical use for FOSWIKISESSION cookies for guest users?
given that the twistie stuff is in a different cookie
[04:25]
gac410tbh I really don't know. [04:27]
SvenDowideitexcellent :)
i'll toss that into a feat req for 1.2
pharvey, thats important for you too really
[04:27]
gac410I've never delved into the sessions stuff much at all. [04:27]
SvenDowideiti brought my server load down by using NO_SESSION in my apache conf
basically - if no cookie, don't set one
went from 10,000 session files to 10
[04:27]
gac410cool [04:28]
SvenDowideitoh, 68 now ): [04:28]
gac410I suspect we could help out f.o with a change like that. [04:28]
SvenDowideitthats 68 people in the org that actually use foswiki
not bad i think
[04:28]
gac410AntiWikiSpamPlugin just blocked ElvisHwang from saving some crap into the Blog web. [04:31]
SvenDowideithehe - should add an option to it to disable the user, log them out and call his parents [04:32]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/H9ZnAA
[foswiki/master] Item11579: Generalize the AdminGroupToggle. - GeorgeClark
[04:32]
***GithubBot has left [04:32]
FoswikiBothttp://foswiki.org/Tasks/Item11579 [ Item11579: Implement the AdminToggle button ] [04:33]
gac410We've had 3 recent registrations that have logged in, and made one blocked save of apparent spam.
gac410 wonders if I should just delete them
[04:34]
SvenDowideitnite :) [04:38]
***gac410 has left [04:38]
.......... (idle for 45mn)
SvenDowideitForm Definition Main.System.WikiApplication missing
nice bug!
[05:23]
......... (idle for 42mn)
AlexisHazellSvenDowideit: Re. HomePagePlugin issues. Nm. For some reason my latest tests show it now working as expected.... [06:05]
SvenDowideitharumpf.
probly a good idea to docco how you use it tho
like adding a unit test if possible (i don't recal making any, but as cdot added it to core, he must have..)
[06:05]
AlexisHazellSvenDowideit: Hm, will make a note to have a think about how to do so. [06:06]
SvenDowideitgrin [06:06]
AlexisHazellQuestion right now is why my TaskForm isn't getting attached to new task topic pages by default. [06:07]
SvenDowideityou're not setting formtemplate=?
i'm building the wiki apps builder for 1.2 atm :)
[06:08]
AlexisHazellSvenDowideit: Well, i was, by setting formtemplate=TaskForm in addition to topictemplate=TaskTemplate. [06:09]
SvenDowideiter
that won't work
its tempaltetopic for the topic text
[06:09]
AlexisHazellWell, then i took out formtemplate. [06:09]
SvenDowideitand formtemplate for the form definition
thats the wrong one to take out :)
i wonder if i can get away with this feat req (typing)
[06:09]
AlexisHazellWell, TaskForm /is/ the form definition. [06:10]
SvenDowideityes, but the form part is _not_ used when you set templatetopic [06:10]
AlexisHazellSo i should just remove templatetopic=? [06:11]
SvenDowideitunless you do the 'wrong thing' (which i used to do until george told me how wrong it is
depends
templatetopic= is for the text portion (plus a little mess
formtemplate is to add a form to a topic
and both param names are shite.
[06:11]
AlexisHazellWell, i don't want any text attached to the task topic; i just want the data in the form attached to it. [06:13]
SvenDowideitok, then just formtemplate= [06:13]
AlexisHazellBut, that's not working. [06:14]
SvenDowideitdon't 'but' me :p [06:15]
AlexisHazell*chuckle*
%BUTTON{"Create new task" icon="add" target="%SCRIPTURLPATH{edit}%/Tasks.TaskIDAUTOINC0001?topicparent=;formtemplate=TaskForm;template=taskview"}%
[06:15]
SvenDowideitargh!
why are you not doing
<input type="hidden" name="topicparent" value="%SYSTEMWEB%.WikiApplications" />
<input type="hidden" name="formtemplate" value="%SYSTEMWEB%.WikiApplications" />
<input type="hidden" name="templatetopic" value="%SYSTEMWEB%.WikiApplications" />
oh, and that template=taskview might be ew
http://foswiki.org/Development/RenameTemplateTopicAndFormTemplateParams
if you have ideas ..
[06:16]
AlexisHazell*nod*
This is breaking my head, i'm afraid.
[06:17]
SvenDowideithttp://foswiki.org/Tasks/Item11766
has an eg of a topic createion html form that i'm using to populate a topic
and it works
except that you can't set web the way i want
[06:18]
AlexisHazellWith 1.1.4? [06:19]
SvenDowideitso i added yet another feat req
should work, yes
this is ancient functinoality
your problems are mostly going to be typing issues :(
[06:19]
AlexisHazellSo where you have
<input type="hidden" name="formtemplate" [etc]
i should have
<input type="hidden" name="TaskForm" [etc]
?
[06:21]
SvenDowideitno
TaskForm in the value, not the name :)
[06:22]
AlexisHazellSo in that example, WikiApplications is both the template topic and the form def? [06:22]
SvenDowideity, i am using the topic to contain text as well as dataform stuff [06:23]
AlexisHazellOkay. [06:23]
SvenDowideitas this is actually the begining of the wizard to create dataform definition topics [06:23]
AlexisHazellSo, now the problem is, do i have to create a form to replace my "Create new task" button? [06:24]
SvenDowideithuh? [06:25]
AlexisHazellWell, i have a TaskList page. [06:25]
SvenDowideiter, which 'Create new task' button? [06:25]
AlexisHazellThe one i copied and pasted above. [06:25]
SvenDowideitimo no
you can copy what i did in the Tasks web
[06:25]
AlexisHazellIt's a button on the TaskList page so that someone can click on it and get taken to a new page where they can fill in the fields and then save the data. [06:26]
SvenDowideitwhich is also what i did in http://home.org.au/view/Sandbox/TodoDataForm
see the section called createpopup
that uses the already existing form definition and the normal edit tempalte to make a popup that you can create new or edit existing
you need 2 topics to make this eg work on your wiki:
http://home.org.au/view/Sandbox/EditTodoDataForm?raw=on
and
http://home.org.au/view/Sandbox/TodoDataForm?raw=on
this is what i'm building into 1.2, and what i am/was writing up in the foswiki book i started
that second topic defines the todo dataform (and allows you to modify it using EDITTABLE) and a few simple-ish views into the todos
whereas the edit templ is there to simplify rendering - i expect to ship that in foswiki
[06:26]
AlexisHazellOkay, i think we might be speaking across each other here (which is probably my fault).
i have a button,
%BUTTON{"Create new task" icon="add" target="%SCRIPTURLPATH{edit}%/Tasks.TaskIDAUTOINC0001?topicparent=&formtemplate=Tasks.TaskForm&template=taskview"}%
[06:31]
SvenDowideiti'm basically trying to get you to read the eg i made that does whatyou're trying to do [06:32]
AlexisHazellThis is /not/ inside a <form> element. [06:32]
SvenDowideitbut much simpler than what you're doing
ok - then it should just work
but template=taskview must be wrong
as i presume you're not trying to view when you're editing..
[06:32]
AlexisHazellWell, i'm basically wanting to create a custom display for editing form fields. [06:33]
SvenDowideiti'm doing exactly that same thing in the createpopup definition
* %JQREQUIRE{"ui::dialog, ui::button"}% <a href='%SCRIPTURL{edit}%/Sandbox/TodoAUTOINC001?template=Sandbox.EditTodoDataForm&formtemplate=Sandbox.TodoDataForm&_t=%GMTIME{"$day$mon$hour$min$sec"}%&redirectto=%BASEWEB%.%BASETOPIC%' class='jqUIDialogLink {cache:false}'>%JQICON{"create"}% add New Todo</a>
and doing the redirect back to the tasks list the same as you want :p
[06:33]
AlexisHazellWell, i haven't got to the redirect bit, because i'm stuck on this major issue. [06:34]
SvenDowideitdoes..... it... work when you remove the template= bit
or, have you read the eg i keep throwing at you :p
as the edit template requires lots more easy to get broken bits
[06:35]
AlexisHazellAnd, sorry, but i'm really struggling to understand your implementation, so i'm not going to rip out the minimalist setup i have so far and replace it with yours without actually understanding how yours works (which i really don't).
So, for a start, let me remove that &template=taskview bit ....
So, when i do that, i get taken to a new topic with a dataform attached to it.
Which is clearly what i want.
Except
Instead of sending users to the default editable "Topic data" form, i want them to be sent to a custom page, where they can similarly edit the fields and save the result.
[06:36]
SvenDowideity, i get that, but first i needed to know if the simple thing that you were reporting as the problem was indeed a problem :) [06:39]
AlexisHazellSo is that possible? [06:39]
SvenDowideityes, but it means you need to know the TMPL stuff [06:40]
AlexisHazellSorry, which problem?
Okay, so that's why i created taskview.tmpl
So how can i send users to taskview.tmpl if not via template=?
[06:40]
SvenDowideitthat might work - i don't know cos i've not used template= for a long time
i've been using AutoView based templates = so TaskFormViewTemplate and TaskFormEditTemplate
but nm
[06:41]
AlexisHazellWell, if it's /possible/ for it to work, i don't know how to get it to work. :-) Because with &template=taskview added, a dataform doesn't get attached to the new topic page. [06:42]
SvenDowideitdoes that html render at all? [06:42]
AlexisHazell*nod* i tried that originally, but also had trouble saving data there.
The HTML for taskview.tmpl?
[06:42]
SvenDowideity [06:42]
AlexisHazellIt does indeed. [06:42]
SvenDowideitok, so you might be missing the other important values in the form? [06:43]
AlexisHazellYou mean, my .tmpl doesn't have all the values specified in the form def? [06:43]
SvenDowideitno
your html form needs to contain all the info that you want to use to create the topic - as its not created yet
so you need inputs for formtemplate
[06:43]
AlexisHazellAll the form data? [06:44]
SvenDowideitno
as in
<input name="formtemplate" value="TaskForm"
so that save knows you want a taskform there
[06:44]
AlexisHazellAnd that should be inside the <form> element in my .tmpl? [06:45]
SvenDowideitSvenDowideit is still trying to guess too much about what you have
everything that you want to pass from the BUTTON via edit to save needs to be in the form
else save does not hear about it
[06:45]
AlexisHazellSo i need to specify that information in two different places, i.e. in the URL in the button, and in the <form> element as well? [06:46]
SvenDowideitno
one will do
ie, the tmpl could use URLPARAM
or hard code it and thus not need it in the BUTTON
as your tmpl defines what formfields you're seeing, i'd hardcode in the tmpl
[06:46]
AlexisHazellWith hidden <input> elements? [06:47]
SvenDowideityup
or labels if you want people to know :)
gads, the days gone!
[06:48]
AlexisHazellHm, okay, think my tiny mind is starting to wrap itself around what you're saying .... i'll try all that now. [06:48]
SvenDowideitgrin
i'm wondering why you didn't view source on the generated edit html form , paste that and then hack to suit
cos i do :)
[06:48]
AlexisHazellWell, i tried that as well. :-)
Or at least some thereof.
[06:50]
pharveySvenDowideit: In our case, I want guests to have a session, but I can see that most people probably wouldn't. [06:54]
SvenDowideitpharvey, can you tell me what for? [06:54]
pharveysome wiki apps which use the session to store state
across different screens.
[06:54]
SvenDowideitare you sure they use the FOSWIKISESSION [06:55]
pharveywhat else would they use? [06:55]
SvenDowideitand not the FOSWIKIPREFs cookie [06:55]
pharveythey're not using the prefs cookie. [06:55]
SvenDowideitthere's a major difference [06:55]
foswiki_irc0shouldn't "Copy topic" on "More topic actions" also take over the parent / child setting? [06:55]
SvenDowideitfoswiki_irc0, doesn't it? [06:55]
foswiki_irc0on my latest 1.1.5 it doesn't [06:56]
SvenDowideitok - pharvey if you're totally sure that it doesn't work ..
foswiki_irc0, i'd raise a task - atm, i'm about to go :/
[06:56]
pharveyhttp://foswiki.org/System/Macros#VarSESSIONVAR [06:56]
SvenDowideitbut y, i'd think that was a bug [06:56]
foswiki_irc0okay, thanks sven [06:57]
pharveySorry, http://foswiki.org/System/Macros#VarSESSIONVARIABLE [06:57]
SvenDowideitpharvey, i'm basically wanting to make sure that thigns actually work as docco, cos it doesn't quite feel that way [06:57]
pharveyI've tried to access the prefs cookie from TML before. I really wish we could, I would actually rather do it that way than use the CGI session. [06:57]
SvenDowideitthat docco is vague as hell
it does not preclude us from changing it to use the prefs cookie..
[06:58]
AlexisHazellNope, adding a hidden <input> element didn't work. :-/ [06:58]
SvenDowideittime to sho the tmpl file too :) [06:59]
pharveyNo, but I worry that somebody's plugin might go funky if we changed it. [06:59]
SvenDowideitthat docco makes no sense
it talks about ' The users ID is in the AUTHUSER session variable, and is read-only
'
which is not mentioned in SESSION_VARIABLE at all
[06:59]
AlexisHazellThe .tmpl file is the one i pastebin'd before; i'll pastebin it again.
SvenDowideit: http://pastebin.com/MeyKnAV7
[07:00]
pharveyThe code eventually does a return $this->{_cgisession}->param($key); [07:02]
SvenDowideitAlexisHazell, this is a _view_ tmpl
tho it should still work
[07:02]
AlexisHazellOkay, so how do i make it an edit template that contains all the usual FW headers and sidebars?
(Also note the BUTTON in that form isn't the button i was referring to above - the one i was referring to above is on the TaskList page.)
[07:03]
pharveyCookies would be much better; setting session variables from JS is clunky and chatty. Temi started to write a plugin which provided a macro that could expand any cookie value, but I stopped him is it would be annoying to audit for security and not accidentally expose http-only cookies to JS. [07:04]
SvenDowideityes AlexisHazell i still cannot see why your thing won't work :(
maybe pharvey or CDot can see the problem - i'm kinda snowblind
[07:05]
AlexisHazellSvenDowideit: Well, in any case, thanks for spending so much time on helping me with this! [07:06]
SvenDowideitits frustrating, as i've built several of these in the last few days [07:07]
pharveyI haven't been following, is this the "new topic + templateform but won't show a form to edit" problem? [07:07]
SvenDowideitand so its really easy :(
i think it might be best to re-state the issue
[07:07]
CDot.... and save CDot having to trawl the logs :-) [07:07]
SvenDowideitits also changed a bit since [07:08]
pharveyfoswiki.org/bin/edit/Sandbox/MyShinyNewTopic?formtemplate=Tasks/ItemTemplate seems to work [07:09]
SvenDowideitthats not at all what AlexisHazell is trying to do
she wants to make a custom html form to use in a custom edit tempalte (i think)
and http://pastebin.com/MeyKnAV7
[07:09]
pharveyholy krap. vim understands mouse inputs - I can resize my vsplit with clicky mouse buttons and everything :) [07:10]
SvenDowideitshows the html form
but when you hit save on that form, it looses its form
SvenDowideit has to go - good luck
[07:10]
AlexisHazellSvenDowideit: Thank you! [07:11]
pharveyAlexisHazell: I'm a bit busy atm, but FWIW here's an edit template Paul.A has been working on: http://wiki.trin.org.au/TaxonProfile/Definitions/FungiMap_Taxon_EditTemplate?raw=on [07:12]
AlexisHazellpharvey: Thanks, i'll check it out. :-) [07:12]
pharveyit might not help you; it's built for an NatEdit wiki
AlexisHazell: I notice that in SvenDowideit's pastebin, you've got an action="url...?foo=bar;formtemplate=blah" which is in addition to a redundant <input type="hidden" name="formtemplate" tag
[07:12]
AlexisHazellYes; putting in just one or the other hasn't seemed to work.
Neither has putting in both though, so. :-)
[07:16]
CDot"vim understands mouse inputs" - wow. Welcome to the 1980's, vim! [07:16]
pharveyCDot, it may have done so for a long time, it's just that nobody told me :P
AlexisHazell: and the HTML is well-formed? Sometimes this madness occurs when the browser has to guess what bad HTML is trying to say
[07:17]
AlexisHazellWell, i could certainly have accidentally removed something whilst playing around! - Will double-check what i've got. [07:18]
***ChanServ sets mode: +o MichaelDaum [07:19]
...... (idle for 28mn)
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/wF3mNA
[foswiki/master] Item11761: typo - MichaelDaum
[07:47]
***GithubBot has left [07:47]
FoswikiBothttp://foswiki.org/Tasks/Item11761 [ Item11761: Add HomePagePlugin to core ] [07:47]
CDotMichaelDaum: thanks, hmoeboy! [07:52]
MichaelDaumyour are welcmoe [07:53]
..... (idle for 24mn)
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/wkZ17w
[foswiki/master] Item11761: don't try to normalize an undefined topic - MichaelDaum
[08:17]
***GithubBot has left [08:17]
........... (idle for 51mn)
CDotCDot really, really hates websites that shout at him. Embedded audio clips are a sure-fire way to lose my attention, really, really fast. [09:08]
........... (idle for 50mn)
AlexisHazellHm, i followed the instructions to change a user's WikiName; but trying to reset their password just now, i'm getting a message "The entry for user WikiUser? was missing in the password system." [09:58]
HenroRitchieHi - MichealDaum are you available? [10:01]
ModAcOstHave you renamed the user's topic correctly? Wondering why there is a ? behind WikiUser. [10:12]
AlexisHazellModAcOst: i had; but the problem was i hadn't edited the .htpasswd file properly. Thanks though! [10:26]
...... (idle for 28mn)
KlausMannHy, someone can help me with this: Change the font size within a table cell ? [10:54]
....................... (idle for 1h53mn)
foswiki_irc4hallo
jemand deutsches hier?
[12:47]
padraig_lennonping MichaelDaum [12:55]
MichaelDaumHi [12:55]
padraig_lennonHi Michael.. How are things? [12:55]
MichaelDaumsuffering from brain-slowness [12:56]
foswiki_irc4any german here [12:57]
padraig_lennonHave a quick question for you... I'm trying to use a textboxlist working with GROUPINFO.. Its working and works well but there is one thing stumping me.. Was just wondering how I filter using GROUPINFO.. i.e. when I type Padraig I should only get PadraigLennon option. At the moment it shows all users regardless
Don't suppose you have an example? I suppose I could use a SEARCH but GROUPINFO is so much easier..
[12:57]
MichaelDaumdid you take a look at System.JQueryAjaxHelpers ?
and when GROUPINFO doesn allow to filter, use FORMATLIST from FilterPlugin
[12:58]
padraig_lennonHeres what I have: <verbatim>%STARTSECTION{"team"}%<literal>%IF{lc(name)~lc('%URLPARAM{"term"}%*'%GROUPINFO{"%TEAM_GROUP%" header="[" format="\"$wikiname\"" footer="]" separator=","}%</literal>%ENDSECTION{"team"}%</verbatim>
Crap... Wrong one.. Here is the right one..
<verbatim>%STARTSECTION{"team"}%<literal> %GROUPINFO{"%TEAM_GROUP%" header="[" format="\"$wikiname\"" footer="]" separator=","}%</literal>%ENDSECTION{"team"}%</verbatim>
I'm using it in a form btw
Here is the form definition ... | Assigned | textboxlist | | %SCRIPTURL{"view"}%/%BASEWEB%/TeamAutoCompleteLists?skin=text;section=team | Who is assigned to the task | H |
[12:59]
MichaelDaumyea well there's no filtering in there at all: it always returns all of the group doesnt it [13:01]
padraig_lennonSo I wrap the GROUPINFO using FORMATLIST? [13:02]
MichaelDaumthat's what I'd propose [13:02]
padraig_lennonok.. Will look for an example.. Thanks [13:02]
....... (idle for 30mn)
ok.. I'm close.. %FORMATLIST{"$percntGROUPINFO{\"%TEAM_GROUP%\" format=\"$wikiname\"}$percnt" header="[" format="\"$1\"" separator=", " footer="]" }% gives the list but what pattern match would I need? Trying pattern="%URLPARAM{"term"}%*" at the moment to no avail [13:32]
....... (idle for 30mn)
ok.. This is working.. Just pasting for reference if anyone finds it useful <verbatim>%STARTSECTION{"team"}%<literal> %FORMATLIST{"$percntGROUPINFO{\"%TEAM_GROUP%\" format=\"$wikiname\"}$percnt" header="[" format="\"$1\"" separator=", " include="%URLPARAM{"term"}%.*" footer="]" }%</literal>%ENDSECTION{"team"}%</verbatim>
Thanks for the pointers Michael..
[14:02]
..... (idle for 23mn)
HenroRitchieHi Guys - I am struggling with a table problem
column 1 - quantity, column 2 - unit price, column 3 - qty * unit price. I use SEARCH to populate the table and SPREADSHEET plugin to do the calculations. This works fine
now I need to add all the totals together for each line item and keep getting an EOF error
[14:25]
gac410HenroRitchie: EOF error in the logs, or something displayed. Could you paste (or pastebin if more than a line or two) [14:36]
.... (idle for 18mn)
***HenroRitchie has left [14:54]
..... (idle for 24mn)
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/pFjTTQ
[foswiki/master] Item9693: typo - MichaelDaum
[15:18]
***GithubBot has left [15:18]
FoswikiBothttp://foswiki.org/Tasks/Item9693 [ Item9693: Documentation updates for Foswiki 2.0 ] [15:18]
.... (idle for 19mn)
foswiki_irc4my googeling efforts have not found me a hint on how to automate a wiki page update? I have code that generates html documentaion that i would like to post to my wiki page as part of the build. [15:37]
gac410The wiki topics are text files, There are a couple of ways to accomplish what you want. Write to a file in the Web that can be %INCLUDE% in a topic, Update the topic directly by modifying the txt file, or the "right way" is to use the Foswiki API's to update the topic
The Statistics script ( lib/Foswiki/UI/Statistics.pm) uses the Foswiki::Meta API to save topics. The Foswiki::Func methods are probably preferred though. Rather than writing a new script like Statistics did, using the rest script is a more modern alternative.
[15:39]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [15:43]
foswiki_irc4thank you i will take a look into the Foswiki::Meta. Is there a good way to automate an attachemt upload for the %include% option? [15:54]
gac410If you have access through file system, nfs, ssh/scp, ftp, etc, you can just save the file. If you want to use http to do an attach, take a look at BuildContrib for examples. The Extension upload process automates uploading an attachment to foswiki. [15:57]
marian_banicahow i can switch default skin to PatternSkin? [16:10]
gac410marian_banica: I don't understand, the default is pattern? [16:11]
marian_banicai mean i want to switch from default skins with that one that is on foswiki.org [16:23]
............ (idle for 59mn)
what is the skin used on foswiki.org? [17:22]
gac410marian_banica: PatternSkin, with the FatWillyTheme
You can see the settings at Foswiki:Main/SitePreferences
[17:22]
FoswikiBothttp://foswiki.org/Main/SitePreferences [ SitePreferences ] [17:23]
.... (idle for 15mn)
marian_banicai want to change the menu from PatternSkin FatWillyTheme and i don't see where i have to put this code http://foswiki.org/System/PatternSkinThemeFatWillyNavigation [17:38]
gac410looking - I can't recall. :(
Check out the Main.SitePreferences. Navigation: Set PATTERNSKIN_NAVIGATION_TOPIC = System/PatternSkinThemeFatWillyNavigation
You can copy the Navigation topic to one of your own, and then set the topic in the preferences.
[17:41]
............................. (idle for 2h20mn)
ArthurClemensHas anyone tried mongodbplugin on FW 1.1.5? Is it possible? [20:05]
***ChanServ sets mode: +o OliverKrueger [20:06]
...................... (idle for 1h47mn)
harlanIs there a page about upgrading to 1.1.5? [21:53]
........... (idle for 50mn)
gac410hi harlin, From which release?
oops. Sorry, harlan,
[22:43]
harlanno worries - 1.1.3 and 1.1..4 [22:44]
gac410are you using zipfiles or debian?
For the normal zipfile / tgz upgrade, see Foswiki:Download/FoswikiRelease01x01x05#Installation
[22:44]
harlanI probably unpacked a tarball - FreeBSD and I install FW separately and also install and pdate from the ports tree, just to maintain the dependencies.
OK, thanks!
[22:46]
FoswikiBothttp://foswiki.org/Download/FoswikiRelease01x01x05#Installation [ FoswikiRelease01x01x05 ] [22:46]
gac410You *should* be able to just expand the upgrade package.
Not sure if freebsd has the --strip-components option for tar, which makes it a bit more complex.
[22:46]
harlanthat's my goal, and I'm also looking at using VHC more to make this even easier in the future. [22:47]
gac410You could also look at the foswiki-upgrade-check shell script. That's what I use to upgrade Foswiki.org [22:47]
harlanwill do - thanks! [22:47]
gac410Foswiki:Support/HowDoIUpgradeSafelyACustomizedFoswikiInstallation (I use a modified version of that script for foswiki.org updates. [22:48]
FoswikiBothttp://foswiki.org/Support/HowDoIUpgradeSafelyACustomizedFoswikiInstallation [ How do I safely upgrade a customized Foswiki installation ] [22:48]
harlanlocal-specific mods, or something else? [22:49]
gac410With that script, you use the full package, not the upgrade, And you need a copy of the original installfile unzipped. [22:49]
harlanI usually either unpack a full version (in the -1.x/ subdir) and then copy from the old directory,, or copy the old directory to the new name and overlay the upgrade stuff. [22:50]
gac410I think i tweaked it to handle deletes a bit differently,etc. Colas took some of my changes. but I never went back to merge things. Also added a simple diff option rather than a 3-way merge, which prompts for a "keep old / use new / merge" option.
There are not a lot of structural changes from 1.1.3 -> 4 -> 5. Probably the biggest javascript changes are with tinymce and JQuery.
[22:50]
harlanI leave that stuff alone :) [22:51]
gac410hm. Looking at colas version, I think my version also has an option to remove files that are in the old distribution, and missing from the new distribution. [22:54]
harlanthat sounds useful... [22:54]
gac410yeah - some of the tmce versions removed a bunch of files. [22:55]
harlanI have 2 opportunities to test these things out, if that would be useful.. [22:56]
gac410Probably best to stay with colas's version attached to that topic. Mine is checked in to svn in tools, but not distributed. (And needs a refresh... just saw a missing patch) [22:59]
harlanI cabn do that too. [22:59]
gac410We really ought to implement it in perl sometime, so it could actually be run from configure - cross-platform. [23:01]
I've compared Colas current version and the one I use, which was based on a much older version of his script. Big differences. [23:15]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/H_f-Qg
[foswiki/master] Item11770: Pick up changes from foswiki.org - GeorgeClark
[23:17]
***GithubBot has left [23:17]
FoswikiBothttp://foswiki.org/Tasks/Item11770 [ Item11770: Updates needed for foswiki-upgrade-check used to upgrade foswiki.org ] [23:17]
...... (idle for 29mn)
***flexibeast has left "PING 1334706389" [23:46]

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