Re: CalendarWidget als Nur-Zeit-Widget

Hans Friedrich <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Danke Andreas,

anderer Ansatz, gleiches Problem:

Frischer ContentType:

DatumstestSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((

     # -*- Your Archetypes field definitions here ... -*-
     atapi.DateTimeField(
         'Zeit',
         storage=atapi.AnnotationStorage(),
         widget=atapi.CalendarWidget(
             show_ymd=False,
             label="bla"),
         required=True,
     ),

))

Am 13.06.2009 um 21:27 schrieb Andreas Jung:

> On 13.06.09 21:21, Hans Friedrich wrote:
>> Hallo Liste,
>>
>> ich habe einen ContentType, der von ATEvent abgeleitet ist. Da ich  
>> nur
>> Zeiten speichern möchte,
> Ich würde sagen, falscher Ansatz. Ein Event ist immer mit einem Datum
> assoziiert. Daher macht es keinen
> Sinn hierfür ATEvent zu verbiegen und so zu tun als gäbe es Termine  
> ohne
> Datum und nur mit einer Uhrzeit...
> sorry, das macht keinen Sinn. Was ist der Usecase? Es ist sicherlich
> einfacher eine eigene AT-basierte Implementierung
> *ohne* ATEvent zu realisieren.
>
> Andreas
>
> <lists.vcf>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
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.