From rick.vanderveer at gmail.com Wed Sep 2 17:31:02 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Wed, 2 Sep 2009 16:31:02 -0500 Subject: [Moin-user] LDAP on Windows? Message-ID: <5c39e1ca0909021431m2664e6advf06c459a36984f8c@mail.gmail.com> This is what I hope is a silly one. I'm trying to change authentication on my wiki to be based on LDAP. I've configured and pasted in the snippet into my farmconfig.py file. When I try to go to the site, it immediately displays "No module named ldap". Am I missing something fundamental here? -Rick Here's the trace: --> --> ImportError No module named ldap If you want to report a bug, please save this page and attach it to your bug report. Show debugging information Report bug Visit MoinMoin wiki Traceback A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. D:\Python26\lib\site-packages\MoinMoin\request\request_wsgi.py in __init__ (self=, env={'COMSPEC': r'C:\WINNT\system32\cmd.exe', 'DOCUMENT_ROOT': 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'wikibeta.cognitivearts.com', 'HTTP_REFERER': 'http://wikibeta.cognitivearts.com/bigclient/home', ...}) 33 34 self._setup_vars_from_std_env(env) 35 RequestBase.__init__(self, {}) 36 37 except Exception, err: global RequestBase = RequestBase.__init__ = self = D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in __init__ (self=, properties={}, given_config=None) 164 self.__dict__.update(properties) 165 try: 166 self._load_multi_cfg(given_config) 167 except error.NoConfigMatchedError: 168 self.makeForbidden(404, 'No wiki configuration matching the URL found!\r\n') self = self._load_multi_cfg = > given_config = None D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in _load_multi_cfg (self=, given_config=None) 360 if given_config is None: 361 self.clock.start('load_multi_cfg') 362 self.cfg = multiconfig.getConfig(self.url) 363 self.clock.stop('load_multi_cfg') 364 else: self = self.cfg undefined global multiconfig = multiconfig.getConfig = self.url = 'wikibeta.cognitivearts.com/bigclient/home' D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in getConfig (url='wikibeta.cognitivearts.com/bigclient/home') 185 @return: config object for specific wiki 186 """ 187 cfgName = _getConfigName(url) 188 try: 189 cfg = _config_cache[cfgName] cfgName undefined global _getConfigName = url = 'wikibeta.cognitivearts.com/bigclient/home' D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in _getConfigName (url='wikibeta.cognitivearts.com/bigclient/home') 167 def _getConfigName(url): 168 """ Return config name for url or raise """ 169 for name, regex in _url_re_list(): 170 match = regex.match(url) 171 if match: name undefined regex undefined global _url_re_list = D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in _url_re_list () 78 if _url_re_cache is None: 79 try: 80 farmconfig, _farmconfig_mtime = _importConfigModule('farmconfig') 81 except ImportError, err: 82 if 'farmconfig' in str(err): farmconfig undefined global _farmconfig_mtime = None global _importConfigModule = D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in _importConfigModule (name='farmconfig') 44 """ 45 try: 46 module = __import__(name, globals(), {}) 47 mtime = os.path.getmtime(module.__file__) 48 except ImportError: module undefined builtin __import__ = name = 'farmconfig' builtin globals = d:\moin\farmconfig.py in () 104 # from the DefaultConfig, except those we explicitely define different. 105 106 class FarmConfig(DefaultConfig): 107 108 # Critical setup --------------------------------------------------- FarmConfig undefined DefaultConfig = None d:\moin\farmconfig.py in FarmConfig () 166 167 from MoinMoin.auth import MoinAuth 168 from MoinMoin.auth.ldap_login import LDAPAuth 169 ldap_authenticator1 = LDAPAuth( 170 # the values shown below are the DEFAULT values (you may remove them if you are happy with them), MoinMoin undefined LDAPAuth undefined D:\Python26\lib\site-packages\MoinMoin\auth\ldap_login.py in () 22 23 try: 24 import ldap 25 except ImportError, err: 26 logging.error("You need to have python-ldap installed (%s)." % str(err)) ldap undefined ImportError No module named ldap args = ('No module named ldap',) message = 'No module named ldap' System Details Date: Wed, 02 Sep 2009 21:19:18 +0000 Platform: win32 (nt) Python: Python 2.6.2 (C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe) MoinMoin: Release 1.8.2 (release) From rick.vanderveer at gmail.com Wed Sep 2 17:45:49 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Wed, 2 Sep 2009 16:45:49 -0500 Subject: [Moin-user] LDAP on Windows? In-Reply-To: <5c39e1ca0909021431m2664e6advf06c459a36984f8c@mail.gmail.com> References: <5c39e1ca0909021431m2664e6advf06c459a36984f8c@mail.gmail.com> Message-ID: <5c39e1ca0909021445rfff7d55ud12a1e17367d876e@mail.gmail.com> Please ignore. It turns out I am indeed missing something fundamental here. Somehow I missed the line on HelpOnAuthentication that I need python-ldap installed. Huh. Apologies for the interruption. -Rick On Wed, Sep 2, 2009 at 4:31 PM, Rick Vanderveer wrote: > This is what I hope is a silly one. > > I'm trying to change authentication on my wiki to be based on LDAP. > I've configured and pasted in the snippet into my farmconfig.py file. > When I try to go to the site, it immediately displays "No module named > ldap". ?Am I missing something fundamental here? > > -Rick > From tcataldo at bham.lib.al.us Wed Sep 2 17:32:32 2009 From: tcataldo at bham.lib.al.us (Tobin Cataldo) Date: Wed, 02 Sep 2009 16:32:32 -0500 Subject: [Moin-user] LDAP on Windows? In-Reply-To: <5c39e1ca0909021431m2664e6advf06c459a36984f8c@mail.gmail.com> References: <5c39e1ca0909021431m2664e6advf06c459a36984f8c@mail.gmail.com> Message-ID: <4A9EE470.8060002@bham.lib.al.us> Do you have python-ldap module (http://pypi.python.org/pypi/python-ldap/) ? Rick Vanderveer wrote: > This is what I hope is a silly one. > > I'm trying to change authentication on my wiki to be based on LDAP. > I've configured and pasted in the snippet into my farmconfig.py file. > When I try to go to the site, it immediately displays "No module named > ldap". Am I missing something fundamental here? > > -Rick > > > > Here's the trace: > > --> --> > ImportError > No module named ldap > > If you want to report a bug, please save this page and attach it to > your bug report. > > Show debugging information Report bug Visit MoinMoin wiki > Traceback > A problem occurred in a Python script. Here is the sequence of > function calls leading up to the error, in the order they occurred. > > D:\Python26\lib\site-packages\MoinMoin\request\request_wsgi.py in > __init__ (self= 0x01BDC390>, env={'COMSPEC': r'C:\WINNT\system32\cmd.exe', > 'DOCUMENT_ROOT': 'C:/Program Files/Apache Software > Foundation/Apache2.2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', > 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', > 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': > 'en-US', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': > 'keep-alive', 'HTTP_HOST': 'wikibeta.cognitivearts.com', > 'HTTP_REFERER': 'http://wikibeta.cognitivearts.com/bigclient/home', > ...}) > > 33 > 34 self._setup_vars_from_std_env(env) > 35 RequestBase.__init__(self, {}) > 36 > 37 except Exception, err: > global RequestBase = > RequestBase.__init__ = self = > > D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in __init__ > (self=, > properties={}, given_config=None) > > 164 self.__dict__.update(properties) > 165 try: > 166 self._load_multi_cfg(given_config) > 167 except error.NoConfigMatchedError: > 168 self.makeForbidden(404, 'No wiki configuration > matching the URL found!\r\n') > self = > self._load_multi_cfg = > > given_config = None > D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in > _load_multi_cfg (self= 0x01BDC390>, given_config=None) > > 360 if given_config is None: > 361 self.clock.start('load_multi_cfg') > 362 self.cfg = multiconfig.getConfig(self.url) > 363 self.clock.stop('load_multi_cfg') > 364 else: > self = > self.cfg undefined global multiconfig = 'MoinMoin.config.multiconfig' from > 'D:\P...b\site-packages\MoinMoin\config\multiconfig.pyc'> > multiconfig.getConfig = self.url = > 'wikibeta.cognitivearts.com/bigclient/home' > D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in > getConfig (url='wikibeta.cognitivearts.com/bigclient/home') > > 185 @return: config object for specific wiki > 186 """ > 187 cfgName = _getConfigName(url) > 188 try: > 189 cfg = _config_cache[cfgName] > cfgName undefined global _getConfigName = 0x01BD7F70> url = 'wikibeta.cognitivearts.com/bigclient/home' > D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in > _getConfigName (url='wikibeta.cognitivearts.com/bigclient/home') > > 167 def _getConfigName(url): > 168 """ Return config name for url or raise """ > 169 for name, regex in _url_re_list(): > 170 match = regex.match(url) > 171 if match: > name undefined regex undefined global _url_re_list = _url_re_list at 0x01BD7EF0> > D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in _url_re_list () > > 78 if _url_re_cache is None: > 79 try: > 80 farmconfig, _farmconfig_mtime = > _importConfigModule('farmconfig') > 81 except ImportError, err: > 82 if 'farmconfig' in str(err): > farmconfig undefined global _farmconfig_mtime = None global > _importConfigModule = > D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in > _importConfigModule (name='farmconfig') > > 44 """ > 45 try: > 46 module = __import__(name, globals(), {}) > 47 mtime = os.path.getmtime(module.__file__) > 48 except ImportError: > module undefined builtin __import__ = > name = 'farmconfig' builtin globals = > d:\moin\farmconfig.py in () > > 104 # from the DefaultConfig, except those we explicitely define different. > 105 > 106 class FarmConfig(DefaultConfig): > 107 > 108 # Critical setup --------------------------------------------------- > FarmConfig undefined DefaultConfig = None > d:\moin\farmconfig.py in FarmConfig () > > 166 > 167 from MoinMoin.auth import MoinAuth > 168 from MoinMoin.auth.ldap_login import LDAPAuth > 169 ldap_authenticator1 = LDAPAuth( > 170 # the values shown below are the DEFAULT values (you > may remove them if you are happy with them), > MoinMoin undefined LDAPAuth undefined > D:\Python26\lib\site-packages\MoinMoin\auth\ldap_login.py in () > > 22 > 23 try: > 24 import ldap > 25 except ImportError, err: > 26 logging.error("You need to have python-ldap installed > (%s)." % str(err)) > ldap undefined > ImportError > No module named ldap > > args = ('No module named ldap',) > message = 'No module named ldap' > System Details > Date: Wed, 02 Sep 2009 21:19:18 +0000 > Platform: win32 (nt) > Python: Python 2.6.2 (C:\Program Files\Apache Software > Foundation\Apache2.2\bin\httpd.exe) > MoinMoin: Release 1.8.2 (release) > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > > From steveo at syslang.net Fri Sep 4 00:22:20 2009 From: steveo at syslang.net (Steven W. Orr) Date: Fri, 04 Sep 2009 00:22:20 -0400 Subject: [Moin-user] Problem with BadContent Message-ID: <4AA095FC.1000909@syslang.net> I just updated to 1.84 from 1.8.0 I'm am seeing a lot of this: [Thu Sep 03 23:44:42 2009] [error] 2009-09-03 23:44:42,827 MoinMoin.security.antispam INFO 1252034082 *BadContent too old, have to check for an update... In /e/web/frambors/nicciwiki/underlay/pages I have: [root at saturn pages]# ls -l BadContent/ total 8 -rw-r--r-- 1 apache apache 9 Jun 9 15:49 current drwxr-xr-x 2 apache apache 4096 Sep 2 23:06 revisions [root at saturn pages]# cat BadContent/current 00000001 [root at saturn pages]# cat BadContent/revisions/00000001 [root at saturn pages]# ls -l BadContent/revisions/00000001 -rw-r--r-- 1 apache apache 84893 Jun 9 15:49 BadContent/revisions/00000001 [root at saturn pages]# And in /e/web/frambors/nicciwiki/data/pages I have [root at saturn pages]# ls -l BadContent/ total 20 drwxr-x--- 2 apache apache 4096 Jul 31 11:34 cache -rw-rw---- 1 apache apache 9 Jul 31 00:54 current -rw-r----- 1 apache apache 7433 Jul 31 00:54 edit-log drwxrwx--- 2 apache apache 4096 Nov 6 2008 revisions [root at saturn pages]# cat BadContent/current 00000014 [root at saturn pages]# ls -l BadContent/revisions/00000014 -rw-r----- 1 apache apache 85853 Jul 31 00:54 BadContent/revisions/00000014 I do have from MoinMoin.security.antispam import SecurityPolicy in my wikiconfig.py Can someone please tell me what to do? TIA -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tw-public at gmx.de Fri Sep 4 05:50:57 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 04 Sep 2009 11:50:57 +0200 Subject: [Moin-user] Problem with BadContent In-Reply-To: <4AA095FC.1000909@syslang.net> References: <4AA095FC.1000909@syslang.net> Message-ID: <1252057857.14463.19.camel@x300> Hi Steven, > [Thu Sep 03 23:44:42 2009] [error] 2009-09-03 23:44:42,827 > MoinMoin.security.antispam INFO 1252034082 *BadContent too old, have to check > for an update... The update check happens if someone does a page save. It just wants to make sure that it has the latest antispam patterns before it checks the new content against them. Your BadContent seems to be fresh enough, though, see there: http://master18.moinmo.in/4ct10n/info/BadContent?action=info There was no update since July. But your wiki can't know that without checking periodically. BTW, the log level is INFO, this is just informative, it is not an error. The "[error]" likely comes from apache who received this output on stderr, which is the default logging output of moin. > Can someone please tell me what to do? Just ignore those messages. If you can't live with them, raise your logging level to WARNING. BTW, you only need antispam for wiki reachable from the internet. If your wiki is intranet only or heavily protected by login / ACLs, you rather don't need it. For spam protection please also consider using TextChas, see HelpOnTextChas. If you configure some site-specific and not too easy questions, they are a better protection than antispam secpol. Cheers, Thomas From rick.vanderveer at gmail.com Fri Sep 4 18:43:32 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Fri, 4 Sep 2009 17:43:32 -0500 Subject: [Moin-user] authenticating from multiple sources Message-ID: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> I'm trying to get a wiki configured that will allow multiple authentication methods. ?According to HelpOnAuthentication, this should be possible by combining multiple auths. background: I want a wiki that is shared between internal users (authenticating off of LDAP), and clients (which I would hand-create an account for), and then using acl_rights_before and acl_rights_default to control access. I've tested both authentication methods separately, and they work fine (i.e. in default auth, I'm able to create new accounts. ?In LDAP, I'm able to login). The problem: When I merge the two, the standard auth users are no longer able to log in. The LDAP users get an "Invalid username or password" error, BUT does successfully log in (they're able to click the "clear message" link and continue just fine). Any thoughts? Here's the relevent snippet from my farmconfig.py: ? ?from MoinMoin.auth import MoinAuth ? ?from MoinMoin.auth.ldap_login import LDAPAuth ? ?ldap_authenticator1 = LDAPAuth( ? ? ? ?server_uri='ldap://172.25.60.8', ?# ldap / active directory server URI ? ? ? ?bind_dn='%(username)s at cogarts.us.niit.com', ?# We can either use some fixed user and password for binding to LDAP. ? ? ? ?bind_pw='%(password)s', ? ? ? ?base_dn='dc=cogarts,dc=us,dc=niit,dc=com', ?# base DN we use for searching ? ? ? ?scope=2, # scope of the search we do (2 == ldap.SCOPE_SUBTREE) ? ? ? ?referrals=0, # LDAP REFERRALS (0 needed for AD) ? ? ? ?search_filter='(sAMAccountName=%(username)s)', ?# ldap filter used for searching: ? ? ? ?givenname_attribute=None, ? ? ? ?surname_attribute=None, ? ? ? ?aliasname_attribute=None, ? ? ? ?email_attribute=None, ? ? ? ?email_callback=None, ? ? ? ?coding='utf-8', ? ? ? ?timeout=10, ? ? ? ?start_tls=0, ? ? ? ?tls_cacertdir='', ? ? ? ?tls_cacertfile='', ? ? ? ?tls_certfile='', ? ? ? ?tls_keyfile='', ? ? ? ?tls_require_cert=0, ? ? ? ?bind_once=False, ? ? ? ?autocreate=True, ? ?) ? ?auth = [MoinAuth(), ldap_authenticator1, ] # this is a list, you may have multiple ldap authenticators ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # as well as other authenticators ? ?cookie_lifetime = 1 # 1 hour after last access ldap login is required again From steveo at syslang.net Fri Sep 4 20:58:55 2009 From: steveo at syslang.net (Steven W. Orr) Date: Fri, 04 Sep 2009 20:58:55 -0400 Subject: [Moin-user] Problem with BadContent In-Reply-To: <1252057857.14463.19.camel@x300> References: <4AA095FC.1000909@syslang.net> <1252057857.14463.19.camel@x300> Message-ID: <4AA1B7CF.60506@syslang.net> On 09/04/09 05:50, quoth Thomas Waldmann: > Hi Steven, > >> [Thu Sep 03 23:44:42 2009] [error] 2009-09-03 23:44:42,827 >> MoinMoin.security.antispam INFO 1252034082 *BadContent too old, have to check >> for an update... > > The update check happens if someone does a page save. It just wants to > make sure that it has the latest antispam patterns before it checks the > new content against them. > > Your BadContent seems to be fresh enough, though, see there: > > http://master18.moinmo.in/4ct10n/info/BadContent?action=info > > There was no update since July. But your wiki can't know that without > checking periodically. > > BTW, the log level is INFO, this is just informative, it is not an > error. The "[error]" likely comes from apache who received this output > on stderr, which is the default logging output of moin. > >> Can someone please tell me what to do? > > Just ignore those messages. If you can't live with them, raise your > logging level to WARNING. > > BTW, you only need antispam for wiki reachable from the internet. > If your wiki is intranet only or heavily protected by login / ACLs, you > rather don't need it. > > For spam protection please also consider using TextChas, see > HelpOnTextChas. If you configure some site-specific and not too easy > questions, they are a better protection than antispam secpol. Thank you Thomas. I wanted to close the loop for future people who have the same question. One concern I had was that the fetch might be happening from another port besides 80. I saw some funny port numbers that were being dropped by my firewall. Closer inspection showed it was the script kiddies usual games. Also, thanks for the TextChas. I initially got drowned in Asian ads for ground up endangered animal parts. Most of that stuff was halted by the TextChas. -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tw-public at gmx.de Sat Sep 5 07:22:25 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Sat, 05 Sep 2009 13:22:25 +0200 Subject: [Moin-user] authenticating from multiple sources In-Reply-To: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> References: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> Message-ID: <1252149745.24659.20.camel@x300> Hi Rick, > I'm trying to get a wiki configured that will allow multiple > authentication methods. According to HelpOnAuthentication, this > should be possible by combining multiple auths. It should be, but especially ldap auth is maybe not flexible enough and defaults to a rather "authoritative" behaviour: if it tells "no", it is "no". Changing this needs thinking through different scenarios, like: * mixing ldap and other authenticators * mixing different ldap authenticators * having multiple ldap authenticators with same content (like pdc, bdc) The problem is that I personally don't use ldap auth and have no test environment, thus well-tested improvements are very welcome. > When I merge the two, the standard auth users are no longer able to > log in. The LDAP users get an "Invalid username or password" error, > BUT does successfully log in (they're able to click the "clear > message" link and continue just fine). That is because you use it as last authenticator, the authenticator that ran before it already created a user object. > givenname_attribute=None, > surname_attribute=None, > aliasname_attribute=None, > email_attribute=None, You maybe want to use some of these, so it creates/updates user profile with the data from ldap. > tls_cacertdir='', > tls_cacertfile='', > tls_certfile='', > tls_keyfile='', Look there: http://hg.moinmo.in/moin/1.8/rev/e42fc41f71a4 Cheers, Thomas From George-Sava.Brancovici at eads.com Mon Sep 7 04:51:38 2009 From: George-Sava.Brancovici at eads.com (Brancovici, George-Sava Dr.) Date: Mon, 7 Sep 2009 10:51:38 +0200 Subject: [Moin-user] Parameterizable link to a different page in the actions toolbar Message-ID: Hi, I'm trying to use the space and extend the actions toolbar to the right of the "More actions" combo box with something like a link (or button, etc) to a certain target page. The linked page should differ, depending on the page on which the user currently is. E.g. if the user is on the "McDonalds" wiki page, the link will target the "FastFoodRestaurants" wiki page. There are two catches: - the linked page is not necessarily the "parent" page, it should be parameterizable e.g. through a variable defined by the editor on each page. - the link should be on the actions toolbar or somwehere in the upper part of each page, in order to optimize space usage. Do you have any ideas about how to accomplish this? Thanks! George -------------- next part -------------- An HTML attachment was scrubbed... URL: From waqas805 at hotmail.com Mon Sep 7 11:33:35 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Mon, 7 Sep 2009 17:33:35 +0200 Subject: [Moin-user] MoinDump Message-ID: Hi, I am using moinmoin with: Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k mod_wsgi/2.3 Python/2.5.2 mod_auth_sspi/1.0.4 I have read this page http://moinmo.in/HelpOnMoinCommand/ExportDump. I need this functionality really. I tried to export pages into html but not succeeded. I have followed all steps which were mentioned in the above document. 1. Created one output dir= C:/temp/moinexport 2. Created attachments folder under moinexport = C:/temp/moinexport/attachments 3. Paste the default theme folder under moinexport with its subfolder ?css? and ?img? = C:/TEMP/moinexport/modern 4. Now I run the following command C:\Python25\Lib\site-packages\MoinMoin\script>moin.py --config-dir=C:/Moin/supwiki --wiki-url=https://localhost/supwiki export dump --page=CatAuthors --target=C:/temp/moinexport 5. Now I got following message 2009-09-07 17:07:49,318 WARNING MoinMoin.log:139 using logging configuration rea d from built-in fallback in MoinMoin.log module! 2009-09-07 17:07:49,631 INFO MoinMoin.config.multiconfig:125 using wiki config: C:\Moin\supwiki\wikiconfig.pyc Writing "CatAuthors.html"... All are working very fine till here. Now I go to the target folder and open the index.html. It is showing me the name of my front page of wiki as a link with other two links: TitelIndex and WordIndex. And top of this html page CatAuthors (simple text) is mentioned and footer of the page has Timestamp. nothing more. Now I open the CatAuthors.html page and it is also the same page like index.html. Now I check the attachments folder and it is also empty. Actually this CatAuthors page has also attachments in my wiki. Here is also one file error.log. it is also empty. The exported html pages don?t have the contents and attachments of the pages. Can you please guide me, where I am missing the important steps? I shall be thankful to you. Best Regards, Waqas Ahmad _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From steveo at syslang.net Mon Sep 7 16:15:10 2009 From: steveo at syslang.net (Steven W. Orr) Date: Mon, 07 Sep 2009 16:15:10 -0400 Subject: [Moin-user] Question about how to add an RSS feed. Message-ID: <4AA569CE.8020607@syslang.net> I looked on google but I didn't understand what I was reading. People already have the ability to subscribe to pages. I'd like to offer to them the ability to subscribe via an rss feed. I saw this http://wiki.python.org/moin/RssLibraries but I think this is a way of turning moin into a wiki reader. What I want is to allow people to use their own rss readers, (e.g., firefox, thunderbird) to sub to a particular moin page so that the page would go to them. The existing functionality seems to only give you all pages via the "Recent Changes" button. Is this doable? And does it make sense to pursue this? Or should I just tell people to stay with the subscribe idea? TIA -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From rick.vanderveer at gmail.com Tue Sep 8 15:24:05 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Tue, 8 Sep 2009 14:24:05 -0500 Subject: [Moin-user] authenticating from multiple sources In-Reply-To: <1252149745.24659.20.camel@x300> References: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> <1252149745.24659.20.camel@x300> Message-ID: <5c39e1ca0909081224i11e5633aw983d100a438157ee@mail.gmail.com> Thanks for the reply, Thomas. As my grandfather would say; "well, crap." :-) That forces me to re-think how clients and internal users login. As a stop-gap, I've set it to the default authenticator (from MoinMoin.auth import MoinAuth). Which brings me to my next question: Is there an easy way so that only I (or some other trusted admins) can create user accounts? I don't want any account self-created, I want the handful to be created only by those with admin rights. I understand how to set and configure the acl_rights_default so that non-trusted users cannot view pages, but also don't want people even trying to create accounts. Many versions ago, this was easily done by setting the ACL on the UserPreferences page. But that's not used anymore, obviously. Maybe restrict access to the newaccount action? Or similar technique? (sorry, it's been a while since I've configured a wiki in this way). -Rick On Sat, Sep 5, 2009 at 6:22 AM, Thomas Waldmann wrote: > Hi Rick, > >> I'm trying to get a wiki configured that will allow multiple >> authentication methods. ?According to HelpOnAuthentication, this >> should be possible by combining multiple auths. > > It should be, but especially ldap auth is maybe not flexible enough and > defaults to a rather "authoritative" behaviour: if it tells "no", it is > "no". > > Changing this needs thinking through different scenarios, like: > ?* mixing ldap and other authenticators > ?* mixing different ldap authenticators > ?* having multiple ldap authenticators with same content (like pdc, bdc) > > The problem is that I personally don't use ldap auth and have no test > environment, thus well-tested improvements are very welcome. > >> When I merge the two, the standard auth users are no longer able to >> log in. The LDAP users get an "Invalid username or password" error, >> BUT does successfully log in (they're able to click the "clear >> message" link and continue just fine). > > That is because you use it as last authenticator, the authenticator that > ran before it already created a user object. > >> ? ? ? ?givenname_attribute=None, >> ? ? ? ?surname_attribute=None, >> ? ? ? ?aliasname_attribute=None, >> ? ? ? ?email_attribute=None, > > You maybe want to use some of these, so it creates/updates user profile > with the data from ldap. > >> ? ? ? ?tls_cacertdir='', >> ? ? ? ?tls_cacertfile='', >> ? ? ? ?tls_certfile='', >> ? ? ? ?tls_keyfile='', > > Look there: http://hg.moinmo.in/moin/1.8/rev/e42fc41f71a4 > > Cheers, > > Thomas > > > From rb.proj at gmail.com Wed Sep 9 04:01:44 2009 From: rb.proj at gmail.com (R.Bauer) Date: Wed, 09 Sep 2009 10:01:44 +0200 Subject: [Moin-user] authenticating from multiple sources In-Reply-To: <5c39e1ca0909081224i11e5633aw983d100a438157ee@mail.gmail.com> References: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> <1252149745.24659.20.camel@x300> <5c39e1ca0909081224i11e5633aw983d100a438157ee@mail.gmail.com> Message-ID: Rick Vanderveer schrieb: > Thanks for the reply, Thomas. As my grandfather would say; "well, crap." :-) > > That forces me to re-think how clients and internal users login. As > a stop-gap, I've set it to the default authenticator (from > MoinMoin.auth import MoinAuth). Which brings me to my next question: > > Is there an easy way so that only I (or some other trusted admins) can > create user accounts? you could disable the newaccount action and create users by the moin command on the server. If you need it web based you can hack the action macro and add a condition that a superuser account is required to call it. Also you can use a TextCha questions which only the community involved in the wiki content can answer. I do prefer the last solution. cheers Reimar I don't want any account self-created, I want > the handful to be created only by those with admin rights. I > understand how to set and configure the acl_rights_default so that > non-trusted users cannot view pages, but also don't want people even > trying to create accounts. Many versions ago, this was easily done by > setting the ACL on the UserPreferences page. But that's not used > anymore, obviously. Maybe restrict access to the newaccount action? > Or similar technique? (sorry, it's been a while since I've configured > a wiki in this way). > > -Rick > > > > > > On Sat, Sep 5, 2009 at 6:22 AM, Thomas Waldmann wrote: >> Hi Rick, >> >>> I'm trying to get a wiki configured that will allow multiple >>> authentication methods. According to HelpOnAuthentication, this >>> should be possible by combining multiple auths. >> It should be, but especially ldap auth is maybe not flexible enough and >> defaults to a rather "authoritative" behaviour: if it tells "no", it is >> "no". >> >> Changing this needs thinking through different scenarios, like: >> * mixing ldap and other authenticators >> * mixing different ldap authenticators >> * having multiple ldap authenticators with same content (like pdc, bdc) >> >> The problem is that I personally don't use ldap auth and have no test >> environment, thus well-tested improvements are very welcome. >> >>> When I merge the two, the standard auth users are no longer able to >>> log in. The LDAP users get an "Invalid username or password" error, >>> BUT does successfully log in (they're able to click the "clear >>> message" link and continue just fine). >> That is because you use it as last authenticator, the authenticator that >> ran before it already created a user object. >> >>> givenname_attribute=None, >>> surname_attribute=None, >>> aliasname_attribute=None, >>> email_attribute=None, >> You maybe want to use some of these, so it creates/updates user profile >> with the data from ldap. >> >>> tls_cacertdir='', >>> tls_cacertfile='', >>> tls_certfile='', >>> tls_keyfile='', >> Look there: http://hg.moinmo.in/moin/1.8/rev/e42fc41f71a4 >> >> Cheers, >> >> Thomas >> >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july From rb.proj at gmail.com Wed Sep 9 04:08:08 2009 From: rb.proj at gmail.com (R.Bauer) Date: Wed, 09 Sep 2009 10:08:08 +0200 Subject: [Moin-user] Parameterizable link to a different page in the actions toolbar In-Reply-To: References: Message-ID: Brancovici, George-Sava Dr. schrieb: > Hi, > > I'm trying to use the space and extend the actions toolbar to the right > of the "More actions" combo box with something like a link (or button, > etc) to a certain target page. The linked page should differ, depending > on the page on which the user currently is. E.g. if the user is on the > "McDonalds" wiki page, the link will target the "FastFoodRestaurants" > wiki page. > > There are two catches: > - the linked page is not necessarily the "parent" page, it should be > parameterizable e.g. through a variable defined by the editor on each > page. can be done by a pragma defintition on the page #pragma restaurant "McDonalds" wikiutil.escape(self.request.getPragma('restaurant', defval='')) > - the link should be on the actions toolbar or somwehere in the upper > part of each page, in order to optimize space usage. look at theme.__init__.editbarItems search for Discussion for an example. cheers Reimar > > Do you have any ideas about how to accomplish this? > > Thanks! > George > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user From George-Sava.Brancovici at eads.com Wed Sep 9 05:35:17 2009 From: George-Sava.Brancovici at eads.com (Brancovici, George-Sava Dr.) Date: Wed, 9 Sep 2009 11:35:17 +0200 Subject: [Moin-user] Parameterizable link to a different page in theactions toolbar Message-ID: What I did was to put the pragma on the page, extend the editbar with a new item "ParentPage" which is connected to a new action called Parent, defined in Parent.py. It does get called. The problem is that the "restaurant" parameter defined with the pragma seems wo be empty within the execute function in Parent.py. How do I properly access the "restaurant" parameter in the Parent.py action? Thanks! PS: Sorry for the previous two messages sent to your personal address. > > > -----Original Message----- > > From: R.Bauer [mailto:rb.proj at gmail.com] > > Sent: Wednesday, September 09, 2009 10:08 AM > > To: moin-user at lists.sourceforge.net > > Subject: Re: [Moin-user] Parameterizable link to a > different page in > > theactions toolbar > > > > Brancovici, George-Sava Dr. schrieb: > > > Hi, > > > > > > I'm trying to use the space and extend the actions toolbar to the > > > right of the "More actions" combo box with something like a > > link (or > > > button, > > > etc) to a certain target page. The linked page should differ, > > > depending on the page on which the user currently is. E.g. > > if the user > > > is on the "McDonalds" wiki page, the link will target the > > "FastFoodRestaurants" > > > wiki page. > > > > > > There are two catches: > > > - the linked page is not necessarily the "parent" page, it > > should be > > > parameterizable e.g. through a variable defined by the > > editor on each > > > page. > > > > can be done by a pragma defintition on the page > > > > #pragma restaurant "McDonalds" > > > > wikiutil.escape(self.request.getPragma('restaurant', defval='')) > > > > > - the link should be on the actions toolbar or somwehere in > > the upper > > > part of each page, in order to optimize space usage. > > > > look at theme.__init__.editbarItems search for Discussion for an > > example. > > > > > > cheers > > Reimar > > > > > > > > Do you have any ideas about how to accomplish this? > > > > > > Thanks! > > > George > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > -- > > > > > > > > > ---------------------------------------------------------------------- > > > -------- Let Crystal Reports handle the reporting - Free Crystal > > > Reports 2008 30-Day trial. Simplify your report design, > integration > > > and deployment - and focus on what you do best, core application > > > coding. Discover what's new with Crystal Reports now. > > > http://p.sf.net/sfu/bobj-july > > > > > > > > > > > > ---------------------------------------------------------------------- > > > -- > > > > > > _______________________________________________ > > > Moin-user mailing list > > > Moin-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/moin-user > > > > > > -------------------------------------------------------------- > > ---------------- > > Let Crystal Reports handle the reporting - Free Crystal > Reports 2008 > > 30-Day trial. Simplify your report design, integration and > deployment > > - and focus on what you do best, core application coding. Discover > > what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Moin-user mailing list > > Moin-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/moin-user > > From rb.proj at gmail.com Wed Sep 9 11:14:54 2009 From: rb.proj at gmail.com (R.Bauer) Date: Wed, 09 Sep 2009 17:14:54 +0200 Subject: [Moin-user] Parameterizable link to a different page in theactions toolbar In-Reply-To: References: Message-ID: Brancovici, George-Sava Dr. schrieb: > What I did was to put the pragma on the page, extend the > editbar with a new item "ParentPage" which is connected to a > new action called Parent, defined in Parent.py. It does get called. > > The problem is that the "restaurant" parameter defined with > the pragma seems wo be empty within the execute function in Parent.py. > > How do I properly access the "restaurant" parameter in the > Parent.py action? > If you paste your current code it is easier to talk about it. (paste.pocoo.org) May be also #moin at chat.freenode.net is an alternative to mail. cheers Reimar > Thanks! > > PS: Sorry for the previous two messages sent to your personal address. > >>> -----Original Message----- >>> From: R.Bauer [mailto:rb.proj at gmail.com] >>> Sent: Wednesday, September 09, 2009 10:08 AM >>> To: moin-user at lists.sourceforge.net >>> Subject: Re: [Moin-user] Parameterizable link to a >> different page in >>> theactions toolbar >>> >>> Brancovici, George-Sava Dr. schrieb: >>>> Hi, >>>> >>>> I'm trying to use the space and extend the actions toolbar to the >>>> right of the "More actions" combo box with something like a >>> link (or >>>> button, >>>> etc) to a certain target page. The linked page should differ, >>>> depending on the page on which the user currently is. E.g. >>> if the user >>>> is on the "McDonalds" wiki page, the link will target the >>> "FastFoodRestaurants" >>>> wiki page. >>>> >>>> There are two catches: >>>> - the linked page is not necessarily the "parent" page, it >>> should be >>>> parameterizable e.g. through a variable defined by the >>> editor on each >>>> page. >>> can be done by a pragma defintition on the page >>> >>> #pragma restaurant "McDonalds" >>> >>> wikiutil.escape(self.request.getPragma('restaurant', defval='')) >>> >>>> - the link should be on the actions toolbar or somwehere in >>> the upper >>>> part of each page, in order to optimize space usage. >>> look at theme.__init__.editbarItems search for Discussion for an >>> example. >>> >>> >>> cheers >>> Reimar >>> >>>> Do you have any ideas about how to accomplish this? >>>> >>>> Thanks! >>>> George >>>> >>>> >>>> >>>> >> ---------------------------------------------------------------------- >>>> -- >>>> >>>> >> ---------------------------------------------------------------------- >>>> -------- Let Crystal Reports handle the reporting - Free Crystal >>>> Reports 2008 30-Day trial. Simplify your report design, >> integration >>>> and deployment - and focus on what you do best, core application >>>> coding. Discover what's new with Crystal Reports now. >>>> http://p.sf.net/sfu/bobj-july >>>> >>>> >>>> >> ---------------------------------------------------------------------- >>>> -- >>>> >>>> _______________________________________________ >>>> Moin-user mailing list >>>> Moin-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/moin-user >>> >>> -------------------------------------------------------------- >>> ---------------- >>> Let Crystal Reports handle the reporting - Free Crystal >> Reports 2008 >>> 30-Day trial. Simplify your report design, integration and >> deployment >>> - and focus on what you do best, core application coding. Discover >>> what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Moin-user mailing list >>> Moin-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/moin-user >>> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july From raphael.marvie at lifl.fr Wed Sep 9 14:56:44 2009 From: raphael.marvie at lifl.fr (Raphael Marvie) Date: Wed, 09 Sep 2009 20:56:44 +0200 Subject: [Moin-user] authenticating from multiple sources In-Reply-To: References: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> <1252149745.24659.20.camel@x300> <5c39e1ca0909081224i11e5633aw983d100a438157ee@mail.gmail.com> Message-ID: <4AA7FA6C.8040102@lifl.fr> Hi, Looking for a similar setup I have looked at the TextCha documentation. I have not found if I can use the TextCha only for the new account creation operation. Have I missed something? Thanks, r. R.Bauer wrote: > Rick Vanderveer schrieb: >> Thanks for the reply, Thomas. As my grandfather would say; "well, crap." :-) >> >> That forces me to re-think how clients and internal users login. As >> a stop-gap, I've set it to the default authenticator (from >> MoinMoin.auth import MoinAuth). Which brings me to my next question: >> >> Is there an easy way so that only I (or some other trusted admins) can >> create user accounts? > > you could disable the newaccount action and create users by the moin > command on the server. > > If you need it web based you can hack the action macro and add a > condition that a superuser account is required to call it. > > Also you can use a TextCha questions which only the community involved > in the wiki content can answer. > > I do prefer the last solution. > > cheers > Reimar > > > I don't want any account self-created, I want >> the handful to be created only by those with admin rights. I >> understand how to set and configure the acl_rights_default so that >> non-trusted users cannot view pages, but also don't want people even >> trying to create accounts. Many versions ago, this was easily done by >> setting the ACL on the UserPreferences page. But that's not used >> anymore, obviously. Maybe restrict access to the newaccount action? >> Or similar technique? (sorry, it's been a while since I've configured >> a wiki in this way). >> >> -Rick >> >> >> >> >> >> On Sat, Sep 5, 2009 at 6:22 AM, Thomas Waldmann wrote: >>> Hi Rick, >>> >>>> I'm trying to get a wiki configured that will allow multiple >>>> authentication methods. According to HelpOnAuthentication, this >>>> should be possible by combining multiple auths. >>> It should be, but especially ldap auth is maybe not flexible enough and >>> defaults to a rather "authoritative" behaviour: if it tells "no", it is >>> "no". >>> >>> Changing this needs thinking through different scenarios, like: >>> * mixing ldap and other authenticators >>> * mixing different ldap authenticators >>> * having multiple ldap authenticators with same content (like pdc, bdc) >>> >>> The problem is that I personally don't use ldap auth and have no test >>> environment, thus well-tested improvements are very welcome. >>> >>>> When I merge the two, the standard auth users are no longer able to >>>> log in. The LDAP users get an "Invalid username or password" error, >>>> BUT does successfully log in (they're able to click the "clear >>>> message" link and continue just fine). >>> That is because you use it as last authenticator, the authenticator that >>> ran before it already created a user object. >>> >>>> givenname_attribute=None, >>>> surname_attribute=None, >>>> aliasname_attribute=None, >>>> email_attribute=None, >>> You maybe want to use some of these, so it creates/updates user profile >>> with the data from ldap. >>> >>>> tls_cacertdir='', >>>> tls_cacertfile='', >>>> tls_certfile='', >>>> tls_keyfile='', >>> Look there: http://hg.moinmo.in/moin/1.8/rev/e42fc41f71a4 >>> >>> Cheers, >>> >>> Thomas >>> >>> >>> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user -- Raphael Marvie LIFL - Universit? Lille 1 http://www.lifl.fr/~marvie/ +33 3 20 33 59 51 From tw-public at gmx.de Thu Sep 10 18:49:06 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 11 Sep 2009 00:49:06 +0200 Subject: [Moin-user] moin 1.8.5 released Message-ID: <1252622946.9078.0.camel@x300> See http://moinmo.in/MoinMoinDownload for the release archive and the change log. BTW, we still need much more people helping with cleaning up on master19.moinmo.in. So, especially if you speak some non-english language, you can help! See http://moinmo.in/MoinDev/Translation for details. From maillist at jarkeborn.se Fri Sep 11 02:44:48 2009 From: maillist at jarkeborn.se (Jocke) Date: Fri, 11 Sep 2009 08:44:48 +0200 Subject: [Moin-user] Prevent non-registered users to add pages In-Reply-To: References: Message-ID: <4AA9F1E0.1000706@jarkeborn.se> Hello, I have problems with my wiki that non-registered users adds new (spam) pages. Only registered users can edit pages and new user creation is blocked How can I block non-registered users to add pages? Best Regards Joacim From waqas805 at hotmail.com Fri Sep 11 10:17:38 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Fri, 11 Sep 2009 16:17:38 +0200 Subject: [Moin-user] parser problem Message-ID: Hi, I have two wikis and both are running under moinmoin184 on different systems. One wiki is giving me correct output for this parser and other not. where is the problem? I dont know why the table is not comming in the center position. One wiki is printing this table in the center of the page and other one on the left side of the page with following parser. {{{#!wiki yellow/dotted/center ||'''Know-How''' ||<#0099ff>'''General''' || }}} i also tried on wikiSand of moinmoin. table is not comming in the center of page. see here: http://moinmo.in/WikiSandBox thanks for help. Greetings, Waqas _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Fri Sep 11 10:47:33 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 11 Sep 2009 16:47:33 +0200 Subject: [Moin-user] Prevent non-registered users to add pages In-Reply-To: <4AA9F1E0.1000706@jarkeborn.se> References: <4AA9F1E0.1000706@jarkeborn.se> Message-ID: <1252680453.6347.12.camel@server.firma.waldmann-edv.de> > I have problems with my wiki that non-registered users adds new (spam) > pages. > Only registered users can edit pages and new user creation is blocked That sounds like your default ACL is wrong. > How can I block non-registered users to add pages? In recent moin versions you should activate the TextCha feature (like captcha, but only text, read HelpOnTextChas). From nbuduroi at profilcredit.com Fri Sep 11 12:15:08 2009 From: nbuduroi at profilcredit.com (Nicolas Buduroi) Date: Fri, 11 Sep 2009 12:15:08 -0400 Subject: [Moin-user] Unable to create new account. Message-ID: <4AAA778C.8050408@profilcredit.com> Hi everybody, I've been using MoinMoin as a single user for a couple of months now and everything was fine. Today I needed to add a new user account, but it didn't work. There was no error message at all and no file were created in the user directory. I've looked on the web for similar issues and reviewed my configuration, yet I didn't found any relevant information about this problem. Can someone help me? Thanks budu From nbuduroi at profilcredit.com Fri Sep 11 14:04:29 2009 From: nbuduroi at profilcredit.com (Nicolas Buduroi) Date: Fri, 11 Sep 2009 14:04:29 -0400 Subject: [Moin-user] Unable to create new account. Message-ID: <4AAA912D.6050806@profilcredit.com> Hi everybody, I've been using MoinMoin as a single user for a couple of months now and everything was fine. Today I needed to add a new user account, but it didn't work. There was no error message at all and no file were created in the user directory. I've looked on the web for similar issues and reviewed my configuration, yet I didn't found any relevant information about this problem. Can someone help me? BTW: Sorry, if this is posted twice, the subscription e-mail took too much time to come in and I've sent this message once before. Thanks budu From ernesto.adorio at gmail.com Sat Sep 12 06:24:33 2009 From: ernesto.adorio at gmail.com (Ernesto Adorio) Date: Sat, 12 Sep 2009 18:24:33 +0800 Subject: [Moin-user] ImportError: No module named wikiconfig Message-ID: <5cec18c10909120324q12d53acan164351a5077bda10@mail.gmail.com> I have installed moin-1.8.5 according to the instructions. My operating system is Ubuntu 7.10 My web server is Apache 2. Last lines of my /etc/apache2/sites-available/default: Alias /wiki "/usr/share/moin/htdocs/" ScriptAlias /mywiki /usr/share/moin/mywiki/cgi-bin/moin.cgi These are the only references to moinmoin in my Apache configuration files. When I type adorio-research.org/mywiki I get the error in the subject line. I have Googled and I cannot pinpoint the error, there lots of confusing OLD documents. Can you give me pointers, please? tia, ernie. From gnarlodious at gmail.com Sun Sep 13 01:03:33 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Sat, 12 Sep 2009 23:03:33 -0600 Subject: [Moin-user] Snake eats spam! Message-ID: <2e24105e0909122203x5aada5aal939b537e67310140@mail.gmail.com> I am proud to say I have solved my spamming problem with a little Moin hacking, my first hack! (Python is so cool) This mod to PageComment2.py block spammers at the Apache .htaccess file. The page stops writing and displays no comments. Subsequent POST operations are redirected to an ugly offsite error page. No logging is done in Moin, but the .htaccess file acts as a log. NOTE: Excessively long rewrite lists can slow down your server. Trim the list from the bottom periodically. Starting at line 255: if not missingfields: # check input import os, fileinput badWords=['preteen', ...etc] for badWord in badWords: if comtext.find(badWord)!=-1: for line in fileinput.input('/Library/WebServer/WikiFarm/.htaccess', inplace=1): # OSX path print line[:-1] if line.startswith("RewriteCond %{REQUEST_METHOD} POST"): print "RewriteCond %%{REMOTE_ADDR} ^%s [OR]" % os.environ.get('REMOTE_ADDR').replace(".", "\.") return "" To set this up, your .htaccess file needs to be redirecting. Use text like this: # Block page vandals # Addresses are written by script /Library/WebServer/WikiFarm/plugin/macro/PageComment2.py line 269 RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REMOTE_ADDR} ^222 RewriteRule .* http://etc.Gnarlodious.com/Support_Files/BlockedAddress.htm [L] IP addresses to be blocked will be written after the line RewriteCond %{REQUEST_METHOD} POST The great thing about this method is that they can't experiment for which words need to be erased since their IP address is blocked from saving any files. My battle with these spammers has taught me that it is a virus that turns an infected computer into a proxy for this spam. There is probably a better way to block using CAPTCHA but its not working for me. I think the PageComment2 macro is a little old for this spam offensive I am warding off. -- Gnarlie From lists at iDIAcomputing.com Sun Sep 13 13:01:41 2009 From: lists at iDIAcomputing.com (George Dinwiddie) Date: Sun, 13 Sep 2009 13:01:41 -0400 Subject: [Moin-user] Snake eats spam! In-Reply-To: <2e24105e0909122203x5aada5aal939b537e67310140@mail.gmail.com> References: <2e24105e0909122203x5aada5aal939b537e67310140@mail.gmail.com> Message-ID: <4AAD2575.1000005@iDIAcomputing.com> Gnarlodious wrote: > NOTE: Excessively long rewrite lists can slow down your server. Trim > the list from the bottom periodically. Before using textcha for anti-spam, I used # wiki spammers Deny from 12.54.14 # 12.54.14.178 #... to forbid known spammers. Might be more efficient than a re-write. - George -- ---------------------------------------------------------------------- * George Dinwiddie * http://blog.gdinwiddie.com Software Development http://www.idiacomputing.com Consultant and Coach http://www.agilemaryland.org ---------------------------------------------------------------------- From tw-public at gmx.de Mon Sep 14 06:13:11 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Mon, 14 Sep 2009 12:13:11 +0200 Subject: [Moin-user] ImportError: No module named wikiconfig In-Reply-To: <5cec18c10909120324q12d53acan164351a5077bda10@mail.gmail.com> References: <5cec18c10909120324q12d53acan164351a5077bda10@mail.gmail.com> Message-ID: <1252923191.6450.1.camel@x300> > /usr/share/moin/mywiki/cgi-bin/moin.cgi Read the comments in that file and fix the sys.path.insert statements in it. From ernesto.adorio at gmail.com Mon Sep 14 06:32:36 2009 From: ernesto.adorio at gmail.com (Ernesto Adorio) Date: Mon, 14 Sep 2009 18:32:36 +0800 Subject: [Moin-user] ImportError: No module named wikiconfig In-Reply-To: <5cec18c10909120324q12d53acan164351a5077bda10@mail.gmail.com> References: <5cec18c10909120324q12d53acan164351a5077bda10@mail.gmail.com> Message-ID: <5cec18c10909140332m226c0687h700e34c7463c1cf5@mail.gmail.com> Just ?a follow up to my previous post. I was using an old 7.10 Moin installation guide. The most recent I believe installation instructions is now at https://help.ubuntu.com/8.10/serverguide/C/moinmoin.html and with this guide (after removing all instances of the bad install and previous versions)., I was able to run the moinmoin app. Thanks for a great software. I have to be more familiar with it as I am with Wordpress. Regards, ernie. From rb.proj at gmail.com Mon Sep 14 07:51:51 2009 From: rb.proj at gmail.com (R.Bauer) Date: Mon, 14 Sep 2009 13:51:51 +0200 Subject: [Moin-user] Unable to create new account. In-Reply-To: <4AAA912D.6050806@profilcredit.com> References: <4AAA912D.6050806@profilcredit.com> Message-ID: Nicolas Buduroi schrieb: > Hi everybody, I've been using MoinMoin as a single user for a couple of > months now and everything was fine. Today I needed to add a new user > account, but it didn't work. There was no error message at all and no > file were created in the user directory. I've looked on the web for > similar issues and reviewed my configuration, yet I didn't found any > relevant information about this problem. Can someone help me? > > BTW: Sorry, if this is posted twice, the subscription e-mail took too > much time to come in and I've sent this message once before. > > Thanks > > budu give more details about your version and configuration and OS etc. cheers Reimar From rb.proj at gmail.com Mon Sep 14 08:04:40 2009 From: rb.proj at gmail.com (R.Bauer) Date: Mon, 14 Sep 2009 14:04:40 +0200 Subject: [Moin-user] authenticating from multiple sources In-Reply-To: <4AA7FA6C.8040102@lifl.fr> References: <5c39e1ca0909041543m2246f2achbb60386e45978497@mail.gmail.com> <1252149745.24659.20.camel@x300> <5c39e1ca0909081224i11e5633aw983d100a438157ee@mail.gmail.com> <4AA7FA6C.8040102@lifl.fr> Message-ID: Raphael Marvie schrieb: > Hi, > Looking for a similar setup I have looked at the TextCha documentation. > I have not found if I can use the TextCha only for the new account > creation operation. Have I missed something? > Thanks, > r. Well if your valid users are in the textcha disabled group then only people who like to get an account will get a textcha question. cheers Reimar From tw-public at gmx.de Mon Sep 14 09:19:18 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Mon, 14 Sep 2009 15:19:18 +0200 Subject: [Moin-user] moin 1.9.0beta4 available Message-ID: <1252934358.6450.19.camel@x300> Download it there: http://moinmo.in/MoinMoinDownload The bigger changes since beta3 include: * New dicts/groups api / backend code (*) * New xappy-based xapian search code (*) * AnyWikiDraw integrated * Single Page Slideshow integrated (*) thanks for these bigger contributions go to Dmitrijs Milajevs (who successfully implemented this as a Google Summer of Code 2009 project) and to Reimar Bauer (who mentored that project). For the full 1.9 history, see there: http://hg.moinmo.in/moin/1.9/file/1.9.0beta4/docs/CHANGES You can help making 1.9.0 a better release by giving us feedback after testing the beta. Just file bug reports to the wiki. From tw-public at gmx.de Mon Sep 14 11:24:32 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Mon, 14 Sep 2009 17:24:32 +0200 Subject: [Moin-user] MoinDump In-Reply-To: References: Message-ID: <1252941872.8507.31.camel@server.firma.waldmann-edv.de> Hi Waqas, > I am using moinmoin with: > Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k mod_wsgi/2.3 > Python/2.5.2 mod_auth_sspi/1.0.4 Please note that mod_wsgi 2.3 has known problems with saving pages or file uploading for specific file sizes. Any more recent version of mod_wsgi should work better. That is NOT related to your problem with moin dump, though. > 1. Created one output dir= C:/temp/moinexport > > 2. Created attachments folder under moinexport = > C:/temp/moinexport/attachments You do not need to do that (1. and 2.), moin export dump creates those directories (of course, it needs the filesystem permissions to be able to do that). > 3. Paste the default theme folder under moinexport with its subfolder > ?css? and ?img? = C:/TEMP/moinexport/modern > > 4. Now I run the following command > > C:\Python25\Lib\site-packages\MoinMoin\script>moin.py > --config-dir=C:/Moin/supwiki --wiki-url=https://localhost/supwiki > export dump --page=CatAuthors --target=C:/temp/moinexport I don't think it is a problem in your specific case (you only have one wiki, not a farm, so likely everything you give will match), but be careful when specifying --wiki-url (in moin 1.8, I think you must NOT give http://, just localhost/supwiki). > 5. Now I got following message > > 2009-09-07 17:07:49,318 WARNING MoinMoin.log:139 using logging > configuration rea > > d from built-in fallback in MoinMoin.log module! > > 2009-09-07 17:07:49,631 INFO MoinMoin.config.multiconfig:125 using > wiki config: > > C:\Moin\supwiki\wikiconfig.pyc > > Writing "CatAuthors.html"... OK, that is normal. It only writes that one page because you told it to do so. It should tell "Writing ..." for all attachments of it also, though. > All are working very fine till here. Now I go to the target folder and > open the index.html. It is showing me the name of my front page of > wiki as a link with other two links: TitelIndex and WordIndex. And top > of this html page CatAuthors (simple text) is mentioned and footer of > the page has Timestamp. nothing more. Well, all that "minimal theme" stuff is rather intended for full dumps of all wiki pages. If you just dump one page, you'll only get that single html file. > Now I open the CatAuthors.html page and it is also the same page like > index.html. Now I check the attachments folder and it is also empty. > Actually this CatAuthors page has also attachments in my wiki. Check if filesystem permissions are OK. The user you run the script as must be able to read the attachments and write them to the new attachments folder in the output directory. > The exported html pages don?t have the contents and attachments of the > pages. That's very strange. Are they ACL protected? You need to specify the user for doing the dump in that case. BTW, your attachments: are their names pure ascii or any special non-ascii characters in the names? Cheers, Thomas From waqas805 at hotmail.com Thu Sep 17 08:49:17 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 17 Sep 2009 14:49:17 +0200 Subject: [Moin-user] Xapian installation Message-ID: hi, using: Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k mod_wsgi/2.3 Python/2.5.2 mod_auth_sspi/1.0.4 + moinoin184 i want to use xapian search for our wiki. i have installed the "xapian-python-bindings for Python 2.5.1 -1.0.16.win32.exe" from the following link. http://www.flax.co.uk/xapian_windows.shtml and added the " xapian_search = 'true' " in wikiconfig.py. I also restarted the apache. and then i go to the page where i put the <>. it is showing to me, Xapian search Disabled, Xapian 1.0.16 I think that i am missing some steps somewhere. I have read the page http://moinmo.in/HelpOnXapian and i dont understand about the table "filterPlugin" under the "Requirements" heading. Any help will be appreciated. thanks a lot. Cheers, Waqas _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Thu Sep 17 09:51:44 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Thu, 17 Sep 2009 15:51:44 +0200 Subject: [Moin-user] Xapian installation In-Reply-To: References: Message-ID: <1253195504.26240.6.camel@server.firma.waldmann-edv.de> > and added the " xapian_search = 'true' " in wikiconfig.py. It is: xapian_search = True # boolean, not string > and then i go to the page where i put the <>. it is > showing to me, > > Xapian search > Disabled, Xapian 1.0.16 You also have to build an index (see HelpOnXapian), otherwise it might be auto-disabled, because without index, it can't work. > I think that i am missing some steps somewhere. I have read the page > http://moinmo.in/HelpOnXapian and i dont understand about the table > "filterPlugin" under the "Requirements" heading. It just means that if you want to index MS word, excel or pdf files, you need additional software (listed in column "Dependency"). This software is needed to extract pure text from those (more or less) binary files. From waqas805 at hotmail.com Thu Sep 17 12:51:41 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 17 Sep 2009 18:51:41 +0200 Subject: [Moin-user] Xapian In-Reply-To: References: Message-ID: Hi Thomas, Thanks a lot for help. now i can see on SystemInfo page following information. Xapian search Enabled, Xapian 1.0.16, index unavailable, last modified: N/A Stemming for Xapian Disabled (danish dutch english finnish french german german2 hungarian italian kraaij_pohlmann lovins norwegian porter portuguese romanian russian spanish swedish turkish) Active threads = Can you tell me please that what information is showing this heading.???????? 2 I couldn't able to run the index build command. can you tell me please from where i have to run this command. i am trying to run this comman from following path. C:\Python25\Lib\site-packages\MoinMoin\script>moin --config-dir=C:\moin\supwiki --wiki-url=https://nv1402/supwiki index build --mode=add but then i got that "moin" command is wrong or he didn't find the "moin". Thanks a lot really. Best Regards, waqas > ------------------------------ > > Message: 8 > Date: Thu, 17 Sep 2009 14:49:17 +0200 > From: waqas ahmad > Subject: [Moin-user] Xapian installation > To: > Message-ID: > Content-Type: text/plain; charset="windows-1252" > > > hi, > > using: Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k mod_wsgi/2.3 Python/2.5.2 mod_auth_sspi/1.0.4 + moinoin184 > > > > i want to use xapian search for our wiki. i have installed the "xapian-python-bindings for Python 2.5.1 -1.0.16.win32.exe" from the following link. > > http://www.flax.co.uk/xapian_windows.shtml > > > and added the " xapian_search = 'true' " in wikiconfig.py. I also restarted the apache. > > > > and then i go to the page where i put the <>. it is showing to me, > > Xapian search > Disabled, Xapian 1.0.16 > > > I think that i am missing some steps somewhere. I have read the page http://moinmo.in/HelpOnXapian and i dont understand about the table "filterPlugin" under the "Requirements" heading. > > > > > Any help will be appreciated. thanks a lot. > > Cheers, > Waqas > > > _________________________________________________________________ > Drag n? drop?Get easy photo sharing with Windows Live? Photos. > > http://www.microsoft.com/windows/windowslive/products/photos.aspx > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 9 > Date: Thu, 17 Sep 2009 15:51:44 +0200 > From: Thomas Waldmann > Subject: Re: [Moin-user] Xapian installation > To: moin-user at lists.sourceforge.net > Message-ID: <1253195504.26240.6.camel at server.firma.waldmann-edv.de> > Content-Type: text/plain > > > > and added the " xapian_search = 'true' " in wikiconfig.py. > > It is: > > xapian_search = True # boolean, not string > > > and then i go to the page where i put the <>. it is > > showing to me, > > > > Xapian search > > Disabled, Xapian 1.0.16 > > You also have to build an index (see HelpOnXapian), otherwise it might > be auto-disabled, because without index, it can't work. > > > I think that i am missing some steps somewhere. I have read the page > > http://moinmo.in/HelpOnXapian and i dont understand about the table > > "filterPlugin" under the "Requirements" heading. > > It just means that if you want to index MS word, excel or pdf files, you > need additional software (listed in column "Dependency"). This software > is needed to extract pure text from those (more or less) binary files. > _________________________________________________________________ Share your memories online with anyone you want. http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From waqas805 at hotmail.com Thu Sep 17 14:15:38 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 17 Sep 2009 20:15:38 +0200 Subject: [Moin-user] Xapian In-Reply-To: References: Message-ID: Hi again Thomas, i have solved my problem. I have built the index. The problem was the build index command. In the HelpOnXapian document command starts with "moin". but now i tried with following command. C:\Python25\Lib\site-packages\MoinMoin\script>moin.py --config-dir=C:\moin\supwiki --wiki-url=https://nv1402/supwiki index build --mode=add but then i got the following error msg. import win32event ImportError: No module named win32event then i have installed the pywin32 from this site http://sourceforge.net/projects/pywin32/ and again run the above command. so every thing fine now. Now i am going to sleep. i will check the search performance tomorrow. thanks for your help really. take care bye From: waqas805 at hotmail.com To: moin-user at lists.sourceforge.net; tw-public at gmx.de Subject: RE: Xapian Date: Thu, 17 Sep 2009 18:51:41 +0200 Hi Thomas, Thanks a lot for help. now i can see on SystemInfo page following information. Xapian search Enabled, Xapian 1.0.16, index unavailable, last modified: N/A Stemming for Xapian Disabled (danish dutch english finnish french german german2 hungarian italian kraaij_pohlmann lovins norwegian porter portuguese romanian russian spanish swedish turkish) Active threads = Can you tell me please that what information is showing this heading.???????? 2 I couldn't able to run the index build command. can you tell me please from where i have to run this command. i am trying to run this comman from following path. C:\Python25\Lib\site-packages\MoinMoin\script>moin --config-dir=C:\moin\supwiki --wiki-url=https://nv1402/supwiki index build --mode=add but then i got that "moin" command is wrong or he didn't find the "moin". Thanks a lot really. Best Regards, waqas > ------------------------------ > > Message: 8 > Date: Thu, 17 Sep 2009 14:49:17 +0200 > From: waqas ahmad > Subject: [Moin-user] Xapian installation > To: > Message-ID: > Content-Type: text/plain; charset="windows-1252" > > > hi, > > using: Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k mod_wsgi/2.3 Python/2.5.2 mod_auth_sspi/1.0.4 + moinoin184 > > > > i want to use xapian search for our wiki. i have installed the "xapian-python-bindings for Python 2.5.1 -1.0.16.win32.exe" from the following link. > > http://www.flax.co.uk/xapian_windows.shtml > > > and added the " xapian_search = 'true' " in wikiconfig.py. I also restarted the apache. > > > > and then i go to the page where i put the <>. it is showing to me, > > Xapian search > Disabled, Xapian 1.0.16 > > > I think that i am missing some steps somewhere. I have read the page http://moinmo.in/HelpOnXapian and i dont understand about the table "filterPlugin" under the "Requirements" heading. > > > > > Any help will be appreciated. thanks a lot. > > Cheers, > Waqas > > > _________________________________________________________________ > Drag n? drop?Get easy photo sharing with Windows Live? Photos. > > http://www.microsoft.com/windows/windowslive/products/photos.aspx > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 9 > Date: Thu, 17 Sep 2009 15:51:44 +0200 > From: Thomas Waldmann > Subject: Re: [Moin-user] Xapian installation > To: moin-user at lists.sourceforge.net > Message-ID: <1253195504.26240.6.camel at server.firma.waldmann-edv.de> > Content-Type: text/plain > > > > and added the " xapian_search = 'true' " in wikiconfig.py. > > It is: > > xapian_search = True # boolean, not string > > > and then i go to the page where i put the <>. it is > > showing to me, > > > > Xapian search > > Disabled, Xapian 1.0.16 > > You also have to build an index (see HelpOnXapian), otherwise it might > be auto-disabled, because without index, it can't work. > > > I think that i am missing some steps somewhere. I have read the page > > http://moinmo.in/HelpOnXapian and i dont understand about the table > > "filterPlugin" under the "Requirements" heading. > > It just means that if you want to index MS word, excel or pdf files, you > need additional software (listed in column "Dependency"). This software > is needed to extract pure text from those (more or less) binary files. > Share your memories online with anyone you want anyone you want. _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Mon Sep 21 07:07:13 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Mon, 21 Sep 2009 13:07:13 +0200 Subject: [Moin-user] Poll: Indexing filters for xapian-based search Message-ID: <1253531233.16983.6.camel@server.firma.waldmann-edv.de> Just wanted to do a quick poll about what moin users out there use for indexing their file attachments. Read and answer there, please: http://moinmo.in/PollAboutXapianSearchIndexingFilters From raphael.marvie at lifl.fr Tue Sep 22 03:43:07 2009 From: raphael.marvie at lifl.fr (Raphael Marvie) Date: Tue, 22 Sep 2009 09:43:07 +0200 Subject: [Moin-user] pages directory problem In-Reply-To: <1243424180.20117.7.camel@server.firma.waldmann-edv.de> References: <36a866700905270259x484ebb7do324469aa33de4933@mail.gmail.com> <1243424180.20117.7.camel@server.firma.waldmann-edv.de> Message-ID: <4AB8800B.7050002@lifl.fr> Dear All, Trying to find a solution to my own configuration problem which is similar, I have a question regarding the `script_name' property. When using a wiki farm, is it possible to kind of overload this property in each wiki configuration file (one.py and two.py in my situation)? Or has this property only a meaning in the `moin.fcg' file? I am using lighttpd (Apache is not easy to consider as several services are already in production on the host). Using mode_rewrite I can access the proper page in the proper wiki when typing its url. http://mydomain.org/one/FrontPage But the returned page does not include the wiki name for links (which I can understand). So I cannot navigate from page to page inside the wiki. Clicking on RecentChanges brings me to http://mydomain.org/RecentChanges and not http://mydomain.org/one/RecentChanges. Which seems correct from the fastcgi script as it received only this part of the information. excerpt from 10-fastcgi.conf: url.rewrite-once = ( "^/robots.txt" => "/robots.txt", "^/favicon.ico" => "/favicon.ico", "^/static/(.*)" => "/static/$1", "^/[^/]*/(.*)" => "/wiki-engine/$1" ) excerpt from farmwiki.py: wikis = [ ("one", r"^mydomain.org/one.*$"), ("two", r"^mydomain.org/two.*$"), ] I have three wiki instances to run. Should I move to a non farm-based solution and install each wiki independently? Then I can easily tweak the `script_name' property on each `moin.fcg' file. It does not seems the cleanest solution but if it is the only one I can live with it. Thanks, raphael Thomas Waldmann wrote: > On Wed, 2009-05-27 at 19:59 +1000, Phillip Pace wrote: >> Hey guys/gals, >> >> I have a problem which I can't seem to figure out. >> >> I've created a wiki farm which is working and accessing them through >> my site like so: >> >> www.website.com/wiki/user1/ >> www.website.com/wiki/user2/ > > You are doing path-based wiki farming, this is a bit more tricky than > host-based (wiki1.website.com, wiki2.website.com). > >> However when I look at the stored data files in the /data/user/pages/ >> directory for each instance it stores the pages prefixed with the >> user-name like so: >> >> /data/user1/pages/user1(2f)homepage > > This is a misconfiguration issue. Moin does not know that user1 is part > of the script name (it thinks it is part of the path). > >> Any ideas?... who knows this is probably how it should work. > > See there: > > http://master18.moinmo.in/HelpOnInstalling/ApacheOnLinux > > Search for script_name there. > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user -- Raphael Marvie LIFL - Universit? Lille 1 http://www.lifl.fr/~marvie/ +33 3 20 33 59 51 From glennoph at gmail.com Tue Sep 22 10:36:44 2009 From: glennoph at gmail.com (glenn opdycke-hansen) Date: Tue, 22 Sep 2009 09:36:44 -0500 Subject: [Moin-user] installing MoinMoin on ubuntu Message-ID: I am looking for advice in installing MoinMoin on ubuntu. The ubuntu/server instructions for MoinMoin results in a gui editor not working. Do others do a manual install of MoinMoin on ubuntu? Regards, Glenn -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Tue Sep 22 11:50:50 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 22 Sep 2009 17:50:50 +0200 Subject: [Moin-user] installing MoinMoin on ubuntu In-Reply-To: References: Message-ID: <1253634650.14528.6.camel@server.firma.waldmann-edv.de> On Tue, 2009-09-22 at 09:36 -0500, glenn opdycke-hansen wrote: > I am looking for advice in installing MoinMoin on ubuntu. The > ubuntu/server instructions for MoinMoin results in a gui editor not > working. The debian (and maybe also the ubuntu) package maintainers have removed the GUI editor we usually bundly with moin for package security maintenance reasons. > Do others do a manual install of MoinMoin on ubuntu? Well, if you want something fresh, just using the download archive is sometimes better. From fpiat at klabs.be Tue Sep 22 16:17:36 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Tue, 22 Sep 2009 22:17:36 +0200 Subject: [Moin-user] installing MoinMoin on ubuntu In-Reply-To: <1253634650.14528.6.camel@server.firma.waldmann-edv.de> References: <1253634650.14528.6.camel@server.firma.waldmann-edv.de> Message-ID: <1253650656.30932.112.camel@solid.paris.klabs.be> On Tue, 2009-09-22 at 17:50 +0200, Thomas Waldmann wrote: > On Tue, 2009-09-22 at 09:36 -0500, glenn opdycke-hansen wrote: > > I am looking for advice in installing MoinMoin on ubuntu. The > > ubuntu/server instructions for MoinMoin results in a gui editor not > > working. > > The debian (and maybe also the ubuntu) package maintainers have removed > the GUI editor we usually bundly with moin for package security > maintenance reasons. The GUI editor was removed in 1.6.2-1 Since 1.8.2-2, Moinmoin can use Debian/Ubuntu's system-wide version of fckeditor. If you use moinmoin >= 1.8.2 (i.e Jaunty or Karmic), make sure you install the package "fckeditor" as it is merely "suggested" in Ubuntu. Regards, Franklin From michael.bane at manchester.ac.uk Tue Sep 22 20:04:31 2009 From: michael.bane at manchester.ac.uk (michael bane) Date: Wed, 23 Sep 2009 01:04:31 +0100 Subject: [Moin-user] how to import wordpress files Message-ID: <3120FA97-44C9-4504-B9D9-901170E2DE87@manchester.ac.uk> I wish to move a web site from wordpress to moinmoin. I'm told wordpress will output an XML file (of all articles) but how do i best import this in to moinmoin? Many thanks, M http://umbug.manchester.ac.uk From toddobryan at gmail.com Wed Sep 23 10:50:08 2009 From: toddobryan at gmail.com (Todd O'Bryan) Date: Wed, 23 Sep 2009 10:50:08 -0400 Subject: [Moin-user] Attempt to update deletes page Message-ID: <904774730909230750w267817fakeeb7dd31155a0612@mail.gmail.com> I have a wiki that has experienced the same problem several times. I attempt to edit a page and when I save changes, the page just disappears. When I go into Info, all the revisions are there, but trying to get back the latest version ends up with the page deleted again. This has happened with the FrontPage and two or three other pages. Is this a known problem or am I just lucky? Todd From tcataldo at bham.lib.al.us Wed Sep 23 10:51:37 2009 From: tcataldo at bham.lib.al.us (Tobin Cataldo) Date: Wed, 23 Sep 2009 09:51:37 -0500 Subject: [Moin-user] Attempt to update deletes page In-Reply-To: <904774730909230750w267817fakeeb7dd31155a0612@mail.gmail.com> References: <904774730909230750w267817fakeeb7dd31155a0612@mail.gmail.com> Message-ID: <4ABA35F9.3080904@bham.lib.al.us> I had some similar circumstance a while back, until I added log_reverse_dns_lookups = False to my farmconfig. This sped up the update process, and the problem went away. Also if you are using mod_python, look into mod_wsgi. Tobin Todd O'Bryan wrote: > I have a wiki that has experienced the same problem several times. I > attempt to edit a page and when I save changes, the page just > disappears. When I go into Info, all the revisions are there, but > trying to get back the latest version ends up with the page deleted > again. This has happened with the FrontPage and two or three other > pages. > > Is this a known problem or am I just lucky? > > Todd > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > > From waqas805 at hotmail.com Thu Sep 24 07:37:01 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 24 Sep 2009 13:37:01 +0200 Subject: [Moin-user] Global-variables Message-ID: Hi, I want to create some variables for my whole wiki users. I have different templates and i want to use those variables in templates. when i create variables under my homepage e.g: Amd/MyDict then it is only accessible for me, not for other users. can someone tell me how can i create global variables. i tried also with <>. This macro gives me the value of variable but it disables the link for CamelCase words. Thanks Best Regards, Waqas _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From solomou at hpclab.ceid.upatras.gr Thu Sep 24 12:40:54 2009 From: solomou at hpclab.ceid.upatras.gr (Georgia Solomou) Date: Thu, 24 Sep 2009 19:40:54 +0300 Subject: [Moin-user] use of reverse proxy server Message-ID: <000001ca3d35$c8f3c3a0$5adb4ae0$@ceid.upatras.gr> Hello. I have a problem with MoinMoin when I try to use it through a reverse proxy server. It is about a MoinMoin installation that runs as a cgi. My problem is the I get a surge protection very soon and moreover the links don't work. Do you have any idea of what is wrong here? Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Thu Sep 24 18:45:58 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 25 Sep 2009 00:45:58 +0200 Subject: [Moin-user] use of reverse proxy server In-Reply-To: <000001ca3d35$c8f3c3a0$5adb4ae0$@ceid.upatras.gr> References: <000001ca3d35$c8f3c3a0$5adb4ae0$@ceid.upatras.gr> Message-ID: <1253832358.12927.1.camel@x300> On Thu, 2009-09-24 at 19:40 +0300, Georgia Solomou wrote: > Hello. I have a problem with MoinMoin when I try to use it through a > reverse proxy server. It is about a MoinMoin installation that runs as > a cgi. My problem is the I get a surge protection very soon and > moreover the links don?t work. Look into MoinMoin/request/__init__.py (at the top of the file). From gustavo.seabra at gmail.com Mon Sep 28 16:17:40 2009 From: gustavo.seabra at gmail.com (Gustavo Seabra) Date: Mon, 28 Sep 2009 17:17:40 -0300 Subject: [Moin-user] Is it possible to suppress the DOS-like command window in DesktopEdition? Message-ID: Hi there, I'm new to MoinMoin, and I'm testing the DesktopEdition for now. I'm running it under Windows Vista, and I was wondering if there is any way to have the wikiserver.py running in the background without having a DOS-like window always open, or at least if there is a way to minimize tht to the windows side tray, like just a small icon on the right. Thanks a lot, Gustavo. From George-Sava.Brancovici at eads.com Wed Sep 30 05:04:36 2009 From: George-Sava.Brancovici at eads.com (Brancovici, George-Sava Dr.) Date: Wed, 30 Sep 2009 11:04:36 +0200 Subject: [Moin-user] Parameterizable link to a different page in theactions toolbar In-Reply-To: References: Message-ID: Hi! I posted the two files involved on http://paste.pocoo.org/ : http://paste.pocoo.org/show/139766/ http://paste.pocoo.org/show/139770/ The first file is the MoinMoin theme where I added an extra link to the editbar labeled "ParentPage". This in turn generates an action Parent (look for the comment "# GBS" before the sections in question), which determines a script called "Parent.py" to be executed. Please bear in mind that I'm not (yet :) an expert in either MoinMoin or Python, so don't mind if I say something wrong or obvious.. I edited the main MoinMoin wiki-page to include the parameter: #pragma redirect-to-link "http://www.apple.com" The second file "Parent.py" simply tries to access this parameter, redirect-to-link, and print its content. When I click on the "Parent Page" with the main MoinMoin page opened, I get the output: "Redirect to parent page: None " which means that the the parameter redirect-to-link is empty. (What I actually want to do is to use the value of the parameter to initiate a redirect to the page it denotes, in this example apple.com...) Thanks, George > -----Original Message----- > From: Brancovici, George-Sava Dr. > Sent: Wednesday, September 09, 2009 11:35 AM > To: 'moin-user at lists.sourceforge.net' > Subject: [Moin-user] Parameterizable link to a different page > in theactions toolbar > > What I did was to put the pragma on the page, extend the > editbar with a new item "ParentPage" which is connected to a > new action called Parent, defined in Parent.py. It does get called. > > The problem is that the "restaurant" parameter defined with > the pragma seems wo be empty within the execute function in Parent.py. > > How do I properly access the "restaurant" parameter in the > Parent.py action? > > Thanks! > > PS: Sorry for the previous two messages sent to your personal address. > > > > > > -----Original Message----- > > > From: R.Bauer [mailto:rb.proj at gmail.com] > > > Sent: Wednesday, September 09, 2009 10:08 AM > > > To: moin-user at lists.sourceforge.net > > > Subject: Re: [Moin-user] Parameterizable link to a > > different page in > > > theactions toolbar > > > > > > Brancovici, George-Sava Dr. schrieb: > > > > Hi, > > > > > > > > I'm trying to use the space and extend the actions > toolbar to the > > > > right of the "More actions" combo box with something like a > > > link (or > > > > button, > > > > etc) to a certain target page. The linked page should differ, > > > > depending on the page on which the user currently is. E.g. > > > if the user > > > > is on the "McDonalds" wiki page, the link will target the > > > "FastFoodRestaurants" > > > > wiki page. > > > > > > > > There are two catches: > > > > - the linked page is not necessarily the "parent" page, it > > > should be > > > > parameterizable e.g. through a variable defined by the > > > editor on each > > > > page. > > > > > > can be done by a pragma defintition on the page > > > > > > #pragma restaurant "McDonalds" > > > > > > wikiutil.escape(self.request.getPragma('restaurant', defval='')) > > > > > > > - the link should be on the actions toolbar or somwehere in > > > the upper > > > > part of each page, in order to optimize space usage. > > > > > > look at theme.__init__.editbarItems search for Discussion for an > > > example. > > > > > > > > > cheers > > > Reimar > > > > > > > > > > > Do you have any ideas about how to accomplish this? > > > > > > > > Thanks! > > > > George > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > -- > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > -------- Let Crystal Reports handle the reporting - > Free Crystal > > > > Reports 2008 30-Day trial. Simplify your report design, > > integration > > > > and deployment - and focus on what you do best, core > application > > > > coding. Discover what's new with Crystal Reports now. > > > > http://p.sf.net/sfu/bobj-july > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > -- > > > > > > > > _______________________________________________ > > > > Moin-user mailing list > > > > Moin-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/moin-user > > > > > > > > > -------------------------------------------------------------- > > > ---------------- > > > Let Crystal Reports handle the reporting - Free Crystal > > Reports 2008 > > > 30-Day trial. Simplify your report design, integration and > > deployment > > > - and focus on what you do best, core application coding. > Discover > > > what's new with Crystal Reports now. > http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > Moin-user mailing list > > > Moin-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/moin-user > > > > From gnarlodious at gmail.com Wed Sep 30 20:41:00 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Wed, 30 Sep 2009 18:41:00 -0600 Subject: [Moin-user] Snake eats spam! In-Reply-To: <2e24105e0909122203x5aada5aal939b537e67310140@mail.gmail.com> References: <2e24105e0909122203x5aada5aal939b537e67310140@mail.gmail.com> Message-ID: <2e24105e0909301741m5f710f7fu43fdcc608124ed63@mail.gmail.com> I am pleased to report only one spamming instance since implementing this filter, and it was in Russian. My blocked IP list has collected 110 computers in 17 days. Real happy about this mod, especially since they only get one chance to spam. Subsequent spam attempts are blocked by Apache. If you are having spam attacks from the PageComment2 macro, consider it as a solution (and perhaps improve it). -- Gnarlie On 9/12/09, Gnarlodious wrote: > I am proud to say I have solved my spamming problem with a little Moin > hacking, my first hack! (Python is so cool) > > This mod to PageComment2.py block spammers at the Apache .htaccess > file. The page stops writing and displays no comments. Subsequent POST > operations are redirected to an ugly offsite error page. No logging is > done in Moin, but the .htaccess file acts as a log. > NOTE: Excessively long rewrite lists can slow down your server. Trim > the list from the bottom periodically. > > Starting at line 255: > > if not missingfields: > # check input > import os, fileinput > badWords=['preteen', ...etc] > for badWord in badWords: > if comtext.find(badWord)!=-1: > for line in > fileinput.input('/Library/WebServer/WikiFarm/.htaccess', inplace=1): # > OSX path > print line[:-1] > if line.startswith("RewriteCond %{REQUEST_METHOD} POST"): > print "RewriteCond %%{REMOTE_ADDR} ^%s [OR]" % > os.environ.get('REMOTE_ADDR').replace(".", "\.") > return "" > > > To set this up, your .htaccess file needs to be redirecting. Use text like > this: > > # Block page vandals > # Addresses are written by script > /Library/WebServer/WikiFarm/plugin/macro/PageComment2.py line 269 > RewriteCond %{REQUEST_METHOD} POST > RewriteCond %{REMOTE_ADDR} ^222 > RewriteRule .* http://etc.Gnarlodious.com/Support_Files/BlockedAddress.htm > [L] > > IP addresses to be blocked will be written after the line > RewriteCond %{REQUEST_METHOD} POST > > The great thing about this method is that they can't experiment for > which words need to be erased since their IP address is blocked from > saving any files. My battle with these spammers has taught me that it > is a virus that turns an infected computer into a proxy for this spam. > There is probably a better way to block using CAPTCHA but its not > working for me. I think the PageComment2 macro is a little old for > this spam offensive I am warding off. > > -- Gnarlie >