[Zope3-Users] Needed help with zc.table selection column
Hi, I'm using zc.table to handle simple lists of items to replace the standard contents.html container view. I use a SelectionColumn and a set of sortable columns, to display a checkbox in front of every item, and a set of custom actions to handle my selections. My question is trivial : as items names are base64 encoded into form widgets and form data, is there an already defined way to easilly get the list of selected keys, without decoding base64 input fields ? Thanks for any help, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Needed help with zc.table selection column
Hello Thierry, Use something like this: sels = self.columns[0].getSelected(self.list_data, self.request) Then sels will contain your objects as a list. Wednesday, November 15, 2006, 12:17:46 PM, you wrote: TF Hi, TF I'm using zc.table to handle simple lists of items to replace the TF standard contents.html container view. TF I use a SelectionColumn and a set of sortable columns, to display a TF checkbox in front of every item, and a set of custom actions to handle TF my selections. TF My question is trivial : as items names are base64 encoded into form TF widgets and form data, is there an already defined way to easilly get TF the list of selected keys, without decoding base64 input fields ? TF Thanks for any help, TF Thierry Florac -- Best regards, Groszer Adam -- Quote of the day: Sterilization is often justified ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users