Vojtěch Trefný | 18 May 20:39
Picon

Activate timing.log

Hi,

because I'm experiencing some performace issues with my moinmoin wiki,
I've tried to enable timing.log feature. I've added "log_timing =
True" to my wikiconfig (and my SystemInfo page shows it set), but the
timing.log wasn't created.

I've tried fresh installation of MoinMoin 1.9.3 on localhost and got
same problem, so it seems to me, I've forgot some configuration steps,
but only information I can find is one paragraph in 1.5.8 changelog
saying I need only set the log_timing variable.

MoinMoin version: 1.9.3, Python 2.6.6, System: Debian

Sorry, for my english, I know it's terrible, but I hope it's possible
to understand. Thanks for help.

--

-- 
Regards

Vojtěch Trefný

------------------------------------------------------------------------------
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
(Continue reading)

Yongbiao Long | 12 May 18:29
Picon

How to create a batch of accounts quickly

Hello, I installed moinmoin on a debian machine. It will be used
only in a small group (about 100 person) in campus. I want to
create an account for each of them in advance.

I have a list email addresses. Can I create accounts given that?

I have low security requirements, so the username and password
can just be same as the name of their email address.

--
Best Regards

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Kai Jaeger | 12 May 14:49
Favicon

Selecting text

I would like to give the user an opportunity to select text. More
precisely: program code.
Of course I would prefer a button "Copy code" but I don't want a Flash
or a Java solution and simple JavaScript solutions seem to work only
in Internet Explorer.

Anyway, my audience are programmers, selecting the text as a result of
a click on a "Hightlight code" button is okay, they can press Crl+C
themselves.

I found some JavaScript which seems to be doing what I am after. All I
need to do is to create a link or a button that executes that piece of
JavaScript.

I took a naive approach:

{{{#!html
<button onclick="javascript:fnSelect('code01');">Hightlight Code</button>
}}}

Unfortunately Moin changes this code into
<button>Hightlight Code</button>
which naturally has no affect at all.

What is the right way to do this? My guess is that it cannot be done
without some Python code which in turn calls the JavaScript code?

Kai

------------------------------------------------------------------------------
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/
Matt Savigear | 5 May 00:29

Adding an ID to a parsed HTML entity

Hi,

I'm trying to find the easiest way to generate a "tree style" table of 
contents for my MoinMoin instance. What I need is a series of nested 
accordions or a full on tree with open/close widgets to the left as you 
would find in a standard folder-type or directory browser.

Now, I can easily create nested lists using the default wiki parser, but 
I'd like to know if there is a way of adding an "id" tag to the top 
level <ul> which is created (i.e. <ul id="myidentifier">) without 
manually building the whole list structure from scratch in HTML and 
having to manually create the page links.

That way I can just add a jQuery jsTree and convert the whole nested 
list structure in one shot: $('#myidentifier').jstree();

Of course, then I'll need to figure out how to persist the list state 
between page transition, but I think there's already a cookie method for 
doing that built in to the jsTree code.

Thanks for any pointers,

Matt.

------------------------------------------------------------------------------
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/
Picon
Favicon

Diagnose and fix performance problems?

Hello MoinMoin -


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.

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!

Best, Chris MacMinn
------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Manfred Lotz | 26 Apr 14:28
Picon
Favicon

Print a page in moinmoin

Hi there,
After happily converting my existing wiki to Moinmoin I wanted to print
a page (unfortunately I didn't test it before).

The problem I'm facing is that the print looks like a print of a
presentation page. Instead of a single A4 page I got 4 pages in
landscape.

I want the text to appear on paper as normal text in A4
portrait.

Anything, I can do to get it like I want?

--

-- 
Manfred

------------------------------------------------------------------------------
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/
Steve McIntyre | 25 Apr 19:25
Favicon

Patch to force email verification of new accounts

Hi,

Just posted a new patch to add a feature I think would be useful:

  http://moinmo.in/MoinMoinPatch/VerifyAccountCreationByEmail

If account creation includes verification of a working email address,
it should hopefully reduce the amount of drive-by spam for wiki
admins.

--

-- 
Steve McIntyre, Cambridge, UK.                                steve <at> einval.com
< liw> everything I know about UK hotels I learned from "Fawlty Towers"

------------------------------------------------------------------------------
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/
Mark Scheufele | 24 Apr 18:19
Favicon

xapian search: an unhandled win32 exception occured in w3wp.exe

Hi Moin Users,

I have enabled the xapian based search on our wiki system. I was able to build the index and I am also able to
query the index just fine. Yet when I try to update a page I get a pop message that an unhandled win32
exception occurred in w3wp.exe (IIS).

When I look at the eventlog I can see the following error details:

Exception code: 0xc00000fd
Fault offset: 0x00019dcf
Faulting process id: 0xec
Faulting application start time: 0x01cd223181c9c430
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\system32\python26.dll

After confirming the popup the change will be saved, yet the xapian index has not been updated (timestamp of
index files did not change and searching for the change not come up with a result).

I had a look at the MoinMoin xapian events (MoinMoin\events\xapian_index.py) and found out that in case of
a page update the following code is carried out:

def handle_changed(event):
    """Updates Xapian index when a page is changed"""

    request = event.request

    if request.cfg.xapian_search:
        index = _get_index(request)
        if index and index.exists():
            index.update_item(event.page.page_name)

I wrote a little script to call index.update_item(event.page.page_name). Running this script updates
the xapian index yet following exception occurs:

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

sys.path.append("c:\moin")

from MoinMoin.web import contexts
from MoinMoin.Page import Page

class ScriptContext(contexts.AllContext):
	"""
	added REMOTE_USER to wsgi environ
	"""
	def __init__(self, user, url=None, pagename=''):
		if url is None:
			url='http://localhost:0/' # just some somehow valid dummy URL
		environ=contexts.create_environ(base_url=url) # XXX not sure about base_url, but makes "make
underlay" work
		environ['HTTP_USER_AGENT']='CLI/Script'
		environ['wsgi.input']=sys.stdin
		environ['REMOTE_USER']=user
		request=contexts.Request(environ)
		super(ScriptContext, self).__init__(request)
		from MoinMoin import wsgiapp
		wsgiapp.init(self)

def _get_index(request):
	try:
		from MoinMoin.search.Xapian import XapianIndex
		return XapianIndex(request)
	except ImportError:
		pass

if __name__ == '__main__':
	request=ScriptContext("mscheufe")
	if request.cfg.xapian_search:
		index=_get_index(request)
		if index and index.exists():
			page=Page(request,"SANDBOX/fred2/test")
			index.update_item(page.page_name)

It someone could give me a hint how to get the xapian based search running on a windows system with the
following spec:

- moin 1.9.3
- python 2.6.6
- xapian bindings for Python from here http://www.flax.co.uk/xapian/128/xapian-python-bindings%20for%20Python%202.4.4%20-1.2.8.win32.exe
- IIS 7.5 running moin using isapi_wsgi

Best Regards,

mark
_______________________________________________________________________________________

Dialog Semiconductor GmbH
Neue Str. 95
D-73230 Kirchheim
Managing Directors: Dr. Jalal Bagherli, Jean-Michel Richard
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.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
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/
Zbynek Winkler | 23 Apr 18:06
Picon

Patches to moin-2.0

Hello.

I have added some issues to the issue tracker for moin-2.0 recently. 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? 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. What it the preferred way to cooperate, get feedback etc.?
Zbyněk
------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Steve McIntyre | 15 Apr 21:44
Favicon

Very slow page saving caused by notifications

Hi,

I've posted a bug at

  http://moinmo.in/MoinMoinBugs/SubscribedPagesPerformanceProblem

Quick summary:

On a site with a large number of registered users
(e.g. wiki.debian.org), saving a page taks a very long time. With a
large number of users, the design of the page subscription system
doesn't scale well. Saving a page works well, but moin then scans all
the user data files looking for the subscribed_pages data. With
thousands of users registered, this can take a very long time; we're
seeing > 90 seconds on a wiki with more than 10,000 users.

This area needs fixing in some way - maybe add a cache in front of the
user lookup here, or store the subscribed_pages information
differently. I might be able to help with coding this, but I'd want to
see what other people think first in terms of a design.

What do people think?

--

-- 
Steve McIntyre, Cambridge, UK.                                steve <at> einval.com
Can't keep my eyes from the circling sky,
Tongue-tied & twisted, Just an earth-bound misfit, I...

------------------------------------------------------------------------------
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
Manfred Lotz | 8 Apr 18:43
Picon
Favicon

How to list subpages

Hi all,
Is there a way to list all subpages of a specific page?

--

-- 
Manfred

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

Gmane