In updating the documentation for the Mac install (as well as installing it myself for the first time) I encountered the following SVN error:
> svn: warning: Error handling externals definition for 'pywikipedia/externals/pycolorname':
> svn: warning: OPTIONS of 'https://svn.toolserver.org/svnroot/drtrigon/externals/pycolorname':
> Could not read status line: connection was closed by server (https://svn.toolserver.org)
I assume this to be a transient SVN error -- changes being made, in progress, etc. ???
T.T.F.N.
William H. Magill
# iMac11,3 Core i7 [2.93GHz - 8 GB 1067MHz] OS X 10.8.4
# Macmini6,1 Intel Core i5 [2.5 Ghz - 4GB 1600MHz] OS X 10.8.3
magill(a)icloud.com
magill(a)mac.com
whmagill(a)gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all!
I updated [1] and added the section "Example (step-by-step)" in order
to help others with the first steps - it's not straight forward... :)
[1] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
But now I would like to review and correct the change
https://gerrit.wikimedia.org/r/#/c/76352/
but just get
$ git review -d 76352
Could not parse json query response: u'Verified'
...can somebody help me here and explain whats going on and what I am
doing wrong?
Thanks a lot and Greetings
DrTrigon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlH1iZUACgkQAXWvBxzBrDAAJQCfcsRAgf6siWYvLT0tw8gewL2c
284AnR77c+3oDqiuN0vEt7E/CgN9SNPU
=cZpi
-----END PGP SIGNATURE-----
How are custom families handled in the rewrite branch?
That is, as a user, do I have to write my custom family files to the installation directory, or can I use a user-writable directory instead? (e.g. .pywikibot)?
Hello everybody ! I'm getting the following error with the latest revision of pywikipedia (trunk) on the toolserver :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wikipedia.py", line 150, in <module>
externals.check_setup('BeautifulSoup.py')
File "externals/__init__.py", line 377, in check_setup
if globals()[dist[0] + '_install'](modules_needed[m][0]):
KeyError: u'sunos_install'
As this error happens when trying to import the wikipedia library, I cannot use any script… Do you have an idea ?
Regards,
— Toto Azéro
----- Original Nachricht ----
Von: Bináris <wikiposta(a)gmail.com>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 21.07.2013 18:14
Betreff: [Pywikipedia-l] Additional parameter in a replace function
> Hi,
>
> I use functions in my fixes.py as written in
> https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes_and_functio
> ns_HOWTO
> .
>
> Now, my idea is to use an additional parameter. (In case nobody breaks the
> framework. :-))
> So my fix has something like this in replacements:
>
> (ur'someregex', MyFunc),
> Then MyFunc takes the match object as a parameter and is executed. I have
> to write
> def MyFunc(match):
> etc.
>
> Now I want to write def MyFunc(match, mode), but I can't pass mode to
> MyFunc anyway.
> I guessed the line in question is #195 in textlib.py:
> replacement = new(match)
>
> Here I stopped. How could I pass additional optional parameters?
Just an idea, I haven't investigated in it but you could try it out:
you may use a class instance inside fixes.py and pass the option through the constructor. Your MyFunc should be an instance method.
e.g.
class myClass(object):
def __init__(self, option):
self.option = option
def myFunc(self, match):
result = u''
# change the result depending of match and self.option
# ...
return result
thisClass = myClass(option='submit anything as option')
and play with replacements using thisClass.myFunc
Best
xqt
Hi,
for those "unit radius users" as we say in Hungary the end users, who don't
want to learn git and don't want to contribute to the framework, will the
nightlies be available in the same way after 26th?
--
Bináris
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello
May be I missed something or are completely misinformed or something,
but am I right that at the moment SVN to GIT migration is taking
place? How is that status? How are we supposed to commit changes at
the moment?
Could somebody shed some light onto this for me please?
Thanks a lot and Greetings
DrTrigon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlHdwtIACgkQAXWvBxzBrDD/dgCcD/m0UzNEv53BEZKMt72WRWdS
dxoAnApa98Hd7vARNP56960FOvI4IziH
=2wpV
-----END PGP SIGNATURE-----
I've synced yesterday my repo with this availiable in gerrit/github, so
yesterday it was up to date.
Today, when I was merging my master branch it seemed that I had circa 830
commits to mutual parent with gerrit/github and the same situation occur
for gerrit/gihub (it has circa 830 comitis to our mutual parent), so I
start digging and found out that uncommon commits (this 830) look (as far
as commit comment) the same.
So my suspicion is that someone (legoktm) has been independently importing
new commits from svn to git repo (so they look exactly the same but don't
have the same commit hash) and has pushed them to directly gerrit without
merging with master?
Could we do something to avoid that kind of situations?
cheers
--
Tomasz Magulski
I've just created a possibility to create brand new ItemPage from scratch.
My work is avaliable here:
https://github.com/magul/pywikibot-core/tree/newItemPage
it works like:
i = ItemPage.createNew(repo)
Before it (afaik) there was not possibility to simply create new ItemPage
(you were able to create new object of ItemPage class, but should provide a
title, and create new ItemPage from existing page on another site).
What do You think about it?
--
Tomasz Magulski