Paul Poulain | 1 Feb 16:59
Gravatar

Coding guidelines

Hello,

I just updated the coding guideline page on the wiki
(http://wiki.koha-community.org/wiki/Coding_Guidelines)

To add numbers to each rule. That will be helpfull/faster when QAing to
say "this patch break PERL5 or HTML2 rule".
--

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Paul Poulain | 2 Feb 18:01
Gravatar

tips and tricks wiki page

Hello,

I just have added a page called
http://wiki.koha-community.org/wiki/Tips_and_tricks

I made a mistake today, pushing a patch that had a file not compiling.

The patch had been submitted, sign-offed, QAed and pushed, and none of
us saw the problem.
Why ? Because none of us had a git hook to check !
Go to read the wiki page, and you'll learn how to avoid forever
submitting/testing/QAing that has a syntax error !

That's so easy ! I love git !

PS: if you want to improve the testing script proposed, don't hesitate
even a second !
--

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

(Continue reading)

Scott Kushner | 3 Feb 22:37

Translating a template file.

I want to translate one .tmpl to template toolkit .tt file.

 

Does anyone know the command for this? I have a git install.

 

Do not have /koha/tt dir….

 

Just want to translate the one template file.

 

Thanks,

 

Scott Kushner

Systems Librarian

Middletown Public Library

55 New Monmouth Rd

Middletown, NJ 07748

 

_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Paul | 4 Feb 19:17
Favicon

Bug 5677

Not sure if it's possible to re-open a "resolved" bug (or even if mine is 
germane) having just looked at 
<http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5677>.

We have some items that are showing up as "lost" despite having a correct 
"library" and "shelf location". e.g.: from OPAC: "Books NMA box_rr169 
Reference REFE-UNKN-57

(<http://koha/cgi-bin/koha/opac-detail.pl?biblionumber=12812&shelfbrowse_itemnumber=12807#shelfbrowser>Browse 
Shelf) Item lost" -- it's a book at the NMA, in box_rr169, [call# correct], 
LOST.

In the staff interface (same "lost" labeling), editing "item", the "lost 
status" is given as 5 but our "authorized values" are default and 5 does 
not exist.

I have edited the framework to attempt to be able to edit/modify this 
(952$1), but the drop down box "1 - Lost status" only appears for *new* 
items, and while the line is there, there is no dropdown to edit existing 
records.

Bug 5677 suggests that it was an OPAC problem, not showing in the staff 
interface -- whereas mine is showing in both.

Can anyone assist me, please?

As background, we are not a lending library, have no "patrons" in the Koha 
sense, and have never even tried to declare an item as "lost" which if I 
understand correctly is a management tool for unreturned books.

tnx - paul

_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Mason James | 6 Feb 09:16
Gravatar

Re: Bug 5677


On 2012-02-5, at 7:17 AM, Paul wrote:

> Not sure if it's possible to re-open a "resolved" bug (or even if mine is germane) having just looked at <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5677>.
> 
> We have some items that are showing up as "lost" despite having a correct "library" and "shelf location".
e.g.: from OPAC: "Books NMA box_rr169 Reference REFE-UNKN-57
(<http://koha/cgi-bin/koha/opac-detail.pl?biblionumber=12812&shelfbrowse_itemnumber=12807#shelfbrowser>Browse
Shelf) Item lost" -- it's a book at the NMA, in box_rr169, [call# correct], LOST.
> 
> In the staff interface (same "lost" labeling), editing "item", the "lost status" is given as 5 but our
"authorized values" are default and 5 does not exist.
> 
> I have edited the framework to attempt to be able to edit/modify this (952$1), but the drop down box "1 - Lost
status" only appears for *new* items, and while the line is there, there is no dropdown to edit existing records.
> 
> Bug 5677 suggests that it was an OPAC problem, not showing in the staff interface -- whereas mine is showing
in both.
> 
> Can anyone assist me, please?
> 
> As background, we are not a lending library, have no "patrons" in the Koha sense, and have never even tried
to declare an item as "lost" which if I understand correctly is a management tool for unreturned books.
> 
> tnx - paul
> 

my hunch is... its a different bug than 5677

perhaps you had a LOST auth_value with a value of 5, that was deleted...

what would that have been....?

_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Paul Poulain | 6 Feb 09:27
Gravatar

Re: [Koha] Translating a template file.

Le 03/02/2012 22:37, Scott Kushner a écrit :

Hi Scott,
> I want to translate one .tmpl to template toolkit .tt file.
> Does anyone know the command for this? I have a git install. 
Isn't this page of the wiki what' you're looking for:
http://wiki.koha-community.org/wiki/Htp-to-tt-conversion ?

--

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Paul Poulain | 6 Feb 22:23
Gravatar

Call for help, testing sandboxes system

Hello koha-devel,

In my Release Manager Application, there was something about setting
sandbox testing servers.
I wrote some scripts to deal with this system.
With them, you can easily test patches. I think the system is ready to
be deployed and announced widely.
But before doing that, i'd like to have some feedback from a small group
like users of this list.
So my request is:
* got to the wiki page http://wiki.koha-community.org/wiki/Sandboxes, it
should be self-explanatory, otherwise I must improve the page and please
report it here
* test some patches to see if everything is working well

2 more informations:
* the MARC21 sample database is really a tiny one. If someone has a
bigger one, he's welcomed to send it to me, i'll update the sandbox
* only test1 (unimarc) and test5 (marc21) are deployed for instance.
Don't try to user other testX server, it won't work.

Thanks for the time you'll dedicate on this task, it really hope this
system will be usefull to lower the number of patches needing signoff by
lowering the technical level needed to test it.
--

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Magnus Enger | 7 Feb 10:44
Picon
Gravatar

2012-02-08 Global bug squashing day #9 - you can help!

Dear Community,

In just 15 minutes, it's that time again (at least in Kiribati):
http://wiki.koha-community.org/wiki/2012-02-08_Global_bug_squashing_day

Just as an example of work that needs to be done, there are currently
89 bugs that need signing off - that's too many!

And to put things in perspective, on 2012-02-08 it's just 2 months and
2 weeks until 2012-04-22 is upon us! (If you're wondering why that is
significant, it's the date dictated by tradition for the next version
of Koha - 3.8. (The actual date is of course dictated by Paul P. ;-))

Happy hunting, folks!
Magnus
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Paul Poulain | 7 Feb 18:27
Gravatar

"in discussion" bugs, proposed workflow

Hello all,

i've added to the IRC agenda some details about the "in discussion"
bugs. We must setup a workflow to be sure there is a discussion and we
exit from this discussion in a given time, with a clear decision.
You can find a proposition for a workflow on the IRC agenda wiki page
and i'd like to discuss of this workflow during the IRC.
Look at :
http://wiki.koha-community.org/wiki/General_IRC_Meeting,_8_February_2012#Agenda
for more details.

I plan to be at the meeting, but it's 3AM for me, so apologize if I
shoot my radio when she awake me ;-)

--

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Tomas Cohen Arazi | 8 Feb 16:42
Picon

[Discussion Tech] Cache handling in koha

Hi, I'm just starting a thread to discuss this topic so we make some
decisions and we can continue improving Koha in this aspect. As far as
I can remember there are a few issues with this:

1) The use of ENV vs. koha-conf.xml vs. DB/systempreferences to store
memcached configuration.

I introduced the use of ENV (from Apache vhost definition) for storing
memcached servers configuration data on Bug 6193. This was done for
being able to cache the koha-conf.xml configuration variables (prior
to that, memcached info was saved in koha-conf.xml itself and thus
not-cacheable). When coding that I realized that memcached was being
initialized everywhere we needed it. And namespaces where not always
consistent (KOHA and koha alternatively, this might not be a problem
if this happens to be case insensitive, anyway, it looked bad to me).

I then exported the object memcached and the ismemcached variable in
C4::Context. This first patch (koha-conf.xml in memcache, and
memcached object available for every other lib that includes
C4::Context) has been pushed.

Then there's a second patch, that removes several memcached
configuration validation and  initialization code from the rest of the
libs, and reuses that variables from C4::Context. I tested it to work
flawlessly, but things around it halted when other proposals raised.

I like mi approach. I like how the resulting code looked, I wont hide
it. But I don't need it to be accepted at all, maybe the other
proposals are far better. The only thing I missed on this cache thing
was more feedback.

Back to the ENV use I think we must make a desicion:
 - Do we want to cache koha-conf.xml ?
If the answer is no, then we can revert that patch. And we are done.
If the answer is yes, we can deal with it is storing the settings in
the database, but this will make it difficult to memoize the function
reading. Or leave it as it is now.

I don't agree it is a problem to move those settings to the vhost
definition, it could be even moved into a separate file with an
include sentence in the vhost definition for convenience
(/etc/koha/memcached.conf and Include in vhost definition...)

2) Memoization in Koha
Do we plan to use memoization in the mid/long-term? Or are we thinking
of a more abstract set of 'cache' utilities which provide an interface
to memcached?

Using memoization is nice, clean and simple. It has the disadvantage
that caching is done in an implicit way, and there are hidden problems
(read side-effects) that have to be taken into account. For example,
someone writes a method, other memoizes it, but doesn't know that a
third method relies on data returned by the first mehotd being
'online'. As-is, memoize_memcached doesn't provide a proper way of
invalidating data automatically. As said in a previous email: we will
end up hooking all the data writing methods so they invalidate all the
memcached store, or those methods the writer knows have to do with the
current. Almost like making it explicit, but just for writers. In
which case it is better to implement the second option, making
everything explicit:

The second approach means we have to hook every function to handle its
caching, and cache invalidation. Its advantage is that being explicit,
but requieres a lot of work and we will end up having business logic
mixed with cache handling code, which is not a problem per-se. Just
thinking.

If we are planning to go on with memoization, I made a proposal on IRC
(which had zero responses) to add memoize_memcached an array of
references to data invalidation methods, so we don't have to hook
every method. The Memoize::Memcached dev told me to take over the lib
as he isn't maintaining it nor working on perl anymore. I'd like to do
that, but I halted my work on that until it is more clear that it is
not a waste of time.

Ok. I'd like to re-read this words I wrote, but I'm just back from
holidays and my bosses need a lot of answers for a lot of stuff I
didn't finish last year, right now, so...

Regards
To+
_______________________________________________
Koha-devel mailing list
Koha-devel@...
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


Gmane