[ZPT] 1.3.0 issues with trailing '/'

Steve Spicklemire steve@spvi.com
Wed, 23 May 2001 07:48:20 -0500


Hi Folks,

	I've just been using ZPT for a few days, and I just upgraded to 
1.3.0 and already had to go through a bunch of methods eliminating (if 
exists) and (nocall) and suchlike. One of the first templates I cooked 
up starts out like this:

<span tal:define="	global Batch modules/ZTUtils/Batch/;
				  	global theCatalog  here/Catalog/;
				  	global artists here/Artists/;
				  	global locations here/Locations/;
				  	global mediaMaster here/mediaMaster/;
				  	global empty python:''" tal:replace="nothing"></span>


but it's raising the following error. One of the examples was exactly 
like this (for the string module) so I thought I was doing it right... 
what's wrong? Thanks!

-steve

   <p>
   <strong>Error Type: Undefined</strong><br>
   <strong>Error Value: "string index out of range" not found in 
"modules/ZTUtils/Batch/"</strong><br>
   </p>

...

<!--
Traceback (innermost last):
   File /usr/local/etc/Zope2b/lib/python/ZPublisher/Publish.py, line 223, 
in publish_module
   File /usr/local/etc/Zope2b/lib/python/ZPublisher/Publish.py, line 187, 
in publish
   File /usr/local/etc/Zope2b/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
     (Object: ProviderContainer)
   File /usr/local/etc/Zope2b/lib/python/ZPublisher/Publish.py, line 171, 
in publish
   File /usr/local/etc/Zope2b/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
     (Object: addNewRelationForm.html)
   File /usr/local/etc/Zope2b/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
     (Object: addNewRelationForm.html)
   File /usr/local/etc/Zope2b/lib/python/Shared/DC/Scripts/Bindings.py, 
line 324, in __call__
     (Object: addNewRelationForm.html)
   File /usr/local/etc/Zope2b/lib/python/Shared/DC/Scripts/Bindings.py, 
line 354, in _bindAndExec
     (Object: addNewRelationForm.html)
   File 
/usr/local/etc/Zope2b/lib/python/Products/PageTemplates/ZopePageTemplate.py,
  line 244, in _exec
     (Object: addNewRelationForm.html)
   File 
/usr/local/etc/Zope2b/lib/python/Products/PageTemplates/PageTemplate.py, 
line 154, in pt_render
     (Object: addNewRelationForm.html)
   File /usr/local/etc/Zope2b/lib/python/TAL/TALInterpreter.py, line 215, 
in __call__
   File /usr/local/etc/Zope2b/lib/python/TAL/TALInterpreter.py, line 242, 
in interpret
   File /usr/local/etc/Zope2b/lib/python/TAL/TALInterpreter.py, line 377, 
in do_setGlobal
   File /usr/local/etc/Zope2b/lib/python/Products/PageTemplates/TALES.py, 
line 287, in evaluate
Undefined: (see above)

-->