some moving around and renaming of templates and static resources
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1829 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d258c62bb7
commit
169ddf5aae
13 changed files with 287 additions and 292 deletions
|
@ -1,10 +0,0 @@
|
|||
<html xmlns:nevow="http://nevow.com/ns/nevow/0.1">
|
||||
<head>
|
||||
<title>loops Agent</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>loops Agent</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,99 +1,99 @@
|
|||
/*
|
||||
$Id: base.css 1779 2007-06-07 19:37:44Z helmutm $
|
||||
|
||||
based on http://www.tjkdesign.com/articles/liquid/4.asp
|
||||
|
||||
*/
|
||||
|
||||
body {
|
||||
min-width:640px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: 9pt Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
background-color: white;
|
||||
color: #000040;
|
||||
}
|
||||
|
||||
#global,#menu,#sub-section,#footer {
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#content {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#global,#footer {width:100%}
|
||||
#menu,#content,#sub-section {float:left}
|
||||
#menu {width:20%}
|
||||
#content {width:62%}
|
||||
#sub-section {width:17%}
|
||||
#footer {clear:left}
|
||||
|
||||
/* more general stuff */
|
||||
|
||||
.top image {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
div.box {
|
||||
margin: 12px 12px 8px 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
div.box h4 {
|
||||
font: 110% Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
color: #000040;
|
||||
border: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 4px;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 3px;
|
||||
background-color: #ddd;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
table.listing {
|
||||
margin: 1px;
|
||||
margin-top: 6px;
|
||||
|
||||
}
|
||||
|
||||
table.listing th {
|
||||
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
color: #000040;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
margin-top: 12px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.itemViews {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin: 1em 0 1em 0;
|
||||
}
|
||||
|
||||
.button a {
|
||||
padding: 2px 4px 2px 4px;
|
||||
background-color: #e8e8e8;
|
||||
text-decoration: None;
|
||||
color: Black;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: #f4f4f4 #989898 #989898 #f4f4f4;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
#footer { border-bottom: none; }
|
||||
|
||||
/*
|
||||
$Id$
|
||||
|
||||
based on http://www.tjkdesign.com/articles/liquid/4.asp
|
||||
|
||||
*/
|
||||
|
||||
body {
|
||||
min-width:640px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: 9pt Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
background-color: white;
|
||||
color: #000040;
|
||||
}
|
||||
|
||||
#global,#menu,#sub-section,#footer {
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#content {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#global,#footer {width:100%}
|
||||
#menu,#content,#sub-section {float:left}
|
||||
#menu {width:20%}
|
||||
#content {width:62%}
|
||||
#sub-section {width:17%}
|
||||
#footer {clear:left}
|
||||
|
||||
/* more general stuff */
|
||||
|
||||
.top image {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
div.box {
|
||||
margin: 12px 12px 8px 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
div.box h4 {
|
||||
font: 110% Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
color: #000040;
|
||||
border: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 4px;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 3px;
|
||||
background-color: #ddd;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
table.listing {
|
||||
margin: 1px;
|
||||
margin-top: 6px;
|
||||
|
||||
}
|
||||
|
||||
table.listing th {
|
||||
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||
color: #000040;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
margin-top: 12px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.itemViews {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin: 1em 0 1em 0;
|
||||
}
|
||||
|
||||
.button a {
|
||||
padding: 2px 4px 2px 4px;
|
||||
background-color: #e8e8e8;
|
||||
text-decoration: None;
|
||||
color: Black;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: #f4f4f4 #989898 #989898 #f4f4f4;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
#footer { border-bottom: none; }
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
$Id: custom.css 1302 2006-08-17 15:21:10Z helmutm $
|
||||
$Id$
|
||||
|
||||
cyberconcepts specialties
|
||||
|
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
|
@ -1,138 +1,138 @@
|
|||
/*
|
||||
$Id: loops.css 1729 2007-05-13 08:56:47Z helmutm $
|
||||
|
||||
settings specific for view / node objects
|
||||
|
||||
*/
|
||||
|
||||
a[href]:hover {
|
||||
text-decoration: none;
|
||||
color: #803000;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: scroll;
|
||||
max-height: 35em;
|
||||
}
|
||||
|
||||
.box div.body div.even {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
/*.content-1 h1 { */
|
||||
h1 {
|
||||
font-size: 160%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-2 h1, h2 {
|
||||
font-size: 140%;
|
||||
}
|
||||
|
||||
.content-3 h1, .content-2 h2, h3 {
|
||||
font-size: 130%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-4 h1, .content-3 h2, .content-2 h3, .content-1 h4 {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
.content-5 h1, .content-4 h2, .content-3 h3, content-2 h4 {
|
||||
font-size: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.subcolumn {
|
||||
display: inline;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: 5px;
|
||||
padding: 6px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.box h1, .box h2, .box h3 {
|
||||
border-bottom: None;
|
||||
}
|
||||
|
||||
div.menu-1, div.menu-2 {
|
||||
border-top: 1px solid #eeeeee;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.box div.body div.menu-3 {
|
||||
border-top: none;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.box div.body div.menu-4 {
|
||||
padding-left: 3em;
|
||||
font-size: 90%
|
||||
}
|
||||
|
||||
.flow-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.flow-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
div.image {
|
||||
margin-top: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* search stuff */
|
||||
|
||||
.searchForm input.button, input.submit {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.searchForm input.submit {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* dojo stuff */
|
||||
|
||||
/*.dojoComboBox {
|
||||
width: 200px;
|
||||
}*/
|
||||
|
||||
.dojoDialog {
|
||||
background: #eee;
|
||||
border: 1px solid #999;
|
||||
-moz-border-radius: 5px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dojoDialog th {
|
||||
font-size: 120%;
|
||||
padding: 0 5px 8px 5px;
|
||||
}
|
||||
|
||||
.dojoDialog .headline {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dojoDialog input.text {
|
||||
width: 100%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.dojoDialog input.submit {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*
|
||||
$Id$
|
||||
|
||||
settings specific for view / node objects
|
||||
|
||||
*/
|
||||
|
||||
a[href]:hover {
|
||||
text-decoration: none;
|
||||
color: #803000;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: scroll;
|
||||
max-height: 35em;
|
||||
}
|
||||
|
||||
.box div.body div.even {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
/*.content-1 h1 { */
|
||||
h1 {
|
||||
font-size: 160%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-2 h1, h2 {
|
||||
font-size: 140%;
|
||||
}
|
||||
|
||||
.content-3 h1, .content-2 h2, h3 {
|
||||
font-size: 130%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-4 h1, .content-3 h2, .content-2 h3, .content-1 h4 {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
.content-5 h1, .content-4 h2, .content-3 h3, content-2 h4 {
|
||||
font-size: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.subcolumn {
|
||||
display: inline;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: 5px;
|
||||
padding: 6px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.box h1, .box h2, .box h3 {
|
||||
border-bottom: None;
|
||||
}
|
||||
|
||||
div.menu-1, div.menu-2 {
|
||||
border-top: 1px solid #eeeeee;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.box div.body div.menu-3 {
|
||||
border-top: none;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.box div.body div.menu-4 {
|
||||
padding-left: 3em;
|
||||
font-size: 90%
|
||||
}
|
||||
|
||||
.flow-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.flow-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
div.image {
|
||||
margin-top: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* search stuff */
|
||||
|
||||
.searchForm input.button, input.submit {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.searchForm input.submit {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* dojo stuff */
|
||||
|
||||
/*.dojoComboBox {
|
||||
width: 200px;
|
||||
}*/
|
||||
|
||||
.dojoDialog {
|
||||
background: #eee;
|
||||
border: 1px solid #999;
|
||||
-moz-border-radius: 5px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dojoDialog th {
|
||||
font-size: 120%;
|
||||
padding: 0 5px 8px 5px;
|
||||
}
|
||||
|
||||
.dojoDialog .headline {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dojoDialog input.text {
|
||||
width: 100%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.dojoDialog input.submit {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
$Id: print.css 1340 2006-09-12 08:39:40Z helmutm $
|
||||
$Id$
|
||||
|
||||
*/
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!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" xml:lang="en" lang="en"> //-->
|
||||
<html xmlns:nevow="http://nevow.com/ns/nevow/0.1">
|
||||
|
||||
|
@ -8,15 +8,15 @@
|
|||
<title>loops</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/zope3_tablelayout.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/zope3_tablelayout.css");</style>
|
||||
|
||||
<style type="text/css" media="screen">@import url("/css/base.css");</style>
|
||||
<style type="text/css" media="screen">@import url("/resources/base.css");</style>
|
||||
|
||||
<style type="text/css" media="print">@import url("/css/print.css");</style>
|
||||
<style type="text/css" media="print">@import url("/resources/print.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/loops.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/loops.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/custom.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/custom.css");</style>
|
||||
|
||||
|
||||
<script type="text/javascript"
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!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" xml:lang="en" lang="en"> //-->
|
||||
<html xmlns:nevow="http://nevow.com/ns/nevow/0.1">
|
||||
|
||||
|
@ -8,15 +8,15 @@
|
|||
<title>loops</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/zope3_tablelayout.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/zope3_tablelayout.css");</style>
|
||||
|
||||
<style type="text/css" media="screen">@import url("/css/base.css");</style>
|
||||
<style type="text/css" media="screen">@import url("/resources/base.css");</style>
|
||||
|
||||
<style type="text/css" media="print">@import url("/css/print.css");</style>
|
||||
<style type="text/css" media="print">@import url("/resources/print.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/loops.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/loops.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/custom.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/custom.css");</style>
|
||||
|
||||
|
||||
<script type="text/javascript"
|
|
@ -8,15 +8,15 @@
|
|||
<title>loops</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/zope3_tablelayout.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/zope3_tablelayout.css");</style>
|
||||
|
||||
<style type="text/css" media="screen">@import url("/css/base.css");</style>
|
||||
<style type="text/css" media="screen">@import url("/resources/base.css");</style>
|
||||
|
||||
<style type="text/css" media="print">@import url("/css/print.css");</style>
|
||||
<style type="text/css" media="print">@import url("/resources/print.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/loops.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/loops.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/custom.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/custom.css");</style>
|
||||
|
||||
|
||||
<script type="text/javascript"
|
|
@ -8,15 +8,15 @@
|
|||
<title>loops</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/zope3_tablelayout.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/zope3_tablelayout.css");</style>
|
||||
|
||||
<style type="text/css" media="screen">@import url("/css/base.css");</style>
|
||||
<style type="text/css" media="screen">@import url("/resources/base.css");</style>
|
||||
|
||||
<style type="text/css" media="print">@import url("/css/print.css");</style>
|
||||
<style type="text/css" media="print">@import url("/resources/print.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/loops.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/loops.css");</style>
|
||||
|
||||
<style type="text/css" media="all">@import url("/css/custom.css");</style>
|
||||
<style type="text/css" media="all">@import url("/resources/custom.css");</style>
|
||||
|
||||
|
||||
<script type="text/javascript"
|
|
@ -12,6 +12,7 @@
|
|||
# whole ini File into the self.IniDict if it is not already filled and for each setting just chnaging the
|
||||
# self.IniDict
|
||||
|
||||
import os
|
||||
from nevow import loaders, rend, static, url, inevow
|
||||
from nevow.inevow import IRequest
|
||||
from twisted.internet import defer
|
||||
|
@ -28,6 +29,11 @@ INIFILE = "usermode.ini"
|
|||
JOBFILE = "joblist.txt"
|
||||
#----------------------------------------------------------
|
||||
|
||||
resourcesDirectory = 'resources'
|
||||
templatesDirectory = 'templates'
|
||||
|
||||
def template(fn):
|
||||
return loaders.xmlfile(os.path.join(templatesDirectory, fn))
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#---------------------------- AgentHome --------------------------------------------------
|
||||
|
@ -37,20 +43,19 @@ JOBFILE = "joblist.txt"
|
|||
|
||||
class AgentHome(rend.Page):
|
||||
|
||||
child_css = static.File('css')
|
||||
child_images = static.File('images')
|
||||
docFactory = loaders.xmlfile('AgentStart.html')
|
||||
child_resources = static.File(resourcesDirectory)
|
||||
docFactory = template('agent.html')
|
||||
|
||||
|
||||
def __init__(self,IniDict={}):
|
||||
|
||||
|
||||
#TODO: implement automatic reading of default ini file, or one passed via constructor
|
||||
#-------- ini settings ------------------------
|
||||
# THIS SECTION IS USED FOR PROJECT INTERNAL DEBUG ONLY
|
||||
self.iniFile = INIFILE
|
||||
self.IniDict = IniDict
|
||||
#-----------------------------------------------
|
||||
|
||||
|
||||
#-------- get ini settings from file --------
|
||||
# stores IniFile settings in self.IniDict
|
||||
|
||||
|
@ -58,11 +63,11 @@ class AgentHome(rend.Page):
|
|||
|
||||
fPointer = open(self.iniFile,"r")
|
||||
IniSettings = fPointer.readlines()
|
||||
|
||||
|
||||
for iniLine in IniSettings:
|
||||
elem = iniLine.split(":")
|
||||
self.IniDict[elem[0]] = elem[1]
|
||||
|
||||
|
||||
fPointer.close()
|
||||
|
||||
print "[AgentHome] self.UserMode: ", self.IniDict["UserMode"]
|
||||
|
@ -98,7 +103,7 @@ class AgentHome(rend.Page):
|
|||
|
||||
print "[child_ChangeUserMode] UserMode: ", self.IniDict["UserMode"]
|
||||
print "[child_ChangeUserMode] ----retrieving form values----"
|
||||
|
||||
|
||||
form = IRequest(context).args
|
||||
|
||||
if form != {}:
|
||||
|
@ -117,7 +122,7 @@ class AgentHome(rend.Page):
|
|||
Write changed setting back to the iniFile ?
|
||||
filePointer = open(self.iniFile,"rw")
|
||||
"""
|
||||
|
||||
|
||||
return AgentHome(self.IniDict)
|
||||
|
||||
|
||||
|
@ -150,15 +155,15 @@ class AgentHome(rend.Page):
|
|||
"""handles errors that ocurred in the MailCrawler"""
|
||||
|
||||
return AgentHome(self.IniDict)
|
||||
|
||||
|
||||
|
||||
#---- page "job overview" methods (class JobOverView)----
|
||||
|
||||
def child_ViewJobDetails(self,context):
|
||||
|
||||
|
||||
form = IRequest(context).args
|
||||
selectedJob = form['jobList'][0]
|
||||
|
||||
|
||||
return JobOverViewDetails(self.IniDict, selectedJob)
|
||||
|
||||
|
||||
|
@ -166,7 +171,7 @@ class AgentHome(rend.Page):
|
|||
#-------------AgentHome: RENDER SECTION------------------------
|
||||
# this code section contains the Nevow Rendering Methods
|
||||
# for building the page element tree
|
||||
|
||||
|
||||
def render_getActiveUserMode(self,context,data):
|
||||
return self.IniDict["UserMode"]
|
||||
|
||||
|
@ -175,15 +180,15 @@ class AgentHome(rend.Page):
|
|||
return "0.1 alpha"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#///////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#----------------- PAGES SECTION -------------------------------------------------------------------------
|
||||
# all classes in this section are pages called via the navigation menue of AgentHome
|
||||
|
||||
class JobOverView(rend.Page):
|
||||
|
||||
docFactory = loaders.xmlfile('AgentJobView.html')
|
||||
|
||||
docFactory = template('job.html')
|
||||
|
||||
def __init__(self, IniDict):
|
||||
|
||||
|
@ -211,7 +216,7 @@ class JobOverView(rend.Page):
|
|||
|
||||
for elem in lines:
|
||||
patternList.append(gen_pattern(data=elem))
|
||||
|
||||
|
||||
return patternList
|
||||
|
||||
|
||||
|
@ -219,7 +224,7 @@ class JobOverView(rend.Page):
|
|||
|
||||
class JobOverViewDetails(rend.Page):
|
||||
|
||||
docFactory = loaders.xmlfile('AgentJobViewDetail.html')
|
||||
docFactory = template('jobdetail.html')
|
||||
|
||||
def __init__(self, IniDict={}, selectedJob=""):
|
||||
|
||||
|
@ -249,13 +254,13 @@ class JobOverViewDetails(rend.Page):
|
|||
|
||||
for elem in self.jobdetails:
|
||||
patternList.append(gen_pattern(data=elem))
|
||||
|
||||
|
||||
return patternList
|
||||
|
||||
|
||||
class AgentOutlookMailView(rend.Page):
|
||||
|
||||
docFactory = loaders.xmlfile('AgentOutlookMailView.html')
|
||||
docFactory = template('mail.html')
|
||||
|
||||
def __init__(self, IniDict={}, MailCollection=[]):
|
||||
|
||||
|
@ -279,5 +284,5 @@ class AgentOutlookMailView(rend.Page):
|
|||
|
||||
for elem in self.MailCollection:
|
||||
patternList.append(gen_pattern(data=elem))
|
||||
|
||||
|
||||
return patternList
|
||||
|
|
Loading…
Add table
Reference in a new issue