Nikhil Kakkar | 1 Sep 2006 18:21
Picon

Authentication Problem

Hi
I am trying to setup a wiki on the Intranet for my company. I set up
MoinMoin 1.5.4 on an apache server and everything is good. Except
there is one requirement:a Forum. I installed a forum software and I
can link to it through the wiki.

However I want people to log in to the wiki and then be able to use
the same login for the forum as well without having to re
register/logon. The forum software I am using can read a file which
has list of members so if there is a file created by MoinMoin that has
a list of all members and emails, I can use that. Is it possible to
read the data stored in the cookie set by MoinMoin ? Are there any
suggestions or other possible solutions?
Thanks
Nikhil Kakkar

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Peter Gylling Jørgensen | 4 Sep 2006 14:30
Picon

Dump content of single instance of MoinMoin

Dear all,

How do I as simple as possible export or dump the content of a MoinMoin instance to static html. 

I have searched the user mail list archives and found some more og less usefull hints, but common for all is
references to differnt tool, which I haven't access to (ie. moin_dump.py)

We are running version 1.5.3.

\pgj
--
Peter Gylling Jørgensen
Modelling group, section of Oceanography
Royal Danish Administration of Navigation and Hydrography 
Overgaden o. Vandet 62B DK-1023 København K 
Phone: +45 32 68 96 85
Email: peg <at> frv.dk
www: http://www.frv.dk/ 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Roger Haase | 4 Sep 2006 16:37
Picon
Favicon

Re: Dump content of single instance of MoinMoin


--- Peter Gylling Jørgensen <Peg <at> frv.dk> wrote:

> Dear all,
> 
> How do I as simple as possible export or dump the content of a
> MoinMoin instance to static html. 
> 
> I have searched the user mail list archives and found some more og
> less usefull hints, but common for all is references to differnt
> tool, which I haven't access to (ie. moin_dump.py)
> 
> We are running version 1.5.3.
> 
>

It was renamed to dump.py in \script\export\, but you now execute
moin.py in \script\.  On Windows, moin.py is located in:
  Pythonxx\Lib\site-packages\MoinMoin\script\

A sample Windows command to dump everything (note this single line
wraps):

  python \python24\lib\site-packages\moinmoin\script\moin.py
--config-dir=c:\Moin\mywiki --wiki-url=myorg.org/drawiki/ export dump

Roger Haase

__________________________________________________
Do You Yahoo!?
(Continue reading)

Peter Gylling Jørgensen | 4 Sep 2006 17:03
Picon

Re: Dump content of single instance of MoinMoin

Thank you for the quick answer.

Can you be a little more specific as I have to translate the commandline into something usefull on a linux box.

Below you will find the responce I got from the moin.py script. As I have no prior experience with python,
please point out, what it exactly is complaining about.

COMMAND:
peg <at> server.frv.dk> python /usr/lib/python2.3/site-packages/MoinMoin/script/moin.py \
	--config-dir=/usr/local/moin-1.5.3/share/moin/SeatrackProject \
	--wiki-url=server.frv.dk/SeatrackProject/ export dump

ERROR:
Traceback (most recent call last):
  File "moin.py", line 22, in ?
    run()
  File "moin.py", line 15, in run
    _util.MoinScript().run(showtime=0)
  File "/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py", line 82, in run
    self.mainloop()
  File "/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py", line 141,
in mainloop
    plugin_class(args[2:], self.options).run() # all starts again there
  File "/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py", line 82, in run
    self.mainloop()
  File "/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/export/dump.py",
line 91, in mainloop
    outputdir = os.path.abspath(self.options.target_dir)
  File "/usr/lib/python2.3/posixpath.py", line 395, in abspath
    if not isabs(path):
(Continue reading)

Mehdi Hassanpour | 4 Sep 2006 19:15
Picon

[Moin-User] notification email problem after upgrade

Hi,

After upgrade to MoinMoin 1.5.4 I don't receive notification mails in correct readable format...
How should I know that MoinMoin sends mails with UTF-8 encoding ? I don't have any problem with English texts, my problem is with Persian texts...
I think MoinMoin 1.5.4 doesn't send emails in UTF-8 format... I didn't have this problem with MoinMoin 1.5.3


This is a sample text I receive:

###########################
=DA=A9=D8=A7=D8=B1=D8=A8=D8=B1 =DA=AF=D8=B1=D8=A7=D9=85=DB=8C

=D9=AC

=D8=B4=D9=85=D8=A7 =D8=AF=D8=B1 =D8=B5=D9=81=D8=AD=D9=87 =DB=8C=D8=A7 =D8=
=B7=D8=A8=D9=82=D9=87 =D8=A8=D9=86=D8=AF=DB=8C "Persian Documentation for *=
nix Wiki" =D8=A8=D8=B1=D8=A7=DB=8C =D8=A7=D8=B7=D9=84=D8=A7=D8=B9 =D8=A7=D8=
=B2 =D8=AA=D8=BA=DB=8C=DB=8C=D8=B1=D8=A7=D8=AA =D8=B5=D9=88=D8=B1=D8=AA =DA=
=AF=D8=B1=D9=81=D8=AA=D9=87 =D8=B9=D8=B6=D9=88 =D9=85=DB=8C =D8=A8=D8=A7=D8=
=B4=DB=8C=D8=AF
=D8=A7=DB=8C=D9=86 =D8=B5=D9=81=D8=AD=D9=87 =D8=AA=D9=88=D8=B3=D8=B7 NavidA=
bdi =D9=88=DB=8C=D8=B1=D8=A7=DB=8C=D8=B4 =D8=B4=D8=AF=D9=87 =D8=A7=D8=B3=D8=
=AA:
http://wiki.hezardastan.org/ArticleList

=D9=86=D8=B8=D8=B1=D8=A7=D8=AA =D8=AF=D8=B1 =D9=85=D9=88=D8=B1=D8=AF =D8=AA=
=D8=BA=DB=8C=DB=8C=D8=B1 =D8=B5=D9=88=D8=B1=D8=AA =DA=AF=D8=B1=D9=81=D8=AA=
=D9=87:
=D9=84=DB=8C=D9=86=DA=A9 =D9=85=D9=82=D8=A7=D9=84=D8=A7=D8=AA =D8=AF=D9=88=
=D8=B4=D9=85=D8=A7=D8=B1=D9=87=DB=8C =D9=86=D9=87=D8=A7=DB=8C=DB=8C =D8=A7=
=DB=8C=D8=B1=D8=A7=D9=86=E2=80=8C=D8=AA=D8=A7=DA=A9=D8=B3 =D8=A7=D8=B6=D8=
=A7=D9=81=D9=87 =D8=B4=D8=AF.
##########################

Thanks for help
--
********************************************************
Yours Sincerely, Mehdi Hassanpour
----------------------------------------------------------------------
/* Of one Essence is the human race,
Thusly has Creation put the Base;
One Limb impacted is sufficient,
For all Others to feel the Mace.
                           ~Saadi (persian poet) -1258 */
----------------------------------------------------------------------
http://ImPersian.com     |     http://Hezardastan.org
********************************************************
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Moin-user mailing list
Moin-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Roger Haase | 5 Sep 2006 04:55
Picon
Favicon

Re: Dump content of single instance of MoinMoin


--- Peter Gylling Jørgensen <Peg <at> frv.dk> wrote:

> Thank you for the quick answer.
> 
> Can you be a little more specific as I have to translate the
> commandline into something usefull on a linux box.
> 
> Below you will find the responce I got from the moin.py script. As I
> have no prior experience with python, please point out, what it
> exactly is complaining about.
> 
> COMMAND:
> peg <at> server.frv.dk> python
> /usr/lib/python2.3/site-packages/MoinMoin/script/moin.py \
> 	--config-dir=/usr/local/moin-1.5.3/share/moin/SeatrackProject \
> 	--wiki-url=server.frv.dk/SeatrackProject/ export dump
> 
> ERROR:
> Traceback (most recent call last):
>   File "moin.py", line 22, in ?
>     run()
>   File "moin.py", line 15, in run
>     _util.MoinScript().run(showtime=0)
>   File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 82, in run
>     self.mainloop()
>   File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 141, in mainloop
>     plugin_class(args[2:], self.options).run() # all starts again
> there
>   File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 82, in run
>     self.mainloop()
>   File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/export/dump.py",
> line 91, in mainloop
>     outputdir = os.path.abspath(self.options.target_dir)
>   File "/usr/lib/python2.3/posixpath.py", line 395, in abspath
>     if not isabs(path):
>   File "/usr/lib/python2.3/posixpath.py", line 49, in isabs
>     return s.startswith('/')
> AttributeError: 'NoneType' object has no attribute 'startswith' 
> 
> \pgj

I was able to reproduce your problem on Fedora Core 4 with Python 2.4. 
The problem seems to be in dump.py on line 93:

    outputdir = os.path.abspath(self.options.target_dir)

On Windows, self.options.target_dir has the value None when the
statement is executed and outputdir is set to the current directory --
all the HTML files are then written to the current directory.

On Linux, the results are as posted above.

I was able to work around the problem by commenting out line 93 in
dump.py and adding the following new line:

        # outputdir = os.path.abspath(self.options.target_dir)
        outputdir = '/home/myname/myoutputdir'

Unless someone else can offer an explanation of what we are doing
wrong, I will add this to the buglist tomorrow.

Roger Haase

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Johan | 6 Sep 2006 15:33
Picon

possible with differences in the surrounding design of the wiki?

Hello, this is Johan from Sweden.

I use moinmoin under "wiki" in the meny at my site. I would like to put a page in the wiki under "dokumentation" in the meny, without jumping to "wiki" when viewing this page. For this I need to have differences in design in the wiki so one design can be with the meny-item "wiki" marked and one with "dokumentation" and that I can define which wikipages to use the alternative design. Is this possible?? ;)

Check out http://www.ubuntu-se.org/wiki (swe) to see what I mean. Try to go to "IRC" in the meny. Then "wiki" will be marked in the meny, not IRC..


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Moin-user mailing list
Moin-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Thomas Waldmann | 6 Sep 2006 16:00
Picon
Picon

Re: [Moin-User] notification email problem after upgrade


> After upgrade to MoinMoin 1.5.4 I don't receive notification mails in
> correct readable format...
> How should I know that MoinMoin sends mails with UTF-8 encoding ? I don't
> have any problem with English texts, my problem is with Persian texts...
> I think MoinMoin 1.5.4 doesn't send emails in UTF-8 format... I didn't 
> have
> this problem with MoinMoin 1.5.3
This is not a moin bug, but different behaviour of different python 
versions, see there:

http://moinmoin.wikiwikiweb.de/MoinMoinBugs/UnicodeMailNotificationEncodingBroken

http://moinmoin.wikiwikiweb.de/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded

This patch should workaround it for all python versions:

--- a/MoinMoin/util/mail.py	Thu Jul 20 17:38:59 2006 +0200
+++ b/MoinMoin/util/mail.py	Thu Jul 20 18:01:31 2006 +0200
 <at>  <at>  -74,8 +74,14  <at>  <at>  def sendmail(request, to, subject, text,
     charset = Charset(config.charset)
     charset.header_encoding = QP
     charset.body_encoding = QP
-    msg.set_charset(charset)    
-    msg.set_payload(charset.body_encode(text))
+    msg.set_charset(charset)
+
+    # work around a bug in python 2.4.3 and above:
+    msg.set_payload('=')
+    if msg.as_string().endswith('='):
+        text = charset.body_encode(text)
+
+    msg.set_payload(text)

     # Create message headers
     # Don't expose emails addreses of the other subscribers, instead we

It will be included in 1.5.5 release soon.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Roger Haase | 6 Sep 2006 23:52
Picon
Favicon

Re: Dump content of single instance of MoinMoin


--- Peter Gylling Jørgensen <Peg <at> frv.dk> wrote:

> 
> Can you be a little more specific as I have to translate the
> commandline into something usefull on a linux box.
> 
>

I updated http://moinmoin.wikiwikiweb.de/MoinDump to document an
additional parameter.

   python /pathToPython/site-packages/MoinMoin/script/moin.py \
                  --config-dir=/mywiki \
                  --wiki-url=www.myorg.org/mywiki/ \
                  export dump \
                  --page=WikiSandBox \
                  --target-dir=/home/myname/outputdir

Use the --target-dir parameter to specify the output directory.

Roger Haase

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
George Dinwiddie | 7 Sep 2006 06:05
Favicon

modifying wiki links

I'm moving from a dedicated server to a shared server, but trying to 
duplicate the external appearances.  On my dedicated server, I use
   ScriptAlias /moin /var/moin/mywikiname/moin.cgi
to simplify the URL and point to the script.  On the shared server, I 
can't use ScriptAlias because I don't have access to the httpd.conf and 
must use .htaccess, instead.  I've achieved partial success with
   ReWriteEngine on
   ReWriteRule ^moin moin.cgi
   ReWriteRule ^moin/(.*) moin.cgi/$1
This works fine if I type in the url http://mydomain.com/moin/FrontPage 
but if I click a link on the wiki, the form is 
http://mydomain.com/moin.cgi/FrontPage

I *know* I've seen instructions for changing the way Moin generates 
these links, but now that I need it, my searches are coming up empty. 
How do I get rid of the ".cgi" portion of the link?

  - George

--

-- 
  ----------------------------------------------------------------------
   * George Dinwiddie *                    gdinwiddie <at> idiacomputing.com
   Software Development                    http://www.idiacomputing.com
   Consultant and Coach                    http://www.agilemaryland.org
  ----------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane