[Moin-user] Mailing Lists are moving to python.org!

2016-06-16 Thread Thomas Waldmann
Hi,

we used SourceForge Mailing Lists for a long time, but now is the time 
to move on.

Yesterday at ~21:00 UTC, I took a backup of moin-user (and also 
moin-devel) Mailing Lists so all the past content can be also viewed in 
the new archives at python.org:

https://mail.python.org/mailman/listinfo/moin-user

https://mail.python.org/mailman/listinfo/moin-devel
(the moin-devel list was not used for a longer time, but could be used 
again in future)

Please subscribe to these new mailing lists ASAP (and unsubscribe from 
the old SF mailing lists).

The old mailing lists will be disabled soon and all incoming mail for 
them from now on might get lost / discarded.

Cheers,

Thomas

-- 

GPG ID: FAF7B393
GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Unable to successfully access user account browser

2015-06-22 Thread Thomas Waldmann
 I'm trying to access the user account browser (SystemAdmin/sysadm=users)
 but the page just bombs out and Apache logs the following:
 
 mod_wsgi (pid=9621): Exception occurred processing WSGI script
 '/srv/moin-config/moin.wsgi'.
 IOError: failed to write data

Sounds like you run into a timeout.

Maybe just retry (due to caching, it might be faster the 2nd time).
Or increase timeouts the web server waits for data of the wsgi process.

 I need to clean up the accounts from ex-staff, particularly since some
 of them have got notifications firing.

If nothing else helps, you can always have a look at data/user/* in the
filesystem.

-- 

GPG Fingerprint: 6D5B EF9A DD20 7580 5747  B70F 9F88 FB52 FAF7 B393
Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical  virtual servers, alerts via email  sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] 500 Internal Server Error on v1.9.8

2015-05-28 Thread Thomas Waldmann
Stop the moin process / web server.

Try moin ... maint cleancache to clear the precompiles pages' cache.

Start the moin process / web server.

The retry accessing that page.

 [Wed May 27 18:04:29 2015] [error] exec code
 [Wed May 27 18:04:29 2015] [error]   File SM Web GUI Setup, line
 4, in ?
 [Wed May 27 18:04:29 2015] [error] TypeError: exceptions must be
 old-style classes or derived from BaseException, not str

^^ Typical weird error msg that happens when changing python version and
not clearing the cache.


--
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] GSoC 2015 aspirant: Validation of Wiki Contents

2015-03-09 Thread Thomas Waldmann
 I have set-up MoinMoin and using the software. Please guide me for the
 next step. What are the beginner level bugs to fix? 

Have a look into the issue tracker. Difficulty of some bug depends very
much on domain knowledge of who is trying to solve.

 Also I am interested in GSoC 2015 project Validation of Wiki Contents.

Please keep in mind that these are ideas which you can use to assemble a
project. Not each idea is enough to full a GSOC.
Thus, you should make a good and detailled plan (and while doing that,
you will be able to project how long solving some stuff will take you).

 How should I start, need a brief overview of the project.

Think about it. Maybe storage.validation, storage.indexing is
interesting to see what metadata we have and what can be validated.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] GSoC 2015 Projects

2015-03-09 Thread Thomas Waldmann
 I am new to open source coding and wanted to contribute to moin-moin in
 thee GSoC phase. 2 projects particularly Improve Issue tracker and
 improve blog interest me a lot.
 How do I start my work so that I get to work on these projects during
 the GSoC?

Best is to join us on IRC #moin-dev (ask specific questions and be patient).

On the ideas page, there are quite some linked pages with stuff to read
- a lot of questions will be answered by that.

Besides that, just use the software you try to improve, you likely will
find more specific ideas about what could be done specifically.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] email verification for new registration

2015-03-09 Thread Thomas Waldmann
 I am new to moinmoin wiki. I have installed it and I want to send a
 verification mail to newly registered member.
 Please suggest how to do that.

You need to configure a mail server, user name and password in your
wikiconfig.py.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Moin Installation

2015-03-09 Thread Thomas Waldmann
 Initially installed the MoinMoin correctly. I was exploring MoinMoin on
 http://127.0.0.1:8080/ but suddenly I got the following error.
 
 Inline image 1

That was hardly readable btw. - but I think you could try clearing the
cookies for 127.0.0.1:8080 in your browser.

And if you search for a bugfix you could contribute: this is it :D


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Upgrading 1.8.1 to 1.9.8

2015-02-20 Thread Thomas Waldmann
 I'm running a fairly old MoinMoin install - 1.8.1. An abridged version
 of SystemInfo is below.
 
 I've read the various upgrade HowTos and it *seems* straightforward.
 Does anyone have a recommended HowTo?

docs/* in the download has instructions.

 I plan to try to install this on a Synology NAS eventually, but thought
 I would upgrade it first.

Yeah, maybe try to get a newer python. 2.5.1 is too old these days.



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] GSoC 2015

2015-02-20 Thread Thomas Waldmann
 I am Rohan Goel ,  Computer Science undergraduate at BITS Pilani , India
 and am interested in working for your organization in GSoC 2015. As I am
 a beginner in open source coding , it would be great help if you guide
 me where to start from. My primary language of interest is Python.

https://moinmo.in/GoogleSoc2015 there are some links, read them.

Also please join us on IRC, see there for details.


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Contributing to MoinMoin for GSOC 2015

2015-02-09 Thread Thomas Waldmann
Hi Akshita,

 I am an GSOC - 2015 Applicant. I am currently in my 3rd year B.Tech
 (Computer Science). I want to contribute to MoinMoin. I would be really
 grateful, if you could help me get started.

Very likely most or all projects for GSOC will be based on moin 2.0 and
we have a wiki page for that with all the important links, read it:

https://moinmo.in/MoinMoin2.0

Also please join us on IRC #moin-dev on chat.freenode.net.

Cheers,

Thomas

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Insert/Edit image button disabled

2015-01-22 Thread Thomas Waldmann
 I don't know what versions were working. It was probably in 2008 or 2009...

OK, pity.

 Can you just tell me if this is supposed to work or not?

I don't use the gui editor. In theory all offered is supposed to work,
but the problem is that not many developers care for the js parts of our
code.

So it might just need the right person to fix it.

 If this limitation is local to my installation but it works everywhere else, 
 I can spend some time working on it. 

You can just try if it happens on https://moinmo.in/ - if it works
there, it is a local problem of your installation.

 If it hasn't been working anywhere for many years, I might not be able to fix 
 it myself...

If you know js and/or FCKeditor, your chances are better than mine.


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Insert/Edit image button disabled

2015-01-17 Thread Thomas Waldmann
 I just updated MoinMoin to 1.9.8 after a very long time without updates.
 The button Insert/Edit image in the GUI editor is now permanently 
 disabled.

So, it worked before?

If you can find out at which (moin and FCKeditor) release it stopped
working, that might be helpful.

 Is there a way to get it working the way it was before (specifying the 
 image file name in attachment)?

Well, needs some javascript developer who likes to dive into FCKEditor
and plugins (== not me, sorry).


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Programmatic creating/editing of pages

2015-01-12 Thread Thomas Waldmann
 1. I'd prefer NOT to have page history for these pages. It takes up disc
 space and isn't really necessary.

IIRC there is a parameter of PageEditor (or the save call) where you can
switch off revisioning.

 2. I'd prefer NOT to have changes to these pages show up in the
 RecentChanges list. The reason for this request is because part of the
 update process requires me to update the photos for each person. Since I
 can't (easily) do a file comparison to see if the photo has changed, I
 replace all of the photos anyway just to be on the safe side.

I don't think you can do this easily using the existing API.



--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
vanity: www.gigenet.com
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Render MoinMoin wiki syntax to HTML without having a wiki deployment

2014-12-23 Thread Thomas Waldmann
On 12/22/2014 02:06 PM, Ciprian Dorin Craciun wrote: I would like to
know (if it is possible) how to render a MoinMoin wiki
 file into an HTML file, without having an MoinMoin instance.
 (Obviously I do have MoinMoin code installed, but no running instance
 configured.)

 I know about `moin export dump`, but from what I understand it
 requires (although not a running server), MoinMoin deployment (with
 configuration files, data files, etc.)

 What I'm after is something like `rst2html2` which I can fed on stdin
 with the source and I get on stdout the HTML variant.  (I want to
 use the MoinMoin native syntax, not the RestructuredText.)

It's not as easy as you think it is.

moin rendering depends on information not only from the markup, but also
from configuration, request environment and in some cases even from
page/attachment storage.

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Request for comments about new parser InteractiveImageMap.py (for the ROS wiki)

2014-12-12 Thread Thomas Waldmann
 I never used codereview.appspot.com before, but I did create a new repository:
 https://codereview.appspot.com/search?base=https://github.com/andreasBihlmaier/moinmoin_interactive_image_map.git/trunk/
 (I hope this is enough in order for comments to be possible)

The link just leads to something empty.

Usually one uses the upload.py tool of codereview before commit to
submit the current workdir changes to CR. It is also possible after
commit, but IIRC needs some params then.


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Request for comments about new parser InteractiveImageMap.py (for the ROS wiki)

2014-11-27 Thread Thomas Waldmann
Hi Andreas,

 I'm currently working on a new parser plugin to have interactive image
 maps such as
 http://andreasbihlmaier.github.io/html/2014-10-30-ros_beginner_documentation.html
 available within MoinMoin.

Ah, nice. :)

 to get some feedback from you (i.e. the MoinMoin experts) about
 InteractiveImageMap.py.
 Furthermore, I'd be glad about other suggestions for (code) improvements.

Well, to make that easier, it would be good if you e.g. put the code in
codereview.appspot.com, so one can efficiently comment on specific parts
of it. After processing feedback, you can also easily update such a
codereview to the current state and get more feedback.

Cheers,

Thomas

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Replacing a Wiki does not work as expected

2014-10-23 Thread Thomas Waldmann
 Once in a while I replace this with a scheduled task with the original
 version in order to fight spammers/idiots.

If you replace the data_dir or data_underlay_dir content behind moin's
back, you need to restart the moin process afterwards (or even better:
stop, replace, start).

moin does caching and if you do not restart, the cache would be
inconsistent with the on disk contents.


--
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] moin 1.9.8 released!

2014-10-17 Thread Thomas Waldmann
This release is mostly about some small new features, performance
improvements, enhanced logging and bug fixes. Also, the bundled software
was upgraded.

For details see: http://hg.moinmo.in/moin/1.9/file/1.9.8/docs/CHANGES

See http://moinmo.in/MoinMoinDownload for the release archive.

BTW, for future moin 1.9 releases, we still need many more people
helping with maintaining and updating translations on
http://master.moinmo.in/ .

So, especially if you speak some non-english language, you can help!

See http://moinmo.in/MoinDev/Translation for details.

These days we spent most of our time on developing moin2, see
http://moinmo.in/MoinMoin2.0 for details.

If you like to hack / test new stuff, have a look! Also feel invited to
help with it, so it gets ready for production sooner.

If you are interested in helping, feel free to contact us on IRC chat,
see: http://moinmo.in/MoinMoinChat

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Where to catch FileTooLong error

2014-10-14 Thread Thomas Waldmann
Hi Nikolaus,

 How about this patch?
 
 diff --git a/MoinMoin/Page.py b/MoinMoin/Page.py
 --- a/MoinMoin/Page.py
 +++ b/MoinMoin/Page.py
 @@ -217,6 +217,10 @@
  # never store empty pages, so this is detectable and also
  # safe when passed to a function expecting a string)
  return 
 +elif er.errno == errno.ENAMETOOLONG:
 +# If the name is too long, the page can't exist on this
 +# system either.
 +return 
  else:
  raise
 
 It fixed the issue for me, and applies cleanly against the 1.9 hg
 repository. I decided against an error message and instead opted to
 treat this like a file-not-found error (which, in some way it is).
 ./pytest also runs fine with the patched source.


OK, looks good. I fixed it in an equivalent way:

http://hg.moinmo.in/moin/1.9/rev/5e80523a1677

Thanks for the patch!

Cheers,

Thomas

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Where to catch FileTooLong error

2014-10-14 Thread Thomas Waldmann
Hi Nikolaus,

 It fixed the issue for me,

Well, I just tried it and it now just blows up at another place:

2014-10-14 18:28:17,664 INFO MoinMoin.web.serving:41 127.0.0.1 GET
/aaa
HTTP/1.1 500 -
2014-10-14 18:28:17,680 ERROR werkzeug:116 Error on request:
Traceback (most recent call last):
  File /home/tw/mm19/MoinMoin/support/werkzeug/serving.py, line 159,
in run_wsgi
execute(app)
  File /home/tw/mm19/MoinMoin/support/werkzeug/serving.py, line 146,
in execute
application_iter = app(environ, start_response)
  File /home/tw/mm19/MoinMoin/support/werkzeug/wsgi.py, line 411, in
__call__
return self.app(environ, start_response)
  File /home/tw/mm19/MoinMoin/wsgiapp.py, line 264, in __call__
response = run(context)
  File /home/tw/mm19/MoinMoin/wsgiapp.py, line 89, in run
response = dispatch(request, context, action_name)
  File /home/tw/mm19/MoinMoin/wsgiapp.py, line 137, in dispatch
response = handle_action(context, pagename, action_name)
  File /home/tw/mm19/MoinMoin/wsgiapp.py, line 203, in handle_action
handler(context.page.page_name, context)
  File /home/tw/mm19/MoinMoin/action/__init__.py, line 268, in do_show
content_only=content_only,
  File /home/tw/mm19/MoinMoin/Page.py, line 1304, in send_page
html_head=html_head,
  File /home/tw/mm19/MoinMoin/theme/__init__.py, line 1809, in send_title
'pagesize': pagename and page.size() or 0,
  File /home/tw/mm19/MoinMoin/Page.py, line 681, in size
return os.path.getsize(self._text_filename(rev=rev))
  File /usr/lib/python2.7/genericpath.py, line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 36] File name too long:
'/home/tw/mm19/wiki/data/pages/aaa/revisions/'

Didn't you get this when trying it out?

Cheers,

Thomas

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Where to catch FileTooLong error

2014-10-14 Thread Thomas Waldmann
   File /home/tw/mm19/MoinMoin/Page.py, line 681, in size
 return os.path.getsize(self._text_filename(rev=rev))
   File /usr/lib/python2.7/genericpath.py, line 49, in getsize
 return os.stat(filename).st_size
 OSError: [Errno 36] File name too long:
 '/home/tw/mm19/wiki/data/pages/aaa/revisions/'
 
 Didn't you get this when trying it out?
 

Fixed by:

http://hg.moinmo.in/moin/1.9/rev/14b0dff0d0c6


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Where to catch FileTooLong error

2014-10-08 Thread Thomas Waldmann
Moin Nikolaus,

 Several times a day I get the errors like the following in my moinmoin
 server logs:

Yeah, seen them also. Not too often, not causing issues here, so I just
ignored them.

 [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File 
 /usr/lib/python2.7/dist-packages/MoinMoin/Page.py, line 212, in get_body
 [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] f = 
 codecs.open(self._text_filename(), 'rb', config.charset)
 [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] IOError: [Errno 36] 
 File name too long: '...'
 
 I believe this is just some attempted exploit failing miserably and no
 cause for concern.

Correct.

Not even sure it is an exploit. Sometimes such stuff are also just
crappy bots using links from crappy services or constructing links badly.

But somehow it looks like trying a buffer overflow, yes (which can't
happen in python).

 What would be the best way to catch this exception and log a short,
 standard message instead?

I guess you could catch it at the place I quoted. Make sure you do not
catch stuff also which you did not want to catch. Maybe check errno?

Important: run your code, practically try if it really fixes the
problem. Run our unit tests (== run ./pytest from top level dir).

 I am proficient in Python, but not in moinmoin. So my question is mostly
 *where* to insert the necessary code, and how to generate the error
 message (just print to stderr, or is there a logging function I should
 use?).

We use the stdlib logging, just look in some code to find how it is
usually imported and used (our logging is NOT the logging module object).

 Ideally, I'd also like to change something in /etc rather than
 changing e.g. /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py, so
 that the changes are not lost on the next update.

If you get the changes done asap and get them adopted upstream (== by
me), they could be in a release quicker than you think. :D

Cheers,

Thomas

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] LDAP Groups for ACLS

2014-09-08 Thread Thomas Waldmann
 Is there an easy way to get LDAP authorization working as well as LDAP 
 authenitcation ?
 
 If  I log in as user1 where the authentication is checked by ldap, is 
 there a way to get the ACL mechanism to go to LDAP to check group 
 membership ?

A very simple group membership check can be implemented by the ldap
search string, which could check e.g. for some wikiallowed attribute.

 For instance, user1 is a member of group1 but not group2 (both from 
 LDAP) so if a page has an ACL to only allow users from group1 then user1 
 can see it, but not if the ACL restricts to group2 ?
 
 I found this...
 
 http://moinmo.in/Groups2009
 
 ...but I can't find any mention of whether this work was completed or 
 any documentation on getting it working.

IIRC it wasn't completed. If you know Python and you have a ldap
environment to test it, you maybe could continue it. :)

 Can anyone help with this ?

I can help with moin questions, but I don't use moin with ldap myself.

Cheers,

Thomas

--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] release candidate for 1.9.8

2014-08-22 Thread Thomas Waldmann
Moin :)

Just wanted to tell that I've uploaded a RC for 1.9.8 so it can get more
testing.

It would be nice if some of you would download it, test it and provide
feedback. I have the code running on moinmo.in for a while, but feedback
from different installations is always good.

There are some new features in it as well as quite some bugfixes.

Change-Log:
http://hg.moinmo.in/moin/1.9/file/fde5fea5986a/docs/CHANGES

Download:
http://static.moinmo.in/files/moin-1.9.8.tar.gz

$ sha256sum moin-1.9.8.tar.gz
1657ebaf6034aae3c5d275e4d90a5452789a97d5031b641ad77b3e94228a5a41
moin-1.9.8.tar.gz

Cheers,

Thomas

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Multiple file upload implementation

2014-08-13 Thread Thomas Waldmann


On 08/10/2014 12:05 PM, James Wilmot wrote:
 Moin Moin!
 
 I have hacked together a multiple file upload implementation
 (using https://github.com/blueimp/jQuery-File-Upload)

Cool, I used the same stuff for another project (bepasty on github).

 for my local usage on MoinMoin 1.9.X, but I would be interested in
 polishing it and pushing it upstream.
 
 Questions:
 
 -  1.9.X seems to be feature stable at the moment,

Yes, whether your change is acceptable for inclusion into 1.9 depends
a lot on the impact it has on existing code / functionality. Also,
some admins or distribution packagers might want to have it optional
and off-by-default.

 just to develop on top of MoinMoin 2.X?

moin2 is preferable for new features. And IIRC we already have
multi-file-upload there, I don't remember whether it was with that lib
or some other one, though. Try throwing stuff onto the index page of
moin2.

 - the implementation I have is basically hacked into the 
 action/AttachFile.py but doesn't change any of the backend
 functionality: it is all front end changes. Would it be best to put
 the feature into an applet like the editor?

I think I can give better advice if you just put the stuff on
codereview.appspot.com and add me as a reviewer there.

 Thanks for the excellent wiki and I hope to contribute back in
 other ways in the future! (like the LDAP integration)

You're welcome! And we would definitely like you trying moin2 and
hacking it for usability. :)

BTW, in next 1.9 release, there are some minor changes to deal with
(==delete, move) multiple attachments already, see repo.

BTW, if you use IRC, join us on #moin-dev on freenode.

Cheers,

Thomas

--
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Multi-location moinmoin implementation?

2014-06-30 Thread Thomas Waldmann
Moin Philip,

I don't run such setups, but I hope this might be helpful nevertheless:

 We currently running our moinmoin wiki on an Amazon instance in North
 Virginia. We have people in China who are trying to access it and are
 reporting very poor access performance.

Can have many reasons.
Slow local internet connection at the user's site.
Slow regional network there.
High latency / slow international connection.
Even different system loads due to different typical usage hours.

 I'm thinking that one way of
 solving the problem would be to set up a second server in a location
 nearer to China, e.g. Tokyo or Singapore.

Sounds reasonable. But maybe ask some people in china if that really
helps / do comparative speed/latency tests.

 Off the top of my head, it would seem to be relatively straightforward
 to set up the Asia instance as read-only and then use rsync to
 replicate changes from the US instance to Asia.

Yes, that would work.

Do a maint cleancache and a moin process restart after rsyncing.

If you run exactly same python version, cpu architecture and maybe also
otherwise same-setup, you can maybe get away without cleancache.

 I could then use
 Amazon's geo technology to redirect users to the nearest server.

Maybe don't. Just have the servers at different URLs, so that people can
decide which one to use (read-only one for fast reading / searching, the
master for editing).

 2. Ideally, both servers would be writeable and I'd be syncing in both
 directions but there is the risk of a collision then with two
 different people editing the same page at the same time. It would be a
 small risk, but the risk is there.

Right. Maybe the r/w master and r/o replica is simpler.

A third theoretical option is to set up a web proxy (squid, varnish,
...) near/inside china. But as wiki contents can change any time,
effectively caching them is non-trivial / not possible without risking
strange effects.

Cheers,

Thomas

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] No templates with moinmoin 1.9.4

2014-05-15 Thread Thomas Waldmann
On 05/05/2014 04:49 PM, Matthias Seitz wrote:
 moinmoin is installed from the Debian Packages on a debian wheezy
 system, the current release there is 1.9.4-8

A bit old, as usual, but should work (and they apply critical security
fixes).

 The wiki works great so far, the only thing which doesen't work are the
 templates. regex in the wikiconfig.py:
 
 page_category_regex = ur'(?PallCategory(?Pkey(?!Template)\S+))'
 page_dict_regex = ur'(?Pall(?Pkey\S+)Dict)'
 page_group_regex = ur'(?Pall(?Pkey\S+)Group)'
 page_template_regex = ur'(?Pall(?Pkey\S+)Template)'

Looks like the defaults, right?

 I've created a test_Template site

You mean a page with that name?

 There's just a URL Create New Page.

The template pages should show in the list of templates, as well as
similarly named pages on the same page as create new page?.

Did you restart the wiki after (maybe?) modifying your wiki config?


--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] No templates with moinmoin 1.9.4

2014-05-15 Thread Thomas Waldmann
BTW, I just tested the template issue:

With the current repo code as well as with the code tagged as 1.9.4 it
immediately worked.

I just uncompressed the underlay.tar (this is needed when running the
wiki from the repo, not required when using a release archive or package).

Then I started wikiserver.py and visited a non-existing page.

Got the create new page link plus the list with a few templates on the
left.

So I guess the issue must be some local configuration or installation issue.

Maybe check in the log output the precise path of the config file(s) it
loads. Maybe it is not the file you are editing.

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] unable to view .ppt ,.doc files

2014-04-19 Thread Thomas Waldmann
Moin :),

 I am new to moinmoin and i recently  installed moinmoin -1.9.7.
 when tring to view/read certain files am getting the below error.
  
 Current configuration does not allow embedding of the file
 sample.ppt because of its mimetype application/vnd.ms-powerpoint

A browser itself can not embed and display that mimetype, you need to
download such a file and open it with powerpoint.

 Where do I change the configuration to allow the embedding?

First solve the problem how to enable your browser to be able to display
this inside the browser, do you have a plugin for that?

Cheers,

Thomas


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] moin 1.9 subscriptions / notifications updates, testing needed!

2014-03-01 Thread Thomas Waldmann
Just a small update about the recent commits to the 1.9 repo:

There were major changes about how some things (internally) work and it
would be great if some people test them before the next release (1.9.8)
happens.

You can get the current code from the repository, the code is also
running now on the http://moinmo.in/ wiki.


a) subscriber determination with better scalability

When you save a page, moin has to determine which users have subscribed
to the page (to receive change notifications). This used to be rather
slow as moin opened all the user profiles to look which users are
subscribed to this page.

There was a patch for this on the wiki since quite a while (thanks to
everybody who has contributed to that). But, the patch had some issues
and needed more testing before it could go into moin.

You can see it there + in the following changesets after that:

http://hg.moinmo.in/moin/1.9/rev/54dc774ff49b

While working on that, other issues were discovered and fixed, code was
refactored / cleaned up. Some stuff is faster now. :)

I did some tests with 1 user profiles and it worked much faster than
before.


b) email notifications

The (template) strings used for these are configurable now (the builtin
defaults for them stayed the same so we don't lose the existing
translations).

Docs / Examples:

http://hg.moinmo.in/moin/1.9/file/a3900f360ad0/docs/CHANGES#l82

While working on that, I also fixed the (non-working) notifications for
page deletion / rename, attachment added / removed.


If you find any issues or have other feedback, use IRC or the mailing
list or file bugs on the wiki.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] No GSOC 2014 for MoinMoin, but we can have a summer of code without google sponsoring ; )

2014-02-25 Thread Thomas Waldmann
See there:

https://moinmo.in/GoogleSoc2014

Because of that, I consider all GSOC-2014-related questions as
irrelevant now.

If you had recently posted a question to IRC or the mailing list about
the project ideas or expressing you are interested in contributing, I
assume that they were related to GSOC and are somehow obsolete now.

If that isn't the case and you like to do a project without google
sponsoring with us, you're very welcome, just ask again in that case.

Cheers,

Thomas

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] Mentors and helpers wanted for MoinMoin team in Google Summer of Code 2014

2014-02-09 Thread Thomas Waldmann
MoinMoin :)

MoinMoin project has filed an application as mentoring organisation for
GSOC 2014.

https://moinmo.in/GoogleSoc2014

Until February, 14th, we need to complete the application with the count
of mentors we have.

As you see on the wiki page, we currently have only 3 mentors (2 of them
also org admin / backup admin).

The amount of student project grants we get from google depends on many
factors (in the past, these were usually 3 .. 6 student projects per
summer), but one is of course mentoring capacity.

The amount of student projects we can (and would) take depends primarily
on availability of primary mentors.

For quality mentoring, there usually should be 1 mentor per student.
In some cases 1 mentor for 2 students can also work (e.g. if mentor has
more time, students are predicted to need not that much mentoring, the 2
projects are somehow similar, etc.).

So, if you have good experience with some of the following things, think
about whether you could help with mentoring a student (as primary
mentor) or hanging out with us on #moin-dev as a helper - helping now
and then on some topics (but not being a primary mentor for a student).

* moin2 codebase (if you have long term moin 1.x coding experience, that
might also work, if you can take up the differences quickly)
* python
* javascript / jquery
* css / bootstrap
* html5
* mercurial / bitbucket
* testing / py.test
(and maybe other stuff I just forgot right now :)

If this sounds interesting and you like to help the project and student
developers who are maybe new to the project, add your name to the
mentors list on the wikipage linked above.

We usually do mentoring on IRC collaboratively - whoever is online and
can answer a question will just do so (no matter whether he is primary
mentor for that student or not).

You of course should have some time to spend on mentoring, so you should
not be super-busy with lots of other stuff. Students are expected to
work full-time on their project, a mentor is expected to have at least
some hours per week free to spend for mentoring.

In case it matters: MoinMoin organisation usually gets 500 USD per
student mentored and the mentor decides what happens with that money
(usual options are pay mentor invoice or donate to project).

Also, after a successful GSOC, google usually invites 2 mentors per org
to their headquarters in mountain view to the GSOC mentor summit (travel
costs and 2 hotel nights paid by Google). If we have more than 2 mentors
willing and able to go there, we'll roll a dice. :D

Cheers,

Thomas

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Getting Introduced with the Community and Looking forward to Contribute to the Project as part of Gsoc 2014

2014-02-09 Thread Thomas Waldmann
Hi Nitika,

 Firstly I, Nitika would like to introduce myself to the developers of
 this commmunity.

You're welcome! I am the project admin. ;)

 My skills include Programming languages: GNU C/C++, Python, Javascript,
 Version control systems Git/Github and SVN.

You won't need C/C++ for moin, also no git or svn.

But you'll need hg (mercurial), bitbucket and html5 / css.

 I had installed the required necessary tools and setup the environment
 in my system needed for the contribution to open source software.

Contributions are always welcome. See the moin-2.0 issue tracker and the
EasyToDo page on the wiki.

 I had got myself aware of the source to some
 extent and had forked on my github account.

I guess would not have worked as we do not use git for moin.

The moin 1.9 repo for moin you found on github is just something from a
user and rather outdated.

See the wiki for our repo URLs, links to documentation, etc.:

http://moinmo.in/MoinMoin2.0

BTW, it looks a bit like you made this mailing list post content rather
generic so you can post it to multiple mailing lists. While I can
understand this for efficiency reasons, that might cause issues, as you
have seen.

In case you plan to do similar for your GSOC application(s): don't do
that, it won't work.

You should focus on 1 or 2 applications and prepare them well. You need
to get into the project(s), have a meaningful application, know what
you're talking about, give details about the project you plan to do.

If you do more than a few, you will likely not have enough time to do
each of them well enough.

 I would like to seek the mentors help in the selection of the project
 for which the idea has been proposed for the Gsoc and someone is willing
 to mentor the project idea.

See our ideas page on the wiki (and please read at least the first
paragraphs of it completely).

If there is some interesting project for you (or if you have an own
idea), join us on #moin-dev on IRC.

Cheers,

Thomas


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Unhandelled exceptions

2014-02-05 Thread Thomas Waldmann
 I tried posting following message on Google Groups (
 https://groups.google.com/forum/#!topic/moin-user/rtU-zD1U7Hw ), which I
 think is not the official mailing list.

No, it isn't. But it seems to contain same messages as the mailing list.

But I didn't see your message before, so it doesn't seem to work
bidirectionally.

 We have been using MoinMoin for more than 3 years for our website and it
 has been working nicely. However, in since couple of weeks we have
 started to get Unhandled exception while editing some pages of the
 website using GUI mode of the editor. Few other things have also stopped
 working, for instance copy-paste also seems to give Unhandled
 exception and insert image button is not available anymore.
 Temporarily, we have been editing the website using text-mode of the
 editor but we would like to get back GUI mode functionality. 
 
 Is there any way to find the source of the issue and fix it?

Look into the web server logs (e.g. apache's error log) if you find some
Traceback from moin there. Or, if you don't, configure moin's logging to
log to a separate file (see moin.wsgi or whatever adaptor script you
used. there are sample logging configs in wiki/config/... in the
download archive).

 We are
 running MoinMoin 1.9.3 and Python 2.4.3. As far as we know, not much has
 changed in the configuration files. 

That sounds a bit like your system is rather outdated and needs a bigger
upgrade. Maybe check whether your base system still gets security
updates at least and whether you could upgrade to a newer release.

 Also, is it possible that updating to a newer version of MoinMoin (and
 Python) can fix the issues?

Well, maybe. It depends on what causes these issues.

But be warned: for recent moins you'll need a more recent python also.
And nowadays, you should be running python 2.7 (or 2.6) anyway.

 If so, then we would first like to test the
 installation/working of new version(s). Is it possible to install two
 versions of MoinMoin (and corresponding python) side-by-side on the same
 machine while not affecting the previous installation (and working) of
 the software(s).

You can install a new python as well as a new moin without causing any
interferences if you do it right:

you didn't say what your operating system is, so I am assuming you run
some linux:

python: look for new packages for your distribution. if there aren't
any, you could compile e.g. python 2.7 on your own and do make
altinstall (that doesn't overwrite the python binary, so your other
stuff will continue to work). if you call python afterwards, you will
still get the old one, if you call python2.7, you'll get the new one.

moin: you can run moin in place without installing it (without using
setup.py). just download, unpack and modify sys.path in the moin.wsgi
script.


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] SyncWiki problems

2014-01-21 Thread Thomas Waldmann
 1. For a page deleted locally, say, it seems the directory of the
 corresponding page is still kept, 

Sure, it keeps all the history there.

such that when I run sync, it gives the following error mesg:
 /EmptyPage: You cannot save empty pages.

If you just deleted a page and tried sync, it seems this is a bug.

You can work around it by instead of deleting a page, just edit it and
write deleted on it. Not pretty, but should work.

I am a bit wondering though as this is a rather simple use case and
should work...

 2. I am currently stumbled at is that sync script reports  a page not
 existing while it actually exists. What strikes me is that some of the
 pages are being synced like I see BioStat, and the GeneralConcepts/p53
 pages on remote wiki, but it always stopped at one certain page, say
 here is the  ProteasesAndFusionTags page. If I delete this page, the
 sync process will stop another page. Following is the log info from the
 SyncWiki page. I am really confused.

I don't personally use the sync function, but maybe someone else on the
ML can help.


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] MoinMoin 1.9.8 release preparations

2014-01-06 Thread Thomas Waldmann
Moin :),

I am currently preparing next moin 1.9.x release.

You can help by updating the https://master19.moinmo.in/ wiki - the
MoinI18n/xx subpages (PO files with translations) might need some
string updates.

That wiki and also the moinmo.in wiki run the current code that will go
into the release later. If you find issues, file bugs on the
https://moinmo.in/ wiki.

As usual, the release will have bugfixes, performance improvements and
some other changes to fix issues that surfaced in production:

Performance
===
Some sites have issues with performance (moin having a rather high
resource consumption). Usually this is triggered by frequent accesses to
expensive to compute functionality.

moin 1.9.8 has some ways to deal with that:
* log_timing - find out what is running slow / running too long
* modify backlink rendering (== avoid fullsearches triggered by bots)
* some macros/actions check for bots and don't do expensive stuff for them
* rss feed and edit-log access is faster

Fixes
=
* won't create tons of (almost) empty pagedirs any more
* compat fixes for some newer or older python versions


The (more verbose) changelog is there:

http://hg.moinmo.in/moin/1.9/file/tip/docs/CHANGES

Cheers,

Thomas

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Moin performance desastrous

2013-12-17 Thread Thomas Waldmann
On 12/16/2013 10:10 AM, Kai Jaeger wrote:
 I realize that this is probably a Windows or Apache issue rather than
 a MoinMoin one.

Why?

 Anyway: because I had to through Apache's error as well as the access
 log I found something strange totally unrelated to my problem:
 
 The most popular page on my wiki is:
 
 ... - - [16/Dec/2013:09:04:01 +] GET
 /HelpOnMacros/MonthCalendar/2006-09-29?diffs=1show_att=1action=rss_rcunique=0page=HelpOnMacros%2FMonthCalendar%2F2006-09-29ddiffs=1
 HTTP/1.0 503 410
 
 with different dates his page is called EVERY minute 20-30 times, all the 
 time.

Likely, some bot gone wild.

Notice that the http status is 503 as moin has already activated surge
protection against it - so processing such a request shouldn't take long
(as you could see when running latest code with timing log enabled).


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Moin performance desastrous

2013-12-17 Thread Thomas Waldmann
 As the Moin sources in MoinMoin.util.filesys say, this is needed for stat, 
 rmdir and mkdir on win32, but I couldn't find any explanation of it or any 
 experiences others have had.

I added that (slightly silly) wrapper code long ago because it simply
did not work without on windows.

I never found out why, except that the root cause is NOT a virus
scanner, NOR windows search file indexing. I had both deinstalled /
disabled and it still happened.

 If you could perhaps instrument the failure with 
 some kind of call to see if another process has the file open - maybe Windows 
 even thinks that the same Moin process still has the file open - using the 
 equivalent to the Unix fuser command (or looking in the /proc filesystem), 
 then we might get a better idea of what is going on.

Yeah, that might be interesting. If any windows developer could help
here, that would be very much appreciated.


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Moin performance desastrous

2013-12-13 Thread Thomas Waldmann
 I am suffering from performance problems. Delivery of pages can take up
 to 80 seconds. See http://aplwiki.com/
 
 The CPU is kept busy by the http process. 

You could enable the timing log feature (see docs/CHANGES in the repo)
to see what requests are really taking long.

I recently also added some features that enable some performance tuning.

http://moinmo.in/HowTo/Tune%20Performance is maybe also interesting.

Often, such stuff is caused by frequent accesses to expensive
functionality (e.g. searches, pagelists, custom dynamic stuff) done by
users or bots.

The repo code should be pretty stable, btw. I plan to do a new release
in the next weeks.

 Looking into the ACCESS log nothing obvious caught my eye. The ERROR log
 is much more interesting. There are thousands of entries like this:
 
 WARNING MoinMoin.util.filesys:110
 mkdir(('...datacacheaplwikipagegroups__lock__write_lock',),
 {}) - access denied. retrying...

Windows?

 What is going on here?! Advice is welcome.

If you can find out what exactly is causing the access denied I worked
around there, I'ld be glad to hear from you (I couldn't).

Only happens on Windows AFAIK.


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Enable CKEditor in Moin2

2013-12-09 Thread Thomas Waldmann
On 12/09/2013 07:13 AM, Tal Hadad wrote:
 OK I saw this, but yet, isn't there a simple conversion from html to
 wiki and so reverse like moin 1.9.7?

As you may have noticed, this stuff is neither simple nor unproblematic,
it had quite some fundamental issues in moin 1.x.

Also, (f)ckeditor is javascript stuff, so every customization there
needs work in javascript (and I am not a js developer).

 I read there is a massive work in conversion many formats to DOM and so
 in reverse, and I wonder if a same page could be edited once in WIKI format
 and once in HTML format.

Theoretically yes, but:
* there might be roundtrip issues
* there might be fundamental issues
* there is a lot of other stuff to do (for me)

So, I won't put effort into implementing that in the foreseeable future.

If you want to help, you can start improving the converters, looking out
for roundtrip issues.



--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Enable CKEditor in Moin2

2013-12-08 Thread Thomas Waldmann
 How can I enable the CKEditor in Moin2?
 All I can see is a text editor, under Modify link.

If you edit a text/html contenttype item, it should use ckeditor.


--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] givenauth login

2013-11-24 Thread Thomas Waldmann
 I installed moinmoin1.9.7 to one of my SL6.4 boxes. For authentication I 
 want to use the apache web login. Apache login works, but moinmoin 
 doesn't seem to get the REMOTE_USER.

http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIPassAuthorization.html

maybe you need that?



--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Segmentation Fault when trying to run moin.wsgi

2013-11-23 Thread Thomas Waldmann
 I've uninstalled the default apache instalation with:
 $ apt-get remove --purge apache2*

why?

 ... and compiled/installed Apache 2.4 (installed in /usr/local):

if you compile it on your own, you can easily make mistakes or overlook
some stuff...

 27851:tid 3018517360] 2013-11-22 08:26:56,804 INFO MoinMoin.log:151
 using logging configuration read from built-in fallback in MoinMoin.log
 module

OK, looks like your moin is getting invoked correctly.

 3075520832] AH00052: child pid 27851 exit signal Segmentation fault (11)

segfaults are usually a problem in some non-python code, so this is not
a moin problem, but likely apache or mod-wsgi or some library.

 I'm not experienced enough to debug this through the code, but maybe
 someone could point me to the right direction?

Well, the easiest way is not to compile stuff on your own.

If you have good reasons to do so, maybe rather build from a source
package from your linux distribution than using a source code archive
from apache/mod-wsgi.

then, chances are better you have the right dependencies in place,
compile with the right options, etc.

 Is there a way to dump more log messages so I can track
 where the segfault is happening?

You can somehow use gdb and/or a core dump to try to debug such stuff,
but don't ask me, I google that myself each time I need it once every
few years...


--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Google Chrome inserting non breaking space at front of line

2013-11-14 Thread Thomas Waldmann
 Google Chrome converts that leading space to a non-breaking space.

Maybe file a bug for chrome?

I think a browser textarea control should not change the text you enter
in any way.

Maybe check if that also happens with a freshly installed chrome (with a
fresh profile, standard settings).

 What I would really like to have happen, is that whenever a wiki page is
 saved, any non-breaking space characters at the front of lines get
 automatically replaced with plain old spaces.
 
 Is there a recommended way to do this?

Look at the SecurityPolicy, iirc it has a save() method that gets called
before saving.

But that's just a work around, should be fixed where the root cause is.

--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] How does MoinMoin know where to look for the wikiconfig.py file?

2013-11-14 Thread Thomas Waldmann
 How does MoinMoin know where to look for the wikiconfig.py file?

The code just imports wikiconfig.py (or farmconfig.py) module.

Python uses sys.path to search for code modules to import.

There is also a environment setting PYTHONPATH where you can set the
search path.


--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] [Student] Want to start contributing to moinmoin

2013-11-05 Thread Thomas Waldmann
 I am a computer engineering student. I know Python and I would like to
 start contributing to moinmoin. Can you please suggest how can I get
 started?

Join us on IRC #moin-dev on freenode, use moin yourself, read the docs,
work with the source, ask questions, try to fix a bug or implement a
feature.

 It would be good if you suggest me some sites to read.

http://moinmo.in/MoinMoin2.0 (aka moin2, the new stuff)

docs, repos, etc. is all linked from there.

if you use the old moin (e.g. on a production site), you can also hack
that, but we only want fixes for this, no new features.

 check 2 some bugs in the buglist. But then I was at a dead end about how
 to solve them as I don't have complete knowledge about moinmoin. 

See the EasyToDo page on the wiki, these are selected tasks that are
maybe easier to solve than others.


--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Spam on Moin wikis and anti-spam best practices

2013-09-03 Thread Thomas Waldmann
 perhaps we need safer defaults

I don't think we should change defaults within a stable release series.

But we can change how example configs look like and document stuff better.

 Really control registration: for extra control over registration, perhaps use 
 the http://www.moinmo.in/MoinMoinPatch/VerifyAccountCreationByEmail patch to 
 require e-mail verification of account registration.

I wouldn't recommend this patch until someone cleans it up (see my
comments there), does more testing and reviews the code again.

 Does anyone have any opinions about the above?

Good writeup, should be supplemented with a modified default wiki/farm
config.

One can add to regularly review logs, esp. after spam gets in. So one
can sometimes identify static IP addrs only used for spamming (put them
in moin's hosts_deny or handle via web server) and also textchas that
have been broken and should be replaced.


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Moin2 installation question

2013-08-12 Thread Thomas Waldmann
 I'm writing some automated functional tests using selenium.  We met briefly 
 last year, and I've
 been working doing manual tests for the last 6 months. 

Sounds like a lot of work. Any results from that?

 I've started to look again at writing the selenium functional tests.
 I think it's best to write them for moin version 2 right?

Sure, moin 1.x is in maintenance mode, no new stuff there.

 What is his email address please?

Try: crosseyedpenguin AT yahoo DOT com



--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Authentication via CAS + authorization (ACL) via AD

2013-08-06 Thread Thomas Waldmann
Hi Wojtek,
 
 I cannot, however, find a way to set up ACLs so that it is possible to
 assign a given set of permissions to an Active Directory group.
 I have not set up AD binding yet as all the examples I found are
 related to only authentication via LDAP/AD.
 
Yes, we support auth against ldap/ad, but there is no official support
for ldap groups in moin.

There has been some work on ldap groups, though, but it wasn't finished,
needs more work and practical testing:

http://hg.moinmo.in/moin/1.9-ldap-kerberos-agrigorev/

To continue that stuff, it would need some people with real interest and
some python and ldap/ad knowledge and testing environment. I can help
with the moin specific stuff, but I can't help with ldap/ad as I don't
work in such an environment.

An alternative to that would be to define groups either in the wiki
config or on wiki pages, that's the usual way in moin and officially
supported.

Cheers,

Thomas




--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Question on moin installing

2013-08-06 Thread Thomas Waldmann
Hi,

Just as a note: what you describe is installing moin2 (the pre-alpha
unreleased development version). That's fine if you want the bleeding
edge stuff, but don't use this for production (but 1.9.7).

Also, if you refer to it, please use moin2, so people clearly see what
it is about.

On Fri, 2013-08-02 at 20:56 +0800, li yan wrote:
 When I invoke moin in CMD window, I keep getting:
 'moin' not recognized as an internal or external command, operable program or 
 batch file.

Looks like it is not in the search path. Did you activate the virtualenv
in THAT cmd window? Did you cd into the moin-2.0 directory?

 What I have done as follows:
 1. Install python 2.7 by installing python2.7.2.msi
 2. Install mercurial
 3. Install easy_setup, pip, then virtualenv
 4. Downloaded moin-2.0 by typing: hg clone
 http://bitbucket.org/thomaswaldmann/moin-2.0 moin-2.0
 5. cd into moin-2.0 directory, and type: quickinstall.bat 
 6. Type: env\Scripts\activate.bat to active the virtual environment
 7. Type: moin
 
Sounds correct. That's also how it is documented, right?

 Tested with both 32-bit Windows xp, and 64-bit Windows 7. Same result both 
 times. 

Strange, Roger Haase developed that stuff and used it personally.

I personally don't use Windows, so maybe we should just ask him (email).

 I have tried several times, uninstalling python completely, and
 deleting the
  python27and moin2.0 directory, and completely reinstalling from
 scratch, but get the same result each time. 
 
I suspect that there is either a PATH issue or the script (BAT/CMD) for
windows is not created or ...

Is there a moin.cmd or moin.bat somewhere on your disk (likely inside
the virtual env) that was created by the installation procedure?

Cheers,

Thomas




--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] moinmoin and xapian unindexable object

2013-07-25 Thread Thomas Waldmann


 I am using MoinMoin 1.8 and ...

Is there some special reason you use an outdated / unmaintained version?

See also: http://moinmo.in/SecurityFixes





--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Static file server not working

2013-06-28 Thread Thomas Waldmann
 I try to install moinmoin 1.9.7 at my hosted webspace (domainfactory 
 MyHome Plus) using the moin.cgi script. However, the static file server 
 does not seem to work since the wiki pages are not layed out correctly 
 (only text).
 I already adapted url_prefix_static in wikiconfig.py. I cannot use 
 Alias. Any suggestions? Thanks!

If you use cgi, you should somehow directly use the main web server
(e.g. apache2) to serve the static files.

While it is technically possible to serve the static files with moin
using cgi, this is extremly slow (compared to the method above).

So I suggest you find out how to serve static files within your hosting
package, put the moin static files somewhere in there and adjust
url_prefix_static so moin generates matching URLs for that.

Moin's static files are found in MoinMoin/web/static/htdocs/* - copy all
you find there to a directory moin_static_197/ below your documentroot.



--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Problems after Debian upgrade

2013-05-22 Thread Thomas Waldmann
MoinMoin, :)

 Hi all, I got some problems on a MoinMoin 1.97 instance running on a
 Debian box recently upgraded from sqeeze to wheezy.

For every python upgrade, you need to run moin --config-dir=...
--wiki-url=http://... maint cleancache for each of your wikis.

Run the command using the same user as the moin process owner.

 I installed MoinMoin some weeks before the upgrade following the great
 guide on the official website and everything worked like a charm, all
 problems started since the upgrade.

python went from 2.6 to 2.7.

 - mod_wsgi/3.3
 - mod_python/3.3.1

BTW, you never should load mod_wsgi (needed by moin) and mod_python
(needed by what?) at the same time.

In fact, you should not use mod_python at all any more. It's dead and
smells strangely since quite a while.

 [Tue May 21 23:06:27 2013] [error] [client 192.168.1.200] ImportError:
 No module named MoinMoin.web.serving
 
For that part, see the other reponse on this list.

 --- apache configuration
 WSGIScriptAlias /wiki   /usr/local/share/moin/moin.wsgi
 WSGIDaemonProcess moin user=apache group=apache processes=5 threads=10
 maximum-requests=1000 umask=0007

You could use another user/group here, then you have moin stuff
separated from other apache stuff. Using moin.moin is even worth it just
for the lols. :D

Cheers,

Thomas




--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] Mentors and/or Helpers wanted for Google Summer of Code 2013

2013-04-29 Thread Thomas Waldmann
MoinMoin! ;)

It looks like one of our mentors suddenly has much less time for
mentoring, so we could need some help from the community, see there:

https://moinmo.in/GoogleSoc2013

Cheers, Thomas

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] LDAP authentification and ACL

2013-04-28 Thread Thomas Waldmann
 I've managed to get LDAP authentification to work with my MoinMoin
 installation by using the following code in Apache configuration:
 
 Location /wiki1
   AuthName Wiki wiki1
   AuthType Basic
   AuthBasicProvider ldap
   AuthLDAPGroupAttribute memberUid
   AuthLDAPGroupAttributeIsDN off
   AuthLDAPUrl
 ldap://10.27.21.6/dc=ldap,dc=c2c?uid??(|(gidNumber=1029)(sambaSID=*))
 http://10.27.21.6/dc=ldap,dc=c2c?uid??(|(gidNumber=1029)(sambaSID=*))
   Require ldap-group cn=dev,ou=Groups,dc=ldap,dc=c2c
   Require ldap-group cn=mapfish,ou=Groups,ou=Externals,dc=ldap,dc=c2c
   Require ldap-group cn=sitev5,ou=Groups,ou=Externals,dc=ldap,dc=c2c
 /Location

From moin's perspective, this is GivenAuth (done by the web server), not
ldap (done by moin).

 Does anybody have an idea of how I could achieve to have a readonly
 group ? No matter for me if it is managed with apache or with moinmoin.

There is no support for ldap groups in moin. There was a project about
this some years ago, but it wasn't finished. The code still exists on
hg.moinmo.in.

So, your only choice right now is to create a group either on a page or
in your wiki config.

Cheers, Thomas


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] MoinMoin Wiki Project Idea Python 3.x porting

2013-04-28 Thread Thomas Waldmann
 Hello MoinMoin Wiki developers I need to talk about some of the Project
 Ideas that has been marked with this image /!\ 

Please ask on IRC channel #moin-dev - ask very SPECIFIC questions (give
URLs, give good citation) and wait for the answer.

This will be much faster than here.


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] [GSoC] Network API project

2013-04-20 Thread Thomas Waldmann
Hi Rubén,

 If someone can recommend some issue to get started working in the
 project I will be very grateful.

Well, it's a bit hard to recommend something without knowing you better,
what interests and capabilities you have.

So maybe just browse the issue tracker and if you have specific
questions about an issue, ask on IRC #moin-dev.

Also, hang out with us there in general, communication there usually
works faster than via ML.

Cheers,

Thomas


--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Some crawler makes MonthCalendar produce endless pages, even thought not logged in

2013-04-07 Thread Thomas Waldmann
Hi,

 It happened once, now I'm seeing happening again: some web crawler

... are a PITA. :|

 stumbled across our MoinMoin wiki (1.9.4), and the auto-generated
 pages keep sprouting,

It's not really (valid) pages, right? But just directories with an empty
edit-log I guess?

 eventually filling up a directory (32k files):

Use moin ... maint cleanpage to periodically clean up until you have
installed the fix.

After seeing that problem getting worse, I recently found and fixed the
issue:

http://hg.moinmo.in/moin/1.9/rev/6489ec33874d

It should at least help for some cases, esp. if there are no write
permissions for the visitors creating such pagedirs. It can't help for
cases when people (bots) really start editing, but never cancel or save.

 According to apache log, the crawler keeps doing
 http GET requests like these:
 
 GET .../HelpOnMacros/MonthCalendar?calparms=HelpOnMacros/
   MonthCalendar,2001,12,2,-51,,,MonthCalendarTemplate HTTP/1.1

Yeah, spidering gone wild.

If the bot is too much of a pain, you can try adding it to robots.txt
and if that doesn't help, hosts_deny and/or ua_spiders.

 Other page creation is restricted by only allowing
 a POST request from internal networks, and page creation
 is restricted to logged-in (Known) users.

What you see is not creation of a real page, it was just a bug in the
backend code leading to (more or less) empty pagedirs.

 Since the MonthCalendar macro is not actually needed,
 perhaps it should just be disabled entirely. What is
 the proper way of doing that?

As it is a builtin macro, you would either have to remove it from
MoinMoin/macro/... or put a macro of same name (but not doing same
thing) into data/plugin/macro/...

But first try the patch, I guess it should help.

BTW, check if your moin has all the security patches needed, see:

https://moinmo.in/SecurityFixes

Cheers,

Thomas


--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Running MoinMoin on an Android Smartphone

2013-04-03 Thread Thomas Waldmann
Moin Peter,

 I'm writing to ask for help installing MoinMoin on a
 Samsung Galaxy Note 2.

Hehe. /me has a Galaxy Note 1. ;)

 I now want to run it on my Galaxy Note 2 under Android.  I plan to store
 my data on Dropbox (or the Google cloud-drive) so I can get at it from
 all my machines.

For moin 1.x you would need something that is very close to a real
filesystem. Even NFS doesn't work under all circumstances.
You also need something that is rather fast.
I think adapting the moin1 storage to anything else than a real
filesystem would be a major pain, so better don't try that.

moin 2 is more flexible on the storage layer and we already have support
for quite different storage methods, but not for any remote cloud
storage. You maybe could implement a key-value store based on some
cloud service for its storage. You'ld either need to rebuild whoosh
index after each change in the storage or put the whoosh index into the
cloud, too, and write a whoosh backend, too.

But be aware that moin2 is not production ready yet, but rather for
developers and adventurous users.

About the android stuff: I never tried moin on android, but there is
sl4a and python4android, so MAYBE it could work. One always has to ask
the question, whether that makes SENSE or whether it is not much easier
to just have connectivity to ONE server running moin and accessing it
via some client software (browser or other).

 Has anyone done this?  If so may I ask either for directions or for some
 hints?

https://moinmo.in/MoinMoin2.0

In the repo, it is MoinMoin/storage/stores/...

Cheers,

Thomas


--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Looking for a better template in the subscription e-mail

2013-03-26 Thread Thomas Waldmann
 Is there way to change the subscription mail template . 

Not easily.

 I am looking for something more friendly and easy to understand the
 changes  . So that somebody make some changes in the post then the
 subscribed users will get a friendly notification .
 
 Currently its showing diff output and its not easy to understand the non
 techie people . Is there a way to get a colored diff output , just like
 git diff .

For the web UI, we have some html diff code, that does this.

But we do not send HTML emails.

BUT, there is a link to that html diff view inside the text email, you
just need to click on it.

Also, some people dislike HTML emails or maybe even can handle the
coloured stuff worse than the techie diff stuff.

So we would need another user setting for this preference?
Or send multipart email with text AND html?

Considering that moin 1.9.x is stable, I only see room for rather small
changes / contributions, but you can help to make moin2 better by
helping to think about such stuff (on a rather detailled level) and/or
contribute some code that implements it.


--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Farmwiki configuration in Windows

2013-02-08 Thread Thomas Waldmann
Hi Allan,

 I am trying to install a Moin 1.9.6 wikifarm on my Windows 7 box for
 personal use.  I got the single wiki using the built-in web server going 
 just fine.

... which uses / as the URL root of the wiki.

 I am now trying to expand that to several wikis. I think I 
 am close, but missing one concept.  I get from the request, thru 
 farmwiki, to the ScrumWiki.py, but not to individual pages.
The first one I am trying set up, I want to access via 
 localhost:8080/ScrumWiki
My wikis = [ (scrumwiki, 
 r^http://localhost:8080/ScrumWiki/.*$;),  ]

Please note that these regexes just DISPATCH to the correct individual
wiki's config. They do NOT set up serving the wiki at that url.

The builtin server by default serves localhost:8080/PageName.

What you are trying here is to do path-based farming and I don't think
the builtin server supports that.

What you could do instead is hostname-based farming, by giving the
localhost IP some more names (edit hosts file of your OS) and dispatch
by hostname then.

 
 If I go to http://localhost:8080/ScrumWiki,  the URL is not found. Fair 
 enough.

Yes, the regex wants that / at the end (at least).

 If I visit http://localhost:8080/ScrumWiki/FooBar
 it get what looks like an unformatted wiki page, I assume it is a 
 MissingPage page
 If I use its link to create a page, I get Foo(2f)Bar under \pages
 and I can't visit that.  if I copy a page from the old wikiconfig.py 
 wiki into \pages, it isn't found either.

As it does not really KNOW that that wiki is rooted at .../ScrumWiki/,
it thinks the pagename is ScrumWiki/Foo/Bar (not Foo/Bar).

Usually, SCRIPT_NAME and PATH_INFO environment is used to decide what is
what.

 I wanted to use the built in web server for simplicity.

Yes, I see that. But please note that this builtin server is mostly
intended for simple setups, testing, development and not really intended
for farms, production or bigger stuff.

In general, path-based farming is a bit more complicated to set up than
hostname based farming.

 If I really can't use the built-in for a farm, I'll probably try to use 
 tomcat 7.  I assume that is wsgi.

The only thing I know about tomcat is that it is java stuff, so I
wouldn't assume it supports wsgi (but I really don't know).

But aside from apache2/mod-wsgi, nginx/uwsgi, there are multiple python
wsgi servers out there, just google for python wsgi server or so.

I personally usually use apache2/mod-wsgi for production and builtin
server for development, so I personally can't help much with other
stuff. The wsgi server usually has some documentation about how to get a
standard wsgi app working. moin is such a standard wsgi app.

Cheers,

Thomas

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Support for LDAP groups?

2013-01-16 Thread Thomas Waldmann
Hi Philip,
 
 According to http://moinmo.in/HelpOnGroups, moinmoin can use group
 definitions from other sources. However, there doesn't seem to be any
 documentation on how this can be achieved.
 
 I'd like to implement groups from OpenID or LDAP, although I suspect
 OpenID doesn't provide any group membership information, in which case
 it would need to be LDAP.

There is no ready-to-use code for ldap groups.

There was some work on ldap groups in summer of code, see there:

http://hg.moinmo.in/moin/1.9-ldap-kerberos-agrigorev/

But at the end, we did not merge that code as it was not tested enough
(and maybe also not developed enough or even not working, i don't
remember exactly).

If you want to help with that, have a look there and contact us if you
have questions / need help, e.g. on #moin-dev on freenode IRC.

For openid, please have a look at the respective code yourself. We have
simple user auth with openid, we have openid server builtin and (IIRC)
there was some special stuff done by a ubuntu developer for some
launchpad stuff related to groups.

Cheers,

Thomas




--
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Cannot Edit Wiki Pages

2013-01-06 Thread Thomas Waldmann
On Fri, 2013-01-04 at 01:32 +0200, Lighton Phiri wrote:
 I am in the process of resuscitating/upgrading a legacy Moin Moin wiki
 (1.5.8) [1] to the latest version. However, before I perform the
 upgrade, I've been trying to perform basic test to ensure all is well.
 
 I cannot edit existing pages nor can I create new ones...

If you can see them, it sounds like a permissions issue in the
filesystem. Make sure everything is r/w (and directories also x) for the
user/group the wiki process runs under.

After that, check your wiki configuration settings in case there is
something strange in there. Check if your moin version supported access
control lists (ACLs) and if so, check if they allow write.



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Excluding twikidraw and anywikidraw

2012-12-29 Thread Thomas Waldmann
On Sat, 2012-12-29 at 08:56 +, Kai Jaeger wrote:
 I've done exactly what was suggested to fix the security issue:
 
   actions_excluded = ['newaccount', 'RenderAsDocbook', 'SyncPages',
 'xmlrpc', 'PackagePages', 'Raw Text', 'twikidraw', 'anywikidraw', ]
 
 but the page is rendered without an error message, see the bottom of this page
 
 http://sandbox.aplwiki.com/TestPage1

I get unknown action twikidraw now, so it looks like you found why it
did not work.

You may want to read SecurityFixes again, there were more changes
recently.


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] remote code execution vulnerability in moin 1.9.x

2012-12-29 Thread Thomas Waldmann
See there for details and hints what to do about it:

http://moinmo.in/SecurityFixes

If you haven't done it already: subscribe to the page if you are
interested in security updates. I'll update the page when more
informations related to this are available.




--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Wiki restore - 1.5.8 to 1.8.5

2012-12-29 Thread Thomas Waldmann
On Sat, 2012-12-29 at 12:23 +0200, Lighton Phiri wrote:
 I am working with version 1.8.5 and would like to restore wiki data
 from an older version --1.5.8.  I came across this [1] page but it
 hasn't been very helpful.

You shouldn't run 1.8.x, it is not maintained any more and has known
issues. Soon there will be a new 1.9.6 release that fixes severe
security issues.

 What steps do I have to take to move data from the older version to
 the newer one?

Read docs/update.html (in our download archive).

 Can I just move the data directory?

No, you should always run the migration scripts.

 Can I just restore pages without restoring users?

The mig scripts always deal with pages (and attachments) AND users.

 [1] http://static.moinmo.in/m2/html/admin/backup.html

That is moin2 related stuff, it does not apply to moin 1.x.x.



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] CGI Internal Errors on Shared Server

2012-12-29 Thread Thomas Waldmann
On Sat, 2012-12-29 at 09:55 +0200, Lighton Phiri wrote:
 I've just started playing around with MoinMoin. I managed to set up an
 instance on my local machine, however getting it to work on a shared
 server platform has been really hard...

Some of the rather cheap hosters don't support python well.

Running bigger python apps in CGI mode is rather slow, so the preferred
method is using stuff like mod-wsgi (with apache2) or other stuff that
stays resident in memory and does not start/terminate for every single
request. But I now that on cheap hosting, stuff like that might be not
available.

 [Sat Dec 29 02:12:25 2012] [error] [client 137.158.153.205] File does
 not exist: /home/opensour/public_html/404.shtml
 [Sat Dec 29 02:12:25 2012] [error] [client 137.158.153.205] File does
 not exist: /home/opensour/public_html/favicon.ico
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205] File does
 not exist: /home/opensour/public_html/500.shtml
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/support/werkzeug/formparser.py, line
 16, in ?
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/support/werkzeug/wrappers.py, line 35,
 in ?
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/support/werkzeug/test.py, line 23, in ?
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/support/werkzeug/__init__.py, line 119,
 in __getattr__
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/web/contexts.py, line 13, in ?
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/wsgiapp.py, line 14, in ?
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/web/serving.py, line 82, in
 make_application
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/web/frontend.py, line 36, in run
 [Sat Dec 29 02:12:24 2012] [error] [client 137.158.153.205]   File
 /home/opensour/moin/MoinMoin/web/flup_frontend.py, line 135, in run

That somehow looks incomplete. If you could put the complete traceback
on a pastebin, that would be helpful.



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Excluding twikidraw and anywikidraw

2012-12-29 Thread Thomas Waldmann
 I haven't changed anything since I wrote the mail, and it still works for me.

Maybe browser caching?

I just tried again. Neither twikidraw nor anywikidraw nor moinexec
action works for me on that url:

  http://sandbox.aplwiki.com/TestPage1

(note: there is some strange looking crap above the drawing links, it
maybe would be simpler if that was removed)



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Dealing with spammers who create pages.

2012-12-25 Thread Thomas Waldmann
Hi Steven,

 I just followed the directions and asked 
 dumb questions; What comes after Wednesday? What are trees made of? etc...

Don't the directions say ask site-specific questions? Where did you
read about dumb questions?

Asking too common-sense questions may keep out some robots, but i think
since quite a while spammers use hybrid setups. Like spamming with
robots, but assisting them with humans (to get those questions
answered).

So rather ask questions that your visitors are able to answer, but not
someone who has nothing to do with your site / topic.

 Over time, Textchas turned out to be a failure. The total number of 
 people who create accounts and succeed at adding a page to sell their 
 candles or dick cream or real estate scams was averaging out to over 25+ 
 per day, with around double that in new accounts and failed page 
 creation. Very annoying.

Well, that just means that your questions maybe have been too easy / too
common-sense and you need to get some better ones. If you recognize that
some question is answered by spammers, just remove it and add a more
difficult one. You can remove ALL common-sense questions.

Also, do not keep a single too-easy question, otherwise the spammers
will just retry and retry until they get the easy one.

 Then I came up with a simple solution that works *for me*. Your 
 situation make not make this helpful *to you*:
 
 I changed the Textcha questions to be of *local* relevance. I can do 
 this because the wiki I have is intended for people who are *local*. 

Yeah, much better. Often spammers (of people willingly or unwillingly
helping them) have no clue about what they are spamming. Or they just go
away if the question is not answered in 2 seconds.

Cheers,

Thomas



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Please use the interactive user interface to use action edit!

2012-12-20 Thread Thomas Waldmann
On Mon, 2012-12-10 at 20:13 +, Daniel Benoy wrote:
 I'm getting this error message while editing one of the pages on our
 internal wiki, but it only seems to happen on one page and I'm not
 sure what makes it different.
 
That might just look like that.
 
 Please use the interactive user interface to use action edit!

That means that it did not find the token that was part of the edit form
you got for editing. Or the token was invalid because it was modified or
just too old.

That stuff (IIRC) is for 2 purposes: to make it a bit harder for
spammers and to avoid CSRF attacks.




--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Lost Moin-Moin central wiki

2012-12-01 Thread Thomas Waldmann


 Recently I upgraded to version 1.9.5 after many happy years with
 1.8.*.  When I did so  I lost all my personal modifications (page
 layout, etc)

If you are speaking of a custom theme, you likely need to update it for
1.9. Same is true for some other extensions, esp. if they access stuff
in the request object (as moin 1.9 is using werkzeug/wsgi there, which
is different from the custom stuff we had before).

  but, worst of all, I lost connectivity to the central wiki on which
 most of the documentation can be found.  For example, a title search
 on format comes up empty.  A text search returns only pages from my
 local wiki.

This is way too unspecific and lacking important information to post any
really helpful answer.





--
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] moin-moin under Android?

2012-12-01 Thread Thomas Waldmann


 Has anyone run moin-moin under Android?

Not me.

 I have this vision of running it from DropBox on both my Mac and my
 Android Samsung Galaxy Note II.

I have a Galaxy Note (N7000) and love it, but I would not even think of
running moin on it.

A wiki usually is a server side software, so installing it on every
client and syncing data between all those clients sounds like a pain
compared to just using clients as clients and accessing the wiki on the
server.

So all problems you'ld have with installing moin on arbitrary client
devices go away if you just create CONNECTIVITY to your server instead.




--
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Request to setup moinmoin ldap intergraion

2012-10-02 Thread Thomas Waldmann


 2) Linux  :  CentOS 5.8 , 64 bit 

Please note that CentOS 5 has rather old/outdated python support and may
cause problems or a lot of manual work due to this.
 
About getting ldap to work: this is mostly an issue about the right
parameters and they are specific to your ldap server configuration.

Maybe just try the parameters you have using some ldap client tool (like
ldapsearch), whether they really work. If you get THAT working, try
again with moin. Usually it is just some parameter being wrong.

 
 I couldnt see any logs in the Apache error logs and in the ldap.log of
 the ldap server ( I couldnt even see that the moinmoin is connecting
 to the ldap server from the logs )

You can reconfigure moin's logging level (see logging.conf). There is a
special logging.conf sample in the download archive for auth debugging
(see wiki/server/config/... or so).




--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] Preparing MoinMoin 1.9.5

2012-09-17 Thread Thomas Waldmann
Hi,

just wanted to note that I am currently preparing a 1.9.5 release, which
is currently being tested.

If you'ld like to help testing it before it is released, join us on
#moin-dev IRC channel.

Testing is especially needed for running moin on older pythons (like 2.4
or 2.5) and for the not-so-commonly used features that were
changed/fixed recently.

See there for the changes:

http://hg.moinmo.in/moin/1.9/file/tip/docs/CHANGES

Cheers,

Thomas



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] MoinMoin developers visiting California

2012-09-11 Thread Thomas Waldmann
(Also copying it here to reach maybe some moin users in CA.)

Hi Python hackers, Wiki lovers, Web developers, geeks, designers,

I just wanted to ask if there is some interest in MoinMoin Wiki within
your group?

MoinMoin is a wiki engine written in Python and we are currently working
on the next major release of it (moin2), which will be quite different
and much more powerful than the 1.x stuff you maybe already know.

We use quite some external libraries / frameworks now (like flask,
werkzeug, jinja2, ...), see the link below.

It's not production ready yet, but ready for hacking and UI style
improvements.

Some details about it and some more links can be found there:

http://moinmo.in/MoinMoin2.0

Two MoinMoin core developers (Bastian Blank and me) will be in
California from Oct. 12 to 26 for Google Summer of Code Mentor Summit,
travelling around by car, having some [sf]un and meeting other geeks. :)

Our route will be something like:
Oct 12 arrival at San Francisco Airport
... (not decided yet)
Oct 19 evening .. Oct 21 evening MENTOR SUMMIT (Mountain View)
... (not decided yet)
Oct 26 departure from San Francisco Airport

I posted this to:
* baypiggies ML
* socal-piggies ML
* noisebridge-discuss ML

So, if this sounds interesting, please reply (and maybe also tell what's
your field of interest / whether you are already familiar with
moin/moin2 - we can talk about everything, but if we have some specific
topics and know how deep it can get, it might get more interesting).

If there is enough interest, maybe we can arrange something.

BTW, we are on IRC quite often, you can meet us on #moin or #moin-dev on
chat.freenode.net (have some patience, we are not always staring at the
channel :).

Cheers,

Thomas  Bastian


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


[Moin-user] moin 1.9.x security issue

2012-09-03 Thread Thomas Waldmann
For all of you who did not subscribe to the wiki page yet,
I just wanted to point you there:

http://moinmo.in/SecurityFixes

See there for more details.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Wiki migration and synchronization

2012-07-13 Thread Thomas Waldmann
 I have a wiki that I maintain on a standalone basis that needs to migrate 
 into a wiki farm on our web server.

Aside from the issue you already solved, there is another one:
you have 2 user bases (one in your farm wiki, one in your standalone
wiki).

So if you just copy the data/pages from standalone into the farm, the
history will lose all user names (as they point to the standalone user
base).

You also can not just copy the standalone user base into the farm, as
this might create duplicates.

Unfortunately, there is no wiki merge script yet that can
automatically or semi-automatically deal with such stuff.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Diffs sent by e-mail, fancy diffs...

2012-07-04 Thread Thomas Waldmann
 being able to use wdiff would reallybe helpful in he project e use moins
 for, here.

Well, I'll have a look at this. It is unlikely that we will call a
external binary (like wdiff) though (as this is usually a platform
dependant pain), but I'll search whether it can be solved in python
(painless for everybody).

I personally don't use email notifications a lot, I usually read changes
on the web interface (RecentChanges page, using bookmarks).

I just checked the non-fancy diff and it is really not that usable for
long lines, so maybe it should be worked on to improve it.

No promises though, I am currently primarily working on moin2 (not 1.x),
but if I find something easy and you could help us with testing it, it
could be improved for everybody including blind / vision impaired
people.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Diffs sent by e-mail, fancy diffs...

2012-07-03 Thread Thomas Waldmann
Hi Shérab,

 I'm wondering what the fancy diff feature does.

IIRC it is displaying 2 column html diffs (yellow/green) instead of a
simple text diff (like on the console).

 I enabled it but the
 diffs I receive by e-mail when a page is changed are just the plain old
 diffs.

IIRC, it is only on the web.

We do not send html emails, just text.

 I'm currently using moin to work on a book.
 The paragraphs are not formatted, meaning that a paragraph is just one
 very long line.

Well, the diff is just using the text data as you entered it. If you
just enter all text in one line, diff will see that as one line. If
that's a problem, you could hit ENTER now and then, do hard format the
paragraph in the wiki markup text. The output will still be a single
paragraph (it only splits paragraphs if you hit ENTER 2 times).

 So wen I receive diffs, it is practically impossible for
 me to figure out where the changes have occurred.

Isn't there also a URL (link) in the email, so you could just view the
fancy diff on the web, it should be better visible there.

Cheers,

Thomas



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Empty directories

2012-06-23 Thread Thomas Waldmann
Hello Kai,

I looked at this issue today and was able to reproduce it:

If one starts editing a new page, a page directory with 2 files
edit-lock (with locking infos) and edit-log (still empty) is created.
If the edit is either cancelled or the window is just closed, that
pagedir and the edit-log file are left on disk.

This issue is not windows specific, it also happens on POSIX systems.

It might be hard to fix this in 1.9 (and moin2 works very different
anyway, so that problem does not exist there), so the suggested
workaround is to just use moin ... maint cleanpage.

cleanpage currently outputs a cleanup script for POSIX OSes, but it
should be rather easy to modify cleanpage.py so it works on all OSes.

IIRC, i chose that script way back then so it is possible to review
all those modifications before really doing them on the filesystem.

Some new --move-crap and --move-deleted options could directly do
the stuff using python stdlib.

Compatibility has to be kept in mind, so the behaviour of this script
does not change for people already using it.

Anybody volunteering for modifying it like that? Patches/Changesets are
welcome!

Cheers,

Thomas




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Empty directories

2012-06-19 Thread Thomas Waldmann
On Fri, 2012-06-15 at 10:25 -0500, Rick Vanderveer wrote:
 Errr... the bug I'm thinking of was back from an early 1.8 or earlier
 release a few years ago.  Sorry about that!

There was such a bug in  1.7.1 (see 1.7.1 docs/CHANGES entries).

BTW, it isn't that much important which moin version you run now, but
rather which you ran at the time all those empty dirs / files were
created. MAYBE the timestamps there tell something, maybe not.

This can be used to clean up the crap (at least on Posix OS, needs code
changes or at least editing of the output script on Windows):

moin ... maint cleanpage



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Diagnose and fix performance problems?

2012-05-03 Thread Thomas Waldmann

 I guess FastCGI is supposed to be a long-running process in principle;
 however, I just learned from the folks who administer the servers that
 our FastCGI processes are automatically terminated after 15 minutes of
 inactivity and must be relaunched upon the next visit after that. This
 is definitely one cause of the sluggishness,

That sounds a bit weird. Usually startup of such a process should take
less than a second (assuming that the machine is not totally overloaded)
and afterwards it should be quick as long as you use it.

So I have doubts this really is your problem.




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] xapian search: an unhandled win32 exception occurred in w3wp.exe

2012-05-02 Thread Thomas Waldmann
 I did file a bug at http://moinmo.in/MoinMoinBugs  regarding the issue.
 The page name of the bug is  1.9.3XapianNoIndexUpdateAtPageIfRunningIIS.
 Would it be possible to rename the page to 
 1.9.3XapianNoIndexUpdateAtPageChangeIfRunningIIS to make it a bit more 
 meaningful.

Sure, just rename it (you need to be logged in).



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Diagnose and fix performance problems?

2012-05-02 Thread Thomas Waldmann
Hi Chris,
 
 I used MoinMoin to build a website for my former research group at
 MIT, and it has worked well for them so far
 (http://juanesgroup.mit.edu). The servers are internal to MIT and we
 have limited control over them.

Nicely themed moin 1.9.4. :)
 
 As it stands, the website has some performance problems -- sometimes
 it's quick, and sometimes it takes 10 seconds or more to load a page.
 I'm looking for suggestions on how to diagnose and fix this
 sluggishness. It could stem from the servers, from MoinMoin, or from
 less-than-optimal HTML, CSS, javascript, or Moin configuration that I
 did myself. Any help would be greatly appreciated -- thanks!

Well, without more infos and without server shell access it is a bit
hard to help.

Look into web server logs (apache access log / error log), compare times
when wiki is fast to times when it is slow.

Did you use apache/mod-wsgi or cgi? cgi is slow.

Look at machine load (linux: top) when wiki is fast vs. when wiki is
slow. Look which process is eating cpu.

Is it when you are doing specific wiki requests? Like after saving?

If you can't get it solved, talk to me.

Cheers,

Thomas



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Diagnose and fix performance problems?

2012-05-02 Thread Thomas Waldmann
  Did you use apache/mod-wsgi or cgi? cgi is slow.
 
 Our servers do not offer mod_wsgi, so I think we're currently using
 some sort of WSGI-- Fast CGI wrapper. Could this be a major cause of
 the problems?

Well, I can't tell much about the layers below moin (esp. not for
software I do not use myself), but in principle, fastcgi should be of
almost same performance as mod-wsgi. A little more software (likely
flup) in between moin and web server, but still fast.

Plain CGI (not fastcgi) means loading and initializing all the code for
each request and terminating after that one request is processed.

FastCGI as well as mod-wsgi means long-running processes which are only
rarely terminated and restarted and thus is much faster and less
overhead.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Patches to moin-2.0

2012-04-28 Thread Thomas Waldmann


Thanks!

 And while I also added patches to the ones I was able to deal with, I
 was wondering if there is maybe a better way to help. Shall I create a
 patch queue on bitbucket?

You can just clone my moin-2.0 bitbucket repo (which is a mirror of the
official moin/2.0 repo), update your clone with changesets and send me a
pull request there.

 It seems better than forking since there are a lot of little things
 with no relation to each other and having 10 different forks seems
 strange.

Well, maybe just do one thing after the other. :)

 What it the preferred way to cooperate, get feedback etc.?

If you'ld like code review, use http://codereview.appspot.com/ and for
quicker communication join us on #moin-dev on IRC.




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] xapian search: an unhandled win32 exception occured in w3wp.exe

2012-04-28 Thread Thomas Waldmann

 is there anybody out there who knows details about the xapian integration 
 into moin?

While I didn't do changes recently, I worked quite a bit on that code
some time ago.

  Yesterday I have reported that xapian index is not updated when a page is 
 changed. Instead the webserver (IIS 7.5) reports an unhandled exception.

I can't help you with IIS specific issues, I never used it (nor would I
ever use it).

   Exception RuntimeError: 'maximum recursion depth exceeded while calling a 
 Python object' in type 'exceptions.AttributeError' ignored

IIRC, i had a look at that a while ago and somehow I got the impression
that it is a harmless python bug and can be ignored.

 - after trying to update a page over the web  a search for content of this 
 page does not show any result. Even page content already searchable prior to 
 the 
page change cannot the searched anymore.

Hmm, that's strange.

 - When I now run the commandline script for the page I tried to update over 
 the web the moin.log file shows that there is more than one update queued.
   2012-04-25 17:03:17,438 MoinMoin.search.Xapian.indexing DEBUG updated 
 xapian index with 2 queued updates
   The number of queued updates for a page can be increased by trying to 
 update the page over the web several times.

Sounds like it never processes (empties) the queue.


 I am really interested in solving the issue. If someone could give me a hint 
 how to further troubleshoot it would be highly appreciated.

Well, if you want to help debugging this / determining the
circumstances, trying this comes to mind:
 * maybe use a more recent python 2.x version
 * try without IIS (try to reproduce with standalone server or apache2 +
mod-wsgi)
 * try a later / different xapian version
 * can you reproduce on moinmo.in site?

Please also file a bug report about this on the wiki (see MoinMoinBugs
page) and provide all details the template asks for (and everything else
you could find out).




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Very slow page saving caused by notifications

2012-04-28 Thread Thomas Waldmann
 i had a quick look at the subscribed users caching patch and I suspect
 that might not be the case there.
 
 Hmmm. It seems to work fine for me in testing, but it's possible that
 testing hasn't exercised all paths yet. Any suggestions on where to
 check?

Check for race conditions / multi-threading/processing issues. What
happens if 2 cache updates happen at about the same time?


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Very slow page saving caused by notifications

2012-04-22 Thread Thomas Waldmann
 There are probably other areas of Moin that could benefit from Xapian-based 
 indexing, but this certainly looks like a good application of it.

Some notes:

search / indexing
=

xapian is not a requirement for moin 1.9, but an option. thus, there is
alternative code in moin (for searching) so it works if you do not have
xapian.

xapian is a binary dependency - you either need a package or a compiler.

due to the 2 distinct codes (indexed vs. non-indexed) for searching with
and without xapian, there are some fundamental differences in how one
can use it and what one can expect from it.

in moin 2, we have replaced xapian by whoosh (which is pure-python, so
we were able to just REQUIRE it). this will fix quite some of the issues
we have seen in moin 1.x relating to indexing, queries and search.

i have done a few benchmarks and whoosh was surprisingly fast (not as
fast as xapian sometimes, but also not much slower).

in moin2, we use whoosh for all sorts of internal lookups as well as for
the search you can do from the UI.

all stuff (users, pages, attachments) in moin2 is stored into typed
items/revisions (which have metadata and data) and metadata and
(filtered) data gets indexed.

that makes life much easier for the developers as there is less and
simpler code now.

caching
===
sometimes stuff can be accelerated by adding a cache. but if you have a
cache, you always have to make sure it is consistent with the real data.

i had a quick look at the subscribed users caching patch and I suspect
that might not be the case there.



--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] MoinMoin Windows and case sensitive Pages

2012-03-24 Thread Thomas Waldmann
 At least this behaviour is unexpected.

Not quite.

Windows filesystem lookups are case-insensitive, but it stores case.

Search code often does case-insensitive matching to make searching
easier (some search code even lowercases everything before putting it
into the index, e.g. xapian).

 It looks as if there is some
 part of MoinMoin case sensitive while other parts are case insensitive
 (due to the filesystem).

Usually moin works case-sensitive (search see above).

If your filesystem does not support that, we can't do much about it.

For next major release (MoinMoin 2.0), this problem will go away, as we
do not map page/attachment names to the filesystem any more. The same is
true for non-ascii filenames for attachments.

In moin2, names of items (== pages / attachments) will be stored into
metadata and are not used to make up the filenames, so one does not have
to deal with such filesystem limitations any more.



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Import Problem

2012-03-24 Thread Thomas Waldmann

 
 This is happening because the default python is 2.4. I ran setup with
 the path to 2.6 but apparently that wasn't enough. I installed
 functools for 2.4 but that didn't work, either. Ideas?

For the moin 1.9.4 download you need at least python 2.5 (due to
requirements of the bundled libraries we depend on).

Also, you should of course use the same python for installing moin and
running moin.



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] No icons css following install

2012-03-08 Thread Thomas Waldmann
A general question: if you are running this on a win xp machine,
couldn't you just use the wikiserver.py? Would be much easier than
configuring apache as this runs out of the box if you just unpack the
download archive of moin.

Your primary problem seems to be some server stuff (not moin) is not
configured correctly, the :3128 in your URL seems also a little strange
(are you using a proxy?).

Instead of using moin.cgi, you should use apache with mod_wsgi and
moin.wsgi, that is much faster.



--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Encoding Problem

2012-03-08 Thread Thomas Waldmann
 If I start the standalone server (wikiserver.py), everything works fine.

That is because nothing is getting in between then. :)

On windows you can get quite some strange behaviours that are due to
windows bugs and limitation (and in your case maybe also due to how cgi
works).

 Did I miss some configuration (apache or MoinMoin)?

You could try mod_wsgi and moin.wsgi, MAYBE that works better.



--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] integrated authentication (Moin, Bugzilla, Gitosis, etc)

2012-02-25 Thread Thomas Waldmann

  I'm guessing that is the case, but as
  it will be a publicly accessible system, it is quite possible there will
  be people with the same name - any suggestions on how to handle this in
  a nice way?
  
  Use their middle initials or some other way to make the name unique.
 
 My original plan was to have the users do all registration through one
 form (in other words, avoid repetition)

Well, then I suggest you make sure stuff is unique at registration time.

 I wasn't keen on that option, but I am keen to centralise other settings
 too, such as user timezone.  Moin isn't the only app that needs that
 setting.  I want to be sure that:

I you use a custom auth method for moin, you can keep stuff in sync with
your centralised system. E.g. ldap_login does that, but you can update
user profiles in the same way in a custom auth method for your
centralised system.

 b) if I can achieve (a), then I do not want the user changing such
 settings in Moin, as their changes would be lost on the next login

You can configure moin so some settings are disabled (not changeable).

 Could ACLs and everything else in Moin use the email address in place of
 the name value?

Maybe, I never tried that. I guess it would be ugly and also a problem
if an email address changes, then you'ld have to change acls and group
pages also.

  GivenAuth - use some given user name (e.g. apache REMOTE_USER). Can
  optionally strip windows or email domain, remove blanks, titlecase.
  There are a lot of apache modules you can use this with, but the only
  thing moin will get from this is a authenticated user name.
 
 Rather than just stripping the email domain, can it search the user data
 files to match on email address?

I don't think so, but a good and well-tested patch to search in name and
in email fields would be a considerable contribution.




--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] integrated authentication (Moin, Bugzilla, Gitosis, etc)

2012-02-24 Thread Thomas Waldmann
 - Moin uses a numeric `user id' value that appears in the page
 revisions, and then it stores email address, name (e.g. DanielPocock)
 and an alias

For the usual login (MoinAuth), moin asks for name and password. Based
on that, it looks up the corresponding user profile and puts the userid
(filename of the profile) into the session cookie.

There are quite some other auth methods, though, see MoinMoin/auth/...

 - can anyone point me to an existing howto or blog about building
 something like this?

There are likely no howtos fur such complex/specific stuff. You can try
google, though.

 - although they do not appear to be the primary key, do the `name' and
 `alias' values have to be unique?

name is checked for uniqueness. Otherwise one would be in trouble with
ACLs.

You shouldn't use alias for anything except being some sort of display
name - e.g. in case the login name is cryptic.

E.g. name == jd001, alias == Joe Doe

 I'm guessing that is the case, but as
 it will be a publicly accessible system, it is quite possible there will
 be people with the same name - any suggestions on how to handle this in
 a nice way?

Use their middle initials or some other way to make the name unique.

 - management of the user files: I notice Moin creates a file for each
 user: is it better to let Moin manage these files (e.g.
 creating/updating them on each login attempt), or to write a script to
 create them pro-actively when a user is registered in the central system?

You for sure should let moin do that. MoinMoin's auth methods usually
have some autocreate flag that let them autocreate the user profile if
it does not already exist.

In general you rather should NOT access moin's storage files directly.
You could do that, but if something goes wrong, you own the pieces.

 - can I keep the users in a MySQL or Postgres table rather than having
 them in disk files?

No.

BTW, those files moin is using for users serve 2 purposes:
a) they are used to store the encrypted password for MoinAuth. Note that
you are not required to use MoinAuth, there are other auth methods also.
b) they are referred from the session's userid and store all sorts of
other user profile / user related data that is needed by moin.

 - I want to allow the users to have both password and OpenID access -
 and I thought that maybe I can just enable OpenID in Moin, my central
 registration system could act as OpenID provider for the
 password-authenticated users, and the users who have OpenID could
 authenticate directly: but using OpenID URL's as identifiers, do the
 users still potentially need unique WikiNames as well?

Yes, usernames in the wiki need to be unique as they might be used in
ACLs.

 Any feedback is really appreciated, and however I get this up and
 running, I am also keen to document it and share some of the scripts
 that are developed.

You have to differentiate whether you do SSO (single sign on, one login
total, everything else is automatic) or just have a common place where
you keep accounts and passwords and against which you can authenticate,
but you still log into each system separately. Of course SSO is more
comfortable, but also it is more effort to get it.

Looking at what moin can already do:

GivenAuth - use some given user name (e.g. apache REMOTE_USER). Can
optionally strip windows or email domain, remove blanks, titlecase.
There are a lot of apache modules you can use this with, but the only
thing moin will get from this is a authenticated user name.

CAS authentication - against a CAS server (don't ask me about that,
looks like it could be helpful)

ldap_login - LDAP server = common place to store credentials and some
user profile data (like email address), but no SSO with non-moin systems

openidrp - does OpenID auth (try it, can't help much with that either)

sslclientcert - uses SSL client certs for auth

MoinAuth - direct login into moin, does not help you

http basic auth done by moin - does not help you

interwiki auth - does not help you for integration with non-moin systems

mysql_group - does not help (don't ask me about that)

php_session - made to read the session cookie of eGroupware

smb_mount - special, does not help you


Other than these, you can write your own MoinMoin auth module (and do
whatever you want there) or modify an existing auth method, if you need
it slightly different. Basic Python skills needed.

If you run multipe moin wikis, they can share the cookie (the session)
and the user profiles. Make sure you do that right from the beginning or
it will have diverging userids.

The MoinMoin.user module has some lookup functions to find users not
only by name, but also by email or openid address.

If you need help, feel free to join us on #moin on chat.freenode.net IRC
channel.



--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on 

Re: [Moin-user] no space left on device but plenty of disk space.

2012-01-12 Thread Thomas Waldmann


 Probably you are right. Is it possible to explicitly set a location
 where Moin stores it's temporary files?
 
Try setting the TMPDIR, TEMP or TMP environment variables (for the moin
process).




--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] wiki does not display the latest revision of a page

2011-12-16 Thread Thomas Waldmann

 Would I have to stop the wiki software to run the maint cleancache command 
 or can I run it
 while the wiki is running?

While it might work while running the wiki engine, you better stop it to
make sure there is no interference and really all gets cleaned up.

It's usually just a matter of seconds.



--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] wiki does not display the latest revision of a page

2011-12-15 Thread Thomas Waldmann

 thanks for the tip I did carry out the Delete Cache command from the more 
 options menu and it apparently solved the problem.
 Is every user who has read,write,delete,revert,admin rights for the page able 
 to carry out the Delete Cache command?

Yes, you do not even need admin for that.

If you have more pages with that issue, you could also do a moin ...
maint cleancache on the shell.



--
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] Caching generated content from a parser

2011-12-02 Thread Thomas Waldmann
At the moment, I generate the key using self.raw (the raw data from
 the formatter) but that means that every time the data changes, a new
 cache entry is created and the old one is never removed.

Well, if one needs to reclaim the disk space, one could just kill all
the caches. Caches should not be authoritative, so they will rebuild
then automatically.

Although this is not super-clean, it is maybe much simpler than
implementing some complex thing to manage this. Especially considering
that moin2 might be very different then.

 PS I have a feeling all of this would be much easier in Moin 2, with
 its mimetype items, but I get the feeling that Moin 2 is still a
 reasonable way away from being ready for production use, so I think I
 have to stick with 1.9 for this :-(

Yes, if you need it in production mode quickly, use 1.9.
See also the hints about that on the MoinMoin2.0 wiki page.



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: [Moin-user] using Xapian search

2011-09-28 Thread Thomas Waldmann
 So, an uppercase letter is an indicator that the indexer should treat
 this as a word (until the next uppercase letter) as if there was white
 space. It would seem that hyphens and underscores have a similar
 effect.

It's not just upper/lowercase transitions. IIRC, it also tries to split
off numbers, split at blanks, punctuation, etc. - for details maybe have
a look at the tokenizer.

Generally speaking, moin tries its best to have a language-independant
tokenization. It does NOT break it down to arbitrary character
combinations, of course (like splitting foobar into foob and ar), the
cost (time/size) for that is simply much too high, especially if you
consider that there are languages that build rather long words
naturally, like german.

  The implications of this would need to be considered when
 naming pages. Pages named with acronyms, e.g. IBM*, are a particular
 problem.

If you have a page called IBM Services, that would work ok.
Same for IBM-Services, IBMServices is maybe a bad idea.

  Well, better get used to that (or refine your search with mime:wiki to
  only find wiki pages). The different handling of pages and attachments
  is going away in future anyway.
 
 Is it possible to have mime:wiki used as the default for title searches?

No there isn't. It would not help in general anyway, because the
distinction needed does not really exist (or does only exist when using
the wiki in some specific way).

In moin2 that problem becomes even more visible: you can have
arbitrary items there (there is no distinction between pages and
attachments) and each item has a content-type, e.g.:

text/x.moin.wiki
text/x.rst
text/plain
application/pdf
image/jpeg
application/octet-stream

So, how do you decide now what should be considered as kind of a
content and what is kind of an additional file?

We still search a solution for that, but I guess we can't do any better
than offering some groups of mimetypes.



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


  1   2   3   4   5   >