def getMemberSortableFormat(self) :
""" Return a specific format of full name for alphabetical sorting """
return self.getMemberFullName(nameBefore = 1).lower()
+
+ # security overload
+ security.declareProtected(SetMemberProperties, 'setMemberProperties')
+ def setMemberProperties(self, mapping):
+ super(MemberAdapter, self).setMemberProperties(mapping)
+ self.reindexObject()
InitializeClass(MemberAdapter)
if domains is not None:
u.domains = domains
-
- def getMemberFullName(self, nameBefore=1) :
- """ Return the best full name representation """
- memberName = self.getProperty('name', default='')
- memberGivenName = self.getProperty('given_name', default='')
- memberId = self.getProperty('id', default='')
- return formatFullName(memberName, memberGivenName, memberId, nameBefore=nameBefore)
-
- def getMemberSortableFormat(self) :
- """ Return a specific format of full name for alphabetical sorting """
- return self.getMemberFullName(nameBefore = 1).lower()
-
-
- ## overload default security declaration
- security.declareProtected(SetMemberProperties, 'setMemberProperties')
- def setMemberProperties(self, mapping):
- BaseData.setMemberProperties(self, mapping)
- self.reindexObject()
+# migré
+# def getMemberFullName(self, nameBefore=1) :
+# """ Return the best full name representation """
+# memberName = self.getProperty('name', default='')
+# memberGivenName = self.getProperty('given_name', default='')
+# memberId = self.getProperty('id', default='')
+# return formatFullName(memberName, memberGivenName, memberId, nameBefore=nameBefore)
+
+# migré
+# def getMemberSortableFormat(self) :
+# """ Return a specific format of full name for alphabetical sorting """
+# return self.getMemberFullName(nameBefore = 1).lower()
+
+
+# migré
+# ## overload default security declaration
+# security.declareProtected(SetMemberProperties, 'setMemberProperties')
+# def setMemberProperties(self, mapping):
+# BaseData.setMemberProperties(self, mapping)
+# self.reindexObject()
security.declarePrivate('manage_beforeDelete')
def manage_beforeDelete(self) :
<tr>
<th nowrap="nowrap" i18n:translate="">Name</th>
<td>
- <input type="text" name="name" size="40" tal:attributes="value selectedMember/name" />
+ <input type="text" name="name" size="40" tal:attributes="value python:selectedMember.getProperty('name')" />
</td>
</tr>
<tr>
<th nowrap="nowrap" i18n:translate="">Given Name</th>
<td>
- <input type="text" name="given_name" size="40" tal:attributes="value selectedMember/given_name" />
+ <input type="text" name="given_name" size="40" tal:attributes="value python:selectedMember.getProperty('given_name')" />
</td>
</tr>
<tr>
<tr>
<th nowrap="nowrap" i18n:translate="">Email address</th>
<td>
- <input type="text" name="email" size="40" tal:attributes="value selectedMember/email" />
+ <input type="text" name="email" size="40" tal:attributes="value python:selectedMember.getProperty('email')" />
</td>
</tr>
<tr>