[Zope-dev] DateTime permission problem.

Andreas Kostyrka andreas@mtg.co.at
Sun, 25 Jul 1999 12:13:45 +0200 (CEST)


Hi!

I've been wondering, why I'm getting the following:
 File /misc/home/mtg/mtgzope/Extensions/uptime.py, line 28, in
localtime_format
         (Object: ApplicationDefaultPermissions)
     AttributeError: PrincipiaTimetimeTime


When calling <dtml-var "localtime_format(ZopeTime,'%h:%m')">
with localtime_format being the following function:

def localtime_format(self, dt, fmt, REQUEST=None):
    """format the DateTime with fmt as localtime."""
    return time.strftime(fmt,time.localtime(dt.timeTime()))


Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +54/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA