terti | 2 Sep 2004 23:30
Picon
Favicon

moving moin from w2k to linux

in Porting an instance from w2k to linux... is there any conversions 
that needs to take place on the moin contents ( I had in mind .txt CR/LF 
conversion)

thanx
Tertius

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Oliver Hofmann | 6 Sep 2004 10:27
Picon

Customization

Greetings!

Having just installed my first MoinMoin -- which worked flawlessly 
thanks to the excellent documentation -- I'm now fiddling with the 
details. Unfortunately, I can't seem to find similar help pages for this 
part, but noticed two related posts in the mailing list archives which 
went unanswered:

---
  How do I change common footer that shows on every page (the part that
  doesn"t change)?
---

... and...

---
  Not very often but sometimes I"d like more control over formatting.  Is
  there some way I could embed html code like this for instance:

  <div style="border:1px solid green;padding:1em;">
  blah blah blah
  </div>

  into a wiki page?
---

For the first part, do I really have to tinker with the actual python 
code that generates the templates? Regarding the second question, this 
is something I loved about Instiki: The ability to simply include 
HTML/CSS into the actual text.
(Continue reading)

Gisbert Amm | 6 Sep 2004 13:40
Picon

Re: Customization

Oliver Hofmann wrote:
>  Not very often but sometimes I"d like more control over formatting.  Is
>  there some way I could embed html code like this for instance:
> 
>  <div style="border:1px solid green;padding:1em;">
>  blah blah blah
>  </div>
> 
>  into a wiki page?

There's a plugin named HTML.py for that; you can find it either in your 
download or, if not, on http://moinmoin.wikiwikiweb.de/MacroMarket

To activate it, simply create a directory
plugin/macro in your MoinMoin instance and copy HTML.py there.

Then you can include HTML Code by typing [[HTML(your code)]].

Regards,
Gisbert Amm

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Thomas Waldmann | 6 Sep 2004 17:03
Picon
Picon

Re: Customization

>  How do I change common footer that shows on every page (the part that
>  doesn"t change)?

Look if it can be done by CSS. If not, hack the theme code 
(MoinMoin/theme/classic.py) or rather derive from the classic theme 
class (like starshine does also).

>  <div style="border:1px solid green;padding:1em;">
>  blah blah blah
>  </div>

HTML macro, but be aware this is dangerous.

> For the first part, do I really have to tinker with the actual python 
> code that generates the templates?

There is also a simple method to get some static custom html in at some 
predefined places. Look on HelpOnConfiguration, the setting is called 
html_header1/2 and html_footer1/2 (or similar).

> is something I loved about Instiki: The ability to simply include 
> HTML/CSS into the actual text.

Well, working with html is not quite the wiki way. ;)

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
(Continue reading)

Thomas Waldmann | 6 Sep 2004 17:05
Picon
Picon

Re: moving moin from w2k to linux

> in Porting an instance from w2k to linux... is there any conversions 
> that needs to take place on the moin contents ( I had in mind .txt CR/LF 
> conversion)

I dont think there should be issues, but I didnt try it myself.

AFAIK moin strips CR chars anyway, so even the pages should be the same.

So maybe just try and tell us. ;)

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Thomas Waldmann | 6 Sep 2004 17:10
Picon
Picon

Re: Checking a moinmoin site into CVS

> I want to check my moinmoin content into a CVS repository.
> Are there directories or file extensions that I can safely 
> ignore when I import the content?  

The important stuff is all under data/.

text/ is current page text
backup/ are earlier revisions
pages/ are attachments (and minor other stuff)

editlog contains page history (so if you save backup dir, save this one, 
too).

eventlog is only for statistics, you can exclude that if it is too large.

You don't need to save the stuff under cache/.

I hope this helps for CVS and general backup.

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Thomas Waldmann | 6 Sep 2004 17:22
Picon
Picon

Re: virtual wiki

> 	does moinmoin support the funda of virtual wiki, ie say one can have
> separate wiki domains running within the same wiki server, say one each
> for separate project. the main benefit of this is that the links with
> the same value in two different projects do not class. the same benefit
> that namespaces provide.

moin up to 1.2.x can only offer a wiki farm to do such stuff. This means 
you have one moin code installation and multiple data dirs and multiple 
configs (they may all import some farmconfig with the common stuff) and 
cgi scripts. Using twisted, you can run 1 wiki per IP/port/twisted 
process only.

moin 1.3 (which is currently still under development, to be released 
about 12/2004) will offer also the possibility of having one cgi or one 
twisted process, one config and run multiple wikis on the same IP/port 
with it (still using multiple data dirs, though). It also has class 
based configuration, making farm configs easier.

We are currently thinking of maybe doing namespaces within moin, but as 
thing are not quite clear yet how to integrate this all, this might 
rather be 1.4 or later,

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Oliver Hofmann | 6 Sep 2004 17:42
Picon

Re: Customization

Gisbert, Thomas,

thanks for the swift reply. I'll take a look at the HTML macro, but 
safety's a good point. Maybe I can tweak the templates in such a way 
that more div classes can be used; basically, I'd just like to see a 
navigation bar somewhere for quickly moving to different categories.

Might have to hard-code that somewhere and simply change the template 
whenever a new category gets added.

Thanks again,

	Oliver

--

-- 
Oliver Hofmann - University of Cologne - Department of Biochemistry
PGP Fingerprint - 3B91 E308 2E5D D2A4 4E8D  633B F628 488D 8ECF 3893

  It seems like once people grow up, they have no idea what's cool.
					                  -- Calvin

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Tertius Cronje | 7 Sep 2004 12:19
Picon

Re: moving moin from w2k to linux

Thomas Waldmann wrote:

>> in Porting an instance from w2k to linux... is there any conversions 
>> that needs to take place on the moin contents ( I had in mind .txt 
>> CR/LF conversion)
>
>
> I dont think there should be issues, but I didnt try it myself.
>
> AFAIK moin strips CR chars anyway, so even the pages should be the same.
>
> So maybe just try and tell us. ;)
>
Hi Thomas,

I archived the wiki instance and copied it accross to the Linux host. 
All seems fine except  when trying to access .png attachments I get the msg
"Unknown error" displayed in my browser.

The URL that is being executed looks as follows  (example)
http://wikihost/mtomwiki/WikiSandBox?action=AttachFile&rename=mytest.png&drawing=mytest

Any ideas?

TIA
Tertius

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
(Continue reading)

terti | 7 Sep 2004 21:09
Picon
Favicon

Re: moving moin from w2k to linux

Hi Thomas,

>
> I archived the wiki instance and copied it accross to the Linux host. 
> All seems fine except  when trying to access .png attachments I get 
> the msg
> "Unknown error" displayed in my browser.
>
> The URL that is being executed looks as follows  (example)
> http://wikihost/mtomwiki/WikiSandBox?action=AttachFile&rename=mytest.png&drawing=mytest 
>
>
My mistake. I didn't have attachfile activated in moin_config.py

Regards
Tertius

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

Gmane