Nikolaus Rath | 1 Dec 02:57 2010

Automatically add macros

Hello,

I would like to automatically insert the <<<<TableOfContents()>> macro
at the beginning of each page, and the <<AttachList()>> macro at the end
of each page. Is there a way to do that?

Thanks,

   -Nikolaus

--

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Moin-user mailing list
Moin-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
R.Bauer | 1 Dec 11:37 2010
Picon

Re: Automatically add macros

Am 01.12.2010 02:57, schrieb Nikolaus Rath:
> Hello,
> 
> I would like to automatically insert the <<<<TableOfContents()>> macro
> at the beginning of each page, and the <<AttachList()>> macro at the end
> of each page. Is there a way to do that?
> 
> 

Create just a Template page e.g. MyTemplate, see HelpOnTemplates

add

<<TableOfContents()>>

lorem ipsum

<<AttachList()>>

and use it for your new pages

Reimar

> Thanks,
> 
>    -Nikolaus
> 

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
(Continue reading)

Nikolaus Rath | 1 Dec 16:53 2010

Re: Automatically add macros

"R.Bauer" <rb.proj <at> gmail.com> writes:
> Am 01.12.2010 02:57, schrieb Nikolaus Rath:
>> Hello,
>> 
>> I would like to automatically insert the <<<<TableOfContents()>> macro
>> at the beginning of each page, and the <<AttachList()>> macro at the end
>> of each page. Is there a way to do that?
>
> Create just a Template page e.g. MyTemplate, see HelpOnTemplates
>
> add
>
> <<TableOfContents()>>
>
> lorem ipsum
>
> <<AttachList()>>
>
> and use it for your new pages

I would rather define this in one place and enforce it for all existing
pages. Isn't there a way to do this, e.g. by somehow telling the theme
to implicitly insert these macros in every page that it serves?

Best,

   -Nikolaus

--

-- 
 »Time flies like an arrow, fruit flies like a Banana.«
(Continue reading)

Neal Becker | 6 Dec 14:30 2010
Picon

mathjax

http://www.mathjax.org/

Looks like an interesting way to integrate LaTeX markup.  Anyone looked into 
using this?

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
Thomas Waldmann | 7 Dec 18:01 2010
Picon
Picon

Re: mathjax

On Mon, 2010-12-06 at 08:30 -0500, Neal Becker wrote:
> http://www.mathjax.org/
> 
> Looks like an interesting way to integrate LaTeX markup.

Indeed.

> Anyone looked into using this?

Just had a quick look after reading your mail.

Looks great and I didn't find a catch.

What you could please do: search our wiki for math stuff and add this at
some appropriate place (create a new page if you don't find some place
that fits).

Maybe you and some other people interested in math can discuss there and
maybe someone who knows python will have a look.

(I personally rarely need math typesetting stuff nowadays, but I could
give some support to whoever wants to work on it for moin2.)

License of it might be a problem, not sure:

mathjax is "Apache License v2".
moin is "GPL v2 or later".

http://www.apache.org/licenses/GPL-compatibility.html

(Continue reading)

Dmytro O. Redchuk | 10 Dec 16:00 2010
Picon

Help -- search in moin-1.9.3 does not work for me

Hi!

I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7,
libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian --
1.0.7-3.1). Added Ukrainian pages, but finally got the same problem with fresh
install and no any additional pages in "underlay".

The problem -- tried to use built-in search and had this: searching had never
finished, at all -- no any record in apache's access.log, with no any error in
apache's error.log.

Next i've enabled search with xapian, indexed my wiki (with no errors),
checked those indexes (rather their presence), checked all directories and
files' permissions and tried to search smth again -- with the same result,
with "infinite" "Waiting for data..." in firefox's status bar, with no any
record in apache's log files.

Well, the same result when i click on "CategoryHomepage"
(http://mywikisite/mywikiname/CategoryHomepage), too sad...

I feel here is something wrong, badly, in my side, so i would like to ask --
please, how can i troubleshoot this problem?

Thank you!

--

-- 
  Dmytro O. Redchuk

------------------------------------------------------------------------------
(Continue reading)

Gang Xu | 11 Dec 18:43 2010
Picon

AttributeError: 'Request' object has no attribute 'sent_headers' error when port to IIS7 on W2k8

Hi,

I'm porting Moinmoin (1.8) from w2k3 to w2k8.

After setup Python 2.5.4 (tried Python 2.7, but hit the same error. Thus rolled back to 2.5), zip Moin folder from W2k3 and unzip it in W2k8.

In IIS7, setup the virtual directories.

Now when I access my Wiki, I got the following error:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "2010-12-11 12:15:15,609 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module! Traceback (most recent call last): File "D:\Moin\MyWiki\moin.cgi", line 54, in <module> run(Config) File "D:\Moin\Lib\site-packages\MoinMoin\server\server_cgi.py", line 57, in run request = request_cgi.Request(properties=config.properties) File "D:\Moin\Lib\site-packages\MoinMoin\request\request_cgi.py", line 32, in __init__ self.fail(err) File "D:\Moin\Lib\site-packages\MoinMoin\request\__init__.py", line 1452, in fail if not self.sent_headers: AttributeError: 'Request' object has no attribute 'sent_headers' ".

I have ported it to another w2k3 server before and it worked. This is the first time I tried on W2k8.

Any help will be highly appreciated!
Thanks,
Gang

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Moin-user mailing list
Moin-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
Thomas Waldmann | 14 Dec 00:32 2010
Picon
Picon

Re: Help -- search in moin-1.9.3 does not work for me

> I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7,
> libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian --
> 1.0.7-3.1).

Do you mean the moin debian package or the download?

> Added Ukrainian pages, but finally got the same problem with fresh
> install and no any additional pages in "underlay".

To maybe narrow down the problem, you could try running your stuff with
wikiserver.py.

> The problem -- tried to use built-in search and had this: searching had never
> finished, at all -- no any record in apache's access.log, with no any error in
> apache's error.log.

Does any non-search wiki page access work normally? The non-xapian
search is rather simple, just linearly searching one page after the
other.

Does TitleIndex work?

> Next i've enabled search with xapian, indexed my wiki (with no errors),

Did you do this using the same uid as the wiki script is executed with?
If you did not, you may have permissions problems due to wrong owner of
the xapian index.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
Thomas Waldmann | 14 Dec 00:43 2010
Picon
Picon

Re: AttributeError: 'Request' object has no attribute 'sent_headers' error when port to IIS7 on W2k8


> I'm porting Moinmoin (1.8) from w2k3 to w2k8.

Which moin version exactly?

1.8.8 is the current 1.8 release, but you maybe should rather try to use
1.9.x as the end of support for 1.8 is not too far in the future.

1.9.x is WSGI based, so WSGI is the preferred method to run it.
You can also do fastcgi, cgi, and others using flup (which is possible,
but not recommended).

> After setup Python 2.5.4 (tried Python 2.7, but hit the same error.
> Thus rolled back to 2.5), zip Moin folder from W2k3 and unzip it in
> W2k8.

2.6.latest is currently the most commonly used python, 2.5 should also
work ok. 2.7 is rather fresh and not much tested with moin 1.8.

> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are "2010-12-11
> 12:15:15,609 WARNING MoinMoin.log:139 ...

These are NOT http headers obviously, but moin's log output (which is
usually either output to stderr (NOT stdout as the http headers) or to a
file - maybe check your logging configuration.

> using logging configuration read from built-in fallback in
> MoinMoin.log module! Traceback (most recent call last): File "D:\Moin
> \MyWiki\moin.cgi", line 54, in <module> run(Config) File "D:\Moin\Lib
> \site-packages\MoinMoin\server\server_cgi.py", line 57, in run request
> = request_cgi.Request(properties=config.properties) File "D:\Moin\Lib
> \site-packages\MoinMoin\request\request_cgi.py", line 32, in __init__
> self.fail(err) File "D:\Moin\Lib\site-packages\MoinMoin\request
> \__init__.py", line 1452, in fail if not self.sent_headers:
> AttributeError: 'Request' object has no attribute 'sent_headers' ".

Looks like some error in the code, try with latest moin please.

> I have ported it to another w2k3 server before and it worked. This is
> the first time I tried on W2k8.

I don't think this is caused by the different windows version, but
rather by a setup or configuration problem or a bug in moin's code (that
is maybe fixed since long in current moin versions).

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
Dmytro O. Redchuk | 14 Dec 08:34 2010
Picon

Re: Help -- search in moin-1.9.3 does not work for me

У вт., 14-го гру. 2010 (50-й тиждень року), о 00:32 Thomas Waldmann писали:
> > I've installed moin-1.9.3 in debian (5.0.7 now with apache -- 2.2.9-10+lenny7,
> > libapache2-mod-wsgi -- 2.5-1~lenny1, Python -- 2.5.2, python-xapian --
> > 1.0.7-3.1).

Thank you for your reply!

> Do you mean the moin debian package or the download?
No, i've downloaded it from http://static.moinmo.in/files/moin-1.9.3.tar.gz.

> > Added Ukrainian pages, but finally got the same problem with fresh
> > install and no any additional pages in "underlay".
> 
> To maybe narrow down the problem, you could try running your stuff with
> wikiserver.py.
Well... :O(
Everything is excellent with "./moin server standalone ..." (as root, after
specifying paths in /usr/local/share/moin/server/moin).

> > The problem -- tried to use built-in search and had this: searching had never
> > finished, at all -- no any record in apache's access.log, with no any error in
> > apache's error.log.
> 
> Does any non-search wiki page access work normally? The non-xapian
> search is rather simple, just linearly searching one page after the
> other.
> 
> Does TitleIndex work?
Yes, TitleIndex works in both standalone and apache+wsgi.

> > Next i've enabled search with xapian, indexed my wiki (with no errors),
> 
> Did you do this using the same uid as the wiki script is executed with?
> If you did not, you may have permissions problems due to wrong owner of
> the xapian index.
No, i have changed permissions to correct ones... And non-xapian search does
not work either.

I have disabled reloading mechanism in wsgi module and am restarting apache
after each wikiconfig.py modification (not sure it is needed but anyway).

So... Am i asking in the wrong maillist?-)

Please, anyway, what can i do to troubleshoot this?

Thank you!

--

-- 
  Dmytro O. Redchuk

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Moin-user mailing list
Moin-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Gmane