You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by mx...@apache.org on 2012/05/15 00:25:42 UTC

svn commit: r1338460 - in /tcl/rivet/trunk: ./ doc/ doc/images/ doc/xml/ rivet/packages/entities/ rivet/packages/form/ rivet/packages/session/

Author: mxmanghi
Date: Mon May 14 22:25:41 2012
New Revision: 1338460

URL: http://svn.apache.org/viewvc?rev=1338460&view=rev
Log:
    * doc/rivet.xsl,doc/rivet.css,doc/images/[prev.png,next.png,up.png]: new stylesheet and icons for
    the page manual


Modified:
    tcl/rivet/trunk/ChangeLog
    tcl/rivet/trunk/doc/images/next.png
    tcl/rivet/trunk/doc/images/prev.png
    tcl/rivet/trunk/doc/images/up.png
    tcl/rivet/trunk/doc/rivet.css
    tcl/rivet/trunk/doc/rivet.xsl
    tcl/rivet/trunk/doc/xml/install.xml
    tcl/rivet/trunk/rivet/packages/entities/entities.tcl
    tcl/rivet/trunk/rivet/packages/form/form.tcl
    tcl/rivet/trunk/rivet/packages/session/session-create-mysql.sql

Modified: tcl/rivet/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/ChangeLog?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/ChangeLog (original)
+++ tcl/rivet/trunk/ChangeLog Mon May 14 22:25:41 2012
@@ -1,3 +1,7 @@
+2012-05-14 Massimo Manghi <mx...@apache.org>
+    * doc/rivet.xsl,doc/rivet.css,doc/images/[prev.png,next.png,up.png]: new stylesheet and icons for
+    the page manual
+
 2012-05-13 Massimo Manghi <mx...@apache.org>
     * rivet/packages/tclrivet/tclrivetparser.tcl: Tcl parser implements new shorthand echo syntax (closes
     bug #53217)

Modified: tcl/rivet/trunk/doc/images/next.png
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/images/next.png?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
Binary files - no diff available.

Modified: tcl/rivet/trunk/doc/images/prev.png
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/images/prev.png?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
Binary files - no diff available.

Modified: tcl/rivet/trunk/doc/images/up.png
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/images/up.png?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
Binary files - no diff available.

Modified: tcl/rivet/trunk/doc/rivet.css
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/rivet.css?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/rivet.css (original)
+++ tcl/rivet/trunk/doc/rivet.css Mon May 14 22:25:41 2012
@@ -1,25 +1,320 @@
-body {
-    font-family: Arial, sans-serif;
-    font-style: normal;
+BODY
+{
+        font-family: verdana;
 }
 
-div.navheader  {
-    background-color: #405871;
-    color: #ffffff;
-    font-size: 150%;
+DIV.ABSTRACT
+{
+        border: solid 2px;
+        padding-left: 10pt;
+        padding-right: 10pt;
 }
+PRE.SCREEN
+{
+        font-family:monospace;
+        white-space: pre;
+        width: 100%;
+        background-color: #ffffcc;
+        border:solid;
+        color: #000000;
+        border-color: #009999;
+        border-left: solid #009999 2px;
+        border-right: solid #009999 2px;
+        border-top: solid #009999 2px;
+        border-bottom: solid #009999 2px;
 
-div.navfooter {
-    font-weight: bold;
+        padding-left: 15pt;
 }
 
+PRE.PROGRAMLISTING
+{
+        font-family:monospace;
+        white-space: pre;
+        width: 100%;
+        background-color: #ffffcc;
+        border:solid;
+        color: #000000;
+        border-color: #009999;
+        border-left: solid #009999 2px;
+        border-right: solid #009999 2px;
+        border-top: solid #009999 2px;
+        border-bottom: solid #009999 2px;
+        font-size:  normal;
+        padding-left: 15pt;
+}
+
+H1
+{
+        color: #ffffff;
+        border: solid 3px #a0a0d0;
+        background-color: #606090;
+        font-variant: small-caps;
+        width: 100%;
+}
+
+H1.TITLE
+{
+        color: #ffffff;
+        border: solid 3px #a0a0d0;
+        background-color: #606090;
+        font-variant: small-caps;
+        width: 100%;
+}
+
+.TITLE a {
+        color: #ffffff; 
+        text-decoration: none;
+}
+
+.TITLE a:active {
+        color: #ffffff; 
+        text-decoration: none;
+}
+
+.TITLE a:visited {
+        color: #ffffff; 
+        text-decoration: none;
+}
+
+H2
+{       
+        COLOR: #ffffff ;
+        font-style: italic;
+        BACKGROUND-color: #a0a0d0;
+        BORDER: solid 3px #606090;
+        PADDING: 1px
+}
+
+TABLE.IMPORTANT
+{
+        font-style:italic;
+        border: solid 2px #ff0000;
+        width: 70%;
+        margin-left: 15%;       
+}
+TABLE.CAUTION
+{
+        font-style:italic;
+        border: ridge 2px #ffff00;
+        width: 70%;
+        margin-left: 15%;       
+}
+
+TABLE.NOTE
+{
+        font-style:italic;
+        border: solid 1px #000000;
+        width: 70%;
+        margin-left: 15%;       
+}
+TABLE.TIP
+{
+        font-style:italic;
+        border: solid 1px #000000;
+        width: 70%;
+        margin-left: 15%;       
+}
+
+TABLE.WARNING
+{
+        font-style:italic;
+        font-weight: bold;
+        border: ridge 4px #ff0000;
+        
+        width: 70%;
+        margin-left: 15%;       
+}
+
+DIV.VARIABLELIST {
+        font-family: sans-serif;
+        font-style: normal;
+        font-weight: normal;
+        padding-left: 20px;
+        font-size: small;
+}
+
+.VARLISTENTRY {
+        font-weight: bold;
+        margin-top: 10px;
+        COLOR: #ffffff ;
+        BACKGROUND-color: #a0a0d0;
+        BORDER: solid 1px #606090;
+        PADDING: 1px
+}
+
+/*
+ * See http://diveintoaccessibility.org/day_26_using_relative_font_sizes.html
+ * for an explanation of the following few commands.
+ * They are really too complicated to explain here in all depth. ;-)
+*/
+
+P {
+        font-size: 12px;
+}
+
+/*/*/A{}
+BODY P {
+
+/*      font-size: x-small; */
+        voice-family: "\"}\"";
+        voice-family: inherit;
+        font-size: normal;
+}
+
+HTML>BODY P {
+        font-size: normal;
+}
+/* */
+
+/* Add an external-link icon to absolute links */
+a[href^="http:"] {
+        background: url(images/remote.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+a[href^="http:"]:hover {
+        background: url(images/remote_a.gif) right center no-repeat;
+}
+
+/* Add a note icon to footnote links */
+a[href^="#FTN"] {
+        background: url(images/qbullet-note.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+a[href^="#FTN"]:hover {
+        background: url(images/qbullet-note_a.gif) right center no-repeat;
+}
+
+/* ...and a back icon to the backlinks in the footnotes themselves */
+a[name^="FTN"] {
+        background: url(images/scrollup.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+a[name^="FTN"]:hover {
+        background: url(images/scrollup_a.gif) right center no-repeat;
+}
+
+/* Add a download icon to .gz links */
+a[href$=".gz"],a[href$=".tar"],a[href$=".zip"] {
+        background: url(images/disk.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+
+/* Add an Acrobat Reader icon to PDF links */
+a[href$=".pdf"] {
+        background: url(images/acrobat.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+a[href$=".pdf"]:hover {
+        background: url(images/acrobat_a.gif) right center no-repeat;
+}
+
+/* Add a Word icon to RTF links */
+a[href$=".rtf"] {
+        background: url(images/word.gif) right center no-repeat;
+        padding-right: 12px;
+}
+
+
+/* ...but not to absolute links in this domain... */
+a[href^="http://www.karakas-online.de"] {
+        background: transparent;
+        padding-right: 0px;
+}
+
+a[href^="http://www.karakas-online.de"]:hover {
+        background: transparent;
+}
+
+/* ...or to the translation links on each page */
+DIV.translatelink > a[href^="http:"] {
+        background: transparent;
+        padding-right: 0px;
+}
+
+DIV.translatelink > a[href^="http:"]:hover {
+        background: transparent;
+}
+
+/* ...or to any images  */
+DIV.imagelink  a[href^="http:"] {
+        background: transparent;
+        padding-right: 0px;
+}
+
+DIV.imagelink  a[href^="http:"]:hover {
+        background: transparent;
+}
+
+
+P.C2 {
+        COLOR: #ffffff ;
+        BACKGROUND-color: #a0a0d0;
+        BORDER: solid 1px #606090;
+        PADDING: 1px
+}
+
+
+DIV.NAVFOOTER {
+        color: #000000;
+        background-color: #EFEFF8;
+        padding: 5px;
+        margin-top: 10px;
+        width: 100%;
+        border: thin solid #a0a0d0;
+}
+
+DIV.NUKEFOOTER {
+        color: #000000;
+        background-color: #B0E0E6;
+        padding: 5px;
+        margin-top: 10px;
+        width: 100%;
+        border: thin solid #a0a0d0;
+}
+
+DIV.NAVHEADER {
+        color: #000000;
+        background-color: #EFEFF8;
+        padding: 5px;
+        margin-bottom: 10px;
+        width: 100%;
+        border: thin solid #a0a0d0;
+}
+
+DIV.SECT1,DIV.SECT2,DIV.SECT3 {
+        margin-left: 20px;
+}
+
+DIV.EXAMPLE,DIV.TOC {
+        border: thin dotted #70AAE5;
+        padding-left: 10px;
+        padding-right: 10px;
+        color: #000000;
+        background-color: #EFF8F8;
+}
+
+DIV.TOC {
+        margin-left: 20px;
+        margin-right: 20px;
+        width: 95%;
+}
+
+UL  {
+     /*    list-style: url("images/tux-bullet.png") disc; */
+    }
+
 #namespaces {
 	border: 1px solid black;
 }
 
 #namespaces td {
 	padding:	0.2em 1em;
-	font-weight: bold;
+	/* font-weight: bold; */
 }
 
 #namespaces thead {
@@ -41,21 +336,6 @@ div.navfooter {
 	background-color: #eee;		
 }
 
-
-
-a {
-    text-decoration: none;
-}
-
-a:link {
-    font-weight: bold;
-}
-a:visited {
-    font-weight: normal;
-}
-a:active {
-    text-decoration: underline;
-}
-a:hover {
-    text-decoration: underline;
+.note td {
+    font-size: small;
 }

Modified: tcl/rivet/trunk/doc/rivet.xsl
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/rivet.xsl?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/rivet.xsl (original)
+++ tcl/rivet/trunk/doc/rivet.xsl Mon May 14 22:25:41 2012
@@ -143,8 +143,7 @@
       <xsl:apply-templates select="term"/>
     </dt>
     <dd>
-      <div style="padding:4 ; margin-top:3 ;
-	margin-bottom:3 ; width:75%" >
+      <div style="padding:4 ; margin-top:3 ; margin-bottom:3 ; width:75%" >
 	<xsl:apply-templates select="listitem"/>
       </div>
     </dd>

Modified: tcl/rivet/trunk/doc/xml/install.xml
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/xml/install.xml?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/xml/install.xml (original)
+++ tcl/rivet/trunk/doc/xml/install.xml Mon May 14 22:25:41 2012
@@ -216,8 +216,7 @@ tar -xvf rivet-X.X.X.tar.gz</programlist
                 specifying a custom name for the apxs program (as it's done for Debian Apache 2.2). 
             </para>
         <programlisting>
-    ./configure --with-tcl=/usr/lib/tcl8.5/ --with-tclsh=/usr/bin/tclsh8.5 --with-apxs=/usr/bin/apxs2 --with-apache=/usr --with-apache-version=2
-        </programlisting>
+    ./configure --with-tcl=/usr/lib/tcl8.5/ --with-tclsh=/usr/bin/tclsh8.5 --with-apxs=/usr/bin/apxs2 --with-apache=/usr --with-apache-version=2</programlisting>
           </step>
           <step>
             <title>Run make</title>
@@ -248,8 +247,7 @@ tar -xvf rivet-X.X.X.tar.gz</programlist
           adding the module itself:
         </para>
 
-        <programlisting>LoadModule rivet_module	<replaceable>/usr/lib/apache2/modules/mod_rivet.so</replaceable>
-        </programlisting>
+        <programlisting>LoadModule rivet_module	<replaceable>/usr/lib/apache2/modules/mod_rivet.so</replaceable></programlisting>
 
         <para>
           This tells Apache to load the Rivet shared object, wherever

Modified: tcl/rivet/trunk/rivet/packages/entities/entities.tcl
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/rivet/packages/entities/entities.tcl?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/rivet/packages/entities/entities.tcl (original)
+++ tcl/rivet/trunk/rivet/packages/entities/entities.tcl Mon May 14 22:25:41 2012
@@ -1,4 +1,4 @@
-# -- package entities
+# -- package RivetEntities
 #
 # The code is largely taken from a simple yet clever encoder/decoder of HTML entities
 # starting from a utf-8 character string. The original code writted by Andy Goth is 
@@ -10,7 +10,7 @@
 
 package provide RivetEntities 1.0
 
-namespace eval rivet {
+namespace eval ::rivet {
 #   namespace ensemble create -subcommands {encode decode}
     namespace export encode decode
     variable utf8_entities_map {
@@ -91,13 +91,13 @@ namespace eval rivet {
 
 # -- encode
 #
-# input string is processed and its characted suitable to be transformed
+# input string is processed and its characters suitable to be transformed
 # into entities are replaced with their corrisponding HTML (SGML?) entity
 # 
 # if the input string encoding is diffrent from utf-8 the string is 
 # transformed into utf-8 and then processed for entity substitution
 #
-#   ::rivet::encode <input_string> ?-encode <encoding>?  
+#   ::rivet::encode <input_string> ?-encoding <encoding>?  
 #
 #  Arguments:
 #
@@ -123,7 +123,7 @@ namespace eval rivet {
 # has to be in some other encoding Tcl's command 'enconding' is 
 # invoked for final conversion
 #
-#   ::rivet::decode <input_string> ?-encode <encoding>?  
+#   ::rivet::decode <input_string> ?-encoding <encoding>?  
 #
 #  Arguments:
 #

Modified: tcl/rivet/trunk/rivet/packages/form/form.tcl
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/rivet/packages/form/form.tcl?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/rivet/packages/form/form.tcl (original)
+++ tcl/rivet/trunk/rivet/packages/form/form.tcl Mon May 14 22:25:41 2012
@@ -198,24 +198,24 @@ package provide form 1.0
             "radio" -
             "checkbox" {
 
-            # if there's a label then prepare to output it.
-            if {[info exists data(label)]} {
-                # if there's no id defined, generate something unique so we can reference it.
-                if {![info exists data(id)]} {
-                    set data(id) "autogen_[::uuid::uuid generate]"
+                # if there's a label then prepare to output it.
+                if {[info exists data(label)]} {
+                    # if there's no id defined, generate something unique so we can reference it.
+                    if {![info exists data(id)]} {
+                        set data(id) "autogen_[::uuid::uuid generate]"
+                    }
+                    set label "<label for=\"$data(id)\">$data(label)</label>"
                 }
-                set label "<label for=\"$data(id)\">$data(label)</label>"
-            }
 
-            # ...and if the is a default value for this field
-            # and it matches the value we have for it, make
-            # the field show up as selected (checked)
-            if {[info exists DefaultValues($name)] && [info exists data(value)]} {
-                if {[lsearch $DefaultValues($name) $data(value)] >= 0} {
-                set data(checked) "checked"
+                # ...and if the is a default value for this field
+                # and it matches the value we have for it, make
+                # the field show up as selected (checked)
+                if {[info exists DefaultValues($name)] && [info exists data(value)]} {
+                    if {[lsearch $DefaultValues($name) $data(value)] >= 0} {
+                        set data(checked) "checked"
+                    }
                 }
             }
-            }
         }
         # generate the field definition
         set string "<input type=\"$type\" name=\"$name\" [argstring data] />"

Modified: tcl/rivet/trunk/rivet/packages/session/session-create-mysql.sql
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/rivet/packages/session/session-create-mysql.sql?rev=1338460&r1=1338459&r2=1338460&view=diff
==============================================================================
--- tcl/rivet/trunk/rivet/packages/session/session-create-mysql.sql (original)
+++ tcl/rivet/trunk/rivet/packages/session/session-create-mysql.sql Mon May 14 22:25:41 2012
@@ -13,17 +13,18 @@ create table rivet_session (
     session_update_time	datetime    default NULL,
     session_id		varchar(64) NOT NULL default '',
     PRIMARY KEY	(session_id)
-); 
+) ENGINE=INNODB; 
 
 DROP TABLE IF EXISTS `rivet_session_cache`;
 create table rivet_session_cache(
-    session_id		varchar(128)	default NULL REFERENCES rivet_session(session_id) ON DELETE CASCADE,
+    session_id		varchar(128)	default NULL,
     package_		varchar(64)	default NULL,
     key_		varchar(128)	default NULL,
     data                varchar(255)	default NULL,
 
     UNIQUE KEY riv_sess_cache_ix( session_id, key_ ),
-    KEY rivet_session_cache_idx (session_id)
-);
+    KEY rivet_session_cache_idx (session_id),
+    FOREIGN KEY (session_id) REFERENCES rivet_session(session_id) ON DELETE CASCADE
+) ENGINE=INNODB;
 -- create index rivet_session_cache_idx ON rivet_session_cache( session_id );
 



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-cvs-help@tcl.apache.org