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
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.
Zope3-dev mailing list