Esempio n. 1
0
File: imprint.py Progetto: vwc/agita
    def test(self):
        """
        test method
        """
        dummy = _(u'a dummy string')

        return {'dummy': dummy}
Esempio n. 2
0
File: imprint.py Progetto: vwc/agita
from Products.ATContentTypes.content import base
from Products.ATContentTypes.content import schemata
from Products.ATContentTypes.content.schemata import finalizeATCTSchema

from Products.CMFCore.utils import getToolByName

from vwcollective.imprint import imprintMessageFactory as _
from vwcollective.imprint.interfaces import IImprint
from vwcollective.imprint.config import PROJECTNAME

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

    atapi.StringField(
        name='company',
        widget=atapi.StringWidget(
            label=_(u"Company"),
            description=_(u"The company name will be inserted in the disclaimers."),
        ),
        required=True,
    ),
    
    atapi.StringField(
        name='street',
        widget=atapi.StringWidget(
            label=_(u"Street"),
        ),
        required=True,
    ),
    
    atapi.StringField(
        name='city',