示例#1
0
    atapi.StringField(
            'reductionConditions',
            storage=atapi.AnnotationStorage(),
            required = False,
            widget = atapi.StringWidget(
                label=u"Conditions",
            ),
        ),


))

#JubinCommercialPartnerSchema.addField(jubinbase.JubinPhotoField.copy())
jubinbase.finalizeJubinPartnerSchema(JubinCommercialPartnerSchema, 
                              noSectorUsage=True, 
                              noDisplay=['text', 'privatePhone' ],
                              )

class JubinCommercialPartner(jubinbase.BasePartner):
    """Jubin Commercial Partner type"""
    implements(IJubinCommercialPartner)

    schema = JubinCommercialPartnerSchema
    meta_type = "JubinCommercialPartner"
    
    #security = ClassSecurityInfo()

    reduction = atapi.ATFieldProperty('reduction')
    reductionConditions = atapi.ATFieldProperty('reductionConditions')

atapi.registerType(JubinCommercialPartner, PROJECTNAME)
示例#2
0
from Products.Maps.field import LocationField, LocationWidget
from Products.Maps import interfaces as mapfaces


# Restaurant Partner content type

JubinRestaurantPartnerSchema = jubinbase.BasePartnerSchema + atapi.Schema((



))

#JubinRestaurantPartnerSchema['image'].widget.visible = {'edit': 'invisible',
#                                                        'view': 'invisible'}
jubinbase.finalizeJubinPartnerSchema(JubinRestaurantPartnerSchema, 
                              noSectorUsage=True, 
                              noDisplay=['text', 'privatePhone'],
                              )

class JubinRestaurantPartner(jubinbase.BasePartner):
    """Jubin Restaurant Partner type"""
    implements(IJubinRestaurantPartner)

    schema = JubinRestaurantPartnerSchema
    meta_type = "JubinRestaurantPartner"
    
    #security = ClassSecurityInfo()


atapi.registerType(JubinRestaurantPartner, PROJECTNAME)

示例#3
0
        ),

    atapi.BooleanField(
            'lavage',
            storage=atapi.AnnotationStorage(),
            required = False,
            widget = atapi.BooleanWidget(
                label='LAVAGE',
            ),
        ),

)) + JubinMapSchema

JubinStationPartnerSchema.addField(jubinbase.JubinPhotoField.copy())
jubinbase.finalizeJubinPartnerSchema(JubinStationPartnerSchema, 
                              noSectorUsage=True, 
                              noDisplay=['text', 'sp95', 'sp98', 'diesel', 'gaz', 'privatePhone']
                              )

class JubinStationPartner(jubinbase.BasePartner):
    """Jubin Station Partner type"""
    implements(IJubinStationPartner,  
               IJubinStationLocation,         
               mapfaces.IMapEnabled, 
               )   # Enable map support for stations

    schema = JubinStationPartnerSchema

    #title = atapi.ATFieldProperty('title')
    #description = atapi.ATFieldProperty('description')
    
    opening = atapi.ATFieldProperty('opening')