Back to index

moin  1.9.0~rc2
Public Member Functions
fckoutput.BaseHtmlMixin Class Reference
Inheritance diagram for fckoutput.BaseHtmlMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def sendUploadResults

Detailed Description

Definition at line 103 of file fckoutput.py.


Member Function Documentation

def fckoutput.BaseHtmlMixin.sendUploadResults (   self,
  errorNo = 0,
  fileUrl = '',
  fileName = '',
  customMsg = '' 
)

Definition at line 104 of file fckoutput.py.

00104 
00105        def sendUploadResults( self, errorNo = 0, fileUrl = '', fileName = '', customMsg = '' ):
00106               self.setHttpHeaders("text/html")
00107               "This is the function that sends the results of the uploading process"
00108 
00109               "Minified version of the document.domain automatic fix script (#1919)."
00110               "The original script can be found at _dev/domain_fix_template.js"
00111               return """<script type="text/javascript">
00112                      (function(){var d=document.domain;while (true){try{var A=window.parent.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();
00113 
00114                      window.parent.OnUploadCompleted(%(errorNumber)s,"%(fileUrl)s","%(fileName)s","%(customMsg)s");
00115                      </script>""" % {
00116                      'errorNumber': errorNo,
00117                      'fileUrl': fileUrl.replace ('"', '\\"'),
00118                      'fileName': fileName.replace ( '"', '\\"' ) ,
00119                      'customMsg': customMsg.replace ( '"', '\\"' ),
00120                      }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: