Time  Nick     Message
00:06 tcohen   I dislike it too
00:07 tcohen   we could add sudo to the koha-list call
00:07 tcohen   the result is that when pressing tab the first time the password is asked
00:07 jcamins  Ummm...
00:08 tcohen   i'm not sure how to solve this, I wrote it using a root user on a vm and didn't take care about the non-root user
00:10 jcamins  Doesn't koha-list show all instances?
00:10 tcohen   yes, but we have some switches (enabled, disbled, sip, nosip, email, noemail)
00:11 tcohen   and those need to read stuff like (SIPconfig.xml existence)
00:13 jcamins  Right, I'm suggesting you just acknowledge the limitations of tab completion, and provide tab completion that is somewhat useful.
00:14 tcohen   that's a good advise
00:46 jcamins  Ugh. I don't have any swap space on this server.
03:30 mtompset Greetings, #koha.
03:48 mtompset For everyone where applicable, it's fall back an hour time this weekend. :)
03:49 mtompset Have a great weekend, #koha.
03:56 rambuten @wunder bkk
03:56 huginn   rambuten: The current temperature in Bangkok (Don Mueang), Thailand is 33.0°C (10:30 AM ICT on November 03, 2013). Conditions: Clear. Humidity: 46%. Dew Point: 20.0°C. Pressure: 29.92 in 1013 hPa (Falling).
07:39 * cait   waves
07:58 cait     @wunder Konstanz
07:58 huginn   cait: The current temperature in Taegerwilen, Taegerwilen, Germany is 7.5°C (8:55 AM CET on November 03, 2013). Conditions: Rain. Humidity: 90%. Dew Point: 6.0°C. Windchill: 8.0°C. Pressure: 29.80 in 1009 hPa (Rising).
15:01 peggy    Good morning/afternoon/evening
15:02 rambuten it's morning!
15:03 peggy    I agree.
15:03 peggy    I'm a newbie developer.  How can I debug a .tt file?  I use warn in the perl files, but .tt isn't perl (is it??)
15:05 jcamins  You can use Perl in TT, but what are you trying to debug?
15:05 rambuten I wouldn't know, but there are some really smart people that will who will be online in a few hours!
15:06 peggy    That will work.  I'll ask again in a little while.
15:06 jcamins  The only time I have really needed to do significant debugging in TT was when I was writing a new plugin.
15:07 peggy    Hi jcamins, I'm changing something in circulation.tt.  [% IF ( CircAutoPrintQuickSlip == 'qslip' ) %]
15:07 peggy    And it doesn't work, so I wanted to make sure that I was at least getting there, and (in a perfect world) find out what the valude of CircAutoPrintQuickSlip is
15:08 jcamins  What I do for debugging that sort of problem is add a warn to the Perl script.
15:08 peggy    I don't understand how the .pl files and .tt files are connected.
15:09 jcamins  You can add [% CircAutoPrintQuickSlip %] to see what the value in the template is, but that won't tell you which template is getting loaded.
15:09 jcamins  At the very end of every Perl script is an output_html_with_headers (or something like that), which tells Koha to render the template that was specified at the beginning of the file.
15:10 peggy    output_html_with_http_headers $query, $cookie, $template->output;
15:10 peggy    is in circulation.pl
15:11 peggy    How is the template specified at the beginning of the file?
15:12 jcamins  get_template_and_user.
15:13 peggy    Ah, I see that
15:14 peggy    my ( $template, $loggedinuser, $cookie ) = get_template_and_user (     {         template_name   => 'circ/circulation.tmpl',         query           => $query,         type            => "intranet",         authnotrequired => 0,         flagsrequired   => { circulate => 'circulate_remaining_permissions' },
15:15 peggy    (Sorry, that was ugly...)  The query => $query means that the same parameters that are passed to the .pl program are passed to the .tt?
15:15 peggy    So if the parameter is correct in .pl it will be correct in .tt?
15:16 jcamins  Not exactly. $query is the CGI query so that the script can send a response to the correct client.
15:17 jcamins  The parameters for the template are set in $template->{VARS}
15:18 peggy    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
15:20 peggy    The definition of which template will be used is at the beginning.  The setting of the parameters ($template->{VARS} is at the end of circulation.pl
15:20 peggy    is the template "called" to display at some point in the .pl file?
15:21 peggy    or is that the output_html_with_http_headers statement?
15:21 jcamins  See $template->output in the output_html_with_http_headers line?
15:22 jcamins  $template->output is actually a method call, which processes the template and returns the result.
15:23 peggy    OK.  So I can test the value near where it is set in the $template->{VARS} and be confident that is what the .tt file is getting.
15:25 peggy    What language does the .tt file use?  What operator is used for string compares?
15:30 jcamins  It's Perl, but TT overloads the == operator to automatically do string comparison when appropriate.
15:31 peggy    OK.  so != is the correct operator
15:33 peggy    Thanks, jcamins.  This makes a lot more sense now.  I'm going to play with it a bit...
18:44 rangi    peggy: you still around?
18:44 rangi    theres a couple of ways i debug templates
18:44 rangi    one is the old html comment trick
18:45 rangi    <!-- CircAutoPrintQuickSlip=[% CircAutoPrintQuickSlip %] -->
18:45 peggy    I'm here
18:45 rangi    then you can view source and find CircAutoPrintQuickSlip
18:45 rangi    and it should have the value after the =
18:46 rangi    that works well for scalar type variables
18:46 rangi    however if you have something more complex
18:46 peggy    Good to know.
18:46 rangi    [% USE Dumper %]
18:46 rangi    [% Dumper.dump_html(variable) %]
18:47 rangi    its a TT interface to Data::Dumper
18:47 rangi    so you get a nice representation of the object/hash/array etc
18:47 peggy    so where do you see the dump?
18:47 rangi    in the page
18:48 rangi    often ill put the dump as the first line of the TT
18:49 peggy    Let me try that...  Thanks for helping!
18:49 rangi    no worries, thanks for writing code :)
18:52 rangi    http://www.template-toolkit.org/docs/tools/index.html  <-- tpage is sometimes handy
18:54 rangi    http://www.template-toolkit.org/docs/modules/Template/Plugin/index.html  <-- also a useful reference
18:55 rangi    http://www.template-toolkit.org/docs/modules/Template/Plugin/Assert.html  <-- if you want the template to throw errors on undefined variables, might be useful for your purpose
19:00 rangi    @later tell petter can you drop me an email about december when you have the chance please?
19:00 huginn   rangi: The operation succeeded.
19:08 peggy    I think that I've messed up my source.  Can I refresh it with gitify?  If I have extra files in the directory will they still be there?
19:09 rangi    you dont need to re gitify, if you do git status
19:10 rangi    it will show you what changes you have
19:10 rangi    git stash will stash away any changes you have made to files that git tracks
19:10 rangi    and leave the untracked ones
19:11 rangi    is that what you are after?
19:11 * rangi  has to take the kids to school ill be back in a bit
19:13 peggy    I need clean copies of the files that I changed.
19:14 rangi    git stash will do that
19:15 peggy    fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
19:15 peggy    This is what it says when I try git status
19:16 peggy    Do I need to point to the directory or something?
19:19 jcamins  peggy: you need to be in the directory of your git repository.
19:19 jcamins  Probably ~/kohaclone
19:20 peggy    That does the trick
19:40 peggy    Do I need to do something to make the files writeable?
19:42 jcamins  What do you mean?
19:42 peggy    I did a git status and a git stash, but when I try to change one of the files it tells me I don't have permission.
19:42 peggy    Do I need to chmod the directory?
19:43 jcamins  You shouldn't.
19:43 jcamins  Is it possible you used sudo or su to change to a different user?
19:44 peggy    If I change user in a command window, does that effect my gedit window?
19:44 peggy    (Last worked in unix in 1995....)
19:47 peggy    Ah,  I'm logged in as me, but did the git commands as root.
19:47 jcamins  It does not. *But* if you used a user other than your desktop user when working with git, you'd end up with incorrect permissions.
19:47 jcamins  Yeah, that's what I was thinking it might be.
19:47 peggy    OK.  I'll rerun the git as me
19:47 jcamins  You'll need to run `sudo chown ${youruser}:${youruser} -r kohaclone`
19:48 jcamins  Capital -R, sorry.
19:48 peggy    OK.
19:52 peggy    All better.  Thanks!
21:07 cait     @wunder Konstanz
21:07 huginn   cait: The current temperature in Taegerwilen, Taegerwilen, Germany is 3.9°C (10:05 PM CET on November 03, 2013). Conditions: Partly Cloudy. Humidity: 87%. Dew Point: 2.0°C. Windchill: 4.0°C. Pressure: 29.92 in 1013 hPa (Falling).
21:08 cait     thx huginn
21:08 cait     huginn botsnack cookie
21:08 huginn   cait: downloading the Perl source
21:08 cait     wahanui botsnack huginn's cookie
21:09 cait     wah
21:09 cait     no wahanui?
21:11 cait     eythian: can you bring wahanui back?
21:12 eythian  yep
21:13 eythian  (turns out that if you accidentally leave scrollback active in screen, eventually the process will block.)
21:22 cait     thx eythian
21:22 cait     hi ashimema
21:40 cait     it's awfully quiet in here tonight
21:41 eythian  it often is on Mondays.
21:41 cait     eythian: where are your coworkers hiding? :)
21:42 eythian  cait: two are heading over to Australia, and the other is coming in late today.
21:42 cait     oh what's in australia? another conf?
21:43 eythian  yeah, something like that. I'm not sure of the details.
21:46 cait     heh
21:58 dpk1     cait and eythian - bugs 6435 and 11078 are dependent (at request of people here, the locking change was broken out).  I want to know what's left to get 6435 into the codebase so 11078 can move forward.
21:59 cait     bug 6435
21:59 huginn   04Bug http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6435 major, P5 - low, ---, dpk, Needs Signoff , [ENH] Added daemon mode parameters to rebuild_zebra.pl
21:59 cait     hm eythian
21:59 cait     ?
22:00 eythian  oh! I didn't realise they were dependent, that'll be why my attempt to apply them failed.
22:01 eythian  it's even marked as such, silly me
22:10 eythian  OK, read all of 6435, it seems quite reasonable to me.
22:10 eythian  Looks like it just needs a signoff and QA.
22:11 eythian  Note that eventually it would require modification to the packaging cron scripts to operate in daemon mode, but as it doesn't change anything, I'm totally OK with that coming later.
22:54 dpk1     My plan for getting it into the scripts was after we had much more running experience.  There have been lots I have have talked to at KohaCon who were interested in running it, but I would not make that the default behavior until a larger group of people had several months of good running.
22:55 eythian  that's sensible
22:55 dpk1     This will also give the experience to tune the default values.
23:54 BobB     g'day #koha