Changeset 1437
- Timestamp:
- 03/23/11 17:31:50 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/HelpIM/chatgroup/pages/Subscription.py
r1409 r1437 17 17 def getPanelDef(self, *args, **kwargs): 18 18 group_id = self.checkNotEmpty('group_id') 19 19 20 if self.site.userIsAuthorized( 20 21 user=self.him_request.session.session_user, 21 22 script=self.editFunction): 22 editLink = {'action': [{'name':self.editFunction, 'text':'Bewerk deze pagina'}, 23 [{'actionParm': [{'name': 'newsType', 'value':self.newsType }]}] 23 editLink = {'action': [{'name':self.editFunction, 24 'text':'Bewerk deze pagina'}, 25 [{'actionParm': [{'name': 'newsType', 26 'value':self.newsType }]}] 24 27 ]} 25 28 else: … … 53 56 {'name': self.function, 54 57 'text': 'aanmelden', 55 'html:onclick': 'return showChatgroupSubscriptionForm(this);'} 58 'html:onclick': 59 'return showChatgroupSubscriptionForm(this);'} 56 60 ]}] 57 61 ]} 58 62 ] 59 63 ]} 60 className = '' 61 if not group_id: 62 className = 'hidden' 64 """ we need to redisplay the subscription form only in case of 65 an error when posting to an id""" 66 className = 'hidden' 67 if self.errors and group_id: 68 className = '' 63 69 form = {'edit_panel': [ 64 70 {'id': 'subscribe_group_form', … … 95 101 htmlCode = { 'htmlCode': [ him_text.himTxt_text.replace(' ', ' ') ] } 96 102 97 if self.checkNotEmpty('group_id'): 103 if self.errors and self.checkNotEmpty('group_id'): 104 """ only display single group if there was an error posting to it """ 98 105 groups = [self.site.getChatgroupById(self.site, self.getParam('group_id'))] 99 106 else:
