Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-30 Thread Antoine Musso
Le 22/05/13 21:36, Daniel Friesen a écrit : What's your problem with WebRequest anyways? My only problem is that it is MediaWiki specific. I am still hoping we will slowly move to reuse third party components which will make it easier for experienced developers to join us without having to learn

[Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Jeroen De Dauw
Hey, I'd like to load MediaWiki from some PHP script and have not been able to find a way to do this so far. After someone suggested trying to do this as a maintenance script, I tried http://pastebin.com/scKFxF2J That however does not work as there is a check in doMaintenance.php

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Tyler Romeo
What exactly do you mean by load MediaWiki? What's the use case? Maybe try making your own entry point? *-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com On Wed, May 22, 2013 at 11:16 AM, Jeroen De Dauw

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Chad
Making entry points isn't straightforward (which is why I suggested maintenance), but it can be done. We really need to cleanup the bootstrap process. -Chad On May 22, 2013 8:48 AM, Tyler Romeo tylerro...@gmail.com wrote: What exactly do you mean by load MediaWiki? What's the use case? Maybe

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Daniel Friesen
On Wed, 22 May 2013 08:50:51 -0700, Chad innocentkil...@gmail.com wrote: Making entry points isn't straightforward (which is why I suggested maintenance), but it can be done. We really need to cleanup the bootstrap process.

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Jeroen De Dauw
Hey, Making entry points isn't straightforward (which is why I suggested maintenance), but it can be done. We really need to cleanup the bootstrap process. So you are saying it currently is not possible and that a new entry point needs to be created? If so, is there any way to get such a

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Chad
On Wed, May 22, 2013 at 9:05 AM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, Making entry points isn't straightforward (which is why I suggested maintenance), but it can be done. We really need to cleanup the bootstrap process. So you are saying it currently is not possible and that

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Jeroen De Dauw
Hey, I hacked up something extremely evil which is now working for my usecase: http://pastebin.com/WcT1MPNv Clearly this is far from ideal since my code should not know about MW internal at all, it should just include some entry point file. One fun thing I had to do was stuff all local

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Nischay Nahata
http://www.mediawiki.org/wiki/File:Mediawiki-vagrant-screenshot.png Does this help? On Wed, May 22, 2013 at 10:17 PM, Jeroen De Dauw jeroended...@gmail.comwrote: Hey, I hacked up something extremely evil which is now working for my usecase: http://pastebin.com/WcT1MPNv Clearly this is

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Jeroen De Dauw
Hey, Another problem with this current approach is that it will cause extensions to be loaded, which I have no use for. This however seems hard to get around due to LocalSettings both defining needed config and including the extensions. Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic.

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Daniel Friesen
On Wed, 22 May 2013 09:47:14 -0700, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, I hacked up something extremely evil which is now working for my usecase: http://pastebin.com/WcT1MPNv Looks like we just need to abstract most of WebStart.php and part of doMaintenance into something

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Antoine Musso
Le 22/05/13 17:57, Daniel Friesen a écrit : On Wed, 22 May 2013 08:50:51 -0700, Chad innocentkil...@gmail.com wrote: Making entry points isn't straightforward (which is why I suggested maintenance), but it can be done. We really need to cleanup the bootstrap process.

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Tyler Romeo
On Wed, May 22, 2013 at 1:12 PM, Daniel Friesen dan...@nadir-seen-fire.comwrote: Looks like we just need to abstract most of WebStart.php and part of doMaintenance into something like includes/Start.php to support things that are neither web nor maintenance. Honestly, why don't we just move

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Daniel Friesen
On Wed, 22 May 2013 11:18:29 -0700, Tyler Romeo tylerro...@gmail.com wrote: On Wed, May 22, 2013 at 1:12 PM, Daniel Friesen dan...@nadir-seen-fire.comwrote: Looks like we just need to abstract most of WebStart.php and part of doMaintenance into something like includes/Start.php to support

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Daniel Friesen
On Wed, 22 May 2013 11:17:13 -0700, Antoine Musso hashar+...@free.fr wrote: Le 22/05/13 17:57, Daniel Friesen a écrit : On Wed, 22 May 2013 08:50:51 -0700, Chad innocentkil...@gmail.com wrote: Making entry points isn't straightforward (which is why I suggested maintenance), but it can be

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Jeroen De Dauw
Hey, * WebRequest does much more than routing :( so it's not going to disappear. :(( Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. -- ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Daniel Friesen
On Wed, 22 May 2013 12:31:50 -0700, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, * WebRequest does much more than routing :( so it's not going to disappear. :(( Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. -- What's your problem with WebRequest

Re: [Wikitech-l] Loading MediaWiki from some script

2013-05-22 Thread Tyler Romeo
On May 22, 2013 3:36 PM, Daniel Friesen dan...@nadir-seen-fire.com wrote: On Wed, 22 May 2013 12:31:50 -0700, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, * WebRequest does much more than routing :( so it's not going to disappear. :(( Cheers -- Jeroen De Dauw