korektury | pridan do e-mailu odkaz na korekturovane pdf
This commit is contained in:
		
							parent
							
								
									13d2a57ebc
								
							
						
					
					
						commit
						f3a8d2a7e4
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -124,10 +124,14 @@ class KorekturyView(generic.TemplateView): | |||
|         ''' | ||||
| 
 | ||||
|         # parametry e-mailu | ||||
|         odkaz = "https://mam.mff.cuni.cz:1443/korektury/{}/".format(oprava.pdf.pk) | ||||
|         from_email = 'korekturovatko@mam.mff.cuni.cz' | ||||
|         subject = u'Nová korektura od {}'.format(autor) | ||||
|         text = u"Text komentáře:\n\n{}\n\n=== Konec textu komentáře ===\n\ | ||||
|                 \nVaše korekturovátko\n".format(text) | ||||
|                 \nodkaz do korekturovátka: {}\n\ | ||||
|                 \nVaše korekturovátko\n".format(text, odkaz) | ||||
| 
 | ||||
|         print text | ||||
| 
 | ||||
|         # Prijemci e-mailu | ||||
|         emails = set() | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha