def __init__(self):
        with open(os.path.join(TEMPLATES_PATH, 'periodic.html'), 'r') as periodic_file:        
            periodic_table = periodic_file.read()

        PopupModule.__init__(self, popup_content=periodic_table, button_label='Select Element',
                             styles=[os.path.join(STYLES_PATH, 'periodic.css')],
                             scripts=[os.path.join(SCRIPTS_PATH, 'periodic.js')])
Beispiel #2
0
    def __init__(self):
        with open(os.path.join(TEMPLATES_PATH, 'periodic.html'),
                  'r') as periodic_file:
            periodic_table = periodic_file.read()

        PopupModule.__init__(
            self,
            popup_content=periodic_table,
            button_label='Select Element',
            styles=[os.path.join(STYLES_PATH, 'periodic.css')],
            scripts=[os.path.join(SCRIPTS_PATH, 'periodic.js')])
    def __init__(self):
        self.handle = None

        with open(os.path.join(TEMPLATES_PATH, 'BLOBHoster.html'), 'r') as blobhoster_file:        
            blobhoster = blobhoster_file.read()            
            template = Template(blobhoster)
            context = Context({'form': BLOBHosterForm()})
            popup_content = template.render(context)
        
        PopupModule.__init__(self, popup_content=popup_content, button_label='Upload File',
                             scripts=[os.path.join(SCRIPTS_PATH, 'blobhoster.js')])
 def __init__(self):
     scripts = [os.path.join(SCRIPTS_PATH, 'handle.js')]
     styles = []
     
     popup_content = "<p style='color:red;'>"
     popup_content += "Warning: You are about to request an handle for this document.<br/>" 
     popup_content += "Clicking on 'Save' will generate a request to the Handle System."
     popup_content += "A unique handle will be created for this document and it will be registered on the Handle System." 
     popup_content += "</p>"
     button_label = "Get a unique handle"
             
     PopupModule.__init__(self, scripts, styles, popup_content, button_label)
Beispiel #5
0
    def __init__(self):
        scripts = [os.path.join(SCRIPTS_PATH, 'handle.js')]
        styles = []

        popup_content = "<p style='color:red;'>"
        popup_content += "Warning: You are about to request an handle for this document.<br/>"
        popup_content += "Clicking on 'Save' will generate a request to the Handle System."
        popup_content += "A unique handle will be created for this document and it will be registered on the Handle System."
        popup_content += "</p>"
        button_label = "Get a unique handle"

        PopupModule.__init__(self, scripts, styles, popup_content,
                             button_label)
 def __init__(self):
     self.table = None
     self.table_name = None
     
     with open(os.path.join(TEMPLATES_PATH, 'ExcelUploader.html'), 'r') as excel_uploader_file:        
         excel_uploader = excel_uploader_file.read()            
         template = Template(excel_uploader)
         context = Context({'form': ExcelUploaderForm()})
         popup_content = template.render(context)
     
     PopupModule.__init__(self, popup_content=popup_content, button_label='Upload Excel File',
                          scripts=[os.path.join(SCRIPTS_PATH, 'exceluploader.js')],
                          styles=[os.path.join(STYLES_PATH, 'exceluploader.css')])
Beispiel #7
0
    def __init__(self):
        self.handle = None

        with open(os.path.join(TEMPLATES_PATH, 'BLOBHoster.html'),
                  'r') as blobhoster_file:
            blobhoster = blobhoster_file.read()
            template = Template(blobhoster)
            context = Context({'form': BLOBHosterForm()})
            popup_content = template.render(context)

        PopupModule.__init__(
            self,
            popup_content=popup_content,
            button_label='Upload File',
            scripts=[os.path.join(SCRIPTS_PATH, 'blobhoster.js')])
Beispiel #8
0
    def __init__(self):
        self.table = None
        self.table_name = None

        with open(os.path.join(TEMPLATES_PATH, 'ExcelUploader.html'),
                  'r') as excel_uploader_file:
            excel_uploader = excel_uploader_file.read()
            template = Template(excel_uploader)
            context = Context({'form': ExcelUploaderForm()})
            popup_content = template.render(context)

        PopupModule.__init__(
            self,
            popup_content=popup_content,
            button_label='Upload Excel File',
            scripts=[os.path.join(SCRIPTS_PATH, 'exceluploader.js')],
            styles=[os.path.join(STYLES_PATH, 'exceluploader.css')])