From: Riccardo L. <ric...@re...> - 2004-10-26 13:06:58
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 26 October 2004 14:46, Alberto Berti wrote: > Il giorno mar, 26-10-2004 alle 14:24 +0200, Riccardo Lemmi ha scritto: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Tuesday 26 October 2004 13:05, Gr=E9goire Weber wrote: > > > Hi Ricardo, > > > > > > ok. Thanks for the important Info. > > > > > > I think this is fine for the moment (so you are able to work on the= UI) > > > but has to be solved in another way for long term. > > > > > > Gregoire > > > > Yes, I agree and I think it is better if we can eliminate the dipende= ncy > > from ZopeVersionControl at all. > > I agree with you, but it's true that some kind of event log should be > exposed to the templates... It can be done as it is now or completely > from a service like api on the tool.. what do you think is the best? > I think it is better if we can access directly LogEntry (as returned from= =20 getHistory), I would avoid to write something like to access the attribut= es: =2E.. logentry=3Dportal_versioning.getHistory(obj)[0] version_id =3D portal_versioning.getVersion_id(logentry) =2E.. (I think is better: version_id =3D logentry.getVersion_id()) Or we can redefine LogEntry in CMFEditions and leave to getHistory the=20 re-wrapping of the ZopeVersionControl.LogEntry: =2E.. return [CMFEdition.LogEntry(checkin_log[id]) for id in version_ids] > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJourna= l > Use IT products in your business? Tell us what you think of them. Give = us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out = more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Collective-versioning mailing list > Col...@li... > https://lists.sourceforge.net/lists/listinfo/collective-versioning - --=20 Riccardo Lemmi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQFBfktqZqAdBzG2VFMRAvj8AJwN+Oh0SUmRhoX9/LeUKv2g2o7SQACfWZBl SXKU+kk5AXBH9FCgjABgjCs=3D =3D94WW -----END PGP SIGNATURE----- |