On 18.10.2010 17:40, Mark Scheufele wrote: > Hi MoinMoin users, > > I am currently working on a script to convert dokuwiki pages to moinmoin > syntax. To develop the script I have used moinmoin in a standalone setup > (local wsgi application by running wikiserver.py). > > Within the script I am creating a request object: > > from MoinMoin.web.contexts import ScriptContext > request=ScriptCotext() > > Afterwards this request object is used to create pages and upload > attachments. After creating the pages within the standalone wiki I > copied all the pages to our production system (same version 1.9.3). But > when I now try to access a page the authentication doesn't work for some > reason. > > Here is the error message from the apache log file: > > [Mon Oct 18 15:49:10 2010] [error] [client 10.1.26.68] (OS 87)The > parameter is incorrect. : authentication failure for "/icwiki": user > unknown, reason: cannot generate context > > I think the error is related to the fact that in the standalone wiki all > pages have been created under the anonymous account. The production > systems authenticates against our active directory where no anonymous > account exists (just a guess). If that should be the case is there a way > to specify a user when creating the request object? > > Or maybe I am completely wrong and it isn't a good idea to just copy > pages between wiki instances? >
not completly wrong ;) you could a) use a user object and migrate to your wiki by cli or b) use xmlrpc to send content to the remote wiki. For a) you may be interested in * https://coconuts.icg.kfa-juelich.de/hg/coconuts-0.4/file/tip/Coconuts/utils/moin_cli_utils.py * http://moinmo.in/MoinAPI/Beispiele#user.User.name (if you want to have a user set this to request.user) and for b) in * https://coconuts.icg.kfa-juelich.de/hg/coconuts-0.4/file/tip/Coconuts/xmlrpc/__init__.py * http://moinmo.in/MoinAPI/Beispiele#xmlrpc > It would be great if someone could shed some light on my problem. join us on #moin, chat.freenode.net cheers Reimar > > Many thanks in advance, > > 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. > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user