Hi,

I do some porting tg2->tg1 practice in this morning.
It took me about 20 minutes to figure out and porting wikidoki back to
TG 1.1

Here are some tips:


1. some import modules changes

from tg2:

from tg import expose, TurboGearsController
from pylons.helpers import redirect_to

to tg1:

from turbogears import controllers, expose
from turbogears.controllers import Controller as TurboGearsController
from turbogears import redirect as redirect_to


2. template path changes

from tg2:

@expose('genshi:toolbox.templates.wikidoki')

to tg1:

@expose('genshi:turbogears.toolbox.wikidoki.wikidoki')

3. some html trick to fit tg1 toobox style


In first glance the basic controller API works fine in both tg1 and
tg2.

--
Fred


On 8月2日, 下午1時59分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> WikiDoki was checked in [3388:3391]
>
> WikiDoki is a self-explained toolbox2 plugin that manage your
> project's txt files in wiki manner. The rst->html, wiki word, and
> syntax highlighting functions are wrapped by a single file 'mopowg'
> module, so you could use  'mopowg' as a command line script or call it
> else where from the web front-end. (mopowg is an cross-platform doc
> generator which is based on docutils. It could generate full documents
> with figures, styles, and syntax highlighting blocks.)
>
> And project's txt files could be generated to html files with mopowg
> script so you could  get some pretty documents while you ship your
> project. (refer to  SQLAlchemy doc)
>
> Let's make fun with document :D
>
> regards
>
> --
> Fred


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to