Re: getFormatter

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Ich weiß jetzt immer noch nicht genau was du erreichen möchtest aber
in etwa so kannst du es testen:

In deiner Klasse definierst du eine Methode

class DeineKlasse:
    def test_dateformat(self):
        german=locales.getLocale('de', 'DE')
        f=german.dates.getFormatter('dateTime')
        return f.parse(s)

Und im Template

   tal:content="python: context.test_dateformat(s)"

Wobei s dein Datum String ist.

Gruß
Vlad

Am 24. Februar 2011 08:40 schrieb  <[email protected]>:
>
>> Keine Ahnung mach eine Methode der Python-Klasse uns versuche es erst
>> mal von da aus.
>
> Wärst Du so nett und erklärst mir die dafür erforderlichen Schritte? Danke!
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
>
>



-- 
Best Regards
Vlad Vorobiev


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.