[Zope3-dev] Re: zc.datetimewidget branch for zope2?

2006-11-25 Thread Rocky Burt
On Fri, 2006-24-11 at 19:19 -0600, Kapil Thangavelu wrote:
 i was just curious if there were any objections to starting a branch of  
 zc.datetimewidget thats compatible with zope2, ie. doesn't depend on z3  
 request locales and zc.resourcelibrary. first cut at a diff attached which  
 works, w/ zope 2.9 and presumbly 2.10, still needs some  work for i18n  
 correctness, but having a useable datetime widget is really helpful to  
 z3/five adoption in z2.

Personally I would prefer to see the bits that zc.resourcelibrary uses
that don't work on zope2 abstracted out as adapters/utilities and see a
five.datetimewidget that provides zope2 adatpers/utilities that make
zc.resourcelibrary work.  Any chance of that working out ?

Regards,
Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net


signature.asc
Description: This is a digitally signed message part
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: zc.datetimewidget branch for zope2?

2006-11-25 Thread Kapil Thangavelu

On Sat, 25 Nov 2006 10:03:55 -0600, Rocky Burt [EMAIL PROTECTED] wrote:


On Fri, 2006-24-11 at 19:19 -0600, Kapil Thangavelu wrote:

i was just curious if there were any objections to starting a branch of
zc.datetimewidget thats compatible with zope2, ie. doesn't depend on z3
request locales and zc.resourcelibrary. first cut at a diff attached  
which

works, w/ zope 2.9 and presumbly 2.10, still needs some  work for i18n
correctness, but having a useable datetime widget is really helpful to
z3/five adoption in z2.


Personally I would prefer to see the bits that zc.resourcelibrary uses
that don't work on zope2 abstracted out as adapters/utilities and see a
five.datetimewidget that provides zope2 adatpers/utilities that make
zc.resourcelibrary work.  Any chance of that working out ?


probably not, afaics. the inner mechanics of zc.resourcelibrary aren't  
easily ported to z2 till z2 uses z3 publisher (at least delegation to  
browserrequest factories) at which point there is no need for porting it  
as outside of this core functionality/integration there isn't much to  
zc.resourcelibrary, sans adapter delegation within z2 publisher for  
request/response its a non starter afaics without evil monkies. as regards  
zc.datetimewidget, without the resourcelibrary stuff, any use requires  
manual inclusion of all referenced resources, which is a serious caveat,  
but at least useable. the i18n/locale dependencies on the request in  
zc.datetimewidget could be abstracted out via adapters, but which are also  
obsolete if z2 could delegate to z3 publisher.request/response.


-kapil
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: Can an adapter find out what name it was registered for?

2006-11-25 Thread Stephan Richter
On Friday 17 November 2006 03:43, Chris Withers wrote:
 What do you suggest I do when the adapter needs to know the name it was
 registered for?

You can make the name part of the adapter API.

However, I would suggest revising the design; I have never come across a 
scenario where I wanted the name of the adapter be known within the adapter. 
This seems to be a recipe for trouble. 

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com