Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(10)  |  Derive(0)  |  Import(5)

src/b/e/betahaus.memberprofile-0.2rc1/betahaus/memberprofile/content/mixin.py   betahaus.memberprofile(Download)
from Products.validation import V_REQUIRED
 
from archetypes.memberdatastorage.memberpropertyfield import MemberPropertyField
 
 
 
    #While this looks stupid, it's needed for compatibility with the fullname field in portal_memberdata.
    MemberPropertyField('fullname',
        languageIndependent = True,
        widget = atapi.StringWidget(visible = {'view':'invisible','edit':'invisible'}
                                    ),
    ),
 
    MemberPropertyField('firstname',
                                    ),
    ),
    MemberPropertyField('lastname',
        languageIndependent = True,
        widget = atapi.StringWidget(label = _(u'lastname_label', default = u'Lastname'),
                                    ),
    ),
 
    MemberPropertyField('email',

src/b/e/betahaus.memberprofile-0.2rc1/betahaus/memberprofile/content/memberprofile.py   betahaus.memberprofile(Download)
from AccessControl import ClassSecurityInfo
 
from archetypes.memberdatastorage.memberpropertyfield import MemberPropertyField
 
from betahaus.memberprofile import MemberProfileMessageFactory as _

src/a/r/archetypes.memberdatastorage-1.1/archetypes/memberdatastorage/tests/test_memberpropertyfield.py   archetypes.memberdatastorage(Download)
        self.folder.invokeFactory('Document', 'user1')
 
        from archetypes.memberdatastorage.memberpropertyfield \
            import MemberPropertyField
 
        for id in ['my-doc', 'user1']:
            page = self.folder[id]
            page.schema.addField(MemberPropertyField(self.field_id))
            page.schema[self.field_id].set(page,self.initial_value)
 
    def _make_email_field(self, context):
        from archetypes.memberdatastorage.memberpropertyfield \
            import MemberPropertyField
        context.schema.addField(MemberPropertyField('email',default='me@nohost.not'))
        context.schema.initializeLayers(context)
        page = self.folder['user1']
 
        from archetypes.memberdatastorage.memberpropertyfield \
            import MemberPropertyField