Re: [Zope] length of an object
Here's how I'm checking for the dimensions of an uploaded image. You could similarly do the size as well. 150) or (_.int(_.getitem(_['tmpimageid'],1).getProperty('width')) > 200)"> Error:your image is bigger than 200x150! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] length of an object
Hi ! Chris Withers wrote: > > Brown Fox wrote: > > i want to know the size of an image or a file. > > > > With > > > > i count objects, but for the length? > > For images or file objects, I think you can try for: > > Isn't it nice we have the Snippets ? :-) http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/ObjectLength Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] length of an object
Brown Fox wrote: > i want to know the size of an image or a file. > > With > > i count objects, but for the length? For images or file objects, I think you can try for: cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] length of an object
Hello, i want to know the size of an image or a file. With i count objects, but for the length? Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )