[Zope] Textarea Limits (slightly off topic)

Jim Sanford jsanford@atinucleus.com
Mon, 19 Jun 2000 12:49:53 -0500


If your documents are too big you can whittle them down 2 ways:

1. If you have sections of code that could be used as is on other forms, (for example a section building a dropdown list that uses
an SQL query to populate it.) , move them into their own methods and use <dtml-var that_method> in their place in your document.

2. If the section is specific to this form you can stash it in a property with a text type and call it with <dtml-var
that_property>.

Both of these will reduce the size of the main dtml text without changing the form.

You could conceivably have a huge page that is nothing but 20 or 30 <dtml-var this_or_that_property_or_method> statements.

NOTE: For # 2 to really be usable you need to hack Zope to make the textarea used to display properties of the text type wider and
taller.

Look in lib/python/ofs/properties.html at about line 65 you will see the following:

  <dtml-elif "type=='text'">
  <textarea name="<dtml-var id>:text" rows="8" cols="60" wrap="off"><dtml-var
   "getProperty(id)" html_quote></textarea>

What you see above already has my changed values for "rows" and "cols"
-----------------------------------------------------------

A suggestion for the future:  the Zope management interface could be changed to put only a certain number of characters in a
textarea. The amount would be a changable property. If the dtml for a page exceeds that amount Zope would serve it up in 2 or more
textareas.

Jim Sanford
----- Original Message -----
From: Joshua Brauer <Joshua.Brauer@colostate.edu>
To: <zope@zope.org>
Sent: Monday, June 19, 2000 9:35 AM
Subject: [Zope] Textarea Limits (slightly off topic)


I'm running into a limit to the amount of text that IE 5 will display on the Macintosh. I am wondering if this is true of all
browsers and platforms or unique to IE5/Mac. This of course limits the size of documents that can be edited through the manage
interface.

Now I really wish Pike worked as an editor without it's problems with > signs.

Josh
--
-------------------------------------------------
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-------------------------------------------------

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )