%doc> bootstrap/index.myt . This template is designed to interact with the zblog.controller.bootstrap controller module and is used to get initial database config information. %doc> <%init> # AJAX call definitions. both ajax calls in this doc go to controllers. if m.comp('/ajax/myghtyjax.myt:init', dboptions = { 'component':m.fetch_component('/bootstrap/ajax_dboptions', resolver_context='frontcontroller'), 'handler_uri':'/bootstrap/ajax_dboptions/', 'exectype':'writedom', 'dom_id':'dbtype' }, testconnect = { 'component':m.fetch_component('/bootstrap/ajax_testconnect', resolver_context='frontcontroller'), 'handler_uri':'/bootstrap/ajax_testconnect/', 'exectype':'writedom', 'dom_id':'dbtype' }, ): return %init> <%args> form %args> <& /ajax/myghtyjax.myt:js &>
This page is only viewed when you first install ZBLOG.
<& /form:formstatus, form=form &> <&|/components:entryform, action="/bootstrap/bootstrap/", columns=2, form=form&> <&|/components:field, type="text", name='adminuser'&> Administrator Username &> <&|/components:field, type="text", name='adminpw'&> Administrator Password &> <&|/components:field, type="dropdown", name='dbtype', onselect='dboptions'&> Database Type &> <&|/components:popup, name="dbtype"&> <& SELF:dboptions, **ARGS &> &> &> <%method dboptions> <%doc>Displays the entry fields corresponding to a specific type of database, if the given form contains a 'dbform' element, which is set by the controller. else just returns. %doc> <%args scope="dynamic"> form dbtype=None connected=False error=None %args> <%init> if not dbtype: return subform = form['dbform'] formargs = m.scomp('/components:formargs', form=subform, name=form.name) %init> <&|/components:fields&>