Differences between revisions 1305 and 1306
Revision 1305 as of 2007-03-07 20:06:32
Size: 162728
Editor: d82h157
Comment:
Revision 1306 as of 2007-03-07 20:56:06
Size: 163085
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2506: Line 2506:
 * Simply upload the image as attachment to one page, e.g. !MyPics

 * Reference the image from other pages with {{{[[Image(!MyPics/picture.jpg, height=150, alt=A picture showing a nice landscape)]]}}} or {{{attachment:MyPics/picture.jpg}}}

Line 2510: Line 2515:
 * On MacroMarket you can find an extension !NewWindow.py for that. There is no built-in syntax for that.

Ask your questions about MoinMoin here (in the sections). And answer others :-)

TableOfContents(1)

Joy of errors

Include(/Errors, ,editlink)

Installing and upgrading

Include(/Installing, ,editlink)

Configuration Files

Include(/ConfigFiles, ,editlink)

Administration of your wiki

Anchor(How_To_Become_Admin)Anchor(How_To_Create_Groups)Include(/Administration, ,editlink)

Using the wiki

Include(/UsingTheWiki, ,editlink)

Developing MoinMoin Extensions

Include(/Developing, ,editlink)

Other

--Include(/Other, ,editlink)

New questions

Action(edit, Edit this section)

Add your new questions here (at the end):

Default Table Formatting

I'm trying to figure out how to customize tables using CSS. What I want is something like in MediaWiki with the Wikitable class where the table formats with certain colors, header and borders based on a tableclass. I've tried pasting the Wikitable CSS code into the common.css file from sinorcaformoin (the theme I'm using). I can't seem to get this to work. I've even edited the default table settings in this file and can get some but not all the formatting to affect a table. For instance, I can't seem to get padding to change. What I really want is for the first row to take the heading (th) formatting. I'm new to CSS and I'm getting pretty frustrated. Any suggestions would be very welcome. Regards, Eric Shain

Indexing of Catchwords

I'm looking about a function like catchwords in library systems and to create an index over it. So I could use (maybe) the '#pragma keywords word1, word2, word3' and would like to get an output like WordIndex.

  • Why don't you simply use the search function when looking for some catchword?

    • I don't like to search for a special word. I would like to get a list of catchwords and a link to the pages where is it located like the WordIndex or TitleIndex function of MoinMoin.

Any help how I could implement this would be helpful. I tried to adapt the WordIndex function to a macro but without any Python knowledge and about the existing MoinMoin objects it's quite difficult.

Bye the way - which editor would you suggest for Python programming?

  • You can use any text editor you like (it should be able to expand tab key to 4 spaces). Many people use vim or emacs (you have to get used to them). If you prefer something IDE like, try eric3.

    • Thanks - I will try it.

Full History

How can I display links to all versions of a page? Currently only the last 100 are shown at the page history. BTW: Manually editing the URL is not an option.

  • We don't offer more than 100 revisions from the web UI (mainly due to performance reasons and because it is usually not needed). Why / for what do you need that? You can have access to every revision ever made via the filesystem.
    • BROur wiki has a news page that gets updated regularly, the last 100 revisions only go back for a few months. My users have asked me about access to the older versions. Since they have no shell access they could only fetch older versions by manipulating the query string which poses two problems:

      • Usability: The average user isn't able to manipulate the query string, even more the date format isn't very intuitive (is it a unix date?)
      • Frames: By entering the URL manually you loose the navigation frame.
      I'm sure that other people are missing this feature as well, a link to the next 100 revision at the bottom would be nice. I'm not sure but is this really such a big performance hit?
      • BRAdding a link to the next 100 revisions sounds like a candidate for FeatureRequests, but if you just want to show all revisions all the time in the history table, edit wikiaction.py and find the following lines in the history() function:

                    count += 1
                    if count >= 100:
                        break

        Change break to pass, and you'll see all revisions. The performance hit will (obviously) depend on the number of revisions for the page you're looking at; viewing the history of a page with 1000 revisions will take about 10 times as long as a page with 100 revisions. -- BradeyHonsinger DateTime(2006-10-26T18:33:11Z)

Is it possible to use a list of pagenames which are not in CamelCase but this will be handled as an automatic wikipage link?

I would like to create a list of possible WikI page names, which will be handled the same way as names in CamelCase are handled. I.e. MoinMoin should automatically create a link the that page. Examples for such names are ABC DEF ABC123 DEF222 and even 1234. This would save a lot time for users (and for me...) - is this possible?

No, not out of the box. You would've to write your own wiki parser for such a thing. There was a thing named GaGa parser some time ago (pre-1.3) that linked every word which had an existing page, but I didn't revive it yet for 1.3+ due to performance reasons (getting a page list is much more time consuming in 1.3 than before). Maybe you can write your own parser, reusing code from wiki.py (parser) and putting the words to link onto a wikidict page. If you don't want to write it yourself, there are FeatureRequests and MoinBounties. -- ThomasWaldmann DateTime(2005-12-03T09:32:27Z)

Thomas, thanks for your comment. I will know at least have a starting point. Thanks, Henk

Can i syncronize my wiki with a local one?

I would like to have my wiki on my notebook to have all my information with me when travelling. When returning i like to syncronize with the ServerVersion of my wiki. Is there any way to syncronize in one or better both directions?

  • I'm using [http://www.cis.upenn.edu/~bcpierce/unison/ unison] as a synchroniser. I'm using it to fully synchronise both copies (desktop, notebook) with deletions and all. It needs some setup but works fine, at least for me, because I'm using it under the following preconditions:

    • I am the sole user of the wiki (DesktopEdition) at the desktop and the notebook.

    • I always do a sync when switching from desktop to notebook or vice versa. If you forget a sync, this could become a problem.

Additionally, see WikiSyncronisation.

Very narrow editor text area

When editing a page, the editor box is about 13 characters wide.

Solution

The cause is missing css files:

  1. Try to reload the page few times
  2. Try to delete the browser cache
  3. Check that your url_prefix is configured properly.

What is the symbol of moinmoin? (the man with big noise and a sheet in his hands)? Who is the author?

That's the mascot. The author of it? JürgenHermann might know that. At least he created the mascot by taking a file from his hard drive and exchanging the text on the sign. :)

Multi-Lingual Navigation Bar

I'm trying to setup a multi-lingual wiki site. I want to add several links on the navigation bar. But unlike the links of system and help pages, the links I added can not be recognized as multi-lingual by default. How can I enable this function to my own links?

Answer

To have multi-lingual in the navigation bar, a translation of the pagename must be in the translation files, and a page with that name must exists. You need to create your own translation dictionaries. See HelpOnLanguages how to do that.

How to require SSL+httpd auth for specific operations

I can get SSL+httpd auth working just fine, but I can't figure out how to set things up so that both are required for write/admin/etc access, but neither are required for read access. Any ideas?

Is it possible to disable read on ALL pages except login?

I want to prevent viewing of every single page (all, even the help pages) in my wiki. Users in a certain group will be able to view pages after logging in. The problem is that many pages (Help, recent changes, etc...) specify read for All in their ACL. The only way to override that is to specifly no privs for All in acl_rights_before, but then that would block everyone from the login page too. The FAQ above for closed community says to use acl_rights_default and set All : blank, but that won't stop people from seeing help and recent changes. Is there any way to do this other than to edit every page in the system to remove the All : read line?

  • Sure. Just use the +-operator in the ACL line of the login page like +All:read.

    • Can you elaborate on that? ACL processing would stop at the first match for All in acl_rights_before, so page directives will be ignored. acl_rights_default is only used for pages that don't have ACL directives, so it doesn't help us. Using +All: in acl_rights_before would allow processing to continue but pages specifying All:read in the ACL lines will be shown, regardless of what the login page says. I'm unsure this can be done without removing all All:read lines in pages. If system pages shipped with ACL lines stating +All:read, you could say acl_rights_after = u"All:" in wikiconfig.py and manually remove the + for the few system pages you want to show. I'm using 1.3.5, BTW.

Restructured Text reST usage

Attachments

We started to use

#format rst

a lot because this markup is feels more natural compared to the MoinMoin markup.

But how is it possible to attach multiple files to a wiki page written in reST markup? The example on HelpOnParsers/ReStructuredText isn't clear to me.

BTW: Currently (as of December 6th 2005) there seems to be a problem with docutils on moinmoin.wikiwikiweb.de. --PeterFunk

Mixing parsers

Is it possible to call a parser from a reStructuredText page, for example to colorize some Python source?

  • Yeah, but you have to write the page differently:

This is wiki markup
{{{#!rst
Restructured text *rules*.
}} }
{{{#!python
a = 1 + 1
}} }

Is there any way to disable the username|login link that appears at the top right of the page next to the search box in the 'modern' theme?

  • You need to modify the theme.

E-mailing the diffs as a digest

When page are changed more than a few times per day, a person who wants to receive e-mail containing those changes can get a lot of e-mails.

Lost User Password

I have not been able to set the wiki up so that it emails lost user passwords to people. Is there any way that I can retrieve a lost-password manually from the data/user files (or elsewhere)?

  • With a recent moin version (like 1.5.3+) you can change to that user on your UserPreferences page if you are a superuser. Then just set him a new password and tell him.

  • No, but you can manually log in by appending ?action=userform&uid= followed by the filename of the user's data file (grep in .../data/user for the user name) to the page URL.

Slideshows

I am would like to create a slideshow over several existing pages on my wiki. The pages are in no particular order and in different subfolders. (The slideshow should point to different character pages for an MMORPG guild that is spread over several games, so I may wish to add both StarWarsGalaxies/Humpty as well as WorldOfWarcraft/Dumpty).

  • The right way is to have short subpages that consist of the Navigation macro and a Include.

EMail again

I tried to set up EMail notification, but get

{u'foo@bar': (554, '<foo@bar>: Recipient address rejected: Access denied')}

(with a real address, of course) when I try to mail something. I'm not sure if the mail system chokes on the unicode notation. Worse: After removing the entries from mail_smarthost and mail_from, the EMail button remains on the user preferences page.

  • Then your mailserver seems to be setup incorrectly. Ask the administrator. And the last issue looks like your configuration change is not sensed. Try to make sure that you edited the correct file and clean all related .pyc files. The email button in the user preferences page is new addition, it may be broken and ignore the mail configuration. Note that the "Subscribe" and "Unsubscribe" links are not displayed when email is not configured.

Is there any way to find out if MoinMoin received any errors from the SMTP session?

  • Sure, just look at the status message you see after you have saved the page.

Interesting. I managed to find a configuration error on my part, but fixing that doesn't actually make things work. I can now get email sent when I click the "Mail me my account data" button on the UserPreferences page, but I don't get change notifications when I use a test-user login to make changes to a page, but I do get a long traceback where the smptlib module tries to base64-decode something that isn't encoded. Since the traceback includes password information, I'll have to try and debug it myself. I'm using Python 2.4.1 and MoinMoin 1.3.5.

Subscribing to RecentChanges

I noticed that you can subscribe to the RecentChanges page. Does this make sense? How does it actually work? I do not receive notifications to 'changes' to this page.

Solution

If you want to subscribe to all pages, go to GetVal(UserPreferences) and enter .* into the list of subscribed pages.

Question: Action on Opening an Attachment?

I'm using the DeskTopEdition as a PIM and it is very good. I was planning on using the pages as a project logbook and storing associated project files as attachments.

  • You could store the files locally and link to them. This is not possible in most browsers either. Check the paragraph "Links to files" on the page DesktopEdition for further information.

Question: Can I create user defined variable in a page?

I have to type a common URL path quite a bit in some of my pages for inline images. It would be nice to define a variable at the beginning of the page and refer to it later - e.g. #define IMGURL=//www.mywebsite.com/users/fred/fred_wiki/images

and then go

http:$IMAGURL/smiley.png

in the text.

  • Yes, you can create a page below your WikiHomepage called MyDict and add a dictionary definition on it. After that, you can "call" it on the page like @IMAGEURL@. See WikiDict.

Hmm, I think that this won't solve my problem. I want to be able to add the variable in the text, and perhaps change it later. Don't @VARIABLES@ get replaced after edit? Also I'd like to be able to set the variables in the page in question. I think that TWiki does this, but I've installed MoinMoin now and prefer it. I can't abide Perl.

I have managed to hack the feature by modifying request.py, page.py and wiki.py. I've never written python before, so my code is probably appalling, but it seems to work! I added a new pp command called '#set' and you go '#set variable value'. By default $variables are ignored - for backwards compatibility - but as soon as page.py sees a "#set" command, variable_mode is switched on and subsequent $variables are replaced. Do you want to add this feature? Do you want to see my appalling code?

We like to see only nice code :) I think you can get the same effect with pragma and a macro and not change to moin code.

First, you add values to the page with a pragma:

#pragma foo bar
#pragma bar baz

This will put foo and bar into request.pragma dict.

Now you write a tiny macro called Get.py that get the argument:

Dependencies = []

def execute(macro, args):
    replacement = macro.request.getPragma(args)
    if replacement is None:
        return '[[Expand(%s)]]' % macro.formatter.text(args)

    return macro.formatter.text(replacement)

On the page, you use Get(foo) when you want to expand something. It may be too verbose compared with $foo or ${foo} - but I'm not sure if this feature is needed for most users.

Question: How do I include inline material from an external link?

I want to include some material from another site in-line. This ability is aluded to in the help, but the technique itself is not explicitly described. How do you do it?

Where can I suggest changes to the default (modern) theme?

Open a MoinMoinBugs or FeatureRequests page. If nobody cares about your suggestion, create your own theme and publish in on ThemeMarket.

Wiki runs fine just won't save pages!

I'm running MoinMoin on Fedora 4, Apache 2.0.54, Python 2.4 with mod_python-3.1.4 (as a DSO, no alternative there). The wiki works fine, and I can view the basic pages. The file permissions are set to the webserver name:group, and can write files as it writes the edit-lock file when you preview a page. However, it just will not save any pages! Is there any finer grained logging available than that in httpd's error_log? That gives the very unhelpful error

 [Tue Oct 11 15:16:11 2005] [notice] child pid 28195 exit signal Segmentation fault (11) 

Any help would be appreciated.

  • SIG11 often is related to hardware problems, most often bad RAM or CPU. Maybe use memtest86+ to check if your RAM is working ok.

I'm not convinced it's a hardware problem, as it's a new Supermicro box which has no obvious problems at all. I'll have a look at the memtest you suggested though. All other apps/services are working fine. Thanks for the propmt reply, Thomas. I'll try recompiling mod_python with different options as I compiled Apache to use MPM worker thread. Found the following [http://www.modpython.org/pipermail/mod_python/2005-January/017093.html here]:

  • "Overall, segmentation faults in mod_python are more likely to be caused by Apache, mod_python and Python being built with differing ideas of how threading is supposed to be enabled."

That maybe true... but it didn't help. I tried compiling Apache with the mpm_prefork option (and recompiling mod_python) but it gave me the same error, though strangely it appeared twice (two error messages) for mpm_worker and only once for mpm_prefork. Go figure. I gave up! If anyone resolves this I'd love to see a solution posted here.

Is there anything special to do to get xmlrpc working with a cgi install on win2k3 ?

I installed 1.3.5 on win2k3, and everything seems to work fine, but I cannot get the wiki to respond to my xmlrpc requests.

>>> wiki = xmlrpclib.ServerProxy('http://web01/ingwiki/moin.cgi/?action=xmlrpc2')

>>> v = wiki.getRPCVersionSupported()

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\Python2.4.1\lib\xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "c:\Python2.4.1\lib\xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "c:\Python2.4.1\lib\xmlrpclib.py", line 1131, in request
    errcode, errmsg, headers = h.getreply()
  File "c:\Python2.4.1\lib\httplib.py", line 1133, in getreply
    response = self._conn.getresponse()
  File "c:\Python2.4.1\lib\httplib.py", line 862, in getresponse
    response.begin()
  File "c:\Python2.4.1\lib\httplib.py", line 333, in begin
    version, status, reason = self._read_status()
  File "c:\Python2.4.1\lib\httplib.py", line 291, in _read_status
    line = self.fp.readline()
  File "C:\Python2.4.1\lib\socket.py", line 325, in readline
    data = recv(1)
socket.error: (10054, 'Connection reset by peer')

Could a theme execute a macro in it's toolbar

Is it possible to add to a theme a macro call like Hits which is always executed on a page? -- ReimarBauer DateTime(2005-10-21T21:13:05Z)

A theme can import a macro and execute it, like any other code, but you will have to create the correct environment for the macro, which may be hard. The easiest solution is to get a parser and then format a macro call :)

Parser = wikiutil.importPlugin(self.request.cfg, 'parser', 'wiki', 'Parser')
Parser('[[MyMacro]]', self.request).format(self.request.formatter)

Ok, easy but on an ?action=AttachFile of a page the Formatter instance is different. Is this a bug? or what is the reason for this?

args = ("Formatter instance has no attribute 'page'",)
  • Report a bug about this. Setting formatter.page should fix it:

self.request.formatter.page = d["page"]

Is there an example how to add this to page_footer in wikiconfig.py too? -- ReimarBauer DateTime(2005-10-22T08:47:18Z)

  • You can't do this in a page_footer, because you need the request.

How to write a Colorized parser

Looking into the cpluplus parser I thought it is easy to write one for idl. But now it uses to few colorcodes. Do I have to add css code? In the comments of the cpluplus parser are some css statements but I have not found them in the theme css code base. If I have to put some css code to somewhere - where ? -- ReimarBauer DateTime(2005-10-25T20:48:33Z)

  • Why do you need new CSS classes (which would go to the CSS files of course)? Normally you just need to list the tokens.
    • That's fine, I have had some problems to understand what I all need to do, because of the comments in the parser I have used as example. I think I know now why I don't get colors as supposed. All words are used case sensitive. idl is a language which allows mixed cases. e.g. not, NOT.

So I first had to find out how to set self._ignore_case = 1 Can I control from within the parser which color is used for what? At the moment I do something like

self.addWords(reserved_words,'Special')
self.addReserved(special_words)

I would prefer color red for the special words.

The parser is quite finished by now or it is finished with the same intelligence as the one from kate/kwrite. Probably it could be better. Any idea how to destinguish between a reserved_words like save and /save? Only the first one should be colorcoded. -- ReimarBauer DateTime(2005-10-27T19:00:51Z)

  • Feel free to submit a patch against the code which does the coloring.

How can I recognize in a macro which moin version is used?

How is it possible to get the moin version from within a parser or macro (action). While I work on my tools now I would like to add the code change for 1.5 too.

  • Toggle line numbers
       1 from MoinMoin import version
       2 release = version.release
       3 revision = version.revision
    

How can I refer to an attachment in my User CSS URL

I would like to upload a css file as an attachment and refer to it in User Preferences -- it this possible?

  • Just use the AttachFile get URL as shown on the AttachFile page. Alternatively, you can also put the CSS directly on a page. Search this wiki for title containing CSS to see how.

Another way for Root Wiki?

I use mod python and the following Apache setup allow me to do root wiki without moinmodpy

    RewriteEngine On
    RewriteLogLevel 0
    RewriteRule ^/robots.txt    -               [last]
    RewriteRule ^/wiki/         -               [last]
    RewriteRule ^/images/       -               [last]
    RewriteRule ^/cgi-bin/      -               [last]
    # User Dir
    RewriteRule ^/~(.*)         -               [last]
    # Root Wiki
    RewriteRule ^/?(.*)         /mywiki/$1      [last]

   <Files mywiki>
      # Use mod_python as handler
      SetHandler python-program

      # set the path to the MoinMoin package and to the moin_config.py
      #  PythonPath "['/path/to/moin/lib/python','/path/to/moin/config']+sys.path"
      PythonPath "['/var/www/localhost/mywiki']+sys.path"

      # choose the ModPy Request class as handler
      PythonHandler MoinMoin.request::RequestModPy.run
 </Files>

It seems to work fine for me now. Is there any problem or limitation with using this method?

  • What do you mean by "without moinmodpy"?

Include without <P>?

Is there a way to include a page without breaking the current paragraph?

  • No.

How can I edit the Editor Page?

I like to edit the Editor Page. More precisely, I like to add some more syntax examples, (e.g. for line breaks ''BR'' or @SIG@.) So how can I configure that info on the Editors page?

  • editor_quickhelp in your wikiconfig (see MoinMoin/multiconfig.py for details)

Problem configuring with non-default Theme

I am trying change the theme of http://ruslug.rutgers.edu/ruslugwiki RUSLUG wiki. In the process, I seem to have broken the themes. I cannot debug the problem. I've tried both re-creating the instance from scratch from the directions from http://gauss.ffii.org/MoinMoin/InstallDocs Gauss. I also removed the debian moinmoin-common package and reinstalled, but the wiki still seems unhappy.

My problem was solved, the solution is here HelpOnInstalling/TroubleShooting. I had url_prefix set to the ScriptAlias rather than the Alias in the wikiconfig.py for my instance. Maybe there should be a strong negative comment (NOT ScriptAlias in Apache) to prevent further confusion?

Can I make a database-like functionality in Wiki ?

I am trying to make a book list of +100 books, and I want to describe each book on its own page, with Author, Title, ISBN, and some categorization concerning where the book fits in to a curriculum. Categories like which Semester, which module, etc.

So I need to give the above mentioned variables to each book.

I then want to make wiki-pages with various sorting of these books or subset of the books, i.e. ByAuthor, ByTitle, BySemester, ByModule, etc.

I the way I am trying to make this work is by assigning a subpage called /bookdict to each bookpage, and put he variables on the subpage, using indent and double colon for each variable declaration.

I then made a ByAuthor page and tried to use the GetVal(*/BookDict, Author) command, but I dont get any values returned.

Could anybody tell me: If it is possible to make this database like functionality in wiki

Answer We have now made the multidimentional database structure in Wiki.

JonasSmedegaard made a new macro based on the a SearchInPagesAndSort macro, and we then used variables on each book registration.

You can check the result here http://wiki.homebase.dk/Top100Books

You can learn about the LookupPagesAndSort macro here: http://moinmoin.wikiwikiweb.de/MacroMarket/LookupPagesAndSort

I think this macro adds a new Lotus Notes like facility to Wiki, and makes Wiki extremely useful as a semistructered textbased database.

How to add info to immutable installation pages?

I developed a way to use MoinMoin from under IIS (["MoinMoin ISAPI"]) and suppose it should be included in the IIS installation pages that I can't change. Whom should I ask for it?

How is it possibile to link the logo_string to a different side and not as on default to the wiki itselfs? -- ReimarBauer DateTime(2005-11-13T09:52:17Z)

see FeatureRequests/LinkLogoToUrl

How can I include a "rollover" effect in tables?

What is the correct style coding for changing the background colour ofa table (whole, cell or row) when the mouse hovers over it? -- Thanks,Casethejoint.

  • Modify the CSS on the theme and use pseudo classes in there.

How do you give editing access to anybody as long as they are logged in?

Search this page for "registered users."

How do I set the limit on the size of attachments?

MoinMoin does not offer this facility, but if you use apache >= 1.3.2 then you might like to look at the LimitRequestBody directive

Setting up Moinmoin in Ubuntu?

I've installed Moinmoin using APT in Ubuntu 5.10 (Breezy Badger) and am trying to create a wiki instance. I can get as far as copying the template data directory, but I cannot find the underlay data directory or the wiki configuration sample file. Is configuring Moinmoin different in Ubuntu for some reason, or have I missed a step?

  • Please contact the package maintainer.

I've tried this too and found that the reason is that there is no configure subDir in my python directory, maybe because of the missing python-dev-package.

How to prevent user-creation?

I don't want to have any users except me. I'm running Version 1.5.0beta4, so that http://moinmoin.wikiwikiweb.de/FeatureRequests/NewUserCreationACL won't run. (i tried everything, but i didn't get it)

  • Use [:HelpOnAccessControlLists:access control lists].

    • I can't find anything on that page that mentions disabling user creation. The login page seems to double as an account creation page. I need access to a login page, but not account creation. How do we fix that?

How to edit individual subtitles

MediaWiki has this nice property that you canedit each subtitle individually instead of editing the whole page. Thatmakes it easy to locate the piece you want to modify in long pages. Isthis possible with MoinMoin too? If not, is there a way to ask for a new feature?

  • this could be done by Include with the editlink option look at HelpOn/Include

Formulas

Is there any "best" way to integrate mathematical formulas in MoinMoin 1.5 betax Wiki Pages?

Using MoinMoin as a filter

I would like to be able to write some static website content in wiki markup without making use of the editing, revisioning, etc. aspects of a full wiki. Can anyone give me some pointers on how to apply Moin's markup-to-HTML transformation from a Python script? Cheers!

  • look at the theme modern_cms this comes nearly to the aspect you want. You could suppress some more things if you want

How do I avoid searching the WikiHelp when performing a full text search?

I'd like to find sg. via full text search, but i'm getting lots of results of WikiHelp which makes it hard to find the (few) entries of my own wiki data.

  • for which version do you ask?

I'm using MoinMoin Version 1.2.4 [Revision 1.187] Can you please tell me from which version on it is possible to suppress searching the WikiHelp?

  • Currently (as of 1.5.3), you can't suppress it. But using 1.5.3+ you can reduce the amount of system and help pages by only installing the languages you need.

How do I remove attachments from a page

Sorry, maybe this question is a little bit dump, but I've been looking through the documentation trying to figure out how to delete attachments on pages, but I didn't find anything. Maybe I missed something. But anyway. Would anybody be so kind to give me a hint on how to delete attachments. Thanks in advance.

  • Just use action AttachFile on the page. It lists your attachments and allows you to download, show or delete them. You should also remove the markup that refers to the attachment from your page, otherwise you will be asked to upload the attachment again.

If there are many attachments on the page better you rename the page and add a prefix e.g. DeleteThisPage. Then delete the page and it's subdirs on the server that is much easier. -- ReimarBauer DateTime(2005-12-05T22:45:54Z)

Thanks for your immediate reply. But when pressing the AttachFile I do not get a link to delete the attachment. There is just a link to load and show the attachment. Do I have to change the configuration of the wiki to see this action? DateTime

Look into your wikiconfig.py if you have a line like this

allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage' ]

and if you use acls then the acl right delete must be given to you. Or just try logging in.

Thanks the delete right was missing in an acl.

How do I make a form on a page?

Is this even possible? I'd like to be able to design a form into a wiki page. I could then program an action to respond to the form, or redirect the form to another site which handles it. If MoinMoin doesn't let you create forms, are there any plans to in the future? If so, have you decided how they will be described in wiki format yet?

  • This is listed as "TODO" on HelpMiscellaneous/ExperimentalFeatures (and has been since at least 1.1 :( ) There's a macro Form.py that suggests that there is some support and a proposed markup, but I don't quite remember the markup. Probably best way is to steal code from one of the actions or macros that use forms (I started from userform.py), however you will end up coding your forms in HTML. -- RobertSeeger DateTime(2005-12-06T14:32:13Z)

Install error

/usr/local/python-2.4.2/share/moin/server>python moin.py Traceback (most recent call last):

File "/usr/local/python-2.4.2/lib/python2.4/site-packages/MoinMoin/server/standalone.py", line 41, in ?

  • import os, sys, time, urllib, socket, errno, shutil

ImportError: No module named time

How do i go about solving it??

Start an interactive interpreter by entering python and do a manual import time there. If it also fails, get a non-broken python installation. If it works, check if you broke sys.path somewhere in the moin scripts.

Alert icon when certain page changes?

Hello. I'm setting up a basic intranet wiki with a likewise basic "announcements" page (I won't say "blog") that I'd like to link to on the frontpage

Is there a way that users landing on the frontpage can be alerted when a new announcement has been posted? I'm thinking of an icon that stays up for 24 hrs after a new post goes up, or just a time-stamp next to the "announcments" link on the frontpage...

Probably a simple solution is to use a page which first five lines are included to the FrontPage. New items need to be added always on top of this page. Look at HelpOnMacros/Include -- ReimarBauer DateTime(2005-12-27T21:59:04Z)

Is it possible to figure out who has done the most updates?

To get a vague impression, go to RecentChanges. To get exact numbers, write a macro reading the global edit-log.

Adding users

I'm doing a wiki page for a company. My boss will be the admin, got all the rights etc. This wiki will not b edited by unknown people, only the users that my boss allow. How do the admin add the users to a group or what? Thanks.~

Do read HelpOnAccessControlLists

Updating from 1.0 to 1.3.5/1.5.0

We are running a MoinMoin-Wiki at Version 1.0. Now we plan to upgrade the Wiki to the current release, but I've noticed some basic changes (pathes, encoding). Is there an existing script for migrating old data to the new format?

  • Get the archive of the new version you want to use (e.g. latest release), read docs/CHANGES starting from the version you use. You will find a pointer to README.migration which answers your question.

Getting the html content

Is there a way to get the html output of a wiki page (the content part only) with an external application? -- RémyRoy

Do you asking for something like wget or curl? -- ReimarBauer DateTime(2005-12-27T21:29:47Z)

No, what we want to do in to include wiki content on an other website but we don't want moinmoin styles, javascripts, anchors, options, actions for a page to be included. We only want the content part. Something like ?action=raw but that would output the html content of a page. -- RémyRoy DateTime(2006-01-03T18:48:05Z)

Try using ?action=format&mimetype=text/html or ?action=print - this produces a more simple HTML. If that output is not yet simple enough, create your own formatter as a modified copy of MoinMoin.formatter.text_html.py (e.g. as "text_htm.py") and call the action with a different mimetype parameter (e.g. "text/htm"). If you do not need valid HTML (i.e. enclosed by <HTML>, <BODY> etc.), use ?action=content - this does still have the anchors, but no CSS or javascript stuff and no navigation (just [http:?action=content try it here] ;-). -- RobertSeeger DateTime(2006-01-10T10:46:18Z)

  • Note that the basic content of the page is enclosed inside a <div id="content">...</div>. That should make it possible to just extract that portion, which would exclude headers, footers, navigation, etc. Currently though the html formatter does not produce well-formed XML (XHTML) so it may be problematic to use an XML processor to do this. -- DeronMeranda DateTime(2006-01-13T18:40:12Z)

Thank you very much, that answer my question pretty well. -- RémyRoy DateTime(2006-01-15T01:06:33Z)

View all edits from a particular user?

How can I view all contributions to the wiki by a particular user or IP address? Can I view a list of my wiki edits? I see [:DespamAction:DeSpam] has the ability to query and list all all contributions from a user or IP address.

  • There is no special code for that yet.

Adding Myself As An Administrator

I just installed the latest stable version of Moin on FreeBSD + Apache in my $HOME directory on a shared web server. Everything is working very well except for the fact that I can't act as an administrator in my wiki.

I found the MoinMoinQuestions/Administration "How To Become An Administrator", and followed its directions. First, I registered with the site using a username of TomPurl. I then checked the $INSTANCE/data/user directory and made sure that the TomPurl username existed. I then added the following line to $INSTANCE/wikiconfig.py:

acl_rights_before = u"TomPurl:read,write,delete,revert,admin"

I then logged into Firefox, but was unable to delete, rename, or add attachments to pages. To troubleshoot, I deleted all of my cookies and then logged in again. Still, no luck. I've even restarted Apache.

Can anyone else think of something that I could try to get this to work?

Thanks! - TomPurl

  • probably you have missed to set

allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage']

in your wikiconfig.py -- ReimarBauer DateTime(2005-12-30T18:19:39Z)

FrontPage

Hi all, how do I remove the title FrontPage at my FrontPage, whereby when you click it, it will do a full text search. Thanks.

  • The page name you see there is an important part of navigation and should not be removed. If you insist on removing it, write your own theme (inherit most stuff from ThemeBase or modern theme).

AMD64 Version?

Is there a version of MoinMoin which will run on an AMD64 computer running Fedora Core 4? Thanks!

  • Do you mean that you're looking for an RPM? Otherwise, try installing the tarball using the instructions on this site. For "standalone" mode, it's fairly easy on any OS including Linux. -- TomPurl DateTime()

Thanks! I've got it up and running. I was pretty sure that it would work, but I'm really short of time and thought that I had better be proactive in posting a question.

Including Content Based On Category, Not Name

I would like to use the Include macro to include content based on it's category, not it's name. Is this possible? -- TomPurl DateTime()

  • probably yes, needs an additional keyword - but it will needs more controls too to extract the things you only want. E.g. Category HomePage does have a lot of pages. Do you have an idea how this should be provided. A better place for discussion would be a FeatureRequest about this. -- ReimarBauer DateTime(2006-01-05T07:29:19Z)

New Wiki Installation: Can see FrontPage, but can't edit??

I just installed my first wiki pages on an apache server running on Linux. Installation was smooth enough. And I've read over the docs and troubleshooting multiple times. I can see the front page when I load http://my.server.com/mywiki, but none of the other pages load when clicked, including Edit! So I'm stuck with a FrontPage. The diagnostic /mywiki?action=test looks fine, all OK. I'm definitely seeing the moin.cgi file and the wiki .py config file, because the FrontPage displays custom images and text, so I'm fairly sure my httpd.conf is OK. And my python files are in the default location, which I have even tried explicitly identifying in the config file. Permissions on all relevant directories is set to apache.apache (same as in my httpd.conf) and mod is a+rX. Any other troubleshooting ideas? I feel like I'm so close!

When I click 'Edit' I get:

  • Not Found

The requested URL /mywiki/FrontPage was not found on this server.

Thanks, Alex

  • ANSWER

I figured out the problem by following an alternate source of installation instructions

The critical issue appears to be the location of the moin.cgi file. I had placed it in a cgi-bin under a copy of htdocs which was all under my wiki instance directory. I had set up an alias and permissions for the htdocs dir to be visible to the server in httpd.conf (but perhaps this was not done properly?). Once I moved the moin.cgi file to my primary cgi-bin located at the same dir level as my default html dir, then it all worked flawlessly. I updated my ScriptAlias to this location and it's all set. Case closed.

Changements per page

In the older version there was a button that showed the last changements of a wiki-page. I can't find this function now. Can it be re-activated? Thanks, Iker

That is integrated into the info link on the page using modern theme or do you speak on RecentChanges or what else? -- ReimarBauer DateTime(2006-01-07T18:21:17Z)

I found it, thank you. Following the info link and then "Differenz" (german page)

Desktop Wiki on a Memory Stick

Is it advisable to store the whole installation directory of the Desktop Edition on a memory stick? I would like to have it portable and since those sticks are now large enough, that sounds like a good idea. But what about writing cycles? Can I/should I maybe disable caching?

  • yes, you could put DE on a stick, works fine. Do you speak on caching for the wiki or for the stick? -- ReimarBauer DateTime(2006-01-08T13:59:22Z)

    • Caching for the wiki. I was thinking about limiting the storage space required. Since I don't know how moinmoin works, I am concerned about the limited number of writing cycles of those media. It might write something to the same area of the stick over and over again and killing it within a few weeks by doing that.

btw. better you add next time questions at the end of this text. -- ReimarBauer DateTime(2006-01-08T13:59:22Z)

  • I thought adding it in front was what was expected since it says "Add your new questions here" there. I have just added "(at the end)"

Porting from another Wiki to MoinMoin

I'm trying to port pages from a Wiki that uses TWiki to one built on MoinMoin. I found a couple of scripts at http://www.wolffelaar.nl/~jeroen/kwiki2moinmoin/ that gets things roughly right . However, it doesn't generate the cache directory for each page, when I look at RecentChanges it shows all of the pages being deleted, rather than added, and when I try to link to a page MoinMoin thinks there is no content there. How can I generate the text_html page in cache from a revision file? Is the lack of a cache likely to be the reason for the latter two problems? If not, what else do I need to modify to get MoinMoin to recognize these script translated pages? Thanks!

  • You don't need to generate the cache directory (nor its contents), it is generated automatically by moin. Your problem rather looks like current file doesn't point to an existing revision or maybe some access rights problem. -- ThomasWaldmann DateTime(2006-01-11T08:19:06Z)

How can I change the page title layout?

I use the Mentalhealth theme but dislike the way the page title is displayed at the top, it appears as a bulleted list item... doesn't stand out much!

  • Clear your browser cache. If it doesn't help, the theme isn't ready for 1.5. To see the changes from whatever version you used before to 1.5.0 maybe simply use diff -ur old/wiki/htdocs/modern 1.5/wiki/htdocs/modern. Esp. the header stuff changed from lists to spans. -- ThomasWaldmann DateTime(2006-01-18T09:34:55Z)

I like the way the Modern theme displays a large title, could someone please point me to which file/lines to copy from the modern theme to replicate the effect in Mentalhealth? I had a look but couldn't find it. Actually I couldn't even find the modern.py which I would think is where I should be looking.

  • See MoinMoin/theme/ directory. The css is in wiki/htdocs/modern/css/. The stuff you look for is "location", "trail", etc. - some stuff changed from <li> to <span>.

    • Thanks, that helped, had to change the <li> so that it doesn't look like an <li> at all - like so: #pagelocation li {display: inline;}

This is how it is currently looking (Mentalhealth theme), which I don't like:

This is how the Modern theme displays the same thing (as best I can do with the formatting), which I do like. (This is the located just above the page trail):

MoinMoin: HelpOnThemes

As a side note, I really like the way the title in moinmoin.wikiwikiweb.de appears, but it seems different from the modern theme in the latest MoinMoinDesktopEdition. I guess I have to wait for the next release?

-- DanielMundy DateTime(2006-01-11T04:40:27Z)

Different theme.py for sub-pages?

One of my customisations to the Mentalhealth theme was to add a .png image to the top of the right-side-bar. I've noticed that on my sub-pages, eg. HelpOnEditing/SubPages, the image does not appear. Any ideas? Thanks, -- DanielMundy DateTime(2006-01-13T01:05:00Z)

  • What is the URL you are using for the image? It should be absolute (starts with a "/"). Even though the moin storage backend does not treat the slash in the page/subpage in any special way, your browser will. So if you have a relative URL the browser will itself compute an equivalent absolute URL based upon what it thinks the current "directory" is. Obviously for a subpage this will result in a different URL, and likely a broken image link. -- DeronMeranda DateTime(2006-01-15T07:39:00Z)

Hi, I'm in the process of setting up a MoinMoin WikiFarm for our internal wiki pages, and am running into the problem that I can't seem to get pages in one instance of the farm to link easily to another instance. It seems like the InterWiki links defined by interwikiname in instance.py should be the right way to do this, but it doesn't seem to work as I naively would expect it to. The InterWiki links still only recognize those pages that are listed at http://moinmaster.wikiwikiweb.de/InterWikiMap. How do I get one my newly defined InterWiki's to show up? Preferably, since this is for an internal set of pages, I would like to completely replace the InterWikiMap with my own internal map, but I can't seem to find where to do this or any help pages that would enable this. Thanks for your help. --KevinBall

  • In your data directory there's a file called intermap.txt where the interwiki links are defined and probably look at the shared_intermap in HelpOnConfiguration.

Great! That helped! Thanks!

Cannot get themes to work

My default install of MoinMoin has no theme. Everything that would normally be in a sidebar or along the top just appears as plain-looking text. Menu items are in a bulleted list. My install must be screwed up somehow (file locations or permissions) but so far I've not been able to find the problem.

Some details:

  • Running SuSE linux version 9 on an x86
  • Installed MoinMoin to the directory /srv/www/MoinMoin

  • moin.cgi contains the following paths:
    • sys.path.insert(0, '/home/USERNAME/WikiData/WIKINAME')
    • sys.path.insert(0, '/srv/www/MoinMoin/lib/python2.3/site-packages')
  • My user profile page lists the three standard themes (classic, modern, and rightsidebar) but no matter which one I choose things still look ugly.
  • All the features seem to work fine, just the formatting is messed up.

Can someone offer suggestions on how to troubleshoot this?

Thanks! --SteveDavison

Obviously your /wiki (?) url_prefix doesn't work or your apache alias configuration doesn't match the moin url_prefix configuration. You can try this without moin by accessing http://server/wiki/modern/css/screen.css (it should show some css source code in that case). -- ThomasWaldmann DateTime(2006-01-19T08:34:00Z)

  • --> Solution: BR Went through all the installation instructions again... I had missed the step to set up an alias in Apache that points to the moin htdocs... Once I added this, everything worked beautifully. (I think in this case, "/srv/www/MoinMoin/" is what is referred to as my MoinMoin "prefix"?)

    • Alias /wiki/ /srv/www/MoinMoin/share/moin/htdocs/

Moin in frames

Hi, I would like to know if somebody has tested Moin as part of a frame or something similar. I am thinking about that because a potential customer wants a wiki implemented on his pages and I do wiki hosting. So this means I would not install a wiki on the customers web server. -- ThiloPfennig DateTime(2006-01-22T10:30:30Z)

german support

why there is no place to ask in ? --DetlevLengsfeld MoinMoinFragen

Words containing the /-character

If I name an article AC/DC. The link in the top of the page is written AC/ DC with a space in it. Also if I click the AC part and article named AC is loaded. Is there a way of naming an article with words containing the / without this behaviour??

  • No, as the slash is used as kind of path separator. Maybe make the page named ACDC or AcDc or AC\DC and a headline = AC/DC = on it.

How to include contents from a cgi-bin script into a wiki page

I have a cgi-bin script that creates an HTML page. I want to have the contents of this cgi-bin script included inside of a Wiki page. I tried the Include macro but nothing happend. Can this be done? What is the best way to view the cgi-bin ouput within the wiki?

How do I implement LDAP authentication

I have MoinMoin setup and running fine...I would like to use our Active Directory server via LDAP to authenticate and create users. I have read a few pages in this Wiki about it but they don't seem to work. Can someone give me some step by step instructions as in which files to edit/download? Thanks in advance.

  • ldap/ad support is in 1.5.3 including some sample config.

HTTP Basic authentication with IIS

Is it possible to use HTTP Basic authentication with IIS? In IIS config GUI, in the properties of my website -> Directory Security Tab -> Authentication and access control Edit.. button, I removed everything except Basic authentication. I'm using MoinMoin 1.5, Python 2.4.2 and IIS 6 on Windows 2003. -- RemyRoy DateTime(2006-01-24T21:56:24Z)

  • Try like this:

from MoinMoin.auth import http

class Config(DefaultConfig):
    user_autocreate = True
    auth = [http]
    #...

Thanks, it works! -- RemyRoy DateTime(2006-01-25T16:21:06Z)

Where does my attachments go??

When I try to attach a file, I click the browse button. Choose the file. Then klick Send. And I get back to the article. Yet my attachment seem to have vanished. It's not available. And if I look in the folder where the page is stored. No attachment. I use MoinMoin 1.5.0 and Apache 2 on Windows XP.

User pages under another article

Can I change the behaviour of user pages so that they are stored under mywiki/users/WikiName instead of mywiki/WikiName ??

  • No. At least not that way. 1.5 has the capability to link to another wiki with user home pages, though, see user_homewiki.

Prevent Editing When Not Logged In

I've searched and searched for how to do this, but can find nothing. I think the ability exists, since I have seen mention in several other questions of someone not being able to edit a page because they are not logged in. Are there instructions anywhere that describe how to configure MoinMoin to require login for edits? Thanks. --SteveDavison

How do you apply a patch ?

How do I apply those .patch files I find on this website ? -- RemyRoy DateTime(2006-01-30T18:41:39Z)

I'm using windows and I found this interesting link about the patch utility for windows: http://drupal.org/node/23409 -- RemyRoy DateTime(2006-01-30T19:26:50Z)

What are dict pages?

In the configuration there are some entries more or less undocumented: page_dict_regex, page_form_regex, page_group_regex, page_template_regex

I conjecture that "forms" are this not working feature (FeatureRequests/FormEditing, FormSamples) and groups are used for acl, but the other two? -- -- TobiasPolzin DateTime(2006-01-30T20:17:40Z)

  • dicts are used e.g. for extending the navi_bar with custom translatable items.
  • templates are used for creation of new pages, see the list there when you try to

After installing 1.5.1 over 1.5.0 the subscription is gone

There is no menu entry for "subscription" and also the subscribed pages from the UserPreferences are gone. I did just an "emerge =moinmoin-1.5.1 && /etc/init.d/apache2 reload". Any hint? -- -- TobiasPolzin DateTime(2006-01-30T20:17:40Z)

Trying to change wikiconfig.py to 'index,follow'

We are implementing a googlebot and I need all wiki pages to have html_head_queries = 'index,follow'. I have added that line to my wikiconfig.py and compiled into a .pyc but the change is not reflected when I go to the wiki pages. Any ideas what I am doing wrong?

  • This is the default:
        html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n'''
        html_head_posts   = '''<meta name="robots" content="noindex,nofollow">\n'''
        html_head_index   = '''<meta name="robots" content="index,follow">\n'''
        html_head_normal  = '''<meta name="robots" content="index,nofollow">\n'''
    So if you want to see it on ALL normal pages, edit html_head_index and html_head_normal.

Thank you! That did it!

Checking user agent ??

I've been working on a custom skin for my wiki, and I wonder if I can get the user-agent of the browser in the python code?? I want to be able to do some changes if a mobile device tries to surf on the page.

OT: Content Licensing

I've just started a new public MoinMoin wiki ([http://reluctantexpatriates.com/library Reluctant Expatriates]), and am wondering what others do re: licensing the content. Wikipedia uses the GNU Free Documentation License--are there other possibilities? Need a license be used at all? What are the advantages/disadvantages when using a license?

On a related note, who owns the Wiki content? The original author? Everyone who worked on it? Nobody?

Just thought I'd ask. -- [:WalterGildersleeve:Walter Gildersleeve], Freiburg, Germany

  • Most licenses suck for wiki usage. IMHO, the GFDL is much too long and much too paper oriented for a wiki. There also seem to be compatibility issues with other free licenses when using GFDL. Personally I didn't find any great wiki license yet. Maybe have a look at the creative commons stuff and judge yourself. -- ThomasWaldmann DateTime(2006-02-02T16:41:18Z)

The links at the bottom of my edit page are broken. The links that look like the following:

The links are in the form http://example.com/folder/SynataxReference when they should be in the form http://example.com/SyntaxReference. All other links work fine. Only those links refuse to point to the "root" of the server. Why didn't that link change and how do I change it appropriately?

Position and size of attached images??

When I display an attached picture with attachment:albumcover.png It positions itself to the left of the page, and with the size the picture has. But I want to be able to have the picture aligned right and with a smaller size. Is this possible?? I suppose I could put it in a table with a tablestyle that positions it where I want it. But I can't change the size that way can I??

https issues (with #redirect and other things)

I've seen this issue mentionned (most notably in ["MoinMoinBugs/URLMappingsBogosities"]): when running MoinMoin as standalone behind an http apache proxy, sometimes links are broken, replacing https by http. This happens for example with #redirect directives, but also when renaming a page.

The following did solve the issue, but since I didn't see it anywhere, thought I could mention it: change your properties dict in moin.py to include 'is_ssl': 1 as in:

    # Properties
    # Allow overriding any request property by the value defined in
    # this dict e.g properties = {'script_name': '/mywiki'}.
    properties = {'is_ssl': 1} 
  • /!\ move this to a bug report. check first if there is already one.

I have this problem with 1.5.5a but this workaround isn't available for me since I use moin.cgi with apache behind a (Pound) proxy. - pablos.

Marking up a table for automatic row numbering

Q: I would like to create a table who's first column is autonumbered..

1

stuff

2

more stuff

This would allow for easy insertion of data. Thanks, Dave.

Reply : I am not sure how to understand this. Where should the number come from? e.g.["ParserMarket/sctable"] or ["ParserMarket/sstable"]

Reply to reply : I was hoping the rows would be autonumbered starting at 1 - Dave Thanks for the sctable pointer

Too few FCKeditor options ???

Q: I downloaded and installed MMDE and there are not 1/3 of the FCKeditor options that show on the FCKeditor site. Can that be resolved?

We only activated the basic stuff we needed for moin. If you want to get more concrete about what you miss, go to FeatureRequests.

Viewing Document Title and Content Using The Include Macro

I'm trying to put a blog-ish front-end on my wiki using the include macro. I'm having a few problems, so any help with these questions would be grealy appreciated.

  1. Is there a way to display both the title of the page and the content using this macro? The HelpOnMacros/Include page infers that titles should be included by default, but I never see it.

  2. I can't see the title of my included pages, even if I use the titlesonly parameter. Here's the macro line that I'm using:

    • [[Include(^BlogTest/.*,, to="^----$", sort=descending, items=7, titlesonly)]]

    • That macro doesn't show any content (which is expected) but it also doesn't show the titles. Is there something that I'm missing? If I get rid of the titlesonly parameter, then I see the content, but no title.

    Please show us which version you are trying (SystemInfo)

Setting sitename from within a wiki

Is there a way to make the wiki's title configurable from a wiki, maybe as a dictionary?

  • No. For what is that useful?

Trouble running with mod_python

I'm currently trying to run moinmoin 1.5.2 with Apache 2.0.64, python2.4 and mod_python 3.0.1. But I get the error [Sat Feb 18 18:48:37 2006] [error] make_obcallback: could not import mod_python.apache.! Any ideas as to what's wrong??

Reload farmconfig.py while TwistedWeb is running

I'm playing with an idea of wikis dynamically created by users. The server is twisted, which means that it's not aware of any changes to the code during runtime. The question: is it possible to have some kind of dynamic farmconfig, without changing the MoinMoin source? -- JureVrscaj

  • No.

Q: I have an HTML file attached to some page. I link to it using attachment:something.html and that works fine.

However, this particular file is large, automatically generated one, and I would like to create links directing to the anchors in it, like:

attachment:something.html#line20052

This is not possible, whole something.html#line20052 string is considered to be the name of a new file.

Is there any patch/solution I could use, apart from using long, ugly, error-prone and due-to-change GET url?

  • Thanks. - nosek

I need to link something alike [http://example.org/ [link ends here] but it should end here] frequently. Is this possible (escape the ']' character)? The help section about linking doesn't mention such a case. (Just hope I didn't overlook something obvious, as I am new to Wiki and MoinMoin in particular. -- Oliver

This email already belongs to somebody else

(update problem; solved :-) )

"Diese E-Mail-Adresse gehört bereits jemand anderem": This is the message I get if I want to update the user preferences of my own account. What I have done:

  • install moin-1.5.0beta; create an instance moin-1.5.0beta/MyInstance
  • create user MaxMustermann with email Mustermann@nirwana.net

  • install moin-1.5.2 into a new location; create a new instance moin-1.5.2/MyInstance
  • DO NOT: create user ErikaMustermann with email Mustermann@nirwana.net

  • copy the old data directory into the new instance: cp -R moin-1.5.0beta/MyInstance/data  moin-1.5.2/MyInstance

  • login with MaxMustermann; the email Mustermann@nirwana.net is shown

  • chance the default theme, "save preferences": get the error message.

The idea was to keep the old version running. The problem arises if you merge the user data of two running instances.

Solution: allow a mapping of different users to the same email address. -- Yes, I am aware of that: Somewhere else in this wiki there was the discussion, if one email adress should allow more than one UserNames. IMHO this should be allowed: It ist quite useful e.g. for demonstration or admin purposes; mainly it allows to play several social roles in the same group. The current moinmoin policy arises the need to have several distinct mail aliases on my server. Would it not be better to know within the wiki which different users have the same email? [:jbusse:]

serving files in zip archive attachments?

Is that possible? -- ["MSt"] DateTime(2006-02-24T13:15:17Z)

  • No, but you can extract them before you want to serve them.

Problems starting moin (initial install)

I am trying to create a standalone moinmoin wiki on a linode running debian and apache. I have python 2.3 and 2.4. I am using 2.4 for this installation.

I installed to /var/www/moin_python2.4/ in /var/www/moin_python2.4/ the folders are bin, lib, share, test_wiki.

In /var/www/moin_python2.4/share/moin/config/ there is a wikiconfig.py file and also in /var/www/moin_python2.4/share/moin/test_wiki there is a wikiconfig.py file.

I am not sure which I should modify and i am supposed to move the moin.py to the place where wikiconfig.py is but there are two wikiconfig.py locations so which should I move it to? Where should I copy the moin.py file from and what changes to I need to make to it? Also do I need to save it to /usr/bin/env or somewhere?

Changing the URL

I am using the standalone setup and I want the entire wiki to have a base url, eg http://my.machine.net/foo/FrontPage rather then the current http://my.machine.net/FrontPage.

Is this possible? If so, how?

Look at HelpOnEditing/SubPages. On this page "HelpOnEditing/SubPages" is not rendered as a link (see first example). "HelpOnEditing/SubPagesXxxx" would, thus I conjecture that just links to the page itself are not rendered as links. Is this a bug or a feature?

  • Of course this is a feature.

How to change a protected page into a non protected page

In my local wiki (MoinMoin Version 1.5.2 on IRIX64) the page WikiSandBox is a protected page ("Geschützte Seite"). Even though I have administrator rights I did not found a way so that any user can experiment with this page. What can I do to change the status of this page?

  • How is acl configured in wikiconfig?

    • acl_rights_default = u'StudentGroup:read,write,delete,revert All:read'
      acl_rights_before = u'AdminGroup:read,write,delete,revert,admin '

      I belong to the AdminGroup but I cannot edit this page, too.

  • Is there an acl line in your WikiSandBox?

    • I think it is the default WikiSandBox without any acl and because of this problem I had no chance to modify it. (Of course you can change the source code via the operating system.) It has the following lines in the beginning of the page: {{{## Please edit system and help pages ONLY in the moinmaster wiki! For more

#format wiki #language en (...)}}}

  • Maybe check filesystem access rights for the underlay directory. And probably who is the owner of this dir and who is the owner of the webserver process. Does it match?

I made some tests varying owner and file permissions but had no success. It remains protected. I solved the problem for me by copying the directory WikiSandBox manually from underlay/pages into the data/pages directory and changed its file permissions according to other files in this directory.

Beside my special problem I have some difficulties in understanding the general concept of the underlay directory. I understand that pages in this directory are normally read-only and should not be altered by users. There are only few exceptions like e.g. the WikiSandBox. But what do you have to do when you like to change such a page (in a perfect installed wiki setup). How do you change the state of a page from "protected" to "non-protected"?

Problem With Caching Category Names

A while ago, I created a bunch of categories in my MoinMoin wiki. Some of them had titles like this:

CategoryJavaAPI
CategoryXYZ

MoinMoin doesn't recognize these word as WikiWords because I have more than one capital letter in a row, so I did the following to force them into being WikiWords:

["CategoryJavaAPI"]
["CategoryXYZ"]

This fixed my WikiWord problem, but it introduced a new one. These categories now appear in the Category dropdown list like this:

CategoryAbc
["CategoryJavaAPI"]
CategorySomethingElse
["CategoryXYZ"]

This is confusing for our users, so I tried to replace the quasi-camelcase categories with MoinMoin-friendly camelcase categories. So, first I deleted the "CategoryJavaAPI" page and replaced it with "CategoryJavaApi". I did the same thing for all of my quasi-camelcase category names.

Unfortunately, this didn't fix my problem. I still see the same weird formatting in my dropdown category list. I thought that I might have some references to ["CategoryJavaAPI"] somewhere in one of my pages, but I wasn't able to find it when doing a text search.

Is there a cache somewhere that I can clear to see the new, MoinMoin-friendly category names? Is there somethine else that I'm missing?

Thanks in advance for the help!

Tom Purl

Removing the attachment symbol in TitleIndex

I need a simpler Index page, without the attachment symbol displayed behind the page name:

attachment:screenshot.jpg

How can I suppress this picture/link or modify the TitleIndex macro?

-- JeanJacquesKahn DateTime(2006-03-15T16:33:52Z)

What's the problem with it exactly? Looks? Speed? Other?

Currently there is no way to suppress that except having a custom TitleIndex macro in your plugin directory (which could be just an externalized and modified copy of the code in MoinMoin/wikimacro.py).

It's mainly a look issue. Instead of modifying wikimacro.py, y will create an alternate definition for the 'attach' icon in our local theme file -- JeanJacquesKahn DateTime(2006-03-17T16:35:13Z)

How can I link a create a link on a picture opening a Wiki page or any URL instead of a page containing only the original picture?

You can use the ImageLink macro from MacroMarket. We are including it in moin 1.5.3 release.

''' How can I insert background image to my page? '''

Is the a way in moinmoin where I can insert a background image aside from the color background.Coz I want my page to have a background image. Thanks.......

How can I include Return characters in a table cell?

If a place text that includes returns (new lines) in a cell, the table breaks. In particular, this prevents me from placing a bulleted or numbered list in a cell. Is there a special character that I can use in a cell that will not break the table? Or is there a table format that will not break when it includes returns? I already tried a CVS table.

Thanks.

-- DavideAndrea Mar-17-2006 (try @ SIG @ without the blanks)

Do you speak about something like this?

* oneBR * two

next cell

see MacroMarket/MiniPage -- ReimarBauer DateTime(2006-03-17T18:18:23Z)

Must e-mail notifications be sent in utf-8?

Some of your wiki users use old e-mail readers that don't suport utf-8. Is there an easy way to configure e-mail for or everyone so that mail is sent in 7 bit ascii?

-- PaulDubuc 20 March 2006

May be the following option of sendmail does this:

-B <type> This is a Sendmail option for selecting 7 or 8 bit processing. 
          Exim is 8-bit clean; it ignores this  option.

-- ReimarBauer DateTime(2006-03-20T21:16:09Z)

the "-B 7BIT" option mentioned in the sendmail manual page doesn't have any effect. I also tried "-OSevenBitInput=T" with no luck.

--PaulDubuc

Is there a way of creating discussion pages for every page like in Wikipedia ?

I want to set up an Internet Site for a non commercial Projekt. All People (about 30) involved should build the Internet Site together, wich is why a wiki is perfect.

Because of the Gui Editor and the fact that I don´t need a special database for it I would like to use MoinMoin

But we also want the Public to use the Pages for Information, so Discussion should be kept off the normal pages. Discussion should, like in Wikipedia, be visible by clicking on a standardized discussion Button.

Is there a way to achive this is MoinMoin, maybe an extension or a kind of macro ? btw: I dont want to Insert a discussion Link manually in every page.

Gunter Kramp

  • I'd very much like that, too. It seems strange to me that there's no easy way to do this; a better answer than what amounts to "RTFM" would be nice, too. -- ["kamagurka"] Date(2006-08-23T15:05:32Z)

  • see HelpOnTemplates

  • or look at PageEditor.py and change it for your needs

-- ReimarBauer DateTime(2006-03-22T04:02:18Z)

How can I change the text color in the table at the same using the width size?

  • hello I'm working on a table and what I'd like to do is to change the text color of the table and give specific size of the table.But my problem is whenever I change the text color the size doesn't make on the size that I specify same as well on the size when the size is the size I specify but the color doesn't change. Thanks in advance and hope you will help me with this problem......

How can I change the default search action from titlesearch to fullsearch?

Hy there,

if I use the search-field in the upper-right corner to search my wiki, the default search action (invoked by pressing enter) is title search. My users requested to change that behavior to search fulltext by default (pressing enter). How can I do that?

thx, Jonatan Antoni

Maybe rather explain your users why it is better the way it is: you can use it as "fast goto page" when entering just some name fragments you remember and hit enter.

Having serious problems with Include Macro

I think that the include macro has some major flaws, but due to how poorly it's documented, it's hard to tell whether the design is brain-damaged, or the implementation is. I can't imagine that someone would want it to work the way it does. The help page relies almost entirely on examples to convey the usage, but some of the examples just don't do what they're supposed to.

So the best I can do is air my complaints and hope that someone can explain it better than [:HelpOnMacros/Include] does.

Case 1: Include a page with a heading

According to the example 2 on [:HelpOnMacros/Include], the code [[Include(FooBar, )]] should "add a H1 of 'Foo Bar' followed by the text". In reality, the page is included with no heading.

Case 2: Include page, with explicit heading

Example 4 states that [[Include(FooBar, 'All about Foo Bar', 2)]] should "add a H2 of 'All about Foo Bar'" before including the FooBar page. True, but not very useful. When including a single page, you can easily insert your own link. But when including multiple pages, why would you want to have the same title for each one?? For example, I have a page with several subpages, each one describing an API call. I include all the function prototypes with the command [[Include(^StandardLibrary/.*, "Prototype", 4, from="^## Prototype Begin", to="^## Prototype End")]], which produces output like:

  • [:StandardLibrary/strcmp:Prototype]
     int strcmp( const char* str1, 
                 const char* str2);
    [:StandardLibrary/strcpy:Prototype]
    char* strcpy( char* dst,
                  const char* src);

    {i} This only works after patching the macro as described in MoinMoinBugs/IncludeMacroBroken.

Seems pretty worthless to me. Ideally, the page name would be placed before each include, but I can't get that to work (see above).

Case 3: List only the titles of matching pages

From the explanation of the titlesonly param, you would think that it should give you a list of all the matching page titles, probably as hyperlinks. Instead, you get a bulleted list of all the headings on each matching page, with no divider between each page. The headings are hyperlinks to the page that contains them. For example, the code [[Include(FooBar,,,titlesonly)]] produces output that looks like:

  • [:FooBar:Title]

    • [:FooBar:Heading 1]

      • [:FooBar:Heading 1a]

      • [:FooBar:Heading 1b]

    • [:FooBar:Heading 2]

    • [:FooBar:Heading 3]

They are all links to the page FooBar, but the text comes from the headings found in FooBar. If this was intended behavior, it should be called headingsonly, not titlesonly, but even then it makes very little sense.

General Observations

  • undocumented: If there are any spaces between the opening parenthesis and the 1st parameter (pagename), it will simply fail to find any matching pages. This took me forever to figure out. The macro should not be so picky.
  • undocumented: The first parameter cannot be in quotes or it again fails to find any matching pages.
  • undocumented: The second parameter (heading) must be in quotes, or it generates an error message. How inconsistent is this? {i} You must patch the macro as described in MoinMoinBugs/IncludeMacroBroken before you can see this behavior as described.

  • undocumented: If the pagename parameter is a regular expression (begins with a ^ character), then it is treated as case-sensitive, and must match the case of the saved pages exactly. If not a regular expression, the match is case-insensitive. (I understand that regex is technically case-sensitive, but that is a real pain here... At a minimum, the documentation should point this out, since page names are not treated case-sensitive in general. The danger is that if someone renames a page to change only the case, it will break Includes that use regex, but most other things are unaffected.)

  • undocumented: There appear to be three different types of parameters for the Include macro: c-style (value only), named (name=value), and flag (like a switch, it's either there or not). The c-style params can be optional, but you have to put commas in for them if you want to specify any params that follow. Not too hard to figure out from the examples, but still odd enough it deserves some explanation.

Anyway, sorry if this is misdirected. It's just hard to know how it's supposed to work when it's not well documented and buggy at the same time. Thanks for any clarifications. -- SteveDavison DateTime(2006-03-23T04:30:05Z)

  • Maybe better move this to a MoinMoinBugs subpage (this page here is already too long).

Add spaces in a line

What is the easiest way to add "n" spaces in a text line?

moin equivalent of "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"

Thanks

-- JeanJacquesKahn DateTime(2006-03-24T15:18:10Z)

  • Use backtick to surround the spaces (like           this). The spaces will be in a different font, but hopefully that doesn't matter.

    like `          ` this 

-- SteveDavison DateTime(2006-03-24T16:37:55Z)

Thanks -- JeanJacquesKahn DateTime(2006-03-27T08:32:18Z)

Is there a way to configure MoinMoin, that it shows existing attachments directly at the end of the page?

I think, not everybody will notice, that there are attachments on this page. Therefore I tried to change this behaviour but did not managed to. Thx for help

  • [[AttachList]] macro evaluates to the list of attachments of the current page. Insert this macro in any place on your page you want and they're all visible.

Can I used lists functions in a one cell table?

  • Im trying to used table and inorder to make it attractive I want to use lists on it.Is it possible?

How do I integrate LDAP authentication with moin moin?

I read several pages on this site that MoinMoin can be integrated with LDAP but none of them seem to be explanatory on what needs to be changed, One page lists the wikiconfig other pages just list python code but dont say what file the code needs to be placed in. Can someone please help me with some instructions.

Thanks

Chris

  • For information on authentication in general see HelpOnAuthentication. Unfortunately it looks like it hasn't been updated to document the LDAP authentication support. Basically in your wiki configuration you need to add/edit an auth parameter to be a list of authentication methods. This normally defaults to just [moin_cookie]. You need to add in the ldap authentication before that, as import MoinMoin ; auth = [MoinMoin.auth.ldap_login, MoinMoin.auth.moin_cookie]. You'll also need to add quite a few LDAP-specific configuration parameters to tell it how to query/bind to your particular LDAP server. The best thing to do until documentation is written is to read through the MoinMoin source code file MoinMoin/auth.py and look for the ldap_login() function. I haven't used it, but it looks like it wants these configuration parameters: ldap_coding, ldap_uri, ldap_binddn, ldap_bindpw, ldap_base, ldap_scope, ldap_timeout, ldap_name_attribute, ldap_email_attribute. From reading the code it looks like ldap_enconding is the character set used to communicate with your server, such as 'ascii'. ldap_binddn and ldap_bindpw is a user/pass binding for LDAP used for the initial query for the user (once the user is located in your tree, a second bind is performed with the user's DN and the pass-in password). ldap_base, ldap_scope, ldap_name_attribute, and ldap_timeout are used for the initial query for the user--the query filter is something like (UNAM=johndoe) if ldap_name_attribute is UNAM and johndoe is the entered username, and is limited to the tree rooted at ldap_base and within ldap_scope. The ldap_email_attribute names the field which contains the user's email address. -- DeronMeranda

How can I center ( or right justify ) image attachments?

If I install the html.py plugin I can do something like:

    {{{#!html
       <P align='CENTER'>
       <img src='http://homepage.mac.com/levanj/.Pictures/Morini.jpg'>
       </P>
     } } }

And the image will be fetched an be centered in the page. Is there any decoration that can appear around

  •        attachement:Jerry.jpg

That can achieve the same effect?

Jerry

How to define a common group definition in a wiki farm?

We need to give rights to the same group of people on all the wikis of a farm  ex.: FarmAdminGroup .

I created a group definition page in the underlay pages that can be seen from any wiki, but the correct access rights are only granted after saving a local copy in each wiki.

Any idea? -- JeanJacquesKahn DateTime(2006-04-07T16:22:48Z)

It should work. If it doesn't, it is maybe because of the wikis don't notice the updated page. In that case, you could remove the file data/cache/wikidicts/dicts_groups after updating the group page. If it still doesn't work, stop wiki, delete file, start wiki. If you run a moin 1.5.2+, please file a bug. -- ThomasWaldmann DateTime(2006-04-07T16:58:53Z)

It helped indeed, thanks -- JeanJacquesKahn DateTime(2006-04-28T08:46:26Z)

How can a "sidebar" be created?

I guess the title says it all...I am a new moinmoin user without much python or css experience...I really would like to create a navigation menu on the left/right side of my start page for my wiki...

I downloaded the Section Parser but the instructions (for me) are a bit vague.

Install
=======

 1. Copy parsers in `plugin/parsers` into your
    `wiki/data/plugin/parser` directory. `section.py` is required
    by other section plugins.
 2. Copy `MoinMoin/util/header.py` into your `MoinMoin/util` directory.
 3. Add the content of `theme/sections.css` to your theme `screen.css`.

I don't have a util directory in either /usr/share/moin or /var/mywiki...

I really would like to see a couple of examples (the markup...)

Thanks,

Jerry


Ok, I finally figured out the step two refers to the "site-packages" directory in the Python library.

Alas, pasting the small examples in the README into my "Sandbox" page does not seem to have any effect on formatting.

I am running Moin 1.5.2 and the section parser 1.0.2

Jerry


Sigh, I finally got it working. Firefox was hanging on to a cached version of the CSS with all of its might.

Farm on the intranet

  • I am working on setting up various wikis for different departments on the company intranet. I was able to get a single wiki working without much trouble. I am using standalone and I am having trouble setting up farmconfig.py correctly or I am incorrect in the way I think it will work. I have modifed my farmconfig.py wikis = [...

 wikis = [
    ("ProductionDeveloper", r"^server/proddev/.*$"),   
    ("ApplicationDeveloper", r"^server/appdev/.*$"),      
]
  • I am getting errors

Could not find a match for url: "server/FindPage".

Check your URL regular expressions in the "wikis" list in
"farmconfig.py".

and

Could not find a match for url: "server/proddev?action=edit".

Check your URL regular expressions in the "wikis" list in
"farmconfig.py".
  • Am I configuring the wiki farm to only work on sub pages? Can I create a farm like above or do I have to have something like below:

 wikis = [
    ("ProductionDeveloper", r"^proddev.server/.*$"),   
    ("ApplicationDeveloper", r"^appdev.server/*$"),      
]
  • I apologize for posting 3 times. I wanted to try to convey my problem as clearly as possible. It appears that my regular expression is incorrect. I have modified it in many ways and I am not getting the desired results.

    Thank you for your time in advance BobStrickland Date(2006-04-18T00:30:01Z)

UTC

How can I show UTC date and time in a similar way to Wikimedia (see http://en.wikipedia.org/wiki/UTC ) ????????

  • Moin internally only uses UTC, but calculates your local time according to your UserPreferences setting on page view. If you set your timezone offset to 0, you get UTC. If you need both localtime here and UTC there, write some UTC date/time macros.

Where to add eventcal.css ?

Hello all, I added the EventCalendar macro to my wiki, but I'm not sure, where to add the eventcal.css. I copied to the directory /usr/share/moin/htdocs/modern/css and added an @import url[eventcal.css] to common.css and screen.css, but the calendar is still kind of ugly, so it seems to me, as if the wiki does not use the special css. What can I do to change this behavior?

Resetting Password Problem

I am confused about the resetting password feature, this is with 1.5.3. When it sends the email the password is the SHA encrypted value, and the text on UserPreferences says to "Just copy and paste it into the login mask into the password field and log in." But I can't seem to get it to work. When I paste that into the password field and try to login it tells me "Sorry, wrong password" Is this a bug or am I doing something wrong?

I found the source of the problem, and also a fix. See MoinMoinBugs/ResetPasswordEmailImproperlyEncoded

PDF attachments do not load in browser

Since I upgraded to version 1.5.3 the pdf attachments on my wiki pages will not load in my browser. I can download them and view them in acrobat, but cannot view them via the acrobat plugin. I see this behavior only with docs on my wiki. What can I do to correct this? -- JamesCurry DateTime(2006-04-23T11:30:21Z)

My MoinWiki is not completely translated

I try to use moin with only one langage (french), I read and apply the HelpOnLanguages page, but my site always diplay

This page does not exist yet. You can create a new empty page, or use one of the page templates. Before creating the page, please check if a similar page already exists. Create new empty page...etc.

and

Attach File, Depam, May Pages, etc. in listBox of Actions How can I apply this translation files? MoinI18n/fr

-- Pascal DateTime(2006-04-24T11:51:21Z)

Done. Thxs it's work for the system pages but... my list box is always not completely translated. My list Box contain: "Autres actions", "Code Source", ... "Attach Files", "Despam", "My Pages", etc.BR The Action ListBox diplay French and english items. -- Pascal DateTime(2006-04-25T12:00:21Z)

  • Which version of MoinMoin are you using?

Version de Python: 2.4 on Mandrakelinux 10.2 3.4.3-3mdkBR Version de MoinMoin 1.5.2 [révision release] -- Pascal

  • Try MoinMoin 1.5.3, it should be fixed there.

CategoryTemplate

Is categoryTemplate a template for creating Category pages, or is it a category to be placed on Template-type pages? As it is, it could be either. It meets both the naming criteria for a category (begines with Category) and for a template (ends with the wourd Template). And looking at the page contents, it could either be an unfinished category, or a template. (I think I know the answer to this question, but this ambiguity should be cleared up. Plus, it's kind of funny...)

  • It is a template for making new category pages.

Problems with permissions? (WinXP SP2, Apache2.2.2, Moin1.5.3)

I've just installed the latest version of Moin-1.5.3 on a WinXP machine (SP2) running a fresh installation of Apache2.2.2. I appear to be getting the following problem reported in Apache's error.log file:

[error] [client 140.79.20.85] client denied by server configuration: C:/Server/Moin/mywiki/moin.cgi

When checking moin.cgi (by saving as test_moin.py and running in Python IDE) the following error results: BR

Traceback (most recent call last):
  File "C:\Program Files\Python24\Lib\site-packages\MoinMoin\request.py", line 1372, in __init__
    msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
  IOError: [Errno 9] Bad file descriptor

Just wondering if anyone has come across this error before, it appears that there might be a permissions clash, however the installation/setup.py has ensured that all created directories are read-only. I've attempted to change these, however they return to read-only after the change is "complete" - what Moin directories/files specifically require read/write access?

I've also checked all paths etc and everything looks about right to me... can someone help here?

I do think this is mainly caused by your apache configuration. Have you read http://www.raditha.com/blog/archives/000896.html. Please provide your apache config file if this does not help. -- MichaelRau DateTime(2006-05-04T18:10:42Z)

Thanks Michael, from your link below it appears that the configuration file (httpd.conf) of the Apache 2.2 (2.2.2) install might be the problem here... You've indicated that the additional security in this updated release might be the conflict (which causes the document root for the virtual host to become inaccessible)... Can you clarify your resolution for me however... you suggest commenting out the access configuration stuff (what exactly are you referring too here?), or a better solution, to add "Order deny,allow Deny from all" to the virtual host block... Sorry to be a dum dum here, but can you explicitly outline what you suggest here? I am able to browse the default file in the htdocs directory, just not the (mywiki) sub directory... -- Thanks Paul DateTime(2006-05-04T07:30:56Z)

I have not seen your httpd.conf file (read http://httpd.apache.org/docs/2.0/configuring.html). But I think, that the order directive is wrong (read http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order). Here are the important directives in my httpd.conf file.

AddHandler cgi-script .py

<Directory "%root%/home">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

# ==============================================================================
# MoinMoin wiki
# ==============================================================================

Alias       /wiki/     "%root%/Python24/share/moin/htdocs/"
ScriptAlias /emnosWiki    "%root%/home/Moin/emnosWiki/moin.cgi"

<Directory  "%root%/home/Moin/emnosWiki/">
    AllowOverride All
    Allow From All
    Options +ExecCGI
</Directory>

-- MichaelRau DateTime(2006-05-04T21:32:41Z)

It appears after completing the suggestions above to the Apache conf file, the error is now a (500 Internal Server error) with the error log indicating:

[error] [client 140.79.20.85] (OS 2)The system cannot find the file specified.  : couldn't create child process: 720002: moin.cgi
[error] [client 140.79.20.85] (OS 2)The system cannot find the file specified.  : couldn't spawn child process: C:/Server/Moin/mywiki/moin.cgi

Any more suggestions? I think/hope it's getting closer... -- Paul DateTime(2006-05-08T03:30:56Z)

Thanks for the clarification here Michael, it was indeed my shebang statement in the moin.cgi file. As Python sets itself in the system path during install "#!python" does indeed work. I've now managed to hit another "permissions" error, this time the Apache error.log file reports:

[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/common/js/common.js, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/modern/css/common.css, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/modern/css/screen.css, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/modern/css/print.css, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/modern/css/projection.css, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] client denied by server configuration: C:/Program Files/Python24/share/moin/htdocs/common/moinmoin.png, referer: http://bs4x51s-hf/mywiki/
[error] [client 140.79.20.85] sys:1: DeprecationWarning: Non-ASCII character '\\xfc' in file C:/Server/Moin/mywiki/moin.cgi on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details\r

The default wiki page is viewable, however the stylesheets and icons are not accessible, and consequently, the page looks a little more chaotic than it should...

Michael I've made incorrect assumptions before, so (instead of guessing) I'm wondering if you can shed some light on this error, and possibly help me on the way to a shiny new fully-functioning wiki 1.5.3 :)

-- Paul DateTime(2006-05-09T23:47:41Z)

Maybe I'm starting to learn something here...

Additional to the Moin directory C:/Server/Moin/mywiki the htdocs dir C:/Program Files/Python24/share/moin/htdocs/ also needs it's directives changed (like below, appended to the end of the httpd.conf file):

# MoinMoin installation 13.21 9/5/2006
# Following values appended to the default Apache httpd.conf file
Alias           /wiki/          "C:/Program Files/Python24/share/moin/htdocs/"
ScriptAlias     /mywiki         "C:/Server/Moin/mywiki/moin.cgi"

<Directory "C:/Server/Moin/mywiki/">
  AllowOverride All
  Allow From All
  Options +ExecCGI
</Directory>

<Directory "C:/Program Files/Python24/share/moin/htdocs/">
  AllowOverride All
  Allow From All
  Options +ExecCGI
</Directory>

Mike, are there any dramas with giving this level of access to both directories?

Thanks for all your assistance -- Paul DateTime(2006-05-09T03:25:41Z)

www.example.com/cgi-bin/moin.cgi/ vs. www.example.com/cgi-bin/moin.cgi

When I view www.example.com/cgi-bin/moin.cgi/ in my Browser everything works fine. But when I omit the last slash (i.e. www.example.com/cgi-bin/moin.cgi) I don't start on my page_front_page and MoinMoin complains that the page cgi-bin/moin.cgi does not exist yet. What did I do wrong? What info do you need to help?

Using apache mod_proxy turns all hosts to localhost

I'm running MoinMoin 1.5.2 in standalone mode on python 2.4 behind apache2 mod_proxy, exactly as described in ["HelpOnConfiguration/IntegratingWithApache"]. However, my RecentChanges list all users as connecting from localhost. Is there a way to make MoinMoin show the originating host instead of the proxy host in RecentChanges?

Raw format without headers?

I'd like to let users download a Wiki page which actually is a script or a C++ file (#format cplusplus, #format plain) but without the format definition at the top or any other header statements. Is that possible?

use inline:filename.cpp -- ReimarBauer DateTime(2006-05-13T14:10:24Z)

inline just includes attachments. I'd like to have the wiki page as the file itself so that one may look up edit changes/differences. Just like the "action=format&mimetype=text/plain" argument but without reformatting the page's content -- just strip the header indicating that the page is cplusplus or something else. @MSt@

HelpOnConfiguration shows the var 'default_markup' uses the 'wiki' parser. Perhaps you could change this in your configuration. -- ReimarBauer DateTime(2006-05-13T16:50:43Z)

cgiwrap gives ugly URLs, can it be fixed?

I am on a host that requires using cgiwrap so moin.cgi runs as my userid, saving the caches and pages so they can be edited by that same userid (I can't edit pages saved by the httpd user). My wiki URLs look like this: http://www.scons.org/cgi-sys/cgiwrap/scons/moin.cgi/FrontPage.

I have no trouble using mod_rewrite in my .htaccess to rewrite /wiki/FrontPage to the above ugly URL, but the links in the wiki pages all still have that long ugly form (I guess moin.cgi is looking at its own URL and using that as the base for the links). Is there a way in the config file or by changing the code to have the wiki links use my /wiki/FooPage syntax? -- GaryOberbrunner

TipGame for 2006 FIFA World Cup Germany in MoinMoin

Hello all, it's not a problem, its just a question: has someone developed a macro or another solution for moinmoin-Wiki, which manages and evaluates the tips of about 50 participants? Or has someone an idea how this can be easily done? -- Stephan

  • May be create a template each user has to fill out based on a definition list Game : : tip (without the blank) and tell them to store that below their homepage as e.g. MyTips. Then write a macro which reads all this pages (see at RecommendPage how to get the users) and do write a magical page using a simple table with the collected tips. -- ReimarBauer DateTime(2006-05-18T13:11:17Z)

Ignore New Line in Source code

Hello all, is it possible to ignore a new line in Wiki Text Mode? I want to do the following to improve the readability:

|| Cell 1      || Cell2 ||
|| Cell 3 
   second line 
   bla bla     || Cell4 ||

this should result to the following:

Cell1

Cell2

Cell3 second line bla bal

Cell4

A: No, the table parser can't parse that.

May be a continuation sign for a line could solve this too. If so please add a feature request about this. I am not sure if \ will be the right sign for this. -- ReimarBauer DateTime(2006-05-22T20:52:03Z)

|| Cell 1      || Cell2 ||
|| Cell 3 \
   second line \
   bla bla     || Cell4 ||

Enable RSS feed for RecentChanges

I have converted a Wiki from an ancient (pre 1.0) version to the latest one. It seems to work fine, but I don't get an RSS feed for the RecentChanges. Do I need to explicitly enable anything for this to work? -- twm DateTime

To answer my own question:

The rss feed is only available if the [http://pyxml.sourceforge.net pyXML] package is installed. No additional configuration is required. -- twm

Moving my Wiki from one PC to another

I am evaluating MoinMoin as a project managment and tracking tool for my work group. I am running it on Windows XP. I recently have had my PC upgraded. The original copy of my Wiki is still running on the old PC but I need to port it over to the new one. I installed Moin, Python, Pyxml etc on the new PC. Next I followed the directions provided in the installation heklp page to create my Wiki again, making sure the name was the same as before. Finally I copied the User and Pages directories within the \MyWiki\Data folder with the onces running on my old PC. Now when I go to my Wiki on the new PC I get the message:

IOError

[Errno 13] Permission denied: 'data\\pages\\<My_Wiki_Name>\\cache\\text_html'

I am at a loss. Any suggestions?

Are you sure that you have used the right owner for the files on the second new XP windows system. Is it the same owner as the wiki instance you have removed and does have this worked before? -- ReimarBauer DateTime(2006-05-26T09:58:23Z)

-- Laiq on Friday May 26th, 2006 at 12:13 PM: Thankyou for your response. I really hope you can help me with this.

The Wiki is running fine on the old PC and my user profile and access rights etc in the new PC should be the same as in the old PC.

Yesterday I went in and renamed the text_html file under the all the data\\pages\\<page_name>\\cache folders. With this change I am now able to load and see the Wiki correctly. But now when I edit any page and then try to preview or save it I get the following error and the changes are not saved:

Page could not get locked. Unexpected error (errno=13).

Looking at the trqce back it seems the error is coming from: C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py in _write_file

Also now when I run the self-test I see the following errors:

====================================================================== ERROR: testBasicPackageThings (MoinMoin._tests.test_packages.UnsafePackageTestcase)


Traceback (most recent call last):

  • File "C:/Moin/Lib/site-packages\MoinMoin\_tests\test_packages.py", line 54, in setUp

    • raise TestSkipped('This test needs to be run using the test wiki.')

TestSkipped: This test needs to be run using the test wiki.

====================================================================== ERROR: user: login with ascii password


Traceback (most recent call last):

  • File "C:/Moin/Lib/site-packages\MoinMoin\_tests\test_user.py", line 95, in testAsciiPassword

    • theUser = user.User(self.request, name=name, password=password)

    File "C:/Moin/Lib/site-packages\MoinMoin\user.py", line 270, in init

    • self.id = getUserId(self._request, self.name)

    File "C:/Moin/Lib/site-packages\MoinMoin\user.py", line 68, in getUserId

    • cache.update(pickle.dumps(_name2id, PICKLE_PROTOCOL))

    File "C:/Moin/Lib/site-packages\MoinMoin\caching.py", line 92, in update

    • f = open(self._filename(), 'wb')

IOError: [Errno 13] Permission denied: 'data\\cache\\user\\name2id'


The second error regarding the user:login is new.

THe first error is there on the wiki runnning on my old PC as well so I think we can ignore it for now.

Internal Server Error - Problem with request.py

Hi, this is probably a typical case of PEBKAC, but maybe you could help anyways?

I just tried to set up a MoinMoin Wiki on my computer to try it out. I followed the instructions on this Wiki regarding installation but when I try to open it, i get an internal server error.

My Software: WinXP; Apatche 2.2; Python 2.4.3

the apatche error log entry reads as follows

[Tue May 30 09:57:39 2006] [error] [client 127.0.0.1] (OS 5)Zugriff verweigert  : couldn't create child process: 720005: moin.cgi
[Tue May 30 09:57:39 2006] [error] [client 127.0.0.1] (OS 5)Zugriff verweigert  : couldn't spawn child process: C:/moin/mywiki/moin.cgi

NOTE: Yes, my moin Instance is in c:/moin/mywiki

when I rename moin.cgi to moin2.py and run it in idleI get the following traceback:

Traceback (most recent call last):
  File "c:\Python24\Lib\site-packages\MoinMoin\request.py", line 1372, in __init__
    msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
AttributeError: PyShell instance has no attribute 'fileno'

I didn't touch request.py. *scratches head*

Help would be greatly appreciated, thanks in advance!

Fischi

I also am having the same problem have you solved this yet?

Bryan

Try testing it starting the python interpreter from a cmd, not with idle.

wrong time

When i do a modification on my wiki, the modification time is GMT. What should I do to correct this.

May be you should have a look into your Preferences and do correct the Time Zone -- ReimarBauer DateTime(2006-06-01T06:52:20Z)

password recovery

Asking for the second time,

I have access to the config files, but email apparently isn't enabled (even though I put in an SMTP server in wikiconfig.py just now) and thus there is no "mail me my account data" link. I tried pasting in the SHA-1 hash from my file in wiki/share/moin/data/user/... but it won't accept it. How can I get access again? It seems ridiculous to me that a lost password for an admin account is unrecoverable!

Linking to page actions

Before I upgraded my wiki I was able to use he syntax [:wikipage?action=edit:Link to a page with an action] however with the latest version the editor translates the ? and = to %syntax? Is there a way to do a wiki link to a page with an action? Is there an escape sequence for the special characters?

@sig@

No CSS on standalone wiki on lighttpd

I've followed the guide [http://moinmoin.wikiwikiweb.de/HelpOnInstalling/FastCgi FastCGI] to the letter, but I get no CSS while it still find the themes. How do I make the server find the htdocs directory?

  • You need to add an alias like this in your lighttpd.conf
      $HTTP["host"] == "localhost" {
            alias.url += ( 
                    "/wiki/" => "/the/path/to/htdocs/"
            )
      }

Disabling GUI Editor

The GUI editor is constantly causing problems for us, and I would like to disable it completely. We have put the following in our farmconfig.py file...

    editor_default =  'text'
    editor_ui = 'text'
    editor_force = 1

... but there is still a "GUI Mode" button from the text editor page. Is there any way to completely prevent use of the GUI editor? -- SteveDavison DateTime(2006-06-06T21:28:18Z)

line 335 of PageEditor.py tells::

  • if not (self.request.cfg.editor_force and self.request.cfg.editor_default == 'text'):

may be this is a bug please could you file it at MoinMoinBugs

the workaround is to comment off this condition

#        if not (self.request.cfg.editor_force and self.request.cfg.editor_default == 'text'):
#            self.request.write('''
#<input id="switch2gui" style="display: none;" class="button" type="submit" name="button_switch" value="%s">
#''' % (_('GUI Mode'),))

-- ReimarBauer DateTime(2006-06-06T21:46:14Z)

Automatic Page Creation

On our moinmoin-Installation (IIS 6.0, MoinMoin 1.5.3, Python 2.4.3) the automatic Page creation doesn't work. I always get the error-page 'The page cannot be found...' instead of the Dialog -page to create a new page. Can anybody help?

I read the HelpOnInstalling once again, and verified all the things regarding IIS and it seems to be installed correctly.

  • If you did the changes described there needed for correct 404 error handling, we can't help any more. Maybe contact Microsoft support.

Setting default user preferences

I generally like to present as simple a view as possible to my users, letting them add options as they get more comfortable with a program. I would like to hide, by default, the page trail on the top of the moin page. I tried what I think is correct in the wikiconfig.py, but it's not working (I tried flipping the 0 to 1, no difference):

    user_checkbox_defaults = {'show_page_trail': 0}
  • Nevermind. I discovered that the setting effects NEW users, but not existing users. Thanks.

Editing Tables In GUI

We have users that don't really get the special characters in Wiki and so don't like to use the Wiki. Therefore we are upgrading to this later version of MoinMoin Wiki. I have tried using the GUI editor, but there is a distinct lack of help text on using the GUI, as far as I can find. But the GUI should have even more help for those types of people that use it. Yes some things are just like standard programs that they use, so those parts should be easy for them. But there are other things that are not in standard programs and should have extensive help available. Anyway, I could find no way to edit an existing table - in particular to add or remove rows or columns. There is a button that sometimes is enabled, but it only seems to be able to insert a new table, even though it says "Insert/Edit". Hopefully I am missing something simple. Otherwise there seems a major usability problem here. How does someone perform these operations in the GUI? [I won't go in to more advanced things, such as spanning, which are probably very hard to put into the GUI, but the ones that I am asking about are very basic table manipulations.] Thanks.

  • Hmm did you tried as in other programs the right mouse click in a table. The icons and the text behind them should help to find the action you are asking for. Some of these functions may not be implemented for each case or combination completly by now. If you got a wiki syntax error please file a bug report at MoinMoinBugs. This does much help to improve this tool -- ReimarBauer DateTime(2006-07-06T05:31:21Z)

    • I found out that we had some sort of configuration problem, probably due to permissions. Everything seems to work correctly now - and it is pretty nice (and it does have span (merge)). (Although I did not see any help for the GUI.) Sorry for the false alarm.


DocBook XML as Page format

  1. Under Ubuntu 6.06 I did the following:

sudo apt-get install python-4suite ### get the xslt parser
sudo nano /etc/moin/mywiki.py ### the configuration file for the wiki in question
### insert a line " allow_xslt = 1" just above the "data_dir" statement
### at the same place, insert a line " docbook_html_dir = '/usr/share/moin/mywiki/data/html'"
### a) browse to http://sourceforge.net/projects/docbook/
### b) download the latest 'dockbook-xsl' zip and unpack it to your desktop
### now install into a writable wiki directory
sudo cp -R ~/Desktop/docbook-xsl-1.70.1/html /usr/share/moin/mywiki/data ### assuming this is where your wiki is at
sudo chown -R www-data.www-data /usr/share/moin/mywiki/data/html ### make writable to moin/apache2
  1. Text docbook source format: create wiki page with the below exact text (ref. ["HelpOnXmlPages"])

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<book>
  <title>Title of my next book</title>
  <chapter>
    <title>Chapter Title</title>
    <section>
      <title>First Heading</title>
      <para>Some Text</para>
    </section>
  </chapter>
</book>
  1. Issue 1 with the above example that has no stylesheet reference I get an error message:

XSLT processing error: No stylesheets to process.
  1. Issue 2 with the below stylesheet reference, I get

<?xml-stylesheet href="docbook.xsl" type="text/xml"?>

XSLT processing error: Error retrieving resource u'wiki://Self/docbook.xsl': Page does not exist

Please, how can I fix this, if you could provide very detailed instructions? I think a key might be your cryptic statement ["HelpOnXmlPages"] "After you have upgraded 4suite, you have to delete the file db_compiled.dat in this directory." that I don't understand. You may refer to a required update to the 4ss repository or something?

  1. For something that does work, I also tried to download the XMLMind XML editor, went for the file C:\docbook\xsl\html\docbook.xsl with everything it includes and published that on the Internet. I then created the following wiki page:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<?xml-stylesheet href="http://somewebsite.com/html/docbook.xsl" type="text/xml"?>
<book>
  <title>Title of my next book</title>
  <chapter>
    <title>Chapter Title</title>
    <section>
      <title>First Heading</title>
      <para>Some Text</para>
    </section>
  </chapter>
</book>

...and it comes out great!BR However, that save takes 55 seconds.BR I also tried this second style sheet in the file system, but it does not work.


Cannot allocate memory ?

I've seen this message in my apache error log on several occaitions. Cannot allocate memory: couldn't spawn child process: /var/www/ACDCWiki/cgi-bin/moin.cgi Any ideas on what can be done to fix this?

  • Do you have any resource (memory) restrictions in place for cgi scripts? If yes, they are maybe not high enough.
    • No not that I know of. I have a standard Apache 2.0.46 installation. Python 2.4. Although I have only 128mb ram. Could that be an issue?
      • If you are that low on RAM, you should at least have a bigger swap partition / swap file. Maybe use top (Linux) or some other tool on your OS to monitor RAM usage. If you don't need apache2 for other stuff, you could also use moin standalone server and save the memory needed for apache2 and also the startup time needed to load python and libs (standalone stays resident in memory all the time).


http + ldap authentication (NTLM + Active Directory)

Autologin with auth.http is working on IIS6 with NTLM (Integrated Windows Authentication). Manual login with auth.ldap_login + auth.moin_cookie works, too. Is it possible to combine these methods to autologin with NTLM/http and get aliasname and email from LDAP?

  • Yes, you just have to write some code using the existing username (user_obj.name or similar) to make an ldap lookup and update the user object (and save it to disk). If you hack auth stuff, try to use latest moin version.


'module' object has no attribute 'getmro'

I followed the ["HelpOnInstalling/BasicInstallation"] instructions carefully, and while most of the test steps seem to work (e.g., "import MoinMoin" is fine), when I run moin.cgi either on the command line or via Apache (CGI), I get:

  [...long traceback...]
  File "/usr/local/lib/python2.3/site-packages/MoinMoin/support/copy.py", line 74, in _getspecial
    for basecls in inspect.getmro(cls):
  AttributeError: 'module' object has no attribute 'getmro'}

Same error when I run runtests.py. Apache runs the CGI script but of course moin.cgi is returning a 500 error complaining about this missing attribute. I looked at line 74 of copy.py, and all it's doing is "for basecls in inspect.getmro(cls):". Well, python sure thinks it has it:

[...]
>>> import inspect
>>> inspect.getmro
<function getmro at 0x81d4fb4>

I thought perhaps I wasn't using the right python, so I replaced moin.cgi's #!/usr/bin/env python with an explicitly specified python (2.3) that's the same as the one my shell's PATH prefers. No difference. Help!

Please:

  • check if the python you run interactively is the same as for cgi (chroot? path?)
  • we need the complete python -V output of the python making you troubles
  • you can try copying your python's "copy.py" over the one we deliver in MoinMoin/support. Our copy.py is intended to fix some problems that existed in old pythons, but maybe the one your Python has works better for you.

How to start MoinMoin Desktop on WinXP without opening a DOS window?

I'm evaluating MoinMoin Desktop as a personal knowledge repository. I want to run it on my WinXP laptop. For now it seems really nice. Only one thing is truely disturbing me: the DOS window that opens when I run moin.exe .

Is it possible to start moin.exe as a service or something similar? Another wiki I'm evaluating (wxWikiServer) simply create an icon in the notification area.

  • In the past windows versions do have something like a pif file to configure cmd calls. Do you have tried this?

    Take a look at MoinMoinTips/InstallingFastMoinOnWin32 page on how to run MoinMoin as a XP service. It works really well.

How generate the user ID ?

I would like generate the user ID in php for my web site, it's possible ? Thanks

  • MoinMoin is a Python module and not a PHP script unlike other wikis (MediaWiki e.g.), and has no connection to PHP as such. If you want to create a PHP external wrapper for MoinMoin that is an advanced PHP programming task, and you should study the appropriate [http://www.php.net/ PHP sources] for assistance. Look into user.py.

Every MoinMoin installation I've visited is in Chinese.

The problem is that I'm in a Chinese speaking country, but I don't speak/read the language. I'm sure there is a user setting/preference somewhere, but I can't identify it. All navigation is in Chinese. Any help would be appreciated. Thanks.

  • If you can get an account on such a wiki you can change then in UserPreferences your country / language settings. Usually, you set your preferred language in your browser. The browser then sends some http header "Accept-Language" to the web/wiki server and the server responds as appropriate.

Controlling new page creation better

In order to force the acl-settings consistently for all pages in the entire wiki (e.g. unknow user can only read pages, but not edit them), I would like to do the following: When a known user creates a new page by entering an unknow page name or clicking on a link of an unknow page, Moin opens a new windows, says that the page does not exist and that you can create a new empty page or choose a template for it. When choosing "Create empty page" (without any template), I nevertheless would like to have filled some text in there: {{{## Do not edit these lines #acl Known:read,write,delete,revert All:read" Describe [Pagename] here }}} How can I implement that? Thank you!

  • Either the users have admin rights (to be able to set/change ACLs) - then you can use a page templat with just that text on it. Or your users don't have admin rights, then there is no way having them set or change ACLs. In that case you maybe want to set your acl_rights_default to the default you want.

How do I clear the cache?

I have used FullSearchCached() extensively since my host is quite slow and the cache is a big speed up. After a while I have a lot of really out dated pages, how do I clear the cache?

Answer: Go to the page in question, and select "Clear Cache". This will only clear the cache for this page though.

How to specifiy additional body-attributes in a theme.py-file?

I want to adapt some "foreign", already existing CSS-files to my moin wiki and create a new theme by that. To get it work, I would have to specifiy some extra body attributes (an id, class and onload attribute). Afterwards the body-line should look like this: "<body id="contentseite" class="artikel" onload="liveSearchInit()">" How can I achieve that in my theme.py file?

Desktop Ed: User management

On DE I create a user profile, but a subsequent login says "User not existing".

  • I need to restart the server until a can log in with the account just created. Seems like a bug in DE.
    • OK, this solved the problem, thanks!

Desktop Ed: how to install a new theme

In DE (Win) it is not possible to follow the procedure outlined in HelpOnConfiguration/CascadingStyleSheets to add a new theme. I can copy the directory (eg. copy modern mymodern), but there is no python/site-packages/MoinMoin/theme/modern.py to copy.

Also if I copy only the directory (and modify wikiconfig.py) the theme revert to the classic one.

A: You have two ways to go:

  1. Install the zip-version of DE and Python. (easier!)
  2. Modifiy the file pylib of DE (works at least for DE-1.5.4-1)
    1. Rename pylib to pylib.zip
    2. Open the zip-file and add the *.pyo od *.pyc of the theme to pylib.zip but make sure that it goes to the directory MoinMoin/themein the zip-achive! (For comiling the *.py file of the theme to *.pyo or *.pyc you need Python and you have to use the same version of Python as was used for making DE.)

    3. Rename pylib.zip back to pylib
    4. Add rest of the theme files to /MMDE/wiki/htdocs/.

Desktop Ed: no "up one level" icon

On Subpages the icon to navigate to the parent page (as outlined in AiutoSuNavigazione) is not present. Anything needed to enable it?

  • (!) Click on the front parts of the pagename in the upper navigation area.

Reactivate User Account / completely delete user account

I have created a user account for e.g. TestUser. In his user settings I check "deactivate user account forever" and log out. Now (as expexted) it is impossible to log in TestUser. However, it is not possible to create a new user account named TestUser as the system reports that this user is already present. Question: How do I completely delete a user account so that I am able to recreate one with the the same user name?

  • (!) It is a good idea NOT to delete users (at least not if you still want to have complete history of what they did). If you disable a user, just append his numerical userid to his name, like TestUser-1412331.23.12312.

Problems with code/text box formatting

After an upgrade to MoinMoin 1.5.4 to I had problems with the formatting of text boxes. The bottom of the text box overlapped with subsequent headings. To fix this I updated the following file: /usr/lib/python2.3/site-packages/MoinMoin/formatter/text_html.py Line 15, I replaced

#line_achors = True 
line_anchors = False
  • This is a IE bug, not a moin bug.

Problems with http authentication

The docs for enabling authentication via http auth specify adding the following to wikiconfig.py

from MoinMoin.auth import http
auth = [http]

This is misleading. To make http auth work, at the *top* of the file add:

from MoinMoin.auth import http

And *inside* the Config class, add

auth = [http]
  • (!) It doesnt matter where you do this as long as you indent it correctly.

Apache2: where to put the stuff that goes in httpd.conf

I tried following the readme to get MoinMoin to work, but it tells me to put some stuff into httpd.conf, which is the apache1 way of doing things. When I did it anyways, it didn't work. So, where in the apache2 config do I put this:

Alias /wiki "/usr/share/moin/htdocs/"
ScriptAlias /MyWiki "/var/www/moin/moin.cgi"

-- ["kamagurka"] DateTime(2006-08-24T09:24:20Z)

  • For IP-based hosting, try /etc/httpd/conf/vhosts/Vhosts.conf and for name-based, try /etc/httpd/conf/vhosts/nameBased/whatever.conf. Hope that helps.

Code move for next release?

Dear Developpers! I want to ask you whether it is possible for you to move the two functions "send_title" and "send_footer" in wikiutil.py - as already announced in the comments in the source code - to the class "ThemeBase"? This would be a great help for theme developpers. Provided this I could simply overwrite the functions in my "mytheme.py" file instead of doing other nasty things. I hope this is the right place to ask this. I didn't want to put that on the FeatureRequest... Thanks!

(!) See at end of: http://hg.thinkmo.de/moin/1.6?f=69711d9b5626;file=MoinMoin/theme/__init__.py -- ThomasWaldmann

very slow performance over Microsoft VPN?

Hello, I'm using MoinMoin inside my company (intranet not available on public internet). On the local LAN it works as expected, but if I login from a remote location via Microsoft VPN Services it takes some minutes to load a wiki-page complete! I'm using the the included python-server moin.py. Other Webservers on my LAN do work in normal speed. Until now I made no testing using moinmoin as Apache-plugin, but I expect that to work. Any ideas? VPN-Server is the Windows 2003 Server builtin, the wiki is not running on that server. -- Christian

  • This may be a long shot, but try this cfg.log_reverse_dns_lookups set to false (default is on). It might be that DNS lookup over VPN is wacky (we have similar issues here, but not necessarily with Moin). From the release notes:''

        * cfg.log_reverse_dns_lookups [default: True] - you can set this to False
          if rev. dns lookups are broken in your network (leading to long delays
          on page saves). With False, edit-log will only contain IP, not hostname.

But where to set this key / value? I didn't find anything about that, except the changelog. -- Christian

It is "log_reverse_dns_lookups = False", not "cfg.log_reverse_dns_lookups" you have to set. But it is reverse DNS indeed, it also works when giving all VPN-IPs DNS-Names... -- Christian

Reset Hit Counter for all Pages?

Is it possible to reset the Hit-Counter for all Pages? -- ["Tom"] DateTime(2006-08-24T13:46:20Z)

  • You can truncate event.log if you don't need the respective event data any more, it is only used for stats. In the cache directories, there are also some related file (data/cache/charts/* and data/pages/<pn>/cache/hitcounts), delete that, too. Your first requests needing that cache will rebuild it, taking a bit longer maybe. -- ThomasWaldmann DateTime(2006-08-31T07:27:05Z)

How to migrate from UseMod wiki?

Is there a migration tool/script I can run to migrate from UseMod to Moinmoin, and keeping existing pages? I tried to look under http://wiki.apache.org/old, but couldn't find a tool there. Thanks. -- Corrie

LDAP or Active Directory?

Is a Userauthentification over LDUB and/or Active Directory possible? Thanks -- Pablo

Project group members need permission to create new group pages?

I set up some independent groups, each one with it's own adminstrator. The default permissions permit Known users to read/write/edit but not admin for default pages. I set up templates for each group that allow the group to read/write/edit their pages and their admin user to read/write/edit/admin. I find that the group users get a "you can't change the permission of this page" when they try to create a new page using the group template. Is there a trick here to make that work? Is that what AutoAdmin is for?

Many thanks in advance for your help.

  • Any suggestions about where to look on this one? DateTime

wikiconfig.py doesn't seem to be loading

I changed the value of some of the variables in wikiconfig.py (following the installation help files). I noticed no changes in the wiki itself, in particular the title did not change. So, I made sure that the path to wikiconfig.py was in the server script. However, it wasn't clear to me what script I should actually be editing, since in the server directory there are moin.cgi and moin.py and both have lines asking for the path to wikiconfig.py. Which script should I be editing, and am I missing anything else? Otherwise my wiki seems to be working quite nicely. I'm running Mac OS X 10.4. Thanks! -- Brian Taylor

  • Maybe you yourself are the only one who can answer this. moin.cgi is the cgi adaptor, usually used with apache or some other web server executing moin as a standard cgi script. moin.py is the standalone server, so if you don't want to install apache or some other web server, you can use this "python builtin" web server. -- ThomasWaldmann DateTime(2006-09-14T08:29:45Z)

    • I figured out the problem. I was editing a copy of the wikiconfig.py file and not the wikiconfig.py file that was in the actual wiki. I'm new to the unix directory structure and it took me a while to figure out my mistake. Thanks for your feedback, though.

Different SPAN colors?

Sorry didn't manage to find that.. Is it possible to mark some words in some different colors? Let's say, @(red)This is in RED@ or the like...

At MacroMarket you do find Color.py which could easily used to color code words in a text. -- ReimarBauer DateTime(2006-09-15T19:23:21Z)

The [:parser/raw.py: raw parser] from the ParserMarket is great for that, as it allows you to write:BR {{{#!rawBR This <b>sentence</b> is written in <font color="blue"><i>html</i></font> BR with the <strong><font color="red">raw</font></strong> formatterBR }}}BR

MarcZonzon

Schemes

I have the same trouble with bulleted lists as described above (no scheme is being shown). But I cannot find any reason or solution. I am running Suse Linux 10.1 as admin. Wiki itself is working fine.

My wiki is called DaCapo and stored at /wiki/DaCapo

My Apache-Entry:

{{{Alias /wiki/ "/usr/share/moin/htdocs/" ScriptAlias /DaCapo "/wiki/DaCapo/cgi-bin/moin.cgi" <Location /DaCapo>

  • order deny,allow deny from all allow from localhost allow from 192.168.1.254

    AuthType Basic satisfy any

</Location> }}}

My setting to /wiki/DaCapo/cgi-bin/moin.cgi

{{{sys.path.insert(0, '/usr/lib/python2.4/site-packages/ ') sys.path.insert(0, '/wiki/DaCapo') }}}

My wikiconfig.py entries:

logo_string = u'<img src="/wiki/DaCapo/DaCapo.png">'
data_dir = '/wiki/DaCapo/data/'
data_underlay_dir = '/wiki/DaCapo/underlay/'
url_prefix = '/wiki'

If I try http://localhost/wiki/modern/css/screen.css then I get "accedd denied".

Could anybody help me? Thank you very much, Matthias

Finally I found the error. To others having the same problem: Please check HelpOnInstalling/ApacheOnLinux at the end. The following worked fine within httpd.conf

{{{Alias /wiki/ "/usr/share/moin/htdocs/" <Directory "/usr/share/moin/htdocs/">

  • Order deny,allow Allow from all

</Directory>

ScriptAlias /DaCapo "/wiki/DaCapo/cgi-bin/moin.cgi" <Directory "/wiki/DaCapo/cgi-bin/">

  • Order deny,allow Allow from all

</Directory> }}}

Where can I find MoinMoin consultants ?

Looking for a company that can provide development and support services to large corporation looking into implementing MoinMoin based system. Do such companies exist? Where can find such?

Adding an infobox

I am new to MoinMoin, but in order to transfer an existing site, I must be able to have a textbox as in [http://en.wikipedia.org/wiki/VLM_Airlines Wikipedia]. Do I have to modify the py-files?

Do you ask about getting a frame around a table and that aligned to somewhere? If so do have a look at ["ParserMarket/Frame"].

A little more complex... A table right-aligned that is fed by values, where the parameters shall be fed from an "easy to fill" list in the page... Ideally, the parameters/values should be matched with a MySQL-table, but that is anything but urgent. The implementation of an "infobox" is... I had a look also at ["macro/CardMacro"], but seem to have a "logical problem" interpreting it to do what I want it to do...? Can one combine these two (and how)? I am "just a web developer" with an Admin handling the technical side of Moinmoin for me... I could write the code for the static page (using PHP to handle the variables), but am "lost" with MoinMoin... Thanks for any help.

Even when I edit wikiconfig.py, surge protection won't turn off

I added this line

surge_action_limits = None (!) this only works for 1.5.5+

to the wikiconfig.py file but the surge protection still locks me out. (Desktop Windows version)

What an annoying feature! It's unacceptable to have my software lock me out for working at a fairly normal speed.

Help, anyone?

(!) For 1.5.4 you just have to configure high limits, see the help page.

==== What limits should I set? ===

I've played witht he high limites and I still get locked out. This is very frustrating! Any specific suggestions?

How do I integrate LDAP authentication with moin moin?

I have seen DeronMeranda post but need more infomation.

I understand I have to add the following line in my wikiconfig.py for LDAP authentication

    from MoinMoin.auth import ldap_login, moin_cookie
    auth = [ldap_login, moin_cookie]

Looking at MoinMoin/auth.py in MoinMoin were do I place the following parameters: ldap_coding, ldap_uri, ldap_binddn, ldap_bindpw, ldap_base, ldap_scope, ldap_timeout, ldap_name_attribute, ldap_email_attribute.

  • Into your wikiconfig.py

How do I debug this? By setting ldap_verbose in the same place as the above parameters ?

  • Yes.

Were do the debug messages appear ?.

  • Look into apache error.log (if you use apache).

Is there any other place I can be pointed to for LDAP authentication in MoinMoin.

  • There is a sample config in wiki/config/more_samples/.

Help will be greatly appreciated.-- Jehan

How do I integrate LDAP authentication with moin moin?

Looking at MoinMoin/auth.py in MoinMoin were do I place the following parameters: ldap_coding, ldap_uri, ldap_binddn, ldap_bindpw, ldap_base, ldap_scope, ldap_timeout, ldap_name_attribute, ldap_email_attribute.

  • You say Into your wikiconfig.py

Can you give me an example of what I need to put in wikiconfig.py for one of the variables lets say ldap_binddn Unfortunately the sample config in wiki/config/more_samples/ is not great at all.

  • Well, we can't know your ldap setup, but the config you see in ldap_smb_farmconfig.py is a real world example for Active Directory (with the real company name replaced by example.org). You don't need the smb_* stuff btw. If you can read python (it's easy), maybe look at MoinMoin/auth.py -> def ldap_login(... - as you see there, the following happens:

    • it initializes an ldap connection to ldap_uri
    • it expands ldap_binddn and ldap_bindpw with some variable content like username and password etc. (this is optional, you also can use some fixed value)
    • it binds to the directory using this (as that stuff is a encoded string, it uses ldap_coding to encode name and password - this is interesting for non-ASCII characters)
    • now it makes up a ldap filter string "(%s=%s)" with ldap_name_attribute (where is the username stored?) and the current username and uses this filter to search for that username in that attribute, using ldap_base as base DN and ldap_scope for the scope.
    • depending on how much hits this search returns, the following will happen:
      • none: we didn't find the user, auth will fail (as far as ldap_login is concerned)
      • more than 1: we have multiple users of that name, this is no good (auth will fail ...)
      • one: great, we found that (unique) username in the directory and can continue
    • now it will bind again to the directory, using the DN we found in the search and the password given at login
    • if this fails, it'll break out with an exception like ldap.INVALID_CREDENTIALS (auth will fail ...)
    • if it succeeds, the password was obviously correct for this username, so we construct a user object now:
      • we fetch the email address for the user profile from ldap (from ldap_email_attribute) and decode it using ldap_coding
      • we fetch surname and givenname from sn and givenName attributes and make up the aliasname for the profile using them (this is nice if the login username is cryptic)
      • the wiki username will be the one given for login
      • we make sure the cookie_lifetime is honoured, thus the cookie will expire, forcing the user to re-login after expiry
    • the end, auth succeeded!

Thank you Jehan

Moin Metadata and SemanticMoin

Is there a concrete plan, when exactly Moin should get real metadata support and thus enabling a more semantic moin, tagging pages with multiple tags instead of using only one page category etc.?

  • We are working on a new storage backend (and a api for it) since quite a while. We also had a GoogleSoc2006 project on that, but unfortunately it's output is not in a usable state. For metadata storage we need the new storage backend.

    You already can use more than one Category tags or even arbitrary other WikiBadges now.

How can I became a returnvalue, if a page allready exist?

I want to write a macro, to import pages automatically. To realise the macro, I have to check the pages.

How to apply a patch?

I found a patch realise a modification I wanted. But now I don't know, how to apply the patch..

There is some commandline tool which is called "patch". This tools generates a patched file from a diff file and the unpatched version of a file.

Getting [Error 17] Cannot Create a file when that file already exists

I move one wiki instance from one machine to another. It is fine to show the initial page, but when everytime I click a link inside of the initial page. An error message always shows up said [Error 17] Cannot Create a file when that file already exists. This is the url display in address bar http://127.0.0.1/dblue/moin.cgi/dBlueHome. But if i manaually type URL like that myself in address bar http://127.0.0.1/dblue/moin.cgi/dBlueHome?highligh=%28dbluehome%29 or do the search from search field and it turns out showing content fine.

How to change the /tmp path for attachments

When I upload a large file it goes first to the /tmp and then to the original place, is there a way to change the /tmp path ?

Moin Performance

Somewhere in this wiki - as I can remember - you have said that Moin is a good choice for wikis not much bigger than 10.000 pages. Otherwise performance is too poor. Will this limit be changed when the new storage backend is introduced?

I haven't done benchmarks, but I suspect performance with lots of files will be much improved by using a file system with indexed directories (reiserfs, xfs, ext3 + btree indexes, etc).

5 second delay before serving page

If you use moin up to and including 1.5.6 with the standalone server and you observe long delays for every access from IPs not resolving to DNS names, this is caused by the python stdlib HTTPServer code doing a reverse lookup for logging any access.

The following patches fix this:

Maybe also check the log_reverse_dns_lookups = False setting in wikiconfig.py (or farmconfig.py if you use it), this influence the logging moin does on its own.

LDAP Groups

I want to permit only members of certain LDAP group to logon to my wiki.

I have modified auth.py like the following:

      try:
            request.log("MEMBER %s" % ldap_dict['memberOf'].index("CN=blob,CN=Users,DC=vmware,DC=com"))

        except:
            request.log("NOT A MEMEBER of blob!")

        else:
            return user_obj, True

        if result_length != 1:

I thought this would work since if the user is a member of blob, it'll return the user object. But currently, it lets everyone log on, just like before. Any suggestions?

Can I scape the }}} sequence in code blocks?

I want to put some text in a code block. The problem is that said text includes the }}} sequence. Is there a way to escape this sequence? or is there a way to specify a true verbatim block, a la <verbatim> ... </verbatim>?

Is it possible to force the browser to open a new window?

When including a url reference in a moinmoin page, I would like that a new window is opened when users click on it, instead of loosing the current moinmoin page. Is it possible and how?

Thanks, CarlosBandar DateTime

Yes, I would also like to know how to open a link in a new window. (Without resorting to using the html.py plugin...)

On MacroMarket you can find a macro called [attachment:MacroMarket/NewWindow.py NewWindow.py]. Is it that what you are looking for? Opening new windows is not good for AccessibleMoin and thus not recommanded. -- OliverSiemoneit DateTime(2006-11-18T17:12:59Z)

Let's say I got small.jpg and big.jpg attached. Now I want small.jpg to be an ImageLink to big.jpg. How do I do that? [[ImageLink(small.jpg,attachment:big.jpg)]] does not work.

Thank you, Oliver DateTime

Depends on the version you have in the current 1.5.6 it should work that way -- ReimarBauer DateTime(2006-11-18T00:05:23Z)

DeleteCache link... what does it do?

In various pages on MoinMoin I have seen instructions like "if something doesn't take effect, force MoinMoin to rebuild the cache by deleting all files in path_to_your_wiki_instance/data/cache/wikidicts/"... This seems like terrible advice, since most users will not have access to that location on their wiki server, or wouldn't know how to find it.

In the theme I use (classic), there is a link "DeleteCache" at the bottom of every page. I have found no documentation on what this link does. Will it accomplish the same thing??

Thanks! -- SteveDavison DateTime(2006-11-09T00:00:25Z)

How do I enter an email address but disable automatic linking?

I want to enter something that looks like an email address but it should not be linked.

Put backquotes around it.

List of Deleted Pages

How can I get a list of all deleted pages? Thanks -- ["Ralf Sternberg"] DateTime(2006-11-18T09:57:18Z)

  • I guess there is no way yet. For what do you need that?

I don't have a use case, actually. The question just came up and I think since deleted pages are still kept in the system but are not displayed in the TitleIndex anymore, there should be some way to keep track of them.

  • May be we should extend the moin command tool for that and an additional option to purge these pages. I don't believe that it is a good idea to list those pages from within the theme because of spam.

That would be a good idea. However, if this function were restricted to admin users, spammers shouldn't be a problem. We run the wiki on a root server and the server-admin != wiki-admin. Therefore, the command-line tool is out of reach. I guess this is a common case.

Have a look at MacroMarket/DeletedPages

Dump to static HTML

I would like to dump the pages of my Moin DesktopEdition Wiki to static html, so that I could transfer them to a dumb web server.

How can I do this ?

(The dump.py script seems not to work ...?) -- Michael G.

Moin and the command line

Somewhere in this wiki I've found some hints that you can do operations with Moin also from the command line. However profound documentation on this topic is missing. What does it mean "working with the command line". I guess two things:

  • On the one hand: calling moin with some command parameters from the command line. But which parameters are allowed? moin --help does not work!
  • On the other hand: ease some task by using scripts which can be run from command line only (ScriptMarket?)?? How are these scripts related to the moin code? Are these scripts just seperate, small python programms? Can they also call parts of the moin code??

Infos I have found on Moin and command line:

Thanks!

Updating attachments

I'm using a Wiki running on MoinMoin 1.5.6. I was wondering if there was a simple way that I can update attached files?

At the moment, the only options I can see are to delete the old attachment and upload the new using the same name or to link to an external address rather than attaching it within the Wiki. If there isn't a more simple method of updating files, where would be appropriate to suggest this? (it's not really a bug, just a potential enhancement...)

Hi Roland! Anytime you can create a new feature request on FeatureRequest and tell us your story there, i.e. what feature you need, why, what it should do...

attachments only for certain users

Is it possible to finetune acl to allow anonymous and new registered users to edit the page but WITHOUT the permission to add attachements. and add an acl rule to each user that should be allowed to add attachments. thank you for your responds. HatschMa 01/12/2006

Not with a standard moin, it just uses the page ACLs for the page's attachments. For moin 1.5 you could patch AttachFile.py to not check for "write" rights, but for "attachwrite" right and add that right to the valid acls list. In some future moin version (not 1.6), file attachments will be first class items with own ACLs.


Embedding MoinMoin -- Automatic User Login?

I'd like to use MoinMoin as a Wiki-based knowledge base by opening an appropriate URL from inside an application. Since my application has a user database built-in, it is necessary to promote the user ID to the wiki. Provided that the MoinMoin user IDs are the same as the application's: Is it possible to embed the user ID (and, optionally, the password) into the URL of the wiki page to be shown? Thx... StefanK 14-Dec-2006

  • (!) Look at MoinMoin/auth.py (and there is also some old code for 3rd party cookies in contrib/ in the MoinMoin archive)

I needed similar functionality to hook salesforce.com into MoinMoin as a knowledge base. Another use for me is for a phone/email list page for my neighborhood. While I don't want to force everyone to create a user profile and login just to get to the phone number list, I also want to deny access to anonymous Internet users that might happen onto my site. I found [http://moinmoin.wikiwikiweb.de/MoinMoinChat/Logs/moin-dev/2006-03-26?highlight=%28login%29%7C%28url%29 this discussion] which has the format for logging in with a one-click URL.

One-click login requires this format:BR  http://someserver.org/moin/moin.cgi/HomePage?action=login&name=somename&password=yourpwd&login=login 

Now I can create a standard 'guest' account and email the one-click URL. The page will be fairly safe from anonymous Internet bad people and the intended recipients have a good end-user experience.- CraigA 4/1/2007

Feedback: the discussion link above showed the way for me: I had to disable the POST-only check for the login action (userform.py, approx. line 90). Now simply GETting the URL works fine. Thank you very much! StefanK 21-Feb-2007


Lost Admin Rights?

I think I'm in over my head. I am completely new to wikis. But yesterday I set up a wiki page and specified myself as the administrator. I then set up a users page, and I went to edit one of the names I listed, and it said "You are not allowed to change this page." I can't figure out what happened. Thank you -- Laura 19 Dec 06

  • The page HelpOnAccessControlLists in your wiki describes how it works. Keep in mind that "admin" right only means "being able to change ACLs", it does not include any other right like "read" or "write".

Providing language support for a set of macros and actions

I've written some task list plugin for Moin which consists of a set of different actions and macros. When releasing it, I want to provide a language file (GermanTranslation) with it which could serve as a basis for further translation efforts. Currently I've tried to do a wiki page like GermanDict. However this seems not work correctly for entries like

 /!\\ You have to specify a task name.:: /!\\ Sie müssen eine  Aufgabenbezeichnung angeben.
 Task\'s wiki homepage:: Wiki-Homepage
 \n%(icon)s %(manage_url)s tasks %(assign_text)s %(page_text)s \n:: \n%(icon)s %(manage_url)s der Aufgaben %(assign_text)s %(page_text)s \n

In these cases always the English text is show instead of the German text. What to do now? How should I provide the translations so as not to run into trouble when updating of Moin is done? As separate .py file to append to the lang.py file? Or as .po file?? Or can I put elsewhere a separate po/py file which is independent from lang.py but nevertheless recognized as a relevant translation file?? -- OliverSiemoneit DateTime(2006-12-23T16:56:19Z)

Annotation1: In the source code I call the translations like this:

return _('/!\\ You have to specify a task name.')
...
label12 = _('Task\'s wiki homepage')
....
return _("\n%(icon)s %(manage_url)s tasks %(assign_text)s %(page_text)s \n") % {
                'icon' : request.theme.make_icon('table-null'),
                'manage_url' : manage_url,
                'assign_text' : assign_text,
                'page_text' : page_text, }

Annotation2: If you change the entry like this

 /!\ You have to specify a task name.:: /!\ Sie müssen eine  Aufgabenbezeichnung angeben.

the translation is successfull however the smiley is not displays but just the text /!\.

Annotation3: Because of some problems with simultaneously parsing query string and form-cgi-input in Moin 1.5.x, I have to release that for 1.6 only. In 1.6. language support seems to have changed slightly. How to provide a translation for an extension there?

How to inline/include an external file with markup

Is this possible? I haven't been able to find any direct comment on this, but it seems like an obvious feature that I suspect its easy and I just haven't clicked on to it. I have an external file which is autogenerated but has normal wiki markup. I am hoping to have this content included in an existing Moin page, or perhaps several included under different headings. Alternatively, having it as a separate page would be fine, as long as it properly interprets the markup. I have considered "fiddling" the wiki page directory contents by automatically updating a "revision" file and making sure the "current" file points to it - but I guess this might break in future versions? Currently using Moin 1.5.5a with Twisted on WindowsXP. PeterMills 2006-12-29

  • Now I've noticed a partial solution in "Import text into MoinMoin 1.3" way up above. Looks like it might also answer the next question below. PeterMills 2007-02-04

Adding Pages perhaps Files automatically

Is there a way to add Pages into MoinMoin 1.5.6 automatically, e.g. I have some Config-Files which I document via my Wiki, and I would like to run some sort of Job at night which adds the Configfile as Page so there would be some history/revision capability. Matthias Gruber - 2007-01-04

Changing the background colors of macros in my wiki

I have poured over the stylesheets for a way to change the background color of my macros in my wiki (table of contents, fortune cookie, etc) but have not found it. Is there a way to do it or am I just overlooking something simple? Jack Kohoutek - 2007-01-04

You are not allowed to view this page

Hello. Every new page I create shows this text to the world:

You are not allowed to view this page.

What am I doing wrong? I have searched this website and Google for the answer but only found thousands of pages where that was the only text.

After some study I think I've decided it is a problem with all new pages created by moin or Python. I can't find a way in moin to set permissions for new files on the server.

Gnarlodious

Error While Saving Page

When I am trying to save the pages I get the following error. I am setting up MoinMoin on Windows XP and IIS

File "C:\Moin\Lib\site-packages\MoinMoin\request.py", line 1151, in run
    handler(self.page.page_name, self)
  File "C:\Moin\Lib\site-packages\MoinMoin\wikiaction.py", line 659, in do_edit
    savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
  File "C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py", line 976, in saveText
    mtime_usecs, rev = self._write_file(newtext, action, comment, extra)
  File "C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py", line 867, in _write_file
    glog.add(self.request, mtime_usecs, rev, action, self.page_name, None, extra, comment)
  File "C:\Moin\Lib\site-packages\MoinMoin\logfile\editlog.py", line 178, in add
    self._add(line)
  File "C:\Moin\Lib\site-packages\MoinMoin\logfile\logfile.py", line 406, in _add
    self._output.write(line)
  File "C:\Moin\Lib\site-packages\MoinMoin\logfile\logfile.py", line 139, in __getattr__
    self._output = codecs.open(self.__filename, 'a', config.charset)
  File "C:\Python23\lib\codecs.py", line 566, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13]   File "C:\Python23\lib\codecs.py", line 566, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: 'data\\edit-log'

What wrong I am doing ??

Abhishek

Macro + Parser

How can I call a parser to colorize the string returned from the macro to the page? It seems to me that the only way it will work is to call the parser from within the macro, and I don't see how to do it.

Let's say:

Dependencies = ["time"]
from urllib import urlopen
from re import search, sub

def execute(macro, args):       
        base_url = r'http://www.example.url/' + args + r'?view=markup'
        doc = urlopen(base_url)
        
        out_doc = ''
        flag = 0
        
        for lines in doc.readlines():
                if search('<div id="vc_markup">', lines):
                        flag = 1
                
                if flag == 1:
                        if search('</div>', lines):
                                out_doc = out_doc + lines
                                flag = 0
                                break
                        else:
                                out_doc = out_doc + lines
        
        # out_doc is a cvs snapshot                     
        return out_doc

How can I wrap my out_doc in such a manner that I can call the python.py or perl.py parser on it? And get the nice toggle line numbers and reserved word coloring?

Very Slow editing

Viewing is very fast on the local computer that runs and moinmoin and ohter computers on the network. But editing becomes very slow ( about 10 seconds ) when accessed from remote computer and still very fast accessed from local computer. Why this happening?

  • (!) See ["FeatureRequests/ReverseDNSExcludeList"].

Turn off Thank You Header?

I'm new to moinmoin, and can't seem to figure out how to turn off the automatic "Thank you for your changes. Your attention to detail is appreciated" message. I searched, but I can't seem to find this out. How can I make it so the banner never appears?

Advanced Export

We are about to use MoinMoin as an embedded help system for an application. Help pages are opened in an embedded web browser widget (.Net control). Now we want to generate the combined help text as a user manual by exporting the wiki pages. We thought of exporting via LaTeX (or at least TeX) format, finally generating a PDF document. To organize the many single wiki pages, we would have a backbone structure similar to a table of contents that defines how the respective pages relate to each other.

Ideally, this process would work automatically everytime the help pages are updated.

Searching the Web for "MoinMoin" and "LaTeX" almost only yields methods to embed LaTeX structures (math etc.) into a wiki page. So, has anyone already succeeded doing something similar to our plan? Maybe there are even better alternatives, including DocBook/XML processing? Thx in advance -- StefanK 21-Feb-2007

SSL Login

Is it possible for just the login/user create/user preferences portion of a wiki to be redirected to a secure link, but all other pages run in a non-encrypted fashion? -- MichaelLaccetti DateTime(2007-02-27T05:19:02Z)

  • No, and if you use moin's cookie stuff, it wouldn't make much sense as the cookie transmission happens on every request and would need protection also.

Who viewed what page?

It would be very useful to be able to evaluate who is accessing what pages and how often. It's not so much to play "Big Brother" and profile individual users, but the hits data as it stands is pretty useless (IMO). When someone is working on a page and editing it regularly, it creates so many hits that it's impossible to tell if anyone is actually making use of the pages, or if we're just writing in our secret diaries. So if we could at least filter out the known editors of a page, the remaining hits would be meaningful. Further, being able to see who is viewing the page can give us an idea of what teams are making use of the information, and help to weed out multiple hits from the same person. (If one person views the page 10 times because they are navigating between different pages or opening/closing browsers, it really doesn't mean they're getting 10 times the use out of the page, and is not nearly as significant as if 10 different people were using the page.)

I noticed in the edit-log, the editor information is stored, but I could not make out anything that looked like identifying info. in the event-log. Is this tracked in any way? Thanks. -- SteveDavison DateTime(2007-03-01T10:35:18Z)

Administrating ACLs is cumbersome

Here's what I want to do. I want a certain user to be able to manage ACLs for a certain area of the wiki... say everything under a certain page. Without any hierarchical access control scheme, I can't just give him admin rights to the top page and let him go. It means that every single page he creates that needs any sort of access control, I have to go and manually add them to each page ONE AT A TIME! This is not only an annoyance for me, it also slows him down.

So I came up with an Idea I thought might work... Create a template that contains an ACL line giving this author admin rights, and restricting read rights so that only he has access to that template. I thought this might allow him to create pages by basing them off of this template. But alas, it appears that creating a page from a template amounts to a cut and paste of the text from the template, so non-admin types are not allowed to "add" the acl's to the new page (even though they were already granted in the template).

Does anyone know of a way to give someone the ability to create certain pages with them as an admin, but without giving them admin rights to the entire wiki? -- SteveDavison DateTime(2007-03-01T22:03:43Z)

Install at provider

I have a personal homepage hosted at a provider. Updating is easy done by uploading the HTML and PHP code. I don't have access to /usr or similar directories.

How do I install MoinMoin there ?

Sharing Image attachments across pages

I have an image that I'd like to include across all the pages of a slide show without having to upload it as an attachment to each page. I've done; attachment:/wiki/common/myimage.png and Image(/wiki/common/myimage.png) I turned on muliviews in apache to confirm and /wiki/common/myimage.png is there and accessable ok.

both result in an upload link, instead of the image and I suspect this might be a basic novice user error, but I"m stumped.

-- Andrew

  • Simply upload the image as attachment to one page, e.g. MyPics

  • Reference the image from other pages with [[Image(!MyPics/picture.jpg, height=150, alt=A picture showing a nice landscape)]] or attachment:MyPics/picture.jpg

How can I open links in a new browser window? For instance, if I want [http://www.google.com This Google Link] to open in a new window, what is the proper syntax?

  • On MacroMarket you can find an extension NewWindow.py for that. There is no built-in syntax for that.

-- Mick

MoinMoin: MoinMoinQuestions (last edited 2007-10-29 19:12:16 by localhost)