Am 04.02.2013 um 18:03 schrieb Brad Jorsch <[email protected]>:

> On Mon, Feb 4, 2013 at 8:46 AM, Jens Ohlig <[email protected]> wrote:
>> 
>> Here are my questions:
>> 1. Is there an easy way to add your own Lua functions (that call PHP Api 
>> functions) to Scribunto other than writing them into LuaCommon.php?
> 
> Yes. Probably the best example to look at right now is gerrit change
> 47109.[1] You could also look at 42050, 38013, or 46478. Keep in mind
> that any functions you provide have the at least same sorts of
> security and performance concerns as parser function hooks.
> 
> The major issue right now is that there's no way to add something to
> Scribunto_LuaEngine::$libraryClasses from another extension. There's
> also the issue of easily adding unit tests from another extension,
> since ideally the unit tests should be run against both the
> LuaStandalone and LuaSandbox engines. I'll probably have a look at
> this today.
> 
> [1]: https://gerrit.wikimedia.org/r/#/c/47109/

Thank you very much! This was EXACTLY the kind of answer I was hoping for. 
Thank you very much for getting me unstuck \o/


-- 
Jens Ohlig
Software developer Wikidata project

Wikimedia Deutschland e.V.
Obentrautstr. 72
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das
Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.



_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to