Jump to content

User:Forgottenman/sandbox: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
expand
m modify
Line 1: Line 1:
I'm using Windows Vista, 64 bit.  I downloaded python-2.7.1.amd64.msi and ran the executable file.  Then I extracted pywikipedia-nightly.zip.  I created a family file and a user-config file (see below).  I logged in successfully.  I created a page ([[User:Forgottenbot/archive]]) and transcluded it on the page I want to archive ([[MisesWiki:Commons]]).
I'm using Windows Vista, 64 bit.  I downloaded python-2.7.1.amd64.msi and ran the executable file.  Then I extracted pywikipedia-nightly.zip.  I created a family file and a user-config file (see below).  I logged in successfully.  I created a page ([[User:Forgottenbot/archive]]) and transcluded it on the page I want to archive ([[User talk:Forgottenman]]).


However, archival does not take place as hoped.  If anyone has any recommendations to make this work, I would appreciate it.  Below is relevant information and results:
However, archival does not take place as hoped.  If anyone has any recommendations to make this work, I would appreciate it.  Below is relevant information and results:
Line 17: Line 17:
</pre>
</pre>


===Transclusion of [[User:Forgottenbot/archive]] on [[MisesWiki:Commons]]===
===Transclusion of [[User:Forgottenbot/archive]] on [[User talk:Forgottenman]]===
<pre>
<pre>
{{User:Forgottenbot/archive
{{User:Forgottenbot/archive
|algo = old(10d)
|algo = old(10d)
|archive = MisesWiki:Commons/Archive/%(year)d/%(monthname)s
|archive = User talk:Forgottenman/Archive/%(year)d/%(monthname)s
|minthreadstoarchive = 1
|minthreadstoarchive = 1
}}
}}

Revision as of 20:16, 22 December 2010

I'm using Windows Vista, 64 bit. I downloaded python-2.7.1.amd64.msi and ran the executable file. Then I extracted pywikipedia-nightly.zip. I created a family file and a user-config file (see below). I logged in successfully. I created a page (User:Forgottenbot/archive) and transcluded it on the page I want to archive (User talk:Forgottenman).

However, archival does not take place as hoped. If anyone has any recommendations to make this work, I would appreciate it. Below is relevant information and results:

Command window

The command line, when I press enter, looks like: C:\pywikipedia>archivebot.py User:Forgottenbot/archive

The result, including the above, is:

C:\pywikipedia>archivebot.py User:Forgottenbot/archive
unicode test: triggers problem #3081100
Fetching template transclusions...

C:\pywikipedia>

Transclusion of User:Forgottenbot/archive on User talk:Forgottenman

{{User:Forgottenbot/archive
|algo = old(10d)
|archive = User talk:Forgottenman/Archive/%(year)d/%(monthname)s
|minthreadstoarchive = 1
}}

user-config.py

mylang='en'
family = 'mises';
usernames['mises']['en']=u'Forgottenbot';
console_encoding = 'utf-8';

mises_family.py

# -*- coding: utf-8  -*-
 
import family
 
 # The official Mises Wiki. #Put a short project description here.
 
class Family(family.Family):
 
     def __init__(self):
         family.Family.__init__(self)
         self.name = 'mises' # Set the family name; this should be the same as in the filename.
         self.langs = {
             'en': 'wiki.mises.org', # Put the hostname here.
         }
 
         # Translation used on all wikis for the different namespaces.
         # Most namespaces are inherited from family.Family.
         # Check the family.py file (in main directory) to see the standard
         # namespace translations for each known language.
         # You only need to enter translations that differ from the default.
         self.namespaces[4] = {
             '_default': u'MisesWiki', # Specify the project namespace here.
         }
 
         self.namespaces[5] = {
             '_default': u'MisesWiki talk', # Specify the talk page of the project namespace here. 
         }
 
     def version(self, code):
         return "1.16.0"  # The MediaWiki version used. Not very important in most cases.
 
     def scriptpath(self, code):
         return '/mediawiki' # The relative path of index.php, api.php : look at your wiki address. 
# This line may need to be changed to /wiki or /w, 
# depending on the folder where your mediawiki program is located.
# Note: Do not _include_ index.php, etc.