Nigel Metheringham | 1 Nov 2004 11:12
Picon

Re: Calendar.py

On Sat, 2004-10-30 at 12:02 +0100, Trog wrote:
> Is anyone out there using this ?
> http://moinmoin.wikiwikiweb.de/MoinMoinCalendarExample?highlight=%28calendar%29
> I'm clearly doing something wrong, because when I enter the supplied
> example, the wiki displays the data that I entered, rather than the
> formatted calendar.  I have put Calendar.py in every processor or macro
> sub directory on our wiki, but it clearly isn't being called.  Is there
> some other magic required?

The Calendar.py file needs to be in a processor directory - either in
the main moin installation or in a per-wiki installation (the latter is
easier to experiment with because you don't then have issues with
permissions when python tries to compile it into a .pyc file).  

For example if the base directory for your wiki is
  /var/www/moin/mywiki/
then put the Calendar.py file into
  /var/www/moin/mywiki/data/plugins/processor/

[permissions need to be such that its readable]

The *main* reason why these things do not get called is that people get
the header wrong - normally by adding a space...
This calendar fragment works for me... (however I am using the version
you'll find on my moin homepage -
http://moinmoin.wikiwikiweb.de/NigelMetheringham
which outputs in a form which allows embedded wiki markup, but probably
looks less visually impressive in the normal case).
{{{
#!Calendar
(Continue reading)

Trog | 1 Nov 2004 13:43

Re: Calendar.py

> This calendar fragment works for me... (however I am using the version
> you'll find on my moin homepage -
> http://moinmoin.wikiwikiweb.de/NigelMetheringham
> which outputs in a form which allows embedded wiki markup, but 
probably
> looks less visually impressive in the normal case).
> {{{
> #!Calendar
> OPTION:bodyBGColor=#DDDDDD
> OPTION:captionBGColor=#CCCCFF
> OPTION:firstWeekDay=6
> 20040707: Calendar 1.0 released
> 20040701: First of the month
> 20040731: End of the month
> 20040730: Link to FrontPage
> }}}

G'day Nigel,
thanks for your reply.  The missing magic in our case was the leading 
and trailing braces - {{{ - we didn't have them 'cus the example on the 
MoinMoin homepage didn't.  Easy when you know how isn't it?  Nice 
calendar too - exactly what we need. 
Thanks again!
Trog
--

-- 
Trog Woolley  |  trog at trogwoolley dot com
(A Croweater back residing in Pommie Land with Linux)
Isis Astarte Diana Hecate Demeter Kali Inanna

-------------------------------------------------------
(Continue reading)

Nigel Metheringham | 1 Nov 2004 14:28
Picon

Re: Calendar.py

On Mon, 2004-11-01 at 12:43 +0000, Trog wrote:
> thanks for your reply.  The missing magic in our case was the leading 
> and trailing braces - {{{ - we didn't have them 'cus the example on the 
> MoinMoin homepage didn't.

Heh - it did, but {{{ ... }}}, if there is no (valid) processor
specified shows up as an example.

I have modified the page to try and show this, but its a bit of a
generic problem due to the syntax having been reused.

	Nigel.
--

-- 
[ Nigel Metheringham           Nigel.Metheringham <at> InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
rfplctu02 | 1 Nov 2004 14:36
Picon
Favicon

MoinMoin Site Mirror

Is there a US mirror for moinmoin.wikiwikiweb.de?  I can 

rarely reach the site from where I am.  It usually times 

out.

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Michael P. Soulier | 1 Nov 2004 15:24
Favicon

acl granularity

Hello,

Looking into the ACLs required to manage attachments, it seems that they
are connected to the rights on the page. If I want to delete an
attachment, I need delete rights on the page. 

These are two very different things. Deleting an attachment isn't the
same as deleting the entire page. Would it not be proper to make the
attachment privileges more granular, and separate them from the page
acls somewhat?

Thanks,
Mike

--

-- 
Michael P. Soulier <michael_soulier <at> mitel.com>, 613-592-2122 x2522
6000/6010/60* Development, Mitel Corporation
"...the word HACK is used as a verb to indicate a massive amount of nerd-like
effort." -Harley Hahn, A Student's Guide to Unix

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
msoulier | 1 Nov 2004 18:55
Picon
Gravatar

Re: sharing accounts between two wikis

Quoting Jordan Johnson <jorjohns <at> cs.indiana.edu>:

> Is it possible to have the default ACLs for one set of pages be
> different from those of another?  Something like a template?  Thing is,

Something exactly like a template. :) The default acls are, to my knowledge,
site-wide in moin_config.py. The defaults for a given page can be controlled by
a template, so your users should stick to a given template for new page
creation. At the moment, I think that's the best that moin can do without
patching.

> Thing).  Also, I don't want to have to manually set the ACL for any new
> page a teacher creates, and I don't want a privacy-crucial ACL line to
> be deleted accidentally.

If they don't have admin access, they can't modify ACLs.

> It seems to me that this last requirement could be assured by disabling
> admin privilege for the teachers, but that would basically be
> equivalent to forcing me to set all ACLs manually, right?  (Meaning
> that the only solution would be to teach the other teachers how to set
> ACLs themselves?)

Ummm...can you try putting a default acl in a template and see if that works on
page creation without requiring admin access?

> This was the train of thought that led me to considering a second wiki
> instance...I'm just looking for the way to do this with minimal admin
> headache-inducement potential...

(Continue reading)

Atte André Jensen | 1 Nov 2004 23:09
Picon

messed up config

Hi

I used to have a working moin configuration, but then I tried to be 
smart. Now I cannot navigate the wiki at all and I get this in 
/var/log/apache/error:

[Mon Nov  1 22:58:49 2004] [error] [client 192.168.1.106] File does not 
exist: /var/www/wiki/classic/img/moin-inter.png
[Mon Nov  1 22:58:51 2004] [error] [client 192.168.1.106] File does not 
exist: /usr/share/moin/htdocs/UserPreferences
[Mon Nov  1 22:58:54 2004] [error] [client 192.168.1.106] File does not 
exist: /var/www/wiki/classic/img/moin-inter.png

This is my /usr/share/moin/oversaettelser/moin_config.py:
# -*- coding: iso-8859-1 -*-
"""
     MoinMoin - Configuration

     Note that there are more config options than you'll find in
     the version of this file that is installed by default; see
     the module MoinMoin.config for a full list of names and their
     default values.

     Also, the URL http://purl.net/wiki/moin/HelpOnConfiguration has
     a list of config options.

      <at> copyright: 2000-2003 by Jürgen Hermann <jh <at> web.de>
      <at> license: GNU GPL, see COPYING for details.
"""
# If you run several wikis on one host (commonly called a wiki farm),
(Continue reading)

Xue Jianmin, Phipps | 2 Nov 2004 03:36
Picon

How to change the default theme for untrusted user?

Hi All,

I am running MoinMoin1.2.3 and it's relly a great system. 

Since almost all my buddies do not like the default 'Classic' theme
shipped. Is there any way to change the default theme to another one?
Say 'RightSidebar'?

Thank in advance,
Phipps

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Michael P. Soulier | 2 Nov 2004 04:06
Picon
Gravatar

Re: How to change the default theme for untrusted user?

On 02/11/04 Xue Jianmin, Phipps said:

> Hi All,
> 
> I am running MoinMoin1.2.3 and it's relly a great system. 
> 
> Since almost all my buddies do not like the default 'Classic' theme
> shipped. Is there any way to change the default theme to another one?
> Say 'RightSidebar'?

theme_default

Mike

--

-- 
Michael P. Soulier <msoulier <at> digitaltorque.ca>
http://www.digitaltorque.ca
http://opag.ca
Jabber: msoulier <at> digitaltorque.ca
Johannes Kilian | 2 Nov 2004 09:22
Picon
Picon

Howto install local extension macros

Hi there,

I've got a question concerning installing local macros within MoinMoin (just
running MoinMoin1.2.4 with Python 2.3)

My Wiki lives under D:\Wiki\Moin (on a Windows-Box).
So I have got a directory D:\Wiki\Moin\data

I've created a subdirectory D:\Wiki\Moin\data\plugin.
There I created several subdirs: macro, action, formatter ...
Within each of this directories I've got a file "_init_.py" containing the
following lines:
----------------------
 -*- coding: iso-8859-1 -*-

from MoinMoin.util import pysupport

modules = pysupport.getPackageModules(__file__) 
----------------------

Now I've copied the action "VisualSiteMap.py" into my action subdir

Viewing my "SystemInfo" page VisualSiteMap shows up as a local extension
action.

Copying for example "Color.py" or "HTML.py" to my macro subdir they don't
show up as local extension macros on my "SystemInfo" page.

What's wrong with the way I tried to get local extension macros to work? Did
I miss something?
(Continue reading)


Gmane