equal
deleted
inserted
replaced
966 # i18n: "localdate" is a keyword |
966 # i18n: "localdate" is a keyword |
967 raise error.ParseError(_("localdate expects a date information")) |
967 raise error.ParseError(_("localdate expects a date information")) |
968 if len(args) >= 2: |
968 if len(args) >= 2: |
969 tzoffset = None |
969 tzoffset = None |
970 tz = evalfuncarg(context, mapping, args[1]) |
970 tz = evalfuncarg(context, mapping, args[1]) |
971 if isinstance(tz, str): |
971 if isinstance(tz, bytes): |
972 tzoffset, remainder = util.parsetimezone(tz) |
972 tzoffset, remainder = util.parsetimezone(tz) |
973 if remainder: |
973 if remainder: |
974 tzoffset = None |
974 tzoffset = None |
975 if tzoffset is None: |
975 if tzoffset is None: |
976 try: |
976 try: |
1600 3. templatepath/map |
1600 3. templatepath/map |
1601 """ |
1601 """ |
1602 |
1602 |
1603 if paths is None: |
1603 if paths is None: |
1604 paths = templatepaths() |
1604 paths = templatepaths() |
1605 elif isinstance(paths, str): |
1605 elif isinstance(paths, bytes): |
1606 paths = [paths] |
1606 paths = [paths] |
1607 |
1607 |
1608 if isinstance(styles, str): |
1608 if isinstance(styles, bytes): |
1609 styles = [styles] |
1609 styles = [styles] |
1610 |
1610 |
1611 for style in styles: |
1611 for style in styles: |
1612 # only plain name is allowed to honor template paths |
1612 # only plain name is allowed to honor template paths |
1613 if (not style |
1613 if (not style |