Пример #1
0
 def document(self):
     baseDir = self.enamel.Settings.BaseDir
     theme = self.enamel.Settings.theme
     self.child_css = static.File('%s/themes/%s/css/' % (baseDir, theme))
     self.child_js  = compression.CompressingResourceWrapper(static.File(baseDir + '/js/'))
     self.child_images = compression.CompressingResourceWrapper(static.File('%s/themes/%s/images/' % (baseDir, theme)))
     return pages.template('login.xml', templateDir='%s/themes/%s/templates/' % (baseDir, theme))
Пример #2
0
 def document(self):
     if len(self.getWan()) == 0:
         # Ask if a PPPoE connection should be created, otherwise map the LAN as our route and ask for a default gateway
         #return url.root.child('/??')
         self.enamel.config['WANPrimary'] = 'ppp0'
         return pages.stan(tags.html[tags.head[
             tags.title["Vulani"],
             tags.
             xml('<meta http-equiv="refresh" content="0;url=/PppConfig/"/>'
                 )], tags.body[""]])
     return pages.template('formpage.xml',
                           templateDir='/home/installer/templates')
Пример #3
0
 def document(self):
     baseDir = self.enamel.Settings.BaseDir
     theme = self.enamel.Settings.theme
     # Images, javascript and CSS locations
     # derived from base directory and theme
     self.child_css = static.File('%s/themes/%s/css/' % (baseDir, theme))
     self.child_js = compression.CompressingResourceWrapper(
         static.File(baseDir + '/js/'))
     self.child_images = compression.CompressingResourceWrapper(
         static.File('%s/themes/%s/images/' % (baseDir, theme)))
     return pages.template('registration.xml',
                           templateDir='%s/themes/%s/templates/' %
                           (baseDir, theme))
Пример #4
0
 def document(self):
     baseDir = self.enamel.Settings.BaseDir
     theme = self.enamel.Settings.theme
     # Images, javascript and CSS locations
     # derived from base directory and theme
     self.child_css = pages.static.File('%s/themes/%s/css/' %
                                        (baseDir, theme))
     self.child_js = pages.static.File(baseDir + '/js/')
     self.child_images = pages.static.File('%s/themes/%s/images/' %
                                           (baseDir, theme))
     return pages.template('dashboard.xml',
                           templateDir='%s/themes/%s/templates/' %
                           (baseDir, theme))
Пример #5
0
    def document(self):
        # Ensure we have some interfaces to work with
        if len(self.getWan()) == 0:
            # Check now whether or not we will us LAN as the default WAN (ie LAN==WAN)
            if not self.enamel.config['WANPrimary']:
                self.enamel.config['WANPrimary'] = self.enamel.config[
                    'LANPrimary'][0]

            return pages.stan(tags.html[tags.head[
                tags.title["Vulani"],
                tags.
                xml('<meta http-equiv="refresh" content="0;url=/ServiceConfig"/>'
                    )], tags.body[""]])
        return pages.template('formpage.xml',
                              templateDir='/home/installer/templates')
Пример #6
0
 def document(self):
     return pages.template('prep_fragment.xml', templateDir = '/home/installer/templates')
Пример #7
0
    def document(self):
        # Burn our config 


        return pages.template('prep.xml', templateDir = '/home/installer/templates')
Пример #8
0
 def document(self):
     return pages.template('account.xml', templateDir='%s/themes/%s/templates/' % (self.enamel.Settings.BaseDir, self.enamel.Settings.theme))
Пример #9
0
 def document(self):
     return pages.template('formpage.xml',
                           templateDir='/home/installer/templates')
Пример #10
0
 def document(self):
     return pages.template('defaultc.xml',
                           templateDir='%s/themes/%s/templates/' %
                           (baseDir, theme))
Пример #11
0
    def document(self):
        if self.enamel.setup.get('disktype') == 'single':
            return pages.template('diskmounts-s.xml', templateDir = '/home/installer/templates')

        return pages.template('diskmounts-r.xml', templateDir = '/home/installer/templates')
Пример #12
0
 def document(self):
     return pages.template(
         'users-domains.xml',
         templateDir='%s/themes/%s/templates/' %
         (self.enamel.Settings.BaseDir, self.enamel.Settings.theme))