Re: [Wikitech-l] Problem with unit tests and dataProviders

2012-09-24 Thread Tyler Romeo
This is a functionality of PHPUnit, not of MediaWiki. The idea is that each test case (or function) is considered the most basic unit of testing. So setUp() and tearDown() have to be called before and after each function to ensure the testing environment is clean for the test. *--* *Tyler Romeo*

Re: [Wikitech-l] Problem in rendering a book Guide to star constellations in pdf format

2012-09-24 Thread Matthew Walker
Hello! I'm guessing I'm seeing the same thing you are; but as MZ indicated a URL would be very useful. In any case: I just attempted to render to PDF

Re: [Wikitech-l] Problem with unit tests and dataProviders

2012-09-24 Thread Antoine Musso
Le 24/09/12 06:18, Niklas Laxström a écrit : I'm writing unit tests for one of Translate classes. In the setUp I need to create few pages, but I need to also control the user ids of the revisions. This seems to work well except for two things: * dataProvider methods are called *before*

Re: [Wikitech-l] #switch limits

2012-09-24 Thread Alex Brollo
2012/9/24 Tim Starling tstarl...@wikimedia.org I suppose a nested switch like: {{#switch: {{{1}}} | 0 = {{#switch: {{{2}}} | 0 = zero | 1 = one }} | 1 = {{#switch: {{{2}}} | 0 = two | 1 = three }} }} might give you a performance advantage over one of the

Re: [Wikitech-l] What causes the status anonlogin?

2012-09-24 Thread Krenair
On 24/09/12 04:02, wangfeng wangfeng wrote: Hi, I want to implement SSO function between Mediawiki and another application. Now I can login and logout synchronously. But I have a problem that I find a status called anonlogin. When it comes, I will lose my login status. I don't know how it

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Jon Robson
So I had a brainwave about this over the weekend. The home page for the developer page should act like a personal appeal only with __developers__ as the writers. I think a personal touch is a great way to explain to a would be developer to why they should care about our apis and our codebase.

[Wikitech-l] Learning Git/Gerrit? Answer poll to choose tutorial date

2012-09-24 Thread Sumana Harihareswara
Git, Gerrit, and You! A Tutorial Where: IRC/SIP/SSH We want all our developers to feel comfortable with Git, git-review, and Gerrit. So saper is leading a hands-on online training: https://www.mediawiki.org/wiki/Project:WikiProject_Extensions/MediaWiki_Workshops/Git_/_Gerrit_Tutorial . Check

Re: [Wikitech-l] GLAMwiki Toolset Project : Request for Comments - Technical Architecture

2012-09-24 Thread Emmanuel Engelhart
On 09/20/2012 04:34 PM, dan entous wrote: dear all, as some of you may already know, the GLAMwiki Toolset Project, http://outreach.wikimedia.org/wiki/GLAM/Toolset_project, is a collaboration between Wikimedia Nederland, Wikimedia UK, Wikimedia France and Europeana, with the goal of providing

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Isarra Yos
On 24/09/2012 13:35, Jon Robson wrote: So I had a brainwave about this over the weekend. The home page for the developer page should act like a personal appeal only with __developers__ as the writers. I think a personal touch is a great way to explain to a would be developer to why they should

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Derric Atzrott
Is anyone else excited about this idea or is it just me...? That is an intriguing concept that could indeed work quite well to get people interested, but how many will remain interested after they encounter gerrit? I can't actually say I like this idea a whole lot. Here's why: * Personal

Re: [Wikitech-l] Problem with unit tests and dataProviders

2012-09-24 Thread Platonides
Antoine Musso wrote: One possibility would be to only set it once using the setUpBeforeClass() and tearDownAfterClass(). Those are only run once in the class. So you could create a new test file having a class dedicated to this test. Oh, I didn't know those existed... Niklas, implement

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Jon Robson
That is an intriguing concept that could indeed work quite well to get people interested, but how many will remain interested after they encounter gerrit? That's a separate problem.. haha! Derric - in reply to your concerns... just a few points 1) The mediawiki homepage puts ME off. This is

Re: [Wikitech-l] Problem with unit tests and dataProviders

2012-09-24 Thread Niklas Laxström
On 24 September 2012 13:27, Antoine Musso hashar+...@free.fr wrote: One possibility would be to only set it once using the setUpBeforeClass() and tearDownAfterClass(). Those are only run once in the class. So you could create a new test file having a class dedicated to this test. Those are

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Isarra Yos
On 24/09/2012 15:41, Jon Robson wrote: That is an intriguing concept that could indeed work quite well to get people interested, but how many will remain interested after they encounter gerrit? That's a separate problem.. haha! Derric - in reply to your concerns... just a few points 1) The

[Wikitech-l] shortened links (was Re: MediaWiki 1.20 release candidate (and triage announcement))

2012-09-24 Thread Mark A. Hershberger
On 09/23/2012 06:33 PM, K. Peachey wrote: On Mon, Sep 24, 2012 at 4:03 AM, Mark A. Hershberger m...@everybody.org wrote: On 09/23/2012 12:54 PM, Krinkle wrote: https://bugzilla.wikimedia.org/[...] Link shortened: http://hexm.de/lp There is no need to shorten urls in emails, Please don't.

Re: [Wikitech-l] Proposal to add an API/Developer/Developer Hub link to the footer of Wikimedia wikis

2012-09-24 Thread Tim Starling
On 25/09/12 05:35, Jon Robson wrote: I've knocked up a first version here: http://www.mediawiki.org/wiki/Developer_Hub I moved it to https://www.mediawiki.org/wiki/User:Jdlrobson/Developer_Hub I don't think your proposed text is appropriate, since it portrays MediaWiki as a WMF project.