# HG changeset patch # User dwinter # Date 1393312332 -3600 # Node ID 5584046a6a04fbd6470c6a55c3d38954e81fd38d # Parent 8fca81581883a572db2acf9010a0139831d325bf# Parent 878de95fb6a2313d9cd132941bde8f341af94616 Merge with 878de95fb6a2313d9cd132941bde8f341af94616 diff -r 8fca81581883 -r 5584046a6a04 MPIWGRoot.py --- a/MPIWGRoot.py Tue Feb 25 08:07:59 2014 +0100 +++ b/MPIWGRoot.py Tue Feb 25 08:12:12 2014 +0100 @@ -49,7 +49,7 @@ # make mpiwg_js refreshable for development mpiwg_js.index_html = refreshingImageFileIndexHtml # ZMI - changeMPIWGRootForm = PageTemplateFile('zpt/root/manage_change') + changeMPIWGRootForm = PageTemplateFile('zpt/root/manage_change', globals()) diff -r 8fca81581883 -r 5584046a6a04 MPIWGStaff.py --- a/MPIWGStaff.py Tue Feb 25 08:07:59 2014 +0100 +++ b/MPIWGStaff.py Tue Feb 25 08:12:12 2014 +0100 @@ -593,29 +593,43 @@ if REQUEST: argv=REQUEST.form - # ICS URL driven talks url = argv.get('ics_url', None) if url: + # + # ICS URL driven talks + # cal_id = "%s_talks"%self.getUsername() # use ICS calendar cal = self.getTalksCal() - if cal is not None: + if cal is None: + # create new calendar + cal = MPIWGIcsManager(cal_id, '', url, defaultProps=calendar_props) + self.folder.get('calendars')[cal_id] = cal + + else: # calendar exists - if cal.url == url: - # same url - return pt() - else: - # remove + if cal.url != url: + # remove and re-create del self.folder.get('calendars')[cal_id] + cal = MPIWGIcsManager(cal_id, '', url, defaultProps=calendar_props) + self.folder.get('calendars')[cal_id] = cal - # create new calendar - cal = MPIWGIcsManager(cal_id, '', url, defaultProps=calendar_props) - self.folder.get('calendars')[cal_id] = cal + # show only upcoming + upcoming = argv.get('only_upcoming', None) + cal.setFlag('only_upcoming', (upcoming == 'yes')) + # number of events + talks_num = int(argv.get('talks_num', 5)) + self.changeData({'talks_num': talks_num}) - # manually edited talks elif argv.has_key('main_fields'): #got data to change + # + # manually edited talks + # self.invalidate_cache() self.changeAdditionalData(argv); + # number of events + talks_num = int(argv.get('talks_num', 5)) + self.changeData({'talks_num': talks_num}) return pt() @@ -629,6 +643,9 @@ if argv.has_key('main_fields'): #got data to change self.invalidate_cache() self.changeAdditionalData(argv); + # number of items + teachings_num = int(argv.get('teachings_num', 5)) + self.changeData({'teachings_num': teachings_num}) pt=PageTemplateFile('zpt/staff/edit_teaching.zpt', globals()).__of__(self) return pt() @@ -658,13 +675,16 @@ def editPublications(self,REQUEST): """editiere die Publications von der Webseite""" data=REQUEST.form + newData = {} - if data.has_key('selectionMode'): - query="UPDATE personal_www SET publications_mode=%s WHERE key=%s" + if 'selectionMode' in data: + newData['publications_mode'] = data['selectionMode'] - self.executeZSQL(query,[data['selectionMode'],self.getKey()]) - - self.refresh_content() + if 'publications_num' in data: + newData['publications_num'] = int(data['publications_num']) + + if len(newData) > 0: + self.changeData(newData) pt=PageTemplateFile('zpt/staff/edit_publications.zpt', globals()).__of__(self) return pt() diff -r 8fca81581883 -r 5584046a6a04 css/mpiwg.css --- a/css/mpiwg.css Tue Feb 25 08:07:59 2014 +0100 +++ b/css/mpiwg.css Tue Feb 25 08:12:12 2014 +0100 @@ -1231,7 +1231,13 @@ div.image_small img { width: 230px; } -div.banner_large img { + +div.banner_large, +div.image_large { + padding: 0.5em 0; +} +div.banner_large img, +div.image_large img { width: 460px; } diff -r 8fca81581883 -r 5584046a6a04 zpt/feature/feature_template.zpt --- a/zpt/feature/feature_template.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/feature/feature_template.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -8,7 +8,8 @@ - + + @@ -58,4 +59,4 @@ - \ No newline at end of file + diff -r 8fca81581883 -r 5584046a6a04 zpt/staff/edit_publications.zpt --- a/zpt/staff/edit_publications.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/staff/edit_publications.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -11,10 +11,13 @@

- Show the five most recent publications. (no further action needed)
+ Show the publications sorted by Date. (no further action needed)
- Show selected publications. + Show only selected publications by priority. +

+

+ Number of items on profile page:

diff -r 8fca81581883 -r 5584046a6a04 zpt/staff/edit_talks.zpt --- a/zpt/staff/edit_talks.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/staff/edit_talks.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -70,7 +70,14 @@

Remove the calendar URL to enter talks manually.

- +

+ + Show only upcoming events in the calendar: + +

+

+ Number of items on profile page: +

diff -r 8fca81581883 -r 5584046a6a04 zpt/staff/edit_teaching.zpt --- a/zpt/staff/edit_teaching.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/staff/edit_teaching.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -6,8 +6,8 @@
- - + + @@ -53,6 +53,9 @@
Date

+ Number of items on profile page: +

+

diff -r 8fca81581883 -r 5584046a6a04 zpt/staff/member_index_html.zpt --- a/zpt/staff/member_index_html.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/staff/member_index_html.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -1,6 +1,7 @@ - + @@ -50,9 +51,8 @@ -

Selected publications

@@ -67,29 +67,31 @@ See also -

+

More publications

- + - + -

Talks and presentations

+

Upcoming talks and presentations

+

Talks and presentations

- +
-

+

More

@@ -100,14 +102,14 @@

Talks and presentations

- +
-
-

+

More

@@ -115,12 +117,12 @@
- +

Teaching activities

- +
@@ -132,7 +134,7 @@
-

+

More

diff -r 8fca81581883 -r 5584046a6a04 zpt/staff/talks_full_html.zpt --- a/zpt/staff/talks_full_html.zpt Tue Feb 25 08:07:59 2014 +0100 +++ b/zpt/staff/talks_full_html.zpt Tue Feb 25 08:12:12 2014 +0100 @@ -1,6 +1,7 @@ - + @@ -21,12 +22,12 @@ - + - @@ -41,7 +42,7 @@
- +
-
+