Changeset 1440
- Timestamp:
- 03/29/11 23:17:27 (14 months ago)
- Location:
- HelpIM3/branches/chatgroups
- Files:
-
- 2 modified
-
HelpIM/chatgroup/db/services.py (modified) (2 diffs)
-
config/sites/chatgroups.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/HelpIM/chatgroup/db/services.py
r1401 r1440 216 216 group = site.getChatgroupById(site, member.group_id) 217 217 now = datetime.now() 218 window = site.siteConfig.chatGroupStartWindow 218 windowBefore = site.siteConfig.chatGroupStartWindowBefore 219 windowAfter = site.siteConfig.chatGroupStartWindowAfter 219 220 for meeting in group.meetings: 220 221 if today(meeting.conv_start_time): … … 223 224 # member already joined meeting 224 225 return meeting 225 if now < meeting.conv_start_time - timedelta(minutes=int(window )):226 if now < meeting.conv_start_time - timedelta(minutes=int(windowBefore)): 226 227 raise TooEarlyException() 227 elif now > meeting.conv_start_time + timedelta(minutes=int(window )):228 elif now > meeting.conv_start_time + timedelta(minutes=int(windowAfter)): 228 229 raise TooLateException() 229 230 else: -
HelpIM3/branches/chatgroups/config/sites/chatgroups.xml
r1413 r1440 29 29 mailFromName='helpim' 30 30 mailFromEmail='helpim@localhost' 31 chatGroupStartWindow='10' 31 chatGroupStartWindowBefore='10' 32 chatGroupStartWindowAfter='30' 32 33 emoticons=":-\) ;-\) :-\( :-P :-O :-S :-D \(t\) \(y\) \(i\) \(p\) \(l\) \(z\) \(c\) \(n\) \(e\)" 33 34 >
