# HG changeset patch # User casties # Date 1389173776 -3600 # Node ID c90c8333ca8fa52a18ab9b00bf2dfbdd07929069 # Parent 7fcb9b18c4d17e751f4b66b4d1c5c394b7a3c392 fix problem with current_work_p and auto-generated profile. diff -r 7fcb9b18c4d1 -r c90c8333ca8f MPIWGStaff.py --- a/MPIWGStaff.py Wed Dec 04 10:42:22 2013 +0100 +++ b/MPIWGStaff.py Wed Jan 08 10:36:16 2014 +0100 @@ -720,7 +720,7 @@ return query = "update personal_www set " + ', '.join(fields) + " where key = %s" - values.append(self.getKey().encode('utf-8')) + values.append(self.getKey()) results = self.folder.executeZSQL(query, values) logging.debug(results) @@ -1018,15 +1018,17 @@ #founds=self.ZSQLInlineSearch(_table='research_interest',key_main=person.getKeyUTF8()) founds=self.executeZSQL('select * from research_interest where lower(key_main) = %s', [self.getKey().lower()]) if founds: - ret="
Research interests:
'
for found in self.sortPriority(founds):
- ret+=found.interest+"
"
- if (self.content.current_work) and (not self.content.current_work==""):
- ret+="
Current work:
Curriculum Vitae:
'+self.content.current_work+'
\n' + if (self.content.cv_p == 'yes') and self.content.cv: + ret+="'+self.formatAscii(self.content.cv)+'
' return ret diff -r 7fcb9b18c4d1 -r c90c8333ca8f zpt/staff/edit_shortEntry.zpt --- a/zpt/staff/edit_shortEntry.zpt Wed Dec 04 10:42:22 2013 +0100 +++ b/zpt/staff/edit_shortEntry.zpt Wed Jan 08 10:36:16 2014 +0100 @@ -11,8 +11,8 @@- This entry appears only in the staff lists at: Fullist and the lists of members of you - department + This entry appears only in the staff lists at: Fullist + and the lists of members of your department.
- |