Mahabub Basha wrote: > I have to control my application formcontrols using css. My application run > as master or slave. If the application is in slave mode. I have to disable > all the form fields(uneditable) in all the pages. otherwise it will be > editable(if my application is in master mode).
Why don't you use the code below for your common.kid? -- Christoph <?python import myapp if myapp.isMaster(): pagetype = 'master' pageload = 'init()' else: pagetype = 'slave' pageload = None ?> <html xmlns:py="http://purl.org/kid/ns#"> <head py:match="item.tag == 'head'"> <link href="/static/${pagetype}.css" type="text/css" rel="stylesheet"/> <script type="text/javascript" src="/static/${pagetype}.js"></script> <div py:replace="[item.text] + item[:]">Page specific headers</div> </head> <body py:match="item.tag == 'body'" py:attrs="item.attrib" onload="$pageload"> <div> ... Common content to all pages ... </div> <div py:replace="[item.text] + item[:]"> Page content goes here. </div> </body> </html> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss