fedora-hardware/hardware/hardware/templates __init__.py, NONE, 1.1 __init__.pyc, NONE, 1.1 add.kid, NONE, 1.1 add.pyc, NONE, 1.1 device.kid, NONE, 1.1 device.pyc, NONE, 1.1 login.kid, NONE, 1.1 master.kid, NONE, 1.1 master.pyc, NONE, 1.1 raw.kid, NONE, 1.1 raw.pyc, NONE, 1.1 stats.kid, NONE, 1.1 stats.pyc, NONE, 1.1 welcome.kid, NONE, 1.1 welcome.pyc, NONE, 1.1

Michael Patrick McGrath (mmcgrath) fedora-extras-commits at redhat.com
Thu Jan 11 20:03:03 UTC 2007


Author: mmcgrath

Update of /cvs/fedora/fedora-hardware/hardware/hardware/templates
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3389/hardware/hardware/templates

Added Files:
	__init__.py __init__.pyc add.kid add.pyc device.kid device.pyc 
	login.kid master.kid master.pyc raw.kid raw.pyc stats.kid 
	stats.pyc welcome.kid welcome.pyc 
Log Message:
added a ton of crap


--- NEW FILE __init__.py ---


--- NEW FILE __init__.pyc ---
mò
hžŠEc

--- NEW FILE add.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Welcome to TurboGears</title>
</head>
<body>

        <span py:replace="hostObject.UUID">UUID</span><br/>
        <span py:replace="hostObject.lsbRelease">lsbRelease</span><br/>
        <span py:replace="hostObject.OS">OS</span><br/>
        <span py:replace="hostObject.platform">platform</span><br/>
        <span py:replace="hostObject.bogomips">bogomips</span><br/>
        <span py:replace="hostObject.systemMemory">systemMemory</span><br/>
        <span py:replace="hostObject.CPUVendor">CPUVendor</span><br/>
        <span py:replace="hostObject.numCPUs">numCPUs</span><br/>
        <span py:replace="hostObject.CPUSpeed">CPUSpeed</span><br/>
        <span py:replace="hostObject.language">language</span><br/>
        <span py:replace="hostObject.defaultRunlevel">defaultRunlevel</span><br/>

</body>
</html>


--- NEW FILE add.pyc ---
mò
/0“Ec




















u"


        u 
        u

(#















	


	


	


	


	


	


	


	


	


	


	





(





--- NEW FILE device.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Welcome to TurboGears</title>
</head>
<body>

        <span py:replace="deviceObject.Description">Description</span><br/>
        <span py:replace="deviceObject.Bus">Bus</span><br/>
        <span py:replace="deviceObject.Class">Class</span><br/>
        <span py:replace="deviceObject.Driver">Driver</span><br/>
</body>
</html>


--- NEW FILE device.pyc ---
mò
”Ec













u"


        u 
        (













	


	


	


	





(





--- NEW FILE login.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:py="http://purl.org/kid/ns#">

<head>
    <meta content="text/html; charset=UTF-8"
        http-equiv="content-type" py:replace="''"/>
    <title>Login</title>
    <style type="text/css">
        #loginBox
        {
            width: 30%;
            margin: auto;
            margin-top: 10%;
            padding-left: 10%;
            padding-right: 10%;
            padding-top: 5%;
            padding-bottom: 5%;
            font-family: verdana;
            font-size: 10px;
            background-color: #eee;
            border: 2px solid #ccc;
        }

        #loginBox h1
        {
            font-size: 42px;
            font-family: "Trebuchet MS";
            margin: 0;
            color: #ddd;
        }

        #loginBox p
        {
            position: relative;
            top: -1.5em;
            padding-left: 4em;
            font-size: 12px;
            margin: 0;
            color: #666;
        }

        #loginBox table
        {
            table-layout: fixed;
            border-spacing: 0;
            width: 100%;
        }

        #loginBox td.label
        {
            width: 33%;
            text-align: right;
        }

        #loginBox td.field
        {
            width: 66%;
        }

        #loginBox td.field input
        {
            width: 100%;
        }

        #loginBox td.buttons
        {
            text-align: right;
        }

    </style>
</head>

<body>
    <div id="loginBox">
        <h1>Login</h1>
        <p>${message}</p>
        <form action="${previous_url}" method="POST">
            <table>
                <tr>
                    <td class="label">
                        <label for="user_name">User Name:</label>
                    </td>
                    <td class="field">
                        <input type="text" id="user_name" name="user_name"/>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <label for="password">Password:</label>
                    </td>
                    <td class="field">
                        <input type="password" id="password" name="password"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="buttons">
                        <input type="submit" name="login" value="Login"/>
                    </td>
                </tr>
            </table>

            <input py:if="forward_url" type="hidden" name="forward_url"
                value="${forward_url}"/>
                
            <input py:for="name,value in original_parameters.items()"
                type="hidden" name="${name}" value="${value}"/>
        </form>
    </div>
</body>
</html>


--- NEW FILE master.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python import sitetemplate ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate">

<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title py:replace="''">Your title goes here</title>
    <meta py:replace="item[:]"/>
    <style type="text/css">
        #pageLogin
        {
            font-size: 10px;
            font-family: verdana;
            text-align: right;
        }
    </style>
    <style type="text/css" media="screen">
@import "/static/css/style.css";
</style>
</head>

<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
    <div py:if="tg.config('identity.on',False) and not 'logging_in' in locals()"
        id="pageLogin">
        <span py:if="tg.identity.anonymous">
            <a href="/login">Login</a>
        </span>
        <span py:if="not tg.identity.anonymous">
            Welcome ${tg.identity.user.display_name}.
            <a href="/logout">Logout</a>
        </span>
    </div>
    <div id="header">&nbsp;</div>
    <div id="main_content">
    <div py:if="tg_flash" class="flash" py:content="tg_flash"></div>

    <div py:replace="[item.text]+item[:]"/>

	<!-- End of main_content -->
	</div>
<div id="footer"> <img src="/static/images/under_the_hood_blue.png" alt="TurboGears under the hood" />
  <p>TurboGears is a open source front-to-back web development
    framework written in Python</p>
  <p>Copyright &copy; 2006 Kevin Dangoor</p>
</div>
</body>

</html>


--- NEW FILE master.pyc ---
mò
ižŠEc






(





c


    R
        #pageLogin
        {
            font-size: 10px;
            font-family: verdana;
            text-align: right;
        }
    u
@import "/static/css/style.css";
u
(








!




c






    s

        u"
            u
            Welcome u
            u

    u

	u
	u
u
  u
    framework written in Pythonu

#



































!













c





--- NEW FILE raw.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Raw Dump</title>
</head>
<body>
    <div py:for='host in Hosts'><table>
        <tr><td>UUID</td><td>${host.UUID}</td></tr>
        <tr><td>OS</td><td>${host.OS}</td></tr>
        <tr><td>platform</td><td>${host.platform}</td></tr>
        <tr><td>bogomips</td><td>${host.bogomips}</td></tr>
        <tr><td>systemMemory</td><td>${host.systemMemory}</td></tr>
        <tr><td>systemSwap</td><td>${host.systemSwap}</td></tr>
        <tr><td>CPUVendor</td><td>${host.CPUVendor}</td></tr>
        <tr><td>numCPUs</td><td>${host.numCPUs}</td></tr>
        <tr><td>CPUSpeed</td><td>${host.CPUSpeed}</td></tr>
        <tr><td>language</td><td>${host.language}</td></tr>
        <tr><td>defaultRunlevel</td><td>${host.defaultRunlevel}</td></tr>
        <tr><td>vendor</td><td>${host.vendor}</td></tr>
        <tr><td>system</td><td>${host.system}</td></tr>
        </table>
            <table>
                <tr><th>Bus</th><th>Class</th><th>Driver</th><th>Description</th></tr>
            <div py:for='link in HostLinks.select("host_u_u_id=\"%s\"" % host.UUID)'>
                <tr>
                    <td>${Device.select('id=%s' % link.deviceID)[0].Bus}</td>
                    <td>${Device.select('id=%s' % link.deviceID)[0].Class}</td>
                    <td>${Device.select('id=%s' % link.deviceID)[0].Driver}</td>
                    <td>${Device.select('id=%s' % link.deviceID)[0].Description}</td>
                </tr>
            </div>
            </table>
        <br/>
    </div>
</body>
</html>


--- NEW FILE raw.pyc ---
mò
d¥Ec












































WqI
We





































u"
    u!
        u 

            u
                u 
                    s


















































































































































!


!


!


!















(





--- NEW FILE stats.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title> Stats </title>
</head>
<body>
    <table>
        <tr><td>Total Registered Hosts</td><td>${Host.select('1=1').count()}</td></tr>
        <tr><td>Total Registered Devices</td><td>${Device.select('1=1').count()}</td></tr>
        <tr><td>Arch's</td>
             <td>
                <table>
                    <tr py:for='arch in Stat["archs"]'>
                        <td>${arch[0]}</td><td>${arch[1]} </td><td><b py:for='i in range(1, int( float(arch[1]) / Stat["archstot"] * 50 ))'>|</b></td><td>${'%.1f' % (float(arch[1]) / Stat["archstot"] * 100) } %</td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr><td>Operating Systems</td><td>
                <div py:for='OS in Stat["OS"]'>
                    ${OS[0]}: ${OS[1]}<br/>
                </div>
            </td></tr>
        <tr><td>Default Runlevel</td><td>
                <div py:for='rl in Stat["runlevel"]'>
                    (${rl[0]}): ${rl[1]}<br/>
                </div>
            </td></tr>
        <tr><td>Top 20 Devices</td><td>
                <div py:for='dev in Stat["devices"]'>
                    ${dev[0]}: ${dev[1]}<br/>
                </div>
            </td></tr>


    </table>
</body>
</html>


--- NEW FILE stats.pyc ---
mò
ì\¥Ec











































We









u"
    u#
        u 
             u
                u
                    t
                        i
            u


        u
                    (u


    (%















































,




'



























































(





--- NEW FILE welcome.kid ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Welcome to TurboGears</title>
</head>
<body>

  <div id="status_block">Your application is now running</div>
  <div id="sidebar">
    <h2>Learn more</h2>
    Learn more about TurboGears and take part in its
    development
    <ul class="links">
      <li><a href="http://www.turbogears.org">Official website</a></li>
      <li><a href="http://docs.turbogears.org">Documentation</a></li>
      <li><a href="http://trac.turbogears.org/turbogears/">Trac
        (bugs/suggestions)</a></li>
      <li><a href="http://groups.google.com/group/turbogears"> Mailing list</a> </li>
    </ul>
    <span py:replace="now">now</span>
    <span py:replace="UUID">UUID</span>
  </div>
  <div id="getting_started">
    <ol id="getting_started_steps">
      <li class="getting_started">
        <h3>Model</h3>
        <p> <a href="http://docs.turbogears.org/1.0/GettingStarted/DefineDatabase">Design models</a> in the <span class="code">model.py</span>.<br/>
          Edit <span class="code">dev.cfg</span> to <a href="http://docs.turbogears.org/1.0/GettingStarted/UseDatabase">use a different backend</a>, or start with a pre-configured SQLite database. <br/>
          Use script <span class="code">tg-admin sql create</span> to create the database tables.</p>
      </li>
      <li class="getting_started">
        <h3>View</h3>
        <p> Edit <a href="http://docs.turbogears.org/1.0/GettingStarted/Kid">html-like templates</a> in the <span class="code">/templates</span> folder;<br/>
        Put all <a href="http://docs.turbogears.org/1.0/StaticFiles">static contents</a> in the <span class="code">/static</span> folder. </p>
      </li>
      <li class="getting_started">
        <h3>Controller</h3>
        <p> Edit <span class="code"> controllers.py</span> and <a href="http://docs.turbogears.org/1.0/GettingStarted/CherryPy">build your
          website structure</a> with the simplicity of Python objects. <br/>
          TurboGears will automatically reload itself when you modify your project. </p>
      </li>
    </ol>
    <div class="notice"> If you create something cool, please <a href="http://groups.google.com/group/turbogears">let people know</a>, and consider contributing something back to the <a href="http://groups.google.com/group/turbogears">community</a>.</div>
  </div>
  <!-- End of getting_started -->
</body>
</html>


--- NEW FILE welcome.pyc ---
mò
Ï)“Ec


















































u"

  u!
  u
    u 

    Learn more about TurboGears and take part in its
    development
    u 
      u 
        (bugs/suggestions)u)
        u 
          Edit u
          Use script u

        Put all u*

          website structureu(
          TurboGears will automatically reload itself when you modify your project. u












































































































































































(







More information about the scm-commits mailing list