From rb.proj at gmail.com Wed Dec 1 05:37:22 2010 From: rb.proj at gmail.com (R.Bauer) Date: Wed, 01 Dec 2010 11:37:22 +0100 Subject: [Moin-user] Automatically add macros In-Reply-To: <87ipze1che.fsf@rath.org> References: <87ipze1che.fsf@rath.org> Message-ID: Am 01.12.2010 02:57, schrieb Nikolaus Rath: > Hello, > > I would like to automatically insert the <<<> macro > at the beginning of each page, and the <> macro at the end > of each page. Is there a way to do that? > > Create just a Template page e.g. MyTemplate, see HelpOnTemplates add <> lorem ipsum <> and use it for your new pages Reimar > Thanks, > > -Nikolaus > From Nikolaus at rath.org Wed Dec 1 10:53:18 2010 From: Nikolaus at rath.org (Nikolaus Rath) Date: Wed, 01 Dec 2010 10:53:18 -0500 Subject: [Moin-user] Automatically add macros References: <87ipze1che.fsf@rath.org> Message-ID: <87hbex4hht.fsf@inspiron.ap.columbia.edu> "R.Bauer" writes: > Am 01.12.2010 02:57, schrieb Nikolaus Rath: >> Hello, >> >> I would like to automatically insert the <<<> macro >> at the beginning of each page, and the <> macro at the end >> of each page. Is there a way to do that? > > Create just a Template page e.g. MyTemplate, see HelpOnTemplates > > add > > <> > > lorem ipsum > > <> > > and use it for your new pages I would rather define this in one place and enforce it for all existing pages. Isn't there a way to do this, e.g. by somehow telling the theme to implicitly insert these macros in every page that it serves? Best, -Nikolaus -- ?Time flies like an arrow, fruit flies like a Banana.? PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C From ndbecker2 at gmail.com Mon Dec 6 08:30:05 2010 From: ndbecker2 at gmail.com (Neal Becker) Date: Mon, 06 Dec 2010 08:30:05 -0500 Subject: [Moin-user] mathjax Message-ID: http://www.mathjax.org/ Looks like an interesting way to integrate LaTeX markup. Anyone looked into using this? From tw-public at gmx.de Tue Dec 7 12:01:27 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 07 Dec 2010 18:01:27 +0100 Subject: [Moin-user] mathjax In-Reply-To: References: Message-ID: <1291741287.29491.14.camel@server.firma.waldmann-edv.de> On Mon, 2010-12-06 at 08:30 -0500, Neal Becker wrote: > http://www.mathjax.org/ > > Looks like an interesting way to integrate LaTeX markup. Indeed. > Anyone looked into using this? Just had a quick look after reading your mail. Looks great and I didn't find a catch. What you could please do: search our wiki for math stuff and add this at some appropriate place (create a new page if you don't find some place that fits). Maybe you and some other people interested in math can discuss there and maybe someone who knows python will have a look. (I personally rarely need math typesetting stuff nowadays, but I could give some support to whoever wants to work on it for moin2.) License of it might be a problem, not sure: mathjax is "Apache License v2". moin is "GPL v2 or later". http://www.apache.org/licenses/GPL-compatibility.html So, for the "or later part (e.g. GPL v3) there is no problem. Not sure if we have a problem with GPL v2, which we also allow for moin. From brownian.box at gmail.com Fri Dec 10 10:00:18 2010 From: brownian.box at gmail.com (Dmytro O. Redchuk) Date: Fri, 10 Dec 2010 17:00:18 +0200 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me Message-ID: <20101210150018.GE10425@volz.ua> Hi! I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7, libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian -- 1.0.7-3.1). Added Ukrainian pages, but finally got the same problem with fresh install and no any additional pages in "underlay". The problem -- tried to use built-in search and had this: searching had never finished, at all -- no any record in apache's access.log, with no any error in apache's error.log. Next i've enabled search with xapian, indexed my wiki (with no errors), checked those indexes (rather their presence), checked all directories and files' permissions and tried to search smth again -- with the same result, with "infinite" "Waiting for data..." in firefox's status bar, with no any record in apache's log files. Well, the same result when i click on "CategoryHomepage" (http://mywikisite/mywikiname/CategoryHomepage), too sad... I feel here is something wrong, badly, in my side, so i would like to ask -- please, how can i troubleshoot this problem? Thank you! -- Dmytro O. Redchuk From jmgxu at hotmail.com Sat Dec 11 12:43:26 2010 From: jmgxu at hotmail.com (Gang Xu) Date: Sat, 11 Dec 2010 12:43:26 -0500 Subject: [Moin-user] AttributeError: 'Request' object has no attribute 'sent_headers' error when port to IIS7 on W2k8 In-Reply-To: References: , Message-ID: Hi, I'm porting Moinmoin (1.8) from w2k3 to w2k8. After setup Python 2.5.4 (tried Python 2.7, but hit the same error. Thus rolled back to 2.5), zip Moin folder from W2k3 and unzip it in W2k8. In IIS7, setup the virtual directories. Now when I access my Wiki, I got the following error:HTTP Error 502.2 - Bad GatewayThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "2010-12-11 12:15:15,609 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module! Traceback (most recent call last): File "D:\Moin\MyWiki\moin.cgi", line 54, in run(Config) File "D:\Moin\Lib\site-packages\MoinMoin\server\server_cgi.py", line 57, in run request = request_cgi.Request(properties=config.properties) File "D:\Moin\Lib\site-packages\MoinMoin\request\request_cgi.py", line 32, in __init__ self.fail(err) File "D:\Moin\Lib\site-packages\MoinMoin\request\__init__.py", line 1452, in fail if not self.sent_headers: AttributeError: 'Request' object has no attribute 'sent_headers' ". I have ported it to another w2k3 server before and it worked. This is the first time I tried on W2k8. Any help will be highly appreciated!Thanks,Gang -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Mon Dec 13 18:32:57 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 14 Dec 2010 00:32:57 +0100 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me In-Reply-To: <20101210150018.GE10425@volz.ua> References: <20101210150018.GE10425@volz.ua> Message-ID: <1292283177.11049.20.camel@x300> > I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7, > libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian -- > 1.0.7-3.1). Do you mean the moin debian package or the download? > Added Ukrainian pages, but finally got the same problem with fresh > install and no any additional pages in "underlay". To maybe narrow down the problem, you could try running your stuff with wikiserver.py. > The problem -- tried to use built-in search and had this: searching had never > finished, at all -- no any record in apache's access.log, with no any error in > apache's error.log. Does any non-search wiki page access work normally? The non-xapian search is rather simple, just linearly searching one page after the other. Does TitleIndex work? > Next i've enabled search with xapian, indexed my wiki (with no errors), Did you do this using the same uid as the wiki script is executed with? If you did not, you may have permissions problems due to wrong owner of the xapian index. From tw-public at gmx.de Mon Dec 13 18:43:23 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 14 Dec 2010 00:43:23 +0100 Subject: [Moin-user] AttributeError: 'Request' object has no attribute 'sent_headers' error when port to IIS7 on W2k8 In-Reply-To: References: , Message-ID: <1292283803.11049.31.camel@x300> > I'm porting Moinmoin (1.8) from w2k3 to w2k8. Which moin version exactly? 1.8.8 is the current 1.8 release, but you maybe should rather try to use 1.9.x as the end of support for 1.8 is not too far in the future. 1.9.x is WSGI based, so WSGI is the preferred method to run it. You can also do fastcgi, cgi, and others using flup (which is possible, but not recommended). > After setup Python 2.5.4 (tried Python 2.7, but hit the same error. > Thus rolled back to 2.5), zip Moin folder from W2k3 and unzip it in > W2k8. 2.6.latest is currently the most commonly used python, 2.5 should also work ok. 2.7 is rather fresh and not much tested with moin 1.8. > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are "2010-12-11 > 12:15:15,609 WARNING MoinMoin.log:139 ... These are NOT http headers obviously, but moin's log output (which is usually either output to stderr (NOT stdout as the http headers) or to a file - maybe check your logging configuration. > using logging configuration read from built-in fallback in > MoinMoin.log module! Traceback (most recent call last): File "D:\Moin > \MyWiki\moin.cgi", line 54, in run(Config) File "D:\Moin\Lib > \site-packages\MoinMoin\server\server_cgi.py", line 57, in run request > = request_cgi.Request(properties=config.properties) File "D:\Moin\Lib > \site-packages\MoinMoin\request\request_cgi.py", line 32, in __init__ > self.fail(err) File "D:\Moin\Lib\site-packages\MoinMoin\request > \__init__.py", line 1452, in fail if not self.sent_headers: > AttributeError: 'Request' object has no attribute 'sent_headers' ". Looks like some error in the code, try with latest moin please. > I have ported it to another w2k3 server before and it worked. This is > the first time I tried on W2k8. I don't think this is caused by the different windows version, but rather by a setup or configuration problem or a bug in moin's code (that is maybe fixed since long in current moin versions). From brownian.box at gmail.com Tue Dec 14 02:34:29 2010 From: brownian.box at gmail.com (Dmytro O. Redchuk) Date: Tue, 14 Dec 2010 09:34:29 +0200 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me In-Reply-To: <1292283177.11049.20.camel@x300> References: <20101210150018.GE10425@volz.ua> <1292283177.11049.20.camel@x300> Message-ID: <20101214073429.GC1807@volz.ua> ? ??., 14-?? ???. 2010 (50-? ??????? ????), ? 00:32 Thomas Waldmann ??????: > > I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7, > > libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian -- > > 1.0.7-3.1). Thank you for your reply! > Do you mean the moin debian package or the download? No, i've downloaded it from http://static.moinmo.in/files/moin-1.9.3.tar.gz. > > Added Ukrainian pages, but finally got the same problem with fresh > > install and no any additional pages in "underlay". > > To maybe narrow down the problem, you could try running your stuff with > wikiserver.py. Well... :O( Everything is excellent with "./moin server standalone ..." (as root, after specifying paths in /usr/local/share/moin/server/moin). > > The problem -- tried to use built-in search and had this: searching had never > > finished, at all -- no any record in apache's access.log, with no any error in > > apache's error.log. > > Does any non-search wiki page access work normally? The non-xapian > search is rather simple, just linearly searching one page after the > other. > > Does TitleIndex work? Yes, TitleIndex works in both standalone and apache+wsgi. > > Next i've enabled search with xapian, indexed my wiki (with no errors), > > Did you do this using the same uid as the wiki script is executed with? > If you did not, you may have permissions problems due to wrong owner of > the xapian index. No, i have changed permissions to correct ones... And non-xapian search does not work either. I have disabled reloading mechanism in wsgi module and am restarting apache after each wikiconfig.py modification (not sure it is needed but anyway). So... Am i asking in the wrong maillist?-) Please, anyway, what can i do to troubleshoot this? Thank you! -- Dmytro O. Redchuk From abone27 at mail.ru Tue Dec 14 06:59:58 2010 From: abone27 at mail.ru (Andrey Bondarenko) Date: Tue, 14 Dec 2010 14:59:58 +0300 Subject: [Moin-user] WikiSync is broken if backup/restore is used Message-ID: First of all, I want to thank MoinMoin developers for the great software. MoinMoin is the only tool I found suitable for handling personal notes. I'm using it for a few years and can sey it is one of the most valuable tool for me. My usage patter of MoinMoin is rather specific. I keep there random notes, but because I neet to access them on several computers that do not have network access to each other, so I have to keep an autonomous instance of MoinMoin on every host. I've tried to keep them in sync using the following procedure. Instances A and B needs to be synchronized, I create auxiliary wiki instace M on a removable media (flash). Then I configure SyncJobs: A <-> M and B <-> M. In theory, moving M between sites should allow keeping A and B in sync. But, it seems, I found one corner case. Mobile instance M is vulnerable to accidental loss, so I make frequent backups. I thought, If I lose M, I may recover it from a recent backup and that is OK, but current WikiSync implementation stores part of M state (page revision numbers) in peer instances A, B. If M is restored from backup this state information could become invalid. This may lead to random stack traces (the best case) or silent data corruption (worst case). For example, some revisions that were in M before loss may not exist in backup, this case leads to invalid FROM_REV and TO_REV stack trace. see http://www.moinmo.in/4ct10n/edit/MoinMoinBugs/1.9WikiSyncCorruptedSynctags The other case, may happen if M loses some page revision, but then gain it from the other source. This case leads to silent page data corruption see. http://www.moinmo.in/MoinMoinBugs/1.9WikiSyncUnicodeDecodeErrorInMergeDiff I think, the problem is hard to resolve and don't expect it will be fixed soon, but, probably, we can put a word of warning to the docs, that one should avoid use of WikiSync if he uses Backup/Restore? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brownian.box at gmail.com Tue Dec 14 08:51:30 2010 From: brownian.box at gmail.com (Dmytro O. Redchuk) Date: Tue, 14 Dec 2010 15:51:30 +0200 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me In-Reply-To: <20101214073429.GC1807@volz.ua> References: <20101210150018.GE10425@volz.ua> <1292283177.11049.20.camel@x300> <20101214073429.GC1807@volz.ua> Message-ID: <20101214135130.GA2903@volz.ua> Thank you and SORRY!! After reading http://moinmo.in/HowTo/ApacheWithModWSGI i have edited apache's config -- and it started to work. SORRY, my fault. (Anyway, i wanted to know how could i troubleshoot that problem -- now i still dont know that, oh well..) ? ??., 14-?? ???. 2010 (50-? ??????? ????), ? 09:34 ? ?????: > I have disabled reloading mechanism in wsgi module and am restarting apache > after each wikiconfig.py modification (not sure it is needed but anyway). > > So... Am i asking in the wrong maillist?-) > > Please, anyway, what can i do to troubleshoot this? > > Thank you! -- Dmytro O. Redchuk From tw-public at gmx.de Tue Dec 14 09:22:09 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 14 Dec 2010 15:22:09 +0100 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me In-Reply-To: <20101214135130.GA2903@volz.ua> References: <20101210150018.GE10425@volz.ua> <1292283177.11049.20.camel@x300> <20101214073429.GC1807@volz.ua> <20101214135130.GA2903@volz.ua> Message-ID: <1292336529.11049.46.camel@x300> On Tue, 2010-12-14 at 15:51 +0200, Dmytro O. Redchuk wrote: > Thank you and SORRY!! > > After reading http://moinmo.in/HowTo/ApacheWithModWSGI i have edited apache's > config -- and it started to work. > > SORRY, my fault. Can you tell what exactly was causing the issue? From brownian.box at gmail.com Tue Dec 14 09:31:26 2010 From: brownian.box at gmail.com (Dmytro O. Redchuk) Date: Tue, 14 Dec 2010 16:31:26 +0200 Subject: [Moin-user] Help -- search in moin-1.9.3 does not work for me In-Reply-To: <1292336529.11049.46.camel@x300> References: <20101210150018.GE10425@volz.ua> <1292283177.11049.20.camel@x300> <20101214073429.GC1807@volz.ua> <20101214135130.GA2903@volz.ua> <1292336529.11049.46.camel@x300> Message-ID: <20101214143126.GB2903@volz.ua> ? ??., 14-?? ???. 2010 (50-? ??????? ????), ? 15:22 Thomas Waldmann ??????: > On Tue, 2010-12-14 at 15:51 +0200, Dmytro O. Redchuk wrote: > > Thank you and SORRY!! > > > > After reading http://moinmo.in/HowTo/ApacheWithModWSGI i have edited apache's > > config -- and it started to work. > > > > SORRY, my fault. > > Can you tell what exactly was causing the issue? Sorry again. I have added these lines to /etc/apache2/sites-enabled/000-default: WSGIDaemonProcess moin user=www-data group=www-data home=/var/www processes=5 threads=10 maximum-requests=1000 umask=0007 WSGIProcessGroup moin and search started to work. Now when i comment those lines out, i have the same behavior (infinite search, no any records in both access-log and error.log), with both built-in and xapian search. -- Dmytro O. Redchuk From erichui at speakeasy.net Tue Dec 14 21:10:29 2010 From: erichui at speakeasy.net (Eric Hui) Date: Tue, 14 Dec 2010 21:10:29 -0500 Subject: [Moin-user] mathjax In-Reply-To: References: Message-ID: <4D082395.9000005@speakeasy.net> Neal Becker wrote: > http://www.mathjax.org/ > > Looks like an interesting way to integrate LaTeX markup. Anyone looked into > using this? Yes, just recently in fact. I had been using Johannes Berg's latex parser on Moin 1.5.8, which is awesome. In upgrading to Moin 1.9.3, decided to look at alternatives to generating pretty math. The disadvantage of MathJax is that it doesn't support ALL markup that is available in the latex parser (which basically can support any latex/tex markup). The advantage is that you get very nice, scalable rendering of the math on the client side. I'm still haven't decided, but I'm thinking of migrating to MathJax. These are the basic steps to get MathJax working w/1.9.3: - configure your web server to serve out the MathJax scripts and fonts - for your moin instance, edit the wikiconfig.py's html_head variable to add a reference to the MathJax script, something like '''''' - edit your moin pages to support MathJax notation For the default configuration of MathJax, migrating from the latex parser and macro involved the following: - for inline_latex, delimit the markup with \( and \) instead of $$ - for rendering a set of equations, I used to use a {{{#!latex }}} block. to make it work with MathJax, I used the html parser, which passes the block through unmodified. e.g., {{{#!html $$ \begin{eqnarray*} x_i &=& y_i^2 \end{eqnarray*} $$ }}} Once I get some time to do the actual migration, I'd probably write an actual moin parser to support MathJax, but this seems to do the trick. From mark.scheufele at diasemi.com Tue Dec 21 08:48:33 2010 From: mark.scheufele at diasemi.com (Mark Scheufele) Date: Tue, 21 Dec 2010 13:48:33 +0000 Subject: [Moin-user] xmlrpc with NTLM and GivenAuth Message-ID: <39080CC9D403A94F992B5A8183FE77BC063730E5@NB-EX-MBX01.diasemi.com> Hi Moin users, about a month ago I did ask for some hints how to get the xmlrpc access working under the following circumstances: - moin version 1.9.3 - IIS with windows authentication SSPI(NTLM) - moin authentication is auth = [GivenAuth(strip_windomain=True,autocreate=1)] This means that the xmlrpc calls are only forwarded to the wiki after a successful ntlm authentication by the IIS webserver. The wiki then uses the REMOTE_USER variable to create or run the request under a specific account (this is explained here http://moinmo.in/HelpOnAuthentication) When I run the following script: import sys import xmlrpclib wikiurl = "http://nb-it-lt-ms/testwiki" homewiki = xmlrpclib.ServerProxy(wikiurl + "?action=xmlrpc2",allow_none=True) mc=xmlrpclib.MultiCall(homewiki) mc.getRPCVersionSupported() mc.getPage("StartPage") try: auth_token = homewiki.getAuthToken("mscheufe", "blah") if not auth_token: print "auth_token is empty" for i in mc(): print i except xmlrpclib.Fault as err: print str(err) I get the following error message: Traceback (most recent call last): File "test.py", line 15, in auth_token = homewiki.getAuthToken("mscheufe", "blah") File "c:\python26\lib\xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "c:\python26\lib\xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "c:\python26\lib\xmlrpclib.py", line 1243, in request headers xmlrpclib.ProtocolError: I managed to get the ntlm authentication against the webserver to work by writing my own xmlrpc.Transport object. (code see below). Now the ntlm authentication is working and my xmlrpc requests are forwarded to the wiki. But my calls are still not properly authenticated against the wiki by the xmlrpc interface. Have a look at this sample: import sys sys.path.append("c:/Temp/MoinXmlRPC") import xmlrpclib from ntlmTransport import * wikiurl = "http://nb-it-lt-ms/testwiki" p=ntlmTransport() homewiki = xmlrpclib.ServerProxy(wikiurl + "?action=xmlrpc2",allow_none=True,transport=p) mc=xmlrpclib.MultiCall(homewiki) mc.getRPCVersionSupported() mc.getPage("StartPage") try: auth_token = homewiki.getAuthToken("mscheufe", "blah") if not auth_token: print "auth_token is empty" for i in mc(): print i except xmlrpclib.Fault as err: print str(err) The output of the script is: auth_token is empty 2 As one can see the xmlrpc calls are forwarded to the wiki but as the getAuthToken() method does not return a token I cannot authenticate against the wiki. At the minute I am stuck here. I really would be interested to get the xmlrpc interface working with GivenAuth. It would be great if someone could point me into the right direction how this problem could be solved. Many thanks in advance, mark ################################### # ntlm xmlrpclib.Transport object # ################################### import xmlrpclib,sys,httplib,base64 from types import * #code for WindoewNtlmMessageGenerator orignates from http://stackoverflow.com/questions/2969481/ntlm-authentication-in-python class WindoewNtlmMessageGenerator: def __init__(self,user=None): import win32api,sspi if not user: user = win32api.GetUserName() self.sspi_client = sspi.ClientAuth("NTLM",user) def create_auth_req(self): import pywintypes output_buffer = None error_msg = None try: error_msg, output_buffer = self.sspi_client.authorize(None) except pywintypes.error: return None auth_req = output_buffer[0].Buffer auth_req = base64.b64encode(auth_req) return auth_req def create_challenge_response(self,challenge): import pywintypes output_buffer = None input_buffer = challenge error_msg = None try: error_msg, output_buffer = self.sspi_client.authorize(input_buffer) except pywintypes.error: return None response_msg = output_buffer[0].Buffer response_msg = base64.b64encode(response_msg) return response_msg class ntlmTransport(xmlrpclib.Transport): def __init__(self,use_datetime=0): xmlrpclib.Transport.__init__(self,use_datetime) def request(self, host, handler, request_body, verbose=0): # issue XML-RPC request h = self.make_connection(host) if verbose: h.set_debuglevel(1) #run the ntlm handshake to get an auth token extra_headers=self.get_ntlm_header(h,handler,request_body) self.send_request(h, handler, request_body) self.send_host(h,host,extra_headers) self.send_user_agent(h) self.send_content(h, request_body) errcode, errmsg, headers = h.getreply() if errcode != 200: raise ProtocolError( host + handler, errcode, errmsg, headers ) self.verbose = verbose try: sock = h._conn.sock except AttributeError: sock = None return self._parse_response(h.getfile(), sock) def get_ntlm_header(self,connection,handler,request_body): ntlm_gen = WindoewNtlmMessageGenerator() auth_req_msg = ntlm_gen.create_auth_req() extra_headers=[('Connection','Keep-Alive')] self.send_request(connection,handler,request_body) connection.putheader("Content-length","0") connection.putheader("Connection","Keep-Alive") connection.putheader('Authorization','NTLM'+' '+auth_req_msg) connection.endheaders() resp = connection._conn.getresponse() #always read from response otherwise the subsequent call with the current http connection handle won't work resp.read() #generate the NTLM auth_token challenge = resp.msg.get('WWW-Authenticate') challenge_dec = base64.b64decode(challenge.split()[1]) auth_token = ntlm_gen.create_challenge_response(challenge_dec) extra_headers.append(('Authorization','NTLM'+' '+auth_token)) return extra_headers def send_host(self,connection,host,extra_headers): host, not_used_headers, x509 = self.get_host_info(host) for key, value in extra_headers: connection.putheader(key, value) _______________________________________________________________________________________ Dialog Semiconductor GmbH Neue Str. 95 D-73230 Kirchheim Managing Director: Dr. Jalal Bagherli Chairman of the Supervisory Board: Gregorio Reyes Commercial register: Amtsgericht Stuttgart: HRB 231181 UST-ID-Nr. DE 811121668 Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. From victorhooi at yahoo.com Wed Dec 22 01:27:42 2010 From: victorhooi at yahoo.com (Victor Hooi) Date: Wed, 22 Dec 2010 17:27:42 +1100 Subject: [Moin-user] Deploying using Gunicorn? Message-ID: Hi, I'm looking at deploying MoinMoin using Gunicorn (http://gunicorn.org/) and Nginx. A quick Google didn't seem to turn up anything regarding other people who've tried this - but I'm guessing somebody out there must have, right? Could anybody post their experiences, and any pitfalls they encountered? Cheers, Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.schilling at gfud.de Wed Dec 22 02:34:38 2010 From: thomas.schilling at gfud.de (Thomas Schilling) Date: Wed, 22 Dec 2010 08:34:38 +0100 Subject: [Moin-user] Apache SNI and SQUID3 Message-ID: <4E5A62EB686E374C9ED29C3E2D3E4A36AB9A8811D2@SBS08.sass-system.local> Good Morning Everbody! to resolv one Problem I need a little bump. May you're be so kind ;-) My Config: |--> Cache_peer 127.0.0.1:443 Exchange WWW Port 443 -> Squid3 | |--> Cache_peer 127.0.0.1:443 Apache with SNI My config works great, but I cant CONNECT directly to the hosted Sites on Apache to get the "right" SSL Key. Did you make any expiriences with tunneling Sites without DNS request to a local Apache??? Thank you! Regards Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Sat Dec 25 13:31:28 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Sat, 25 Dec 2010 19:31:28 +0100 Subject: [Moin-user] MoinMoin at 27c3 Message-ID: <1293301888.27252.8.camel@x300> Hi, if some of you visit the 27c3 conference in Berlin soon, make sure you don't miss our workshop and also meet us in the hackcenter at our table there. For more information, see there: http://moinmo.in/27c3 CU there, Thomas From jmgxu at hotmail.com Tue Dec 28 01:14:01 2010 From: jmgxu at hotmail.com (Gang Xu) Date: Tue, 28 Dec 2010 01:14:01 -0500 Subject: [Moin-user] AttributeError: 'Request' object has no attribute 'sent_headers' error when port to IIS7 on W2k8 Message-ID: Thomas, Thanks for the quick reply. For some reason I don't get it in my email. Only when I google the error again today, I saw your reply. I'm using moin 1.8.2 on wk28. However, when I tried with 1.8.8 today, to create a simple demo wiki, I got the same error. I'm testing with Python 2.6.6. I'll take a look at 1.9.3. Plan to have a simple demo wiki running, as a proof of concept, on w2k8. Then I'll upgrade my current 1.8.2 to 1.9. Gang > I'm porting Moinmoin (1.8) from w2k3 to w2k8. Which moin version exactly? 1.8.8 is the current 1.8 release, but you maybe should rather try to use 1.9.x as the end of support for 1.8 is not too far in the future. 1.9.x is WSGI based, so WSGI is the preferred method to run it. You can also do fastcgi, cgi, and others using flup (which is possible, but not recommended). > After setup Python 2.5.4 (tried Python 2.7, but hit the same error. > Thus rolled back to 2.5), zip Moin folder from W2k3 and unzip it in > W2k8. 2.6.latest is currently the most commonly used python, 2.5 should also work ok. 2.7 is rather fresh and not much tested with moin 1.8. > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are "2010-12-11 > 12:15:15,609 WARNING MoinMoin.log:139 ... These are NOT http headers obviously, but moin's log output (which is usually either output to stderr (NOT stdout as the http headers) or to a file - maybe check your logging configuration. > using logging configuration read from built-in fallback in > MoinMoin.log module! Traceback (most recent call last): File "D:\Moin > \MyWiki\moin.cgi", line 54, in run(Config) File "D:\Moin\Lib > \site-packages\MoinMoin\server\server_cgi.py", line 57, in run request > = request_cgi.Request(properties=config.properties) File "D:\Moin\Lib > \site-packages\MoinMoin\request\request_cgi.py", line 32, in __init__ > self.fail(err) File "D:\Moin\Lib\site-packages\MoinMoin\request > \__init__.py", line 1452, in fail if not self.sent_headers: > AttributeError: 'Request' object has no attribute 'sent_headers' ". Looks like some error in the code, try with latest moin please. > I have ported it to another w2k3 server before and it worked. This is > the first time I tried on W2k8. I don't think this is caused by the different windows version, but rather by a setup or configuration problem or a bug in moin's code (that is maybe fixed since long in current moin versions). -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmgxu at hotmail.com Tue Dec 28 05:45:41 2010 From: jmgxu at hotmail.com (Gang Xu) Date: Tue, 28 Dec 2010 05:45:41 -0500 Subject: [Moin-user] looking for a good guide to install MoinMoin 1.9.x on IIS7 (Win2k8) Message-ID: I'm new to the WSGI and IIS7. I want to install MoinMoin 1.9.3 on Win2k8/IIS7. The document here, master19.moinmo.in/InstallDocs, is not very detailed about Windows environment installation. Does anyone know a good step-by-step guide for the installation? -------------- next part -------------- An HTML attachment was scrubbed... URL: From barber.justin at gmail.com Tue Dec 28 06:55:00 2010 From: barber.justin at gmail.com (Justin Barber) Date: Tue, 28 Dec 2010 06:55:00 -0500 Subject: [Moin-user] looking for a good guide to install MoinMoin 1.9.x on IIS7 (Win2k8) In-Reply-To: References: Message-ID: No. I looked, banged my head, tried several different methods and eventually gave up and installed on linux which took a mere seconds. Good luck. Think he general consensus when i asked on the forums and chat groups was.... DONT with the occasional why would i want to go and do something like that. On Tue, Dec 28, 2010 at 5:45 AM, Gang Xu wrote: > I'm new to the WSGI and IIS7. I want to install MoinMoin 1.9.3 on > Win2k8/IIS7. The document here, master19.moinmo.in/InstallDocs, is not very > detailed about Windows environment installation. > > Does anyone know a good step-by-step guide for the installation? > > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > > -- Justin Barber (512)JBARBER ? ? .......__o ? ? .......\<, ? ? ....( )/ ( ) From mark.scheufele at diasemi.com Tue Dec 28 11:04:23 2010 From: mark.scheufele at diasemi.com (Mark Scheufele) Date: Tue, 28 Dec 2010 16:04:23 +0000 Subject: [Moin-user] xmlrpc with NTLM and GivenAuth Message-ID: <39080CC9D403A94F992B5A8183FE77BC063771A7@NB-EX-MBX01.diasemi.com> Hi Moin users, I was able to fix the xmlrpc access to the wiki by changing the process() method of the XmlRpcBase class within c:\Python26\Lib\site-packages\MoinMoin\xmlrpc\__init__.py if 'xmlrpc' in self.request.cfg.actions_excluded: # we do not handle xmlrpc v1 and v2 differently response = xmlrpclib.Fault(1, "This moin wiki does not allow xmlrpc method calls.") else: # overwrite any user there might be, if you need a valid user for # xmlrpc, you have to use multicall and getAuthToken / applyAuthToken #if the only authMethod is 'given' use the remote_user variable to create user object. #In this case no calls to getAuthToken and applyAuthToken are necessary if 'given' in request.cfg.auth_methods and len(request.cfg.auth_methods) == 1: auth_username=request.remote_user.split('\\')[-1] u=user.User(request, auth_username=auth_username, auth_method=request.cfg.auth_methods, auth_attribs=('name', 'password')) logging.info("user is %s" % str(u)) else: u=user.User(request, auth_method='xmlrpc:invalid') request.user = u I know can use the xmlrpc functions against our wiki. Best Regards, mark _______________________________________________________________________________________ Dialog Semiconductor GmbH Neue Str. 95 D-73230 Kirchheim Managing Director: Dr. Jalal Bagherli Chairman of the Supervisory Board: Gregorio Reyes Commercial register: Amtsgericht Stuttgart: HRB 231181 UST-ID-Nr. DE 811121668 Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. From mark.scheufele at diasemi.com Tue Dec 28 11:19:47 2010 From: mark.scheufele at diasemi.com (Mark Scheufele) Date: Tue, 28 Dec 2010 16:19:47 +0000 Subject: [Moin-user] xmlrpc with NTLM and GivenAuth Message-ID: <39080CC9D403A94F992B5A8183FE77BC063771BF@NB-EX-MBX01.diasemi.com> Hi Moin users, I was able to fix the xmlrpc access to the wiki by changing the process() method of the XmlRpcBase class within c:\Python26\Lib\site-packages\MoinMoin\xmlrpc\__init__.py if 'xmlrpc' in self.request.cfg.actions_excluded: # we do not handle xmlrpc v1 and v2 differently response = xmlrpclib.Fault(1, "This moin wiki does not allow xmlrpc method calls.") else: # overwrite any user there might be, if you need a valid user for # xmlrpc, you have to use multicall and getAuthToken / applyAuthToken #if the only authMethod is 'given' use the remote_user variable to create user object. #In this case no calls to getAuthToken and applyAuthToken are necessary if 'given' in request.cfg.auth_methods and len(request.cfg.auth_methods) == 1: auth_username=request.remote_user.split('\\')[-1] u=user.User(request, auth_username=auth_username, auth_method=request.cfg.auth_methods, auth_attribs=('name', 'password')) logging.info("user is %s" % str(u)) else: u=user.User(request, auth_method='xmlrpc:invalid') request.user = u I now can use the xmlrpc functions against our wiki. Best Regards, mark _______________________________________________________________________________________ Dialog Semiconductor GmbH Neue Str. 95 D-73230 Kirchheim Managing Director: Dr. Jalal Bagherli Chairman of the Supervisory Board: Gregorio Reyes Commercial register: Amtsgericht Stuttgart: HRB 231181 UST-ID-Nr. DE 811121668 Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.