Python论坛  - 讨论区

标题:[python-chinese] how to combine multi app in one template?

2006年01月09日 星期一 11:32

Albert Lee hanzhupeng at gmail.com
Mon Jan 9 11:32:12 HKT 2006

implements portal sytle template

if I have some apps like calendar, event, etc , and I want a Frontpage that
combine all the app in one template, how ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060109/46e20df8/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月09日 星期一 17:32

Devin Deng deng.devin at gmail.com
Mon Jan 9 17:32:46 HKT 2006

I think use component base solution will be much better than template in
your case.

since you might use calendar, events not only in frontpage, but also in
other web pages.

just make calendar, events... as single object, which has its own template,
program logic,
data acess layer.

When rendering frontpage, dynamiclly combine all the needed object, generate
the
result page.




2006/1/9, Albert Lee <hanzhupeng at gmail.com>:
>
> implements portal sytle template
>
> if I have some apps like calendar, event, etc , and I want a Frontpage
> that combine all the app in one template, how ?
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060109/951e4ee0/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月09日 星期一 17:40

Albert Lee hanzhupeng at gmail.com
Mon Jan 9 17:40:07 HKT 2006

Yes, I have made a demo program and it works. I use the component method.



2006/1/9, Devin Deng <deng.devin at gmail.com>:
>
> I think use component base solution will be much better than template in
> your case.
>
> since you might use calendar, events not only in frontpage, but also in
> other web pages.
>
> just make calendar, events... as single object, which has its own
> template, program logic,
> data acess layer.
>
> When rendering frontpage, dynamiclly combine all the needed object,
> generate the
> result page.
>
>
>
>
> 2006/1/9, Albert Lee < hanzhupeng at gmail.com>:
> >
> > implements portal sytle template
> >
> > if I have some apps like calendar, event, etc , and I want a Frontpage
> > that combine all the app in one template, how ?
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


--
欢迎访问我的小站:   http://www.2tuzi.com
blog :   http://blog.2tuzi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060109/e090f565/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号