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

2014-10-14 Thread Nikolaus Rath
Thomas Waldmann writes: > Hi Nikolaus, > >>> It fixed the issue for me, > > Well, I just tried it and it now just blows up at another place: [...] > OSError: [Errno 36] File name too long: > '/home/tw/mm19/wiki/data/pages/

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

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

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 functi

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

2014-10-12 Thread Nikolaus Rath
Thomas Waldmann writes: >> [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.charse

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/Moi