Maximum Size of DTML Document/Method
Hello. I have a dtml method that takes up 31KB and when I try to add another line of code to it, Zope won't let me. Have I exceeded the size limits defined by Zope? If so, is there a way these limits can be extended? If not, will packing the Zope database help? Any help would be greatly appreciated. Thanks. - Asad
Asad Habib wrote:
Hello. I have a dtml method that takes up 31KB and when I try to add another line of code to it, Zope won't let me. Have I exceeded the size limits defined by Zope? If so, is there a way these limits can be extended? If not, will packing the Zope database help? Any help would be greatly appreciated. Thanks.
Some browsers limit you to about 32K. If you upgrade your browser or try it in Mozilla, does it fix the problem? Shane
Asad Habib wrote:
Hello. I have a dtml method that takes up 31KB and when I try to add another line of code to it, Zope won't let me. Have I exceeded the size limits defined by Zope? If so, is there a way these limits can be extended? If not, will packing the Zope database help? Any help would be greatly appreciated. Thanks.
Try breaking up your single large dtml method into several smaller methods, for example: Dtml Method A contains: <dtml-if "some condition"> <dtml-var MethodB> <dtml-elif "some other condition"> <dtml-var MethodC> <dtml-else> <dtml-var MethodD> </dtml-if> Alternatively, you can create 'subroutine' dtml methods, for example: Dtml Method A contains: ... a bunch of dtml code... <dtml-call MethodB> ... some more dtml code... <dtml-call MethodC> ... even more dtml code... HTH Jonathan
Asad -- I don't know the answere to your question, but I would guess you may have reached some limit. The real question is "Why is your DTML method so big?". One of the ideas of Zope is to break up a page by breaking the page up into logical units and then calling i(i.e rendering) the logical units to create the page. A simple example: Page Method: <dtml-var standard_html_header> <p><dtml-var hello> <dtml-var world></p> <dtml-var standard_html_footer> Hello Method: <dtml-var standard_html_header> Hello <dtml-var standard_html_footer> World Method: <dtml-var standard_html_header> World <dtml-var standard_html_footer> On Fri, 19 Mar 2004, Asad Habib wrote:
Hello. I have a dtml method that takes up 31KB and when I try to add another line of code to it, Zope won't let me. Have I exceeded the size limits defined by Zope? If so, is there a way these limits can be extended? If not, will packing the Zope database help? Any help would be greatly appreciated. Thanks.
- Asad
_______________________________________________ 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 )
participants (4)
-
Asad Habib -
Dennis Allison -
Shane Hathaway -
Small Business Services