Topic Text   Topic Comments (1)   Topic Properties   Topic Information sits@use...
Topic title: CVS commit: * If there is an email problem while creating... Monday January 16, 2006 02:49:25

Download topic text | View in monospace font | Tab width set to 8 (change to 4)

Files in topic:  
[Jump to] codestriker/CHANGELOG  1.181   {+3,-0}
[Jump to] codestriker/lib/Codestriker/Action/SubmitNewTopic.pm  1.22   {+2,-1}
[Jump to] codestriker/lib/Codestriker/TopicListeners/Email.pm  1.16   {+4,-3}
[Jump to] codestriker/template/en/default/submitnewtopic.html.tmpl  1.5   {+6,-0}

[Add General Comment] to topic.

File codestriker/CHANGELOG (Revision 1.181) [Add File Comment] [Top] [>>]
 
Line 20 | Parallel Line 20 | Parallel
20 will correctly display in the AJAX'ed window. An example here is if 20 will correctly display in the AJAX'ed window. An example here is if
21 $mailhost is incorrectly configured. 21 $mailhost is incorrectly configured.
22 22
23 * If there is an email problem while creating a topic, the error
24 message is now correctly displayed to the end-user.
25
23 * Fixed problem with Subversion repositories on Win32, where 26 * Fixed problem with Subversion repositories on Win32, where
24 Codestriker was unable to launch the svn program. 27 Codestriker was unable to launch the svn program.
25 28
 
File codestriker/lib/Codestriker/Action/SubmitNewTopic.pm (Revision 1.22) [Add File Comment] [<<] [Top] [>>]
 
Line 322 | Parallel Line 322 | Parallel
322 322
323 # Tell all of the topic listener classes that a topic has 323 # Tell all of the topic listener classes that a topic has
324 # just been created. 324 # just been created.
325 Codestriker::TopicListeners::Manager::topic_create($topic); 325 $feedback = Codestriker::TopicListeners::Manager::topic_create($topic);
326 326
327 # Obtain a URL builder object and determine the URL to the topic. 327 # Obtain a URL builder object and determine the URL to the topic.
328 my $topic_url = $url_builder->view_url_extended($topicid, -1, "", "", "", 328 my $topic_url = $url_builder->view_url_extended($topicid, -1, "", "", "",
 
 
Line 336 | Parallel Line 336 | Parallel
336 $vars->{'topic_url'} = $topic_url; 336 $vars->{'topic_url'} = $topic_url;
337 $vars->{'reviewers'} = $reviewers; 337 $vars->{'reviewers'} = $reviewers;
338 $vars->{'cc'} = (defined $cc) ? $cc : ""; 338 $vars->{'cc'} = (defined $cc) ? $cc : "";
339 $vars->{'feedback'} = $feedback;
339 340
340 my $template = Codestriker::Http::Template->new("submitnewtopic"); 341 my $template = Codestriker::Http::Template->new("submitnewtopic");
341 $template->process($vars); 342 $template->process($vars);
 
File codestriker/lib/Codestriker/TopicListeners/Email.pm (Revision 1.16) [Add File Comment] [<<] [Top] [>>]
 
Line 294 | Parallel Line 294 | Parallel
294 my $cc = ""; 294 my $cc = "";
295 295
296 # Send off the email to the revelant parties. 296 # Send off the email to the revelant parties.
297 $self->_send_topic_email($topic, 0,$change_event_name , 1, $from, 297 return $self->_send_topic_email($topic, 0, $change_event_name , 1,
298 $to, $cc, $bcc,$changes); 298 $from, $to, $cc, $bcc, $changes);
299 } 299 }
300 } 300 }
301 301
 
 
Line 425 | Parallel Line 425 | Parallel
425 $notes; 425 $notes;
426 426
427 # Send the email notification out. 427 # Send the email notification out.
428 $self->doit($new, $topic->{topicid}, $from, $to, $cc, $bcc, $subject, $body); 428 return $self->doit($new, $topic->{topicid}, $from, $to, $cc, $bcc,
429 $subject, $body);
429 } 430 }
430 431
431 # Send an email with the specified data. Return a non-empty message if the 432 # Send an email with the specified data. Return a non-empty message if the
 
File codestriker/template/en/default/submitnewtopic.html.tmpl (Revision 1.5) [Add File Comment] [<<] [Top]
 
Line 3 | Parallel Line 3 | Parallel
3 [% PROCESS header.html.tmpl version = version displaymenu = 1 3 [% PROCESS header.html.tmpl version = version displaymenu = 1
4 closehead = 1 help="" %] 4 closehead = 1 help="" %]
5 5
6 [%# Display any "feedback" to the user if necessary. #%]
7 [% IF feedback != '' %]
8 <font color="red">[% feedback %]</font>
9 <p>
10 [% END %]
11
6 <H2>Topic created</H2> 12 <H2>Topic created</H2>
7 Topic title: [% topic_title | html_entity %]<BR> 13 Topic title: [% topic_title | html_entity %]<BR>
8 Author: [% email | html_entity %]<BR> 14 Author: [% email | html_entity %]<BR>
 
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.