[Zope3-Users] Re: Zope3-users Digest, Vol 6, Issue 3
dg dolephi
dolephi9080 at yahoo.com.cn
Sun Apr 3 09:58:38 EDT 2005
I am looking Flash MX, and know about rich client side. And I think if the Zope 3 have a flash like rich client side, It can help Zope 3 spread more quickly, and popular not only in the web, but alse on mobile . and can make it more easy to develop a application through the web browser then now.
And one thing in server side. it is much stronger than flash, because zope 3.
zope3-users-request at zope.org wrote:
Send Zope3-users mailing list submissions to
zope3-users at zope.org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.zope.org/mailman/listinfo/zope3-users
or, via email, send a message with subject or body 'help' to
zope3-users-request at zope.org
You can reach the person managing the list at
zope3-users-owner at zope.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Zope3-users digest..."
Today's Topics:
1. Re: Re: Traverse to nearest site in menu action (Stephan Richter)
2. Re: Traverse to nearest site in menu action (j?rgen Kartnaller)
----------------------------------------------------------------------
Message: 1
Date: Sat, 2 Apr 2005 07:37:18 -0500
From: Stephan Richter
Subject: Re: [Zope3-Users] Re: Traverse to nearest site in menu action
To: zope3-users at zope.org
Cc: j?rgen Kartnaller
Message-ID: <200504020737.18185.srichter at cosmos.phy.tufts.edu>
Content-Type: text/plain; charset="utf-8"
On Saturday 02 April 2005 04:38, jürgen Kartnaller wrote:
> > Why in the world would you want to do that? This seems just awful. What
> > is your use case?
>
> In my case I want to have the possibility to jump back to my base view
> (which is the default view of my site) from wherever I am within my site.
>
> But, if there is an easier way to do this, please let me know.
Then write a wrapper view for all interfaces that internally looks up the next
site and looks up the default view:
class SiteDefaultView(object):
def __call__(self):
site = getNextSiteSomehow()
defaultViewName = getDefaultViewName(site, self.request, site)
view = zapi.getMultiAdapter((site, request), Interface, name=defaultViewName)
return view()
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
------------------------------
Message: 2
Date: Sat, 02 Apr 2005 16:27:07 +0200
From: j?rgen Kartnaller
Subject: [Zope3-Users] Re: Traverse to nearest site in menu action
To: zope3-users at zope.org
Message-ID:
Content-Type: text/plain; charset=UTF-8; format=flowed
Stephan Richter wrote:
> On Saturday 02 April 2005 04:38, jürgen Kartnaller wrote:
>
>>>Why in the world would you want to do that? This seems just awful. What
>>>is your use case?
>>
>>In my case I want to have the possibility to jump back to my base view
>>(which is the default view of my site) from wherever I am within my site.
>>
>>But, if there is an easier way to do this, please let me know.
>
>
> Then write a wrapper view for all interfaces that internally looks up the next
> site and looks up the default view:
>
> class SiteDefaultView(object):
>
> def __call__(self):
> site = getNextSiteSomehow()
> defaultViewName = getDefaultViewName(site, self.request, site)
> view = zapi.getMultiAdapter((site, request), Interface, name=defaultViewName)
> return view()
>
Thanks Stephan,
I learned a lot from this code.
But I think my solution is much easier to handle.
I don't need to define a view for every interface.
I just have to implement my traverser which is a one liner.
ZCML is also reusable, it could be easily integrated into zope as a
standard traverser ;)
Jürgen
------------------------------
_______________________________________________
Zope3-users mailing list
Zope3-users at zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
End of Zope3-users Digest, Vol 6, Issue 3
*****************************************
---------------------------------
Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20050403/6d5dd15c/attachment.htm
More information about the Zope3-users
mailing list