A time ago I was here asking about acquisition, I think on a couple of
possibilities, I ned a way to have the same content with another
design... The application will be developed under layers, could be
something like the follow:
title='class attribute "title"'
Each page should replace writeBody and even writeMenu, can replace
another methods like awake, and can replace class attributes like
The problem was how to mix a SpecificPage with a TemplatePage, I use
"dir()" to do this task. I do dir(SpecificPage) and intersect it to its
Base (SpecificPage.__bases__), I do the comparison testing if the
method on the SpecificPage is not the same on the
SpecificPage.__bases__. After that I know all method defined on
I know that SpecificPage (re)defines the abc and attr1 methods. To have
another page with all methods from Another Template, but having the abc
and attr1 from SpecificPage, I can create the class as:
I make a function to do it dinamically. I think it will solve my
problem, but I have another one. I make a ServletFactory that
interprets ".acq" files, the file content is something like:
This way, with this 2 lines I specifie the Template I will use and the
Base, then the page will be dinamically generated. But this is waste of
work. I will use all pages from a Module, suppose:
The actual way I need to write a Page1.acq, Page2.acq, Page3.acq, but
could I have a way to always use the (Page1.py | Page2.py | Page3.py)
with a specific design? Is there a way to catch the request and send
the proper result even without having the requested file in the
Sorry my too large message, and sorry my poor english, if someone be
interested with the work I done, I can write a better message...
thanks for any help...
Michel Thadeu Sabchuk
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!