[cpif] r287 - in trunk: . backend frontend-web frontend-web/skins/default
svn at argo.es
svn at argo.es
Thu Jul 26 19:21:31 CEST 2007
Author: jcea
Date: Thu Jul 26 19:21:27 2007
New Revision: 287
Log:
Movemos la reglas de estilo y el codigo javascript
a la tecnologia "static".
Hay que retocar el javascript, ya que tras la "fusion"
no funciona correctamente. ?Alvaro?.
Added:
trunk/frontend-web/skins/default/css.css
- copied, changed from r286, /trunk/frontend-web/skins/default/header.html
trunk/frontend-web/skins/default/js.js
- copied, changed from r286, /trunk/frontend-web/skins/default/body_show_thread.html
Modified:
trunk/TODO
trunk/backend/database.py
trunk/backend/upgrade.py
trunk/frontend-web/skins.py
trunk/frontend-web/skins/default/body_show_thread.html
trunk/frontend-web/skins/default/body_threadlist.html
trunk/frontend-web/skins/default/header.html
trunk/frontend-web/url_.py
Modified: trunk/TODO
==============================================================================
--- trunk/TODO (original)
+++ trunk/TODO Thu Jul 26 19:21:27 2007
@@ -304,3 +304,6 @@
no nos enteramos de ninguna manera. No se guarda el "trackeback",
y el sistema insiste e insiste...
+- 20070726: FRONTAL WEB: En algun momento hayq ue hacer limpieza
+ en el storage de los "CSS" y los "JS" huerfanos.
+
Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py (original)
+++ trunk/backend/database.py Thu Jul 26 19:21:27 2007
@@ -1,7 +1,7 @@
# $Id$
-VERSION_DB="2007071901"
+VERSION_DB="2007072601"
import globales
@@ -63,6 +63,8 @@
root["static"]=PersistentDict()
root["static"]["avatars"]=BTree()
root["static"]["smileys"]=BTree()
+ root["static"]["css"]=BTree()
+ root["static"]["js"]=BTree()
root["smileys"]=PersistentList()
conf=PersistentDict()
Modified: trunk/backend/upgrade.py
==============================================================================
--- trunk/backend/upgrade.py (original)
+++ trunk/backend/upgrade.py Thu Jul 26 19:21:27 2007
@@ -247,4 +247,10 @@
root["config"]["admin_email_address"]=""
conn.commit()
+ if root["version del foro"]=="2007071901" :
+ print "Actualizando la base de datos: 2007071901 -> 2007072601"
+ root["version del foro"]="2007072601"
+ root["static"]["css"]=BTree()
+ root["static"]["js"]=BTree()
+ conn.commit()
Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py (original)
+++ trunk/frontend-web/skins.py Thu Jul 26 19:21:27 2007
@@ -50,6 +50,7 @@
}
import os
+from globales import monitor
sdir = os.path.join(os.path.curdir,"skins")
print "Inicializo los skins"
for dir in os.listdir(sdir):
@@ -59,9 +60,25 @@
control = False
if control:
available_skins[dir]= {}
+
+ css=open(os.path.join(sdir,dir,"css.css")).read()
+ js=open(os.path.join(sdir,dir,"js.js")).read()
+ @monitor
+ def save_css_js(conn,css,js) :
+ from database import save_static
+ ret=save_static(conn,"css",css,{"content-type":"text/css"})
+ return (ret,save_static(conn,"js",js,{"content-type":"text/javascript"}))
+ css,js=save_css_js(css,js)
+ replacement={"***CSS***":"/static/css/%s" %css,
+ "***JS***":"/static/js/%s" %js}
+
for skin,file in skin_files.items():
f=open(os.path.join(sdir,dir,file))
- available_skins[dir][skin]=f.read()
+ data=f.read()
+ for k,v in replacement.iteritems() :
+ data=data.replace(k,v)
+ available_skins[dir][skin]=data
+ f.close()
if "default" not in available_skins: # FIXME: an~adir un skin de fallback?
raise "Error, no tenemos el skin por defecto!!"
Modified: trunk/frontend-web/skins/default/body_show_thread.html
==============================================================================
--- trunk/frontend-web/skins/default/body_show_thread.html (original)
+++ trunk/frontend-web/skins/default/body_show_thread.html Thu Jul 26 19:21:27 2007
@@ -24,83 +24,6 @@
</div>
</div>
</div>
-<script type="text/javascript">
-<!--
-function toggleBox(id,type) {
- /* type = 0 hide
- type = 1 show
- type = 2 toggle
- */
- if(document.layers) {
- if(type<2)
- document.layers[id].display = type ? "block" : "none";
- else
- document.layers[id].display = document.layers[id].display=="none" ? "block" : "none";
- }
- else if(document.getElementById) {
- var obj = document.getElementById(id);
- if(type<2)
- obj.style.display = type ? "block" : "none";
- else
- obj.style.display = obj.style.display == "none" ? "block" : "none";
- }
- else if(document.all) {
- if(type<2)
- document.all[id].style.display = type ? "block" : "none";
- else
- document.all[id].style.display = document.all[id].style.display == "none" ? "block" : "none";
- }
-}
-
-var used_ids = new Array();
-
-function responder(id) {
- var post = document.getElementById(id);
-/* Descomentar si se desea que el formulario original de postear se conserve */
-
-/* var finline = document.getElementById("form-inline"); */
-/* if (!finline) { */
-/* var f = document.getElementById("form"); */
-/* finline = f.cloneNode(true); */
-/* finline.id = "form-inline"; */
-/* } */
-/* post.appendChild(finline); */
- post.appendChild(document.getElementById("form"));
- toggleBox('form',1);
-
-/* if(id == "hilos") { return; } */
-
- /* quotes */
-/* var my_id = id.slice(1); */
-/* if(! used_ids[my_id]){ */
-/* used_ids[my_id] = true; */
-/* var req = false; */
-/* try { */
-/* req = new XMLHttpRequest(); */
-/* } */
-/* catch(e) { */
-/* req = false; */
-/* } */
-/* if(req) { */
-/* req.open("GET","/get_msg_source/"+my_id,false); */
-/* req.send(""); */
-/* var xml = req.responseXML;; */
-/* var author = xml.getElementsByTagName("autor")[0].textContent; */
-/* var post = xml.getElementsByTagName("cuerpo")[0].textContent; */
-/* post = post.replace("<","<"); */
-/* post = post.replace(">",">"); */
-/* post = post.replace("&","&"); */
-/* var form = document.getElementById("form"); */
-/* var textarea = form.getElementsByTagName("textarea")[0]; */
-/* text = '[quote="'+author+'"]'+post+'[/quote]\n'; */
-/* textarea.value += text; */
-/* } */
-/* } */
-}
-
-window.onload = toggleBox('form',0);
--->
-</script>
<div id="footer">
<div id="menu">
<h3>Menú</h3>
Modified: trunk/frontend-web/skins/default/body_threadlist.html
==============================================================================
--- trunk/frontend-web/skins/default/body_threadlist.html (original)
+++ trunk/frontend-web/skins/default/body_threadlist.html Thu Jul 26 19:21:27 2007
@@ -11,23 +11,6 @@
<input class="form-element" type="submit" name="submit" value="Publicar nuevo hilo"/>
</p>
</form>
- <script type="text/javascript">
- <!--
- function toggleBox(id) {
- if(document.layers) {
- document.layers[id].display = document.layers[id].display=="block" ? "none" : "block";
- }
- else if(document.getElementById) {
- var obj = document.getElementById(id);
- obj.style.display = obj.style.display == "none" ? "block" : "none";
- }
- else if(document.all) {
- document.all[id].style.display = document.all[id].style.display == "none" ? "block" : "none";
- }
- }
- window.onload = toggleBox('fNewthread');
- -->
- </script>
</div>
<div id="footer">
<div id="calendario">
Copied: trunk/frontend-web/skins/default/css.css (from r286, /trunk/frontend-web/skins/default/header.html)
==============================================================================
--- /trunk/frontend-web/skins/default/header.html (original)
+++ trunk/frontend-web/skins/default/css.css Thu Jul 26 19:21:27 2007
@@ -1,208 +1,199 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
- <head>
- <title>%(page_title)s</title>
- <style type="text/css" id="estilo">
-
- * {
- margin:0;
- padding:0;
- }
-
- a {
- text-decoration:none
- }
-
- body {
- font-family: sans-serif;
- background:#FFA31A;
- }
-
- #cabecera {
- padding-top:0.5em;
- padding-bottom:0.5em;
- text-align:center;
- background: #E68A00;
- }
-
- #cabecera h1 {
- font: 50px Garamond, Georgia, "Bitstream Vera Serif", serif;
- }
- #cabecera h2 {
- font-size: 20px;
- font-weight:normal;
- }
-
- #contenido {
- background:#ffffff;
- padding: 1em;
- margin:3px 3px 0 3px;
- }
- #contenido .threadlist {
- margin-top:1em;
- }
- #contenido .hilos {
- background:#ff0000;
- }
- #contenido .hilo h2 {
- margin-bottom:0.5em;
- }
- #contenido .hilo h3 {
- margin:0 0 0.5em 1em;
- }
- #contenido .hilo h4 {
- margin-bottom:0.5em;
- }
- #contenido .hilo .autor {
- font-weight: bold;
- margin: 0.25em;
- width: 160px;
- float: left;
- }
- #contenido .hilo .fecha {
- font-size:0.9em;
- border-bottom: 1px solid #ffa31a;
- margin-bottom:0.5em;
- }
- #contenido .hilo .texto {
- margin: 0.25em;
- margin-left:165px;
- padding: 3px 3px 0 3px;
- }
- #contenido .hilo blockquote h4 {
- font-size:0.8em;
- margin-left:15px;
- }
- #contenido .hilo blockquote {
- margin:1em 2em 1em 3em;
- font-size:0.9em;
- padding:5px;
- border: 1px dotted;
- }
- #contenido .avatar {
- margin-top: 0.5em;
- width: 154px;
- height: 154px;
- padding: 2px;
- }
- #contenido .hilo .responder {
- font-size:0.9em;
- border-top: 1px solid #ffa31a;
- padding-top: 0.5em;
- margin-top:0.5em
- }
- #contenido .nav {
- margin-top:1em;
- margin-bottom:1em;
- list-style: none;
- }
- #contenido .nav li {
- display:inline;
- border:1px solid #ffa31a;
- background:#f1f1f1;
- padding: 1px 2px 1px 2px;
- }
- #contenido .inactive {
- background: #919191 !important;
- }
- #contenido .linkidx:hover {
- background: #d1d1d1;
- }
- #form, #form-inline {
- background:#ffffff;
- text-align:right;
- margin:0 3px 0 3px;
- padding: 1em 1em 1em 1em ;
- }
- #form form, #form-inline form {
- display:block;
- width:60%%;
- }
- #form form textarea, #form form input, #form-inline form input, #form-inline textarea {
- margin: 0.5em 0 0 0px;
- padding: 0.2em;
- border:1px solid;
- background:#f1f1f1;
- }
- #form form label {
- text-align:right;
- }
- #form form .OpenID {
- background: #f1f1f1 url(http://openid.net/login-bg.gif) center left no-repeat !important;
- color: #000;
- padding-left: 20px !important;
- }
-
- #calendario {
- background: #ffffff;
- float:right;
- width:20%%;
- margin: 2em 5em 2em 10px;
- padding:1em;
- text-align:center;
- }
- #calendario h3 {
- width:90%%;
- border-bottom: 1px solid;
- margin: 1em auto 1em auto;
- }
- #calendario table {
- font-size:0.9em;
- margin: 0 auto 0 auto;
- }
- #calendario td {
- padding:1px;
- }
- #calendario td.nomonth {
- background-color: #eee;
- }
-
- #footer {
- }
-
-
- #menu {
- background: #ffffff;
- width:40%%;
- margin: 4em 10px 1em 5em;
- padding:1em;
- float:left;
- }
- #menu h3 {
- margin-bottom:1em;
- }
- #menu ul {
- margin-left:1em;
- list-style: none;
- }
- #menu li {
- margin-bottom:0.2em;
- margin-right: 1em;
- }
-
- .version{
- clear:both;
- text-align:center;
- font-size:0.5em;
- }
- .alt:hover {
- background:#F2F2F2;
- }
- .even {
- padding:0.25em;
- background-color: #FFD699;
- }
- .odd {
- padding:0.25em;
- background-color: #FFEBCC;
- }
- p { margin:0.5em 0 0.5em 0; }
- .right { text-align:right;}
- </style>
- </head>
- <body>
- <div id="cabecera">
- <h1>CPIF</h1>
- <h2>La madre de todos los foros</h2>
- </div>
- <div id="contenido">
+* {
+ margin:0;
+ padding:0;
+}
+
+a {
+ text-decoration:none
+}
+
+body {
+ font-family: sans-serif;
+ background:#FFA31A;
+}
+
+#cabecera {
+ padding-top:0.5em;
+ padding-bottom:0.5em;
+ text-align:center;
+ background: #E68A00;
+}
+
+ #cabecera h1 {
+ font: 50px Garamond, Georgia, "Bitstream Vera Serif", serif;
+ }
+ #cabecera h2 {
+ font-size: 20px;
+ font-weight:normal;
+ }
+
+#contenido {
+ background:#ffffff;
+ padding: 1em;
+ margin:3px 3px 0 3px;
+}
+ #contenido .threadlist {
+ margin-top:1em;
+ }
+ #contenido .hilos {
+ background:#ff0000;
+ }
+ #contenido .hilo h2 {
+ margin-bottom:0.5em;
+ }
+ #contenido .hilo h3 {
+ margin:0 0 0.5em 1em;
+ }
+ #contenido .hilo h4 {
+ margin-bottom:0.5em;
+ }
+ #contenido .hilo .autor {
+ font-weight: bold;
+ margin: 0.25em;
+ width: 160px;
+ float: left;
+ }
+ #contenido .hilo .fecha {
+ font-size:0.9em;
+ border-bottom: 1px solid #ffa31a;
+ margin-bottom:0.5em;
+ }
+ #contenido .hilo .texto {
+ margin: 0.25em;
+ margin-left:165px;
+ padding: 3px 3px 0 3px;
+ }
+ #contenido .hilo blockquote h4 {
+ font-size:0.8em;
+ margin-left:15px;
+ }
+ #contenido .hilo blockquote {
+ margin:1em 2em 1em 3em;
+ font-size:0.9em;
+ padding:5px;
+ border: 1px dotted;
+ }
+ #contenido .avatar {
+ margin-top: 0.5em;
+ width: 154px;
+ height: 154px;
+ padding: 2px;
+ }
+ #contenido .hilo .responder {
+ font-size:0.9em;
+ border-top: 1px solid #ffa31a;
+ padding-top: 0.5em;
+ margin-top:0.5em
+ }
+ #contenido .nav {
+ margin-top:1em;
+ margin-bottom:1em;
+ list-style: none;
+ }
+ #contenido .nav li {
+ display:inline;
+ border:1px solid #ffa31a;
+ background:#f1f1f1;
+ padding: 1px 2px 1px 2px;
+ }
+ #contenido .inactive {
+ background: #919191 !important;
+ }
+ #contenido .linkidx:hover {
+ background: #d1d1d1;
+ }
+
+#form, #form-inline {
+ background:#ffffff;
+ text-align:right;
+ margin:0 3px 0 3px;
+ padding: 1em 1em 1em 1em ;
+}
+ #form form, #form-inline form {
+ display:block;
+ width:60%%;
+ }
+ #form form textarea, #form form input, #form-inline form input, #form-inline textarea {
+ margin: 0.5em 0 0 0px;
+ padding: 0.2em;
+ border:1px solid;
+ background:#f1f1f1;
+ }
+ #form form label {
+ text-align:right;
+ }
+ #form form .OpenID {
+ background: #f1f1f1 url(http://openid.net/login-bg.gif) center left no-repeat !important;
+ color: #000;
+ padding-left: 20px !important;
+ }
+
+#calendario {
+ background: #ffffff;
+ float:right;
+ width:20%%;
+ margin: 2em 5em 2em 10px;
+ padding:1em;
+ text-align:center;
+}
+ #calendario h3 {
+ width:90%%;
+ border-bottom: 1px solid;
+ margin: 1em auto 1em auto;
+ }
+ #calendario table {
+ font-size:0.9em;
+ margin: 0 auto 0 auto;
+ }
+ #calendario td {
+ padding:1px;
+ }
+ #calendario td.nomonth {
+ background-color: #eee;
+ }
+
+#footer {
+}
+
+#menu {
+ background: #ffffff;
+ width:40%%;
+ margin: 4em 10px 1em 5em;
+ padding:1em;
+ float:left;
+}
+ #menu h3 {
+ margin-bottom:1em;
+ }
+ #menu ul {
+ margin-left:1em;
+ list-style: none;
+ }
+ #menu li {
+ margin-bottom:0.2em;
+ margin-right: 1em;
+ }
+
+.version{
+ clear:both;
+ text-align:center;
+ font-size:0.5em;
+}
+
+.alt:hover {
+ background:#F2F2F2;
+}
+
+.even {
+ padding:0.25em;
+ background-color: #FFD699;
+}
+.odd {
+ padding:0.25em;
+ background-color: #FFEBCC;
+}
+
+p { margin:0.5em 0 0.5em 0; }
+
+.right { text-align:right;}
+
Modified: trunk/frontend-web/skins/default/header.html
==============================================================================
--- trunk/frontend-web/skins/default/header.html (original)
+++ trunk/frontend-web/skins/default/header.html Thu Jul 26 19:21:27 2007
@@ -2,203 +2,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<title>%(page_title)s</title>
- <style type="text/css" id="estilo">
-
- * {
- margin:0;
- padding:0;
- }
-
- a {
- text-decoration:none
- }
-
- body {
- font-family: sans-serif;
- background:#FFA31A;
- }
-
- #cabecera {
- padding-top:0.5em;
- padding-bottom:0.5em;
- text-align:center;
- background: #E68A00;
- }
-
- #cabecera h1 {
- font: 50px Garamond, Georgia, "Bitstream Vera Serif", serif;
- }
- #cabecera h2 {
- font-size: 20px;
- font-weight:normal;
- }
-
- #contenido {
- background:#ffffff;
- padding: 1em;
- margin:3px 3px 0 3px;
- }
- #contenido .threadlist {
- margin-top:1em;
- }
- #contenido .hilos {
- background:#ff0000;
- }
- #contenido .hilo h2 {
- margin-bottom:0.5em;
- }
- #contenido .hilo h3 {
- margin:0 0 0.5em 1em;
- }
- #contenido .hilo h4 {
- margin-bottom:0.5em;
- }
- #contenido .hilo .autor {
- font-weight: bold;
- margin: 0.25em;
- width: 160px;
- float: left;
- }
- #contenido .hilo .fecha {
- font-size:0.9em;
- border-bottom: 1px solid #ffa31a;
- margin-bottom:0.5em;
- }
- #contenido .hilo .texto {
- margin: 0.25em;
- margin-left:165px;
- padding: 3px 3px 0 3px;
- }
- #contenido .hilo blockquote h4 {
- font-size:0.8em;
- margin-left:15px;
- }
- #contenido .hilo blockquote {
- margin:1em 2em 1em 3em;
- font-size:0.9em;
- padding:5px;
- border: 1px dotted;
- }
- #contenido .avatar {
- margin-top: 0.5em;
- width: 154px;
- height: 154px;
- padding: 2px;
- }
- #contenido .hilo .responder {
- font-size:0.9em;
- border-top: 1px solid #ffa31a;
- padding-top: 0.5em;
- margin-top:0.5em
- }
- #contenido .nav {
- margin-top:1em;
- margin-bottom:1em;
- list-style: none;
- }
- #contenido .nav li {
- display:inline;
- border:1px solid #ffa31a;
- background:#f1f1f1;
- padding: 1px 2px 1px 2px;
- }
- #contenido .inactive {
- background: #919191 !important;
- }
- #contenido .linkidx:hover {
- background: #d1d1d1;
- }
- #form, #form-inline {
- background:#ffffff;
- text-align:right;
- margin:0 3px 0 3px;
- padding: 1em 1em 1em 1em ;
- }
- #form form, #form-inline form {
- display:block;
- width:60%%;
- }
- #form form textarea, #form form input, #form-inline form input, #form-inline textarea {
- margin: 0.5em 0 0 0px;
- padding: 0.2em;
- border:1px solid;
- background:#f1f1f1;
- }
- #form form label {
- text-align:right;
- }
- #form form .OpenID {
- background: #f1f1f1 url(http://openid.net/login-bg.gif) center left no-repeat !important;
- color: #000;
- padding-left: 20px !important;
- }
-
- #calendario {
- background: #ffffff;
- float:right;
- width:20%%;
- margin: 2em 5em 2em 10px;
- padding:1em;
- text-align:center;
- }
- #calendario h3 {
- width:90%%;
- border-bottom: 1px solid;
- margin: 1em auto 1em auto;
- }
- #calendario table {
- font-size:0.9em;
- margin: 0 auto 0 auto;
- }
- #calendario td {
- padding:1px;
- }
- #calendario td.nomonth {
- background-color: #eee;
- }
-
- #footer {
- }
-
-
- #menu {
- background: #ffffff;
- width:40%%;
- margin: 4em 10px 1em 5em;
- padding:1em;
- float:left;
- }
- #menu h3 {
- margin-bottom:1em;
- }
- #menu ul {
- margin-left:1em;
- list-style: none;
- }
- #menu li {
- margin-bottom:0.2em;
- margin-right: 1em;
- }
-
- .version{
- clear:both;
- text-align:center;
- font-size:0.5em;
- }
- .alt:hover {
- background:#F2F2F2;
- }
- .even {
- padding:0.25em;
- background-color: #FFD699;
- }
- .odd {
- padding:0.25em;
- background-color: #FFEBCC;
- }
- p { margin:0.5em 0 0.5em 0; }
- .right { text-align:right;}
- </style>
+ <link rel="stylesheet" type="text/css" href="***CSS***">
+ <script type="text/javascript" src="***JS***"></script>
</head>
<body>
<div id="cabecera">
Copied: trunk/frontend-web/skins/default/js.js (from r286, /trunk/frontend-web/skins/default/body_show_thread.html)
==============================================================================
--- /trunk/frontend-web/skins/default/body_show_thread.html (original)
+++ trunk/frontend-web/skins/default/js.js Thu Jul 26 19:21:27 2007
@@ -1,31 +1,3 @@
- <div class="hilo" id="hilos">
- <h4>Subforo: %(metatag_title)s</h4>
- <h2>Título: %(thread_title)s</h2>
- <h3>Iniciado por %(thread_author)s</h3>
- <ul class="nav">
- %(nav)s
- </ul>
- <div class="hilos">
- %(body)s
- </div>
- <ul class="nav">
- %(nav)s
- </ul>
- <div>
- <a href="javascript:responder('hilos');">Escribir respuesta</a>
- </div>
- <div id="form">
- <form id="fNewpost" action="%(link_form_new_post)s" method="post" enctype="multipart/form-data">
- <p>
- <label for="texto">Texto:</label><textarea id="texto" name="texto" rows="10" cols="60"></textarea><br />
- <input class="form-element" type="submit" name="submit" value="Publicar nuevo mensaje"/>
- </p>
- </form>
- </div>
- </div>
-</div>
-<script type="text/javascript">
-<!--
function toggleBox(id,type) {
/* type = 0 hide
type = 1 show
@@ -99,19 +71,17 @@
}
window.onload = toggleBox('form',0);
--->
-</script>
-<div id="footer">
- <div id="menu">
- <h3>Menú</h3>
- <ul>
- <li><a href="%(link_metatag)s">Volver al subforo '%(metatag_title)s'</a></li>
- <li><a href="/">Página principal</a></li>
- <li>%(auth)s</li>
- <li><a href="/nuevo_usuario">Dar de alta un nuevo usuario</a></li>
- <li><a href="/edit_metatags">Editar Metatags</a></li>
- <li><a href="/edit_config">Editar configuración de CPIF</a></li>
- <li><a href="/stop">Parar la demo</a></li>
- </ul>
- </div>
-</div> <!-- footer -->
+
+function toggleBox(id) {
+ if(document.layers) {
+ document.layers[id].display = document.layers[id].display=="block" ? "none" : "block";
+ }
+ else if(document.getElementById) {
+ var obj = document.getElementById(id);
+ obj.style.display = obj.style.display == "none" ? "block" : "none";
+ }
+ else if(document.all) {
+ document.all[id].style.display = document.all[id].style.display == "none" ? "block" : "none";
+ }
+}
+
Modified: trunk/frontend-web/url_.py
==============================================================================
--- trunk/frontend-web/url_.py (original)
+++ trunk/frontend-web/url_.py Thu Jul 26 19:21:27 2007
@@ -2,6 +2,11 @@
from globales import monitor
+
+import skins # Preload skins to initialize them, outside the "monitor".
+del skins
+
+
@monitor
def gestiona_url(conn,handler,path,usuario) :
if len(path)!=1 : return None
More information about the cpif
mailing list