[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - editingwidgets.py:1.3.2.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Aug 20 23:10:55 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv16561/browser/skins/rotterdam

Modified Files:
      Tag: srichter-inlinepython-branch
	editingwidgets.py 
Log Message:
Fixed the Inline Code screen a bit.

Finally figured out why SourceText's were displayed so badly. Deactivated
horribly broken code for now.


=== Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py 1.3 => 1.3.2.1 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py:1.3	Wed Aug 13 17:28:25 2003
+++ Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py	Wed Aug 20 22:10:54 2003
@@ -14,12 +14,8 @@
 """
 $Id$
 """
-
 __metaclass__ = type
 
-from types import ListType, TupleType
-ListTypes = (ListType, TupleType)
-
 from zope.app.browser.form.widget import BrowserWidget, renderElement
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 
@@ -31,8 +27,7 @@
     width = 60
     height = 15
     extra=""
-    style="width:100%"
-    style = ''
+    style="width: 98%; font-family: monospace;"
     rowTemplate = ViewPageTemplateFile("simpleeditingrow.pt")
     rowFragment = ViewPageTemplateFile("simpleeditingrowfragment.pt")
     
@@ -46,9 +41,9 @@
                              name = self.name,
                              id = self.name,
                              cssClass = self.getValue('cssClass'),
-#                             rows = self.getValue('height'),
-#                             cols = self.getValue('width'),
-#                             style = self.style,
+                             rows = self.getValue('height'),
+                             cols = self.getValue('width'),
+                             style = self.style,
                              contents = self._showData(),
                              extra = self.getValue('extra'))
 
@@ -56,10 +51,11 @@
         """Make the contents available to the template"""
         return self._showData()
 
-    def row(self):
-        # XXX This was originally set to make a colspan=2 table cell, and
-        #     have the label above the text area. Perhaps we should use
-        #     different div classes for this case?
-        return self.rowTemplate()
-        return '<h1>here</h1><div class="label">%s</div><div class="field">%s</div>' % (
-                self.label(), self())
+    # XXX: This is ridiculous! This cannot work in any browser well!
+    #def row(self):
+    #    # XXX This was originally set to make a colspan=2 table cell, and
+    #    #     have the label above the text area. Perhaps we should use
+    #    #     different div classes for this case?
+    #    return self.rowTemplate()
+    #    return '<h1>here</h1><div class="label">%s</div><div class="field">%s</div>' % (
+    #            self.label(), self())




More information about the Zope3-Checkins mailing list