Hi Floyd,

I'm a long-time Zope user, more in the context of Plone than anything else of late, but I valued Zope's TTW approach very much, and I'm very interested in your problem.

On 05/12/14 11:23, [email protected] wrote:
So maybe this is a severely optimistic idea, maybe more of a mind
experiment...


I don't think it need be as much of a stretch as it might seem at first sight.

If you consider web2py's views, with their ability to encompass Python code/logic in {{ }} statements as being roughly equivalent to DTML, than mapping one to another seems at least possible - although it does of course depend on how intricate your DTML logic is.

Although mapping DTML templates onto web2py's views would be a logical first step, it would be better to migrate as much of the logic as possible to the controller, but in terms of moving from one platform to another, that two step process of DTML -> View, then View -> Controller would seem to be manageable, subject to the level of complexity of the app.

How practical it would be to perform some sort of mapping in real time is something else again - but I'm not sure how necessary that really is, if this is a one time exercise, especially since if you are moving away from Zope you are also presumably moving away from Zope's ZODB storage, so there is more than just the templates to consider.


--

Regards,

PhilK


'a bell is a cup...until it is struck'

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to