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

Class UploadAttachmentPage

DtmlPage --+
           |
          UploadAttachmentPage


DTML context for generating upload-attachment.dtml.
Method Summary
  __init__(self, attachment_store, field_name, encoding_name, summary_field_name, in_set)
Create a new page object.
  MakeSubmitUrl(self)
Return the URL for submitting this form.
    Inherited from DtmlPage
  __call__(self, request)
Generate an HTML page from the DTML template.
  GenerateEndBody(self, decorations)
Return markup to end the body of the HTML document.
  GenerateEndScript(self)
Return the HTML for ending an embedded script.
  GenerateHtmlHeader(self, description, headers)
Return the header for an HTML document.
  GenerateStartBody(self, decorations)
Return markup to start the body of the HTML document.
  GenerateStartScript(self, uri)
Return the HTML for beginning a script.
  GenerateXMLHeader(self)
Return the XML header for the document.
  GetMainPageUrl(self)
Return the URL for the main page.
  GetProgramName(self)
Return the name of this application program.
  MakeButton(self, title, script_url, css_class, **fields)
Generate HTML for a button to load a URL.
  MakeImageUrl(self, image)
Generate a URL for an image.
  MakeLoginForm(self, redirect_request, default_user_id)
  MakeRule(self, color)
Generate a plain horizontal rule.
  MakeSpacer(self, width, height)
Generate a spacer.
  UserIsInGroup(self, group_id)
Return true if the user is a member of group 'group_id'.
  WebRequest(self, script_url, **fields)
Convenience constructor for 'WebRequest' objects.

Class Variable Summary
    Inherited from DtmlPage
str common_javascript = '/common.js'
str html_stylesheet = '/stylesheets/qm.css'
str qm_bug_system_url = 'mailto:qmtest@codesourcery.com'

Method Details

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

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:
qm.web.DtmlPage.__init__

MakeSubmitUrl(self)

Return the URL for submitting this form.

Generated by Epydoc 2.1 on Thu Sep 27 15:49:05 2007 http://epydoc.sf.net