Package qm :: Module fields :: Class UploadAttachmentPage
[hide private]
[frames] | no frames]

Class UploadAttachmentPage
source code

web.DtmlPage --+
               |
              UploadAttachmentPage

DTML context for generating upload-attachment.dtml.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class


Instance Methods [hide private]
  __init__(self, attachment_store, field_name, encoding_name, summary_field_name, in_set=0)
Create a new page object.
  MakeSubmitUrl(self)
Return the URL for submitting this form.

Inherited from web.DtmlPage: GenerateEndBody, GenerateEndScript, GenerateHtmlHeader, GenerateStartBody, GenerateStartScript, GenerateXMLHeader, GetMainPageUrl, GetProgramName, MakeButton, MakeImageUrl, MakeLoginForm, MakeRule, MakeSpacer, UserIsInGroup, WebRequest, __call__


Class Variables [hide private]

Inherited from web.DtmlPage: common_javascript, html_stylesheet, qm_bug_system_url, web


Method Details [hide private]

__init__(self, attachment_store, field_name, encoding_name, summary_field_name, in_set=0)
(Constructor)

source code 

Create a new page object.

'attachment_store' -- The AttachmentStore in which the new attachment will be placed.

'field_name' -- The user-visible name of the field for which an attachment is being uploaded.

'encoding_name' -- The name of the HTML input that should contain the encoded attachment.

'summary_field_name' -- The name of the HTML input that should contain the user-visible summary of the attachment.

'in_set' -- If true, the attachment is being added to an attachment set field.
Overrides: web.DtmlPage.__init__

MakeSubmitUrl(self)

source code 
Return the URL for submitting this form.