Marko MARKOVIC writes:
 > <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.
 > ...
 > Error Type: AttributeError
 > Error Value: __getslice__
Obviously, "ns_entrydate" is an object and it has no "__getslice__".

The name suggests, that it is a date object, probably a "DateTime.DateTime"
object. Look at its source to determine what methods is has
(probably ".Day()" or ".day()" etc.).


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to