Re: [Zope] Help needed to simplify some code
Paul Winkler wrote: ^^^ Leave out the "python:" there. Whoops, yep, sorry about that... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help needed to simplify some code
On Wed, Mar 08, 2006 at 09:35:55AM +, Chris Withers wrote: > John Poltorak wrote: > > > >Several months ago someone provided me with me with some sample code which > >did exactly what I wanted, but looking at it again it looks a little > >unwieldy and could do with tidying up. It consists of:- (snip) What Chris said, except: > ...then you can do: > > > > http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help needed to simplify some code
John Poltorak wrote: Several months ago someone provided me with me with some sample code which did exactly what I wanted, but looking at it again it looks a little unwieldy and could do with tidying up. It consists of:- Okay, if you can get parse_file to return a list of dictionaries like: [ { 'folder':'whatever', 'label':'whatever', } ] ...then you can do: cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )