[Zope] getslice Error?

Marko MARKOVIC marko.markovic@isp.lu
Mon, 31 Jul 2000 09:28:59 +0200


Hi all,

with this little code :

<dtml-in "showNSDetails(nsref=old_nsref)" start=query_start>
<dtml-call "REQUEST.set('sdate','%s.%s.%s' %
(ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4]))">
<input type="text" name="new_nsentrydate" value="<dtml-var sdate>"
size="10">
</dtml-in>

ns_entrydate is a field of my query.

i get an getslice error:

Zope Error
Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: __getslice__

Traceback (innermost last):
  File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File D:\PROGRA~1\INTRAN~1\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
  File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: editNoteServiceForm_html)
  File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
    (Object: editNoteServiceForm_html)
  File D:\PROGRA~1\INTRAN~1\lib\python\OFS\DTMLMethod.py, line 150, in
__call__
    (Object: editNoteServiceForm_html)
  File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
    (Object: editNoteServiceForm_html)
  File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_In.py, line 611,
in renderwb
    (Object: showNSDetails(nsref=old_nsref))
  File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line
335, in eval
    (Object: REQUEST.set('sdate','%s.%s.%s' %
(ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4])))
    (Info: REQUEST)
  File <string>, line 0, in ?
  File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line
174, in careful_getslice
  File D:\PROGRA~1\INTRAN~1\lib\python\DateTime\DateTime.py, line 922, in
__getattr__
AttributeError: (see above)


what's wrong?  Do you know where i can found information about zope erorrs,
i want to know what means all these errors that we get?

Thanks for your help!

$Regards

MM