#foswiki 2016-03-01,Tue

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

WhoWhatWhen
gac410Anyone here use BulkRegistration ??? [04:07]
......................... (idle for 2h0mn)
***gac410 has left [06:07]
................. (idle for 1h21mn)
ChanServ sets mode: +o MichaelDaum [07:28]
...................... (idle for 1h48mn)
BenjaminMartin has left [09:16]
.............................................. (idle for 3h47mn)
ChanServ sets mode: +o CDot [13:03]
ChanServ sets mode: +o CDot [13:10]
......... (idle for 42mn)
ChanServ sets mode: +o gac410 [13:52]
.......... (idle for 47mn)
gac410Hey all ... anyone use Bulk Registration? There is a broken feature I think I'd rather delete than fix.
There is an "overwrite user topic" flag which I can't see how it ever worked - even looking back in the 1.0.x code.
[14:39]
......... (idle for 43mn)
***BenjaminMartin has left [15:23]
jastor just remove that checkbox?
I think we use bulk reg occasionally
[15:33]
gac410Yeah, after several cycles of trying to fix the overwrite, I think it's best just to nuke it.
I'm giving bulk registration a facelift. Next - Clean up the report, and make it have a form that can reset the passwords of the users just registered.
[15:34]
.................................... (idle for 2h55mn)
MichaelDaum_: ... do you have a moment. we are having json github integration issues suddenly on your new extensions
The perl script that sets the hooks is failing with "For 'properties/active', 1 is not a boolean. at /home/git/foswiki-github-hooks.pl line 258.
I've also tried 'true' ... same error. and bareword true, perl fails w/ syntax error.
hm well got your hooks created. Commented out the 'active' option, and github seems to default to active.
[18:29]
MichaelDaumHi gac410. How can I help?
Did I do anything wrong when I created the new repo?
[18:37]
gac410No... I think it's a github API issue, I just removed the 'active' => '1' from the setting hash and it worked.
I was just wondering if there is now some magic to defining a boolean in json.
[18:38]
MichaelDaum{ "me boolean" => true } [18:39]
gac410But '1', 1, 'true' all fail with same rejection by github. [18:39]
MichaelDaumremove the quotes
just bare true or false
[18:39]
gac410perl hash ... bareword string syntax error. [18:39]
MichaelDaumdo you need the boolean in perl?
that'd be JSON::true and JSON::false
{ "me boolean" => JSON::true }
which turns out to be stringified to { "me boolean": true }
[18:40]
gac410no. tbh, I don't remember how this works. It uses Net::GitHub::V3 and calls my $hook = $repos->update_hook( $ghaccount, $rname, $hookid, $hookdef, );
where $hookdef is the perl hash of values that the module converts to json
[18:42]
MichaelDaumright. and for it to create a proper bool inside the json the perl value is JSON::true or JSON::false [18:42]
gac410And one of the values in the $hookdef hash is 'Active' => '1' [18:42]
MichaelDaumwhich is _not_ stringified to a boolean, but a string "1"
try "Active" => JSON::true then
[18:43]
gac410Well I've passed the hash values of '1', 1, and 'true' hm perl doesn't even have JSON included. [18:44]
***ChanServ sets mode: +o CDot [18:44]
MichaelDaumuse JSON; [18:45]
gac410So either it's probably a bug in Net::GitHub::V3 ... anyway, I think we are all set ... Omitting that value altogether and it works [18:45]
MichaelDaumthen you'll have JSON::true and JSON::false at your hand [18:45]
gac410hm okay. To test this :( I guess I have to delete the hooks and then run it again. I'll try. Thanks [18:46]
MichaelDaumall of these comm apis serialize in some way or the other ... and have constants for bools and integers n stuff. for instance soap. [18:46]
shit I misnamed this one: https://github.com/foswiki/GenPDFWeasyPrint [18:53]
gac410Michael, Using JSON::true fixed it! Thanks. [18:54]
MichaelDaum:) [18:54]
gac410What's wrong with GenPDFWeasyPrint ? [18:54]
MichaelDaumI renamed the repo to GenPDFWeasyPlugin
git rox. was almost too easy.
[18:55]
gac410DOh.... Print ...
I stared at it and just didn't see that it wasn't a plugin or contrib :D
gac410 has to run out... biab
[18:56]
.... (idle for 16mn)
***BenjaminMartin has left [19:12]
............. (idle for 1h1mn)
ChanServ sets mode: +o Lynnwood [20:13]
................ (idle for 1h17mn)
JulianLevens has left [21:30]

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