Feature Requests item #1775389, was opened at 2007-08-16 05:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1775389&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: restriction for replace.py
Initial Comment:
==Francais== texte d'origine
bonjour
je voudrais proposer un mode de restriction pour le module replace.py afin qu'il ignore tous caractères se trouvant entre [[ et ]] ou entre {{ et }}.
Ceci avec un paramètre en ligne de commande tel que -ignorelink:(YES|no), yes par défaut.
ceci aurait l'avantage de ne pas modifier les liens et les modèles
Merci
==English== translated text
Hello
I would like to propose a mode of limitation for the replace.py module so that he ignores any characters between [[ and ]] or {{ and }}.
This with an on-line parameter of command such as -ignorelink:(YES|no), yes by default.
This would have the advantage not to modify the links and the models.
Thank you
==Fin/End==
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1775389&group_…
Revision: 4047
Author: leogregianin
Date: 2007-08-15 16:34:16 +0000 (Wed, 15 Aug 2007)
Log Message:
-----------
pt msg
Modified Paths:
--------------
trunk/pywikipedia/delete.py
Modified: trunk/pywikipedia/delete.py
===================================================================
--- trunk/pywikipedia/delete.py 2007-08-15 16:32:07 UTC (rev 4046)
+++ trunk/pywikipedia/delete.py 2007-08-15 16:34:16 UTC (rev 4047)
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+# -*- coding: utf-8 -*-
"""
This script can be used to delete and undelete pages en masse.
Of course, you will need an admin account on the relevant wiki.
@@ -36,6 +36,7 @@
'en': u'Bot: Deleting a list of files.',
'nl': u'Bot: verwijdert een lijst met pagina\'s.',
'pl': u'Robot usuwa pliki z listy.',
+ 'pt': u'Bot: Apagando um lista de arquivos.',
}
msg_delete_category = {
'de': u'Bot: Lösche alle Seiten in Kategorie %s',
Revision: 4045
Author: russblau
Date: 2007-08-15 13:19:02 +0000 (Wed, 15 Aug 2007)
Log Message:
-----------
Break long lines, translate bot prompts into English :)
Modified Paths:
--------------
trunk/pywikipedia/capitalize_redirects.py
Modified: trunk/pywikipedia/capitalize_redirects.py
===================================================================
--- trunk/pywikipedia/capitalize_redirects.py 2007-08-15 12:56:24 UTC (rev 4044)
+++ trunk/pywikipedia/capitalize_redirects.py 2007-08-15 13:19:02 UTC (rev 4045)
@@ -5,34 +5,29 @@
Command-line arguments:
- -file Work on all pages listed in a text file.
- Argument can also be given as "-file:filename".
+ -file Work on all pages listed in a text file.
+ Argument can also be given as "-file:filename".
- -cat Work on all pages which are in a specific category.
- Argument can also be given as "-cat:categoryname".
+ -cat Work on all pages which are in a specific category.
+ Argument can also be given as "-cat:categoryname".
- -ref Work on all pages that link to a certain page.
- Argument can also be given as "-ref:referredpagetitle".
+ -ref Work on all pages that link to a certain page.
+ Argument can also be given as "-ref:referredpagetitle".
- -links Work on all pages that are linked from a certain page.
- Argument can also be given as "-link:linkingpagetitle".
+ -links Work on all pages that are linked from a certain page.
+ Argument can also be given as "-link:linkingpagetitle".
- -start Work on all pages on the home wiki, starting at the named page.
+ -start Work on all pages on the home wiki, starting at the named
+ page.
- -page Work on a single page.
+ -page Work on a single page.
-
- -namespace Run over especific namespace.
- Argument can also be given as "-namespace:100".
+ -namespace Run over especific namespace.
+ Argument can also be given as "-namespace:100".
- -always Don't prompt to make changes, just do them.
+ -always Don't prompt to make changes, just do them.
-
-p.e.: "python capitalize_redirects.py -start:B -always"
-
-"""
-
-
+Example: "python capitalize_redirects.py -start:B -always"
'''
#
# (C) Yrithinnd
@@ -58,24 +53,31 @@
page_t = page.title()
# Show the title of the page we're working on.
# Highlight the title in purple.
- wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page_t)
+ wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<"
+ % page_t)
if not page_t.exists():
- wikipedia.output(u'%s don\'t exist' % page_t.title())
+ wikipedia.output(u'%s doesn\'t exist' % page_t.title())
if not self.acceptall:
- choice = wikipedia.inputChoice(u'Do you want create redirect?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
+ choice = wikipedia.inputChoice(
+ u'Do you want to create a redirect?',
+ ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
if choice in ['a', 'A']:
self.acceptall = True
if self.acceptall or choice in ['y', 'Y']:
try:
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg) % page_t)
+ wikipedia.setAction(
+ wikipedia.translate(wikipedia.getSite(), msg)
+ % page_t)
np.put(u"#REDIRECT [[%s]]" % page_t)
print
except:
- wikipedia.output(u"An error occured. Retrying in 15 seconds...")
+ wikipedia.output(
+ u"An error occurred. Retrying in 15 seconds...")
time.sleep(15)
continue
else:
- wikipedia.output(u'%s already exist, skipping...\n' % page_t.title())
+ wikipedia.output(u'%s already exists, skipping...\n'
+ % page_t.title())
def main():
gen = None
@@ -97,25 +99,29 @@
source = 'textfile'
elif arg.startswith('-cat'):
if len(arg) == 4:
- categoryname = wikipedia.input(u'Please enter the category name:')
+ categoryname = wikipedia.input(
+ u'Please enter the category name:')
else:
categoryname = arg[5:]
source = 'category'
elif arg.startswith('-page'):
if len(arg) == 5:
- pageNames.append(wikipedia.input(u'Which page do you want to chage?'))
+ pageNames.append(wikipedia.input(
+ u'Which page do you want to change?'))
else:
pageNames.append(arg[6:])
source = 'singlepage'
elif arg.startswith('-ref'):
if len(arg) == 4:
- referredPageName = wikipedia.input(u'Links to which page should be processed?')
+ referredPageName = wikipedia.input(
+ u'Links to which page should be processed?')
else:
referredPageName = arg[5:]
source = 'ref'
elif arg.startswith('-start'):
if len(arg) == 6:
- firstPageTitle = wikipedia.input(u'Which page do you want to chage?')
+ firstPageTitle = wikipedia.input(
+ u'Which page do you want to change?')
else:
firstPageTitle = arg[7:]
source = 'allpages'
@@ -132,10 +138,12 @@
cat = catlib.Category(wikipedia.getSite(), categoryname)
gen = pagegenerators.CategorizedPageGenerator(cat)
elif source == 'singlepage':
- pages = [wikipedia.Page(wikipedia.getSite(), pageName) for pageName in pageNames]
+ pages = [wikipedia.Page(wikipedia.getSite(), pageName)
+ for pageName in pageNames]
gen = iter(pages)
elif source == 'allpages':
- namespace = wikipedia.Page(wikipedia.getSite(), firstPageTitle).namespace()
+ namespace = wikipedia.Page(wikipedia.getSite(),
+ firstPageTitle).namespace()
gen = pagegenerators.AllpagesPageGenerator(firstPageTitle, namespace)
elif source == 'ref':
referredPage = wikipedia.Page(wikipedia.getSite(), referredPageName)
2007/8/15, Bryan Tong Minh <bryan.tongminh(a)gmail.com>:
> It's svn.wikimedia.org.
Hmmm... And now I have forgotten my passphrase... Where can I submit a
new public key?
--
Andre Engels, andreengels(a)gmail.com
ICQ: 6260644 -- Skype: a_engels
2007/8/2, Merlijn van Deen <valhallasw(a)arctus.nl>:
> windows:
> download TortoiseSVN and putty.
I downloaded TortoiseSVN. Putty I already had.
> Run putty, create a new session with these settings:
> host name: svn.mediawiki.org
> session name: svn.mediawiki.org
> connection/data/username: a_engels
> connection/data/SSH/auth/private key: (select your private key)
When trying to actually open the session, Putty says "Unable to open
connection to svn.mediawiki.org. Host does not exist"
> save this session
>
> Then use tortoiseSVN to checkout
> svn+ssh://svn.mediawiki.org/svnroot/pywikipedia/trunk/pywikipedia
"Unable to open connection: gethostbyname: unknown error"
--
Andre Engels, andreengels(a)gmail.com
ICQ: 6260644 -- Skype: a_engels
Bugs item #1704981, was opened at 2007-04-21 17:15
Message generated for change (Comment added) made by warddr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1704981&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: can't log in
Initial Comment:
The latest version from CVS won't let me log in.
I get this message:
Login failed. Wrong password?
I also have a separate copy of pywikipedia which is a snapshot download. With this I can log in fine.
Both copies are using the same user information, so I know that this and my password are correct.
(I can't tell you when the snapshot dates from as I don't see a log file and I can't get a file creation date.)
----------------------------------------------------------------------
Comment By: Warddr (warddr)
Date: 2007-08-15 09:18
Message:
Logged In: YES
user_id=1741827
Originator: NO
I also had this problem 2 days ago (with the newest version). It was the
first time I used pywikipediabot with linux so i thought the problem was
there but now I don't think that's the problem anymore. When I copied all
my files from windows to linux it works well so I think the fault is a
fault with login.py.
----------------------------------------------------------------------
Comment By: SourceForge Robot (sf-robot)
Date: 2007-08-15 02:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-07-31 15:10
Message:
Logged In: YES
user_id=1136737
Originator: NO
Try to update SVN repository: svn checkout
http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1704981&group_…