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