I am not sure it's always better to use site.code instead of site.lang.
If TranslateWiki uses language codes, 'be-tarask' should be used instead
of 'be-x-old', etc.
You may also omit the script path, it is default. And the .py ending of the script may also be omitted. Just call pwb.py xxx
followed by any options behind that.
Best
xqt
----- Ursprüngliche Nachricht -----
Von: John Mark Vandenberg
Gesendet: 03.06.2014 06:05
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] Deprecation of compat
On Mon, Jun 2, 2014 at 8:00 PM, Amir Ladsgroup <ladsgroup(a)gmail.com> wrote:
> Core has one million advantages on compat but easy-installation is not one
> of them, a week ago I was trying to teach some bot operators to migrate to
> core and there were three main problems:
>
> 1- core suggests people to make the user-config in a .pywikibot folder
> and people don't like this and changing it isn't easy (for example if you
> want to set it as current folder, like compat, which is a common act because
> people use several accounts and they need several pywikibot folders with
> separated user-config and the system doesn't let you to make a file in
> existing director, try doing this)
This part of the startup is quite problematic, as the 'config
directory' has three different sets of logic
1. pwb.py
2. generate_user_files.py get_base_dir()
3. pywikibot/config2.py _get_base_dir()
https://gerrit.wikimedia.org/r/#/c/87893/ tries to copy the logic in
config2.py into pwb.py, but really we need one function that is reused
in all three cases.
> 2- people don't know what command is best for installation:
> python pwb.py
> python generate_user_files.py
> python setup.py install
> python ez_setup.py
IMO we should promote 'python pwb.py' as the way that people start using pywiki.
> 3- There is an extra external needed (httplib2) and there is no
> documentation (in files) at all about them and how we can install them, I
> learned about them by experience and this command won't work: (my friend
> told me, I haven't checked it yet)
>
> git submodule update --init
I quickly tested this , and it appears to be working correctly when
used with 'python pwb.py scripts/xxxx.py'
--
John Vandenberg
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Indeed documentation ist that part of code which coders does mostly neglects.
Anyway there are some hints:
README.rst in core Folder
https://www.google.de/#q=pwb.py+site:mediawiki.org
Seems our manual at mediawiki.org needs some cleanups. We had some discussions about this theme few days ago.
Best
xqt
----- Original Nachricht ----
Von: Bináris <wikiposta(a)gmail.com>
An: Xqt <info(a)gno.de>
Datum: 02.06.2014 09:11
Betreff: Re: Re: [Pywikipedia-l] Deprecation of compat
> 2014-06-02 9:01 GMT+02:00 <info(a)gno.de>:
>
> > As I wroth with my last mail this behaviour is available since 3th june
> > 2012 using the pwb.py wrapper script.
> >
>
> That wasn't quite clear for me at once, but thnak you, this is a great
> news!
>
Seems nobody RTFM :7
greetings
xqt
----- Ursprüngliche Nachricht -----
Von: Amir Ladsgroup
Gesendet: 02.06.2014 12:01
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] Deprecation of compat
Core has one million advantages on compat but easy-installation is not one of them, a week ago I was trying to teach some bot operators to migrate to core and there were three main problems:
1- core suggests people to make the user-config in a .pywikibot folder
and people don't like this and changing it isn't easy (for example if you want to set it as current folder, like compat, which is a common act because people use several accounts and they need several pywikibot folders with separated user-config and the system doesn't let you to make a file in existing director, try doing this)
2- people don't know what command is best for installation:
python pwb.py
python generate_user_files.py
python setup.py install
python ez_setup.py
3- There is an extra external needed (httplib2) and there is no documentation (in files) at all about them and how we can install them, I learned about them by experience and this command won't work: (my friend told me, I haven't checked it yet)
git submodule update --init
Helping to fix this would fix lots of user-friendliness issues
Best
On Mon, Jun 2, 2014 at 12:47 PM, <info(a)gno.de> wrote:
Indeed documentation ist that part of code which coders does mostly neglects.
Anyway there are some hints:
README.rst in core Folder
https://www.google.de/#q=pwb.py+site:mediawiki.org
Seems our manual at mediawiki.org needs some cleanups. We had some discussions about this theme few days ago.
Best
xqt
----- Original Nachricht ----
Von: Bináris <wikiposta(a)gmail.com>
An: Xqt <info(a)gno.de>
Datum: 02.06.2014 09:11
Betreff: Re: Re: [Pywikipedia-l] Deprecation of compat
> 2014-06-02 9:01 GMT+02:00 <info(a)gno.de>:
>
> > As I wroth with my last mail this behaviour is available since 3th june
> > 2012 using the pwb.py wrapper script.
> >
>
> That wasn't quite clear for me at once, but thnak you, this is a great
> news!
>
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
Amir
I propose to create a tracking bug for all features present in
AutoWikiBrowser but not in our 'core' (e.g. gerrit:118795
<https://gerrit.wikimedia.org/r/118795>).
Even if the user targets of the two projects are different nowadays, as
different are their tasks, I think PWB is going to be the ultimate
replacement to AWB, given its extreme extensibility and X-platformness
(actually, only a real GUI is missing).