Ignore:
Timestamp:
4 Apr 2006, 13:26:08 (19 years ago)
Author:
joachim
Message:

=profiles created upgrade to CPS3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Widgets.py

    r58 r199  
    11#-*- mode: python; mode: fold -*-
    22from Globals import InitializeClass
    3 from Products.CPSSchemas.Widget import CPSWidgetType
     3##from Products.CPSSchemas.Widget import CPSWidgetType
    44from Products.CPSSchemas.BasicWidgets import CPSStringWidget, CPSEmailWidget
    55from Products.CPSSchemas.ExtendedWidgets import CPSDateTimeWidget
    6 from Products.CPSSchemas.WidgetTypesTool import WidgetTypeRegistry
     6from Products.CPSSchemas.Widget import widgetRegistry
     7##from Products.CPSSchemas.WidgetTypesTool import WidgetTypeRegistry
    78from DateTime.DateTime import DateTime
    89from AccessControl import getSecurityManager
     
    4243InitializeClass(StudentIdWidget)
    4344
    44 class StudentIdWidgetType(CPSWidgetType):
    45     """Student Id String widget type."""
    46     meta_type = "StudentId  Widget Type"
    47     cls = StudentIdWidget
     45widgetRegistry.register(StudentIdWidget)
     46
     47##Class StudentIdWidgetType(CPSWidgetType):
     48##    """Student Id String widget type."""
     49##    meta_type = "StudentId  Widget Type"
     50##    cls = StudentIdWidget
    4851
    4952###)
     
    5154class ScratchcardPinWidget(CPSStringWidget): ###(
    5255    """ ScratchcardPin Widget"""
    53     meta_type = "ScratchcardPin Widget"
     56    meta_type = "Scratchcard Pin Widget"
    5457    valid_pins = ['123456',
    5558                  '234567',
     
    7881
    7982InitializeClass(ScratchcardPinWidget)
    80 
    81 class ScratchcardPinWidgetType(CPSWidgetType):
    82     """Scratchcard Pin widget type."""
    83     meta_type = "Scratchcard Pin Widget Type"
    84     cls = ScratchcardPinWidget
     83widgetRegistry.register(ScratchcardPinWidget)
     84
     85##class ScratchcardPinWidgetType(CPSWidgetType):
     86##    """Scratchcard Pin widget type."""
     87##    meta_type = "Scratchcard Pin Widget Type"
     88##    cls = ScratchcardPinWidget
    8589
    8690###)
     
    8892###########
    8993
    90 WidgetTypeRegistry.register(StudentIdWidgetType)
    91 WidgetTypeRegistry.register(ScratchcardPinWidgetType)
     94##WidgetTypeRegistry.register(StudentIdWidgetType)
     95##WidgetTypeRegistry.register(ScratchcardPinWidgetType)
    9296
    9397##class MyProjectWeekDateTimeWidget(CPSDateTimeWidget): ###(
Note: See TracChangeset for help on using the changeset viewer.