Cascading Style Sheets in Netscape 6
Well, Im downloading NS6 to check myself but first glance it looks ok. But the end of your css declarance you have a gratuitous ; followed by the }... Try removing it?
I tried removing it, but it didn't have any effect.
Perhaps also NS6 wants hex values for colors? Also, 'color' is used for tables and things other than font. My guess you want font-color or did you want the table cell to be gold? My understanding of Netscape is that if it cant render part of it, it doesnt at all.... Its either 100% or 0%... go figure.
I did want the table cell to be gold (it works perfectly in Netscape 4.75). I did try changing to hex values but it didn't have any effect either.
Another thing to try is using <span> tags over the fonts instead of rendering it on the table....
When I tried this, it didn't even work in Netscape 4.75 anymore, let alone Netscape 6. I'll copy below the full CSS I'm using, as maybe there's some error in it that I'm just not noticing: <dtml-call "RESPONSE.setHeader('Content-Type','text/css')"> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )"> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')"> <dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] == 'IE'"> <dtml-comment> ie needs smaller fonts than anyone else </dtml-comment> <dtml-call "REQUEST.set('font_size', 'x-small')"> <dtml-call "REQUEST.set('font_smaller', 'xx-small')"> <dtml-call "REQUEST.set('font_smallest', '7pt')"> <dtml-elif expr="sniffer['platform'] == 'Win32'"> <dtml-comment> Netscape or others on WIntel </dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-elif expr="sniffer['platform'] == 'Mac'"> <dtml-comment> Mac users need bigger fonts</dtml-comment> <dtml-call "REQUEST.set('font_size', 'medium')"> <dtml-call "REQUEST.set('font_smaller', 'small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-else> <dtml-comment> Linux and all other users</dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> </dtml-if> BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif; font-size: <dtml-var font_size>; } P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>; color: black;} H1 { font-size: 175%; font-family: <dtml-var site_fonts>; } H2 { font-size: 150%; font-family: <dtml-var site_fonts>; } H3 { font-size: 125%; font-family: <dtml-var site_fonts>; } H4 { font-size: 100%; font-family: <dtml-var site_fonts>; } H5 { font-size: 75%; font-family: <dtml-var site_fonts>; } H6 { font-size: 50%; font-family: <dtml-var site_fonts>; } PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var font_size>; } A:visited { color: purple; font-family : <dtml-var site_fonts>; } A: { color: blue; text-decoration: underline; font-family : <dtml-var site_fonts>; font-size : <dtml-var font_size>; ) A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menus:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smaller>; } A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:visited { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smallest>; } PRE { font-family : "Courier New", Courier, monospace; font-size : small; font-style : normal; font-variant : normal; font-weight : normal; color : Black} .DCCIntra { background-color: #FFFFFF; font-size: 26pt; font-weight: bold; color: black; font-family: Arial, Helvetica, sans-serif; font-style: italic} .match { background-color: "#FFFF00"; font-weight: bold; color: #0000CC} .newshead {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: black; background-color: #FFFFCC; font-size: 14pt; font-style: italic} .newsitem {font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: Black; font-style: normal} .breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>; font-weight: bold; color: blue; font-family: Arial, Helvetica, sans-serif; font-style: italic} .OAA { background-color: green; font-size: 20pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .OAAmenuhead { background-color: #8E6B23; font-size: 11pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .menus { font-size: <dtml-var font_smaller>} ------------------------------------------------- Craig Stoddart IT Software Development Officer Dundee City Council IT Division Northern College Technical Block Gardyne Road Dundee DD5 1NY Phone: 01382 438170 Fax: 01382 438002 E-mail: craig.stoddart@dundeecity.gov.uk -------------------------------------------------
I don't see any <style> element in what you have sent. Does the page as seen by the browser have a <style> element? If not, it is needed. What would be good is to send the source ***as seen by NS6***. Tom P Craig Stoddart finally sent us his code:
... <dtml-call "RESPONSE.setHeader('Content-Type','text/css')"> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )"> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')">
<dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] == 'IE'"> <dtml-comment> ie needs smaller fonts than anyone else </dtml-comment> <dtml-call "REQUEST.set('font_size', 'x-small')"> <dtml-call "REQUEST.set('font_smaller', 'xx-small')"> <dtml-call "REQUEST.set('font_smallest', '7pt')"> <dtml-elif expr="sniffer['platform'] == 'Win32'"> <dtml-comment> Netscape or others on WIntel </dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-elif expr="sniffer['platform'] == 'Mac'"> <dtml-comment> Mac users need bigger fonts</dtml-comment> <dtml-call "REQUEST.set('font_size', 'medium')"> <dtml-call "REQUEST.set('font_smaller', 'small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-else> <dtml-comment> Linux and all other users</dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> </dtml-if> BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif; font-size: <dtml-var font_size>; } P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>; color: black;} H1 { font-size: 175%; font-family: <dtml-var site_fonts>; } H2 { font-size: 150%; font-family: <dtml-var site_fonts>; } H3 { font-size: 125%; font-family: <dtml-var site_fonts>; } H4 { font-size: 100%; font-family: <dtml-var site_fonts>; } H5 { font-size: 75%; font-family: <dtml-var site_fonts>; } H6 { font-size: 50%; font-family: <dtml-var site_fonts>; } PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var font_size>; } A:visited { color: purple; font-family : <dtml-var site_fonts>; } A: { color: blue; text-decoration: underline; font-family : <dtml-var site_fonts>; font-size : <dtml-var font_size>; ) A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menus:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smaller>; } A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:visited { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smallest>; } PRE { font-family : "Courier New", Courier, monospace; font-size : small; font-style : normal; font-variant : normal; font-weight : normal; color : Black} .DCCIntra { background-color: #FFFFFF; font-size: 26pt; font-weight: bold; color: black; font-family: Arial, Helvetica, sans-serif; font-style: italic} .match { background-color: "#FFFF00"; font-weight: bold; color: #0000CC} .newshead {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: black; background-color: #FFFFCC; font-size: 14pt; font-style: italic} .newsitem {font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: Black; font-style: normal} .breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>; font-weight: bold; color: blue; font-family: Arial, Helvetica, sans-serif; font-style: italic} .OAA { background-color: green; font-size: 20pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .OAAmenuhead { background-color: #8E6B23; font-size: 11pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .menus { font-size: <dtml-var font_smaller>} ------------------------------------------------- Craig Stoddart IT Software Development Officer Dundee City Council IT Division Northern College Technical Block Gardyne Road Dundee DD5 1NY Phone: 01382 438170 Fax: 01382 438002 E-mail: craig.stoddart@dundeecity.gov.uk ------------------------------------------------- _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
if you are linking to an external css file , make sure to include both the rel atttribute , and the type.. <link rel="stylesheet" type="text/css" href="myUrl" /> - if you are adding them inline , remember the type-declaration : <style type="text/css"> </style> this should work nicely.. Netscape 6 implements CSS better than most browsers, (as oppsed to NN4) and i have been pushing i rather far on the CSS front, with it working brilliantly all the time.. -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com on or about, Thursday, April 05, 2001, we have reason to believe that Thomas B. Passin wrote something in the lines of : TBP> I don't see any <style> element in what you have sent. Does the page as TBP> seen by the browser have a <style> element? If not, it is needed. What TBP> would be good is to send the source ***as seen by NS6***. TBP> Tom P TBP> Craig Stoddart finally sent us his code:
... TBP> <dtml-call "RESPONSE.setHeader('Content-Type','text/css')"> TBP> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )"> TBP> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')">
TBP> <dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] == 'IE'">> TBP> <dtml-comment> ie needs smaller fonts than anyone else </dtml-comment> TBP> <dtml-call "REQUEST.set('font_size', 'x-small')"> TBP> <dtml-call "REQUEST.set('font_smaller', 'xx-small')"> TBP> <dtml-call "REQUEST.set('font_smallest', '7pt')"> TBP> <dtml-elif expr="sniffer['platform'] == 'Win32'"> TBP> <dtml-comment> Netscape or others on WIntel </dtml-comment> TBP> <dtml-call "REQUEST.set('font_size', 'small')"> TBP> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> TBP> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> TBP> <dtml-elif expr="sniffer['platform'] == 'Mac'"> TBP> <dtml-comment> Mac users need bigger fonts</dtml-comment> TBP> <dtml-call "REQUEST.set('font_size', 'medium')"> TBP> <dtml-call "REQUEST.set('font_smaller', 'small')"> TBP> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> TBP> <dtml-else> TBP> <dtml-comment> Linux and all other users</dtml-comment> TBP> <dtml-call "REQUEST.set('font_size', 'small')"> TBP> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> TBP> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> TBP> </dtml-if> TBP> BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif; TBP> font-size: <dtml-var font_size>; } TBP> P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>; TBP> color: black;} TBP> H1 { font-size: 175%; font-family: <dtml-var site_fonts>; } TBP> H2 { font-size: 150%; font-family: <dtml-var site_fonts>; } TBP> H3 { font-size: 125%; font-family: <dtml-var site_fonts>; } TBP> H4 { font-size: 100%; font-family: <dtml-var site_fonts>; } TBP> H5 { font-size: 75%; font-family: <dtml-var site_fonts>; } TBP> H6 { font-size: 50%; font-family: <dtml-var site_fonts>; } TBP> PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var font_size>>; } TBP> A:visited { color: purple; font-family : <dtml-var site_fonts>; } TBP> A: { color: blue; text-decoration: underline; font-family : <dtml-var TBP> site_fonts>; font-size : <dtml-var font_size>; ) TBP> A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var TBP> font_smallest>; } TBP> A.menus:visited { color: #FF6666; text-decoration: none; font-size: TBP> <dtml-var font_smaller>; } TBP> A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa; TBP> font-size: <dtml-var font_smaller>; } TBP> A.menussel { color: #FF6666; text-decoration: none; background: #ffa; TBP> font-size: <dtml-var font_smaller>; } TBP> A.menussel:visited { color: #FF6666; text-decoration: none; background: TBP> #ffa; font-size: <dtml-var font_smaller>; } TBP> A.menussel:hover { text-decoration: none; color: #FF6666; background: TBP> #ffa; TBP> font-size: <dtml-var font_smaller>; } TBP> A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var TBP> font_smallest>; } TBP> A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size: TBP> <dtml-var font_smallest>; } TBP> A.menusxxs:hover { text-decoration: none; color: #FF6666; background: TBP> #ffa; TBP> font-size: <dtml-var font_smallest>; } TBP> PRE { TBP> font-family : "Courier New", Courier, monospace; TBP> font-size : small; TBP> font-style : normal; TBP> font-variant : normal; TBP> font-weight : normal; TBP> color : Black} TBP> .DCCIntra { background-color: #FFFFFF; font-size: 26pt; TBP> font-weight: bold; color: black; TBP> font-family: Arial, Helvetica, sans-serif; TBP> font-style: italic} TBP> .match { background-color: "#FFFF00"; font-weight: bold; color: #0000CC} TBP> .newshead {font-family: Arial, Helvetica, sans-serif; TBP> font-weight: bold; color: black; TBP> background-color: #FFFFCC; TBP> font-size: 14pt; TBP> font-style: italic} TBP> .newsitem {font-family: Arial, Helvetica, sans-serif; TBP> font-size: x-small; TBP> color: Black; TBP> font-style: normal} TBP> .breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>; TBP> font-weight: bold; color: blue; TBP> font-family: Arial, Helvetica, sans-serif; TBP> font-style: italic} TBP> .OAA { background-color: green; font-size: 20pt; TBP> font-weight: bold; color: gold; TBP> font-family: Arial, Helvetica, sans-serif; TBP> font-style: italic} TBP> .OAAmenuhead { background-color: #8E6B23; font-size: 11pt; TBP> font-weight: bold; color: gold; TBP> font-family: Arial, Helvetica, sans-serif; TBP> font-style: italic} TBP> .menus { font-size: <dtml-var font_smaller>} TBP> ------------------------------------------------- TBP> Craig Stoddart TBP> IT Software Development Officer TBP> Dundee City Council TBP> IT Division TBP> Northern College TBP> Technical Block TBP> Gardyne Road TBP> Dundee DD5 1NY TBP> Phone: 01382 438170 TBP> Fax: 01382 438002 TBP> E-mail: craig.stoddart@dundeecity.gov.uk TBP> ------------------------------------------------- TBP> _______________________________________________ TBP> Zope maillist - Zope@zope.org TBP> http://lists.zope.org/mailman/listinfo/zope TBP> ** No cross posts or HTML encoding! ** TBP> (Related lists - TBP> http://lists.zope.org/mailman/listinfo/zope-announce TBP> http://lists.zope.org/mailman/listinfo/zope-dev ) TBP> _______________________________________________ TBP> Zope maillist - Zope@zope.org TBP> http://lists.zope.org/mailman/listinfo/zope TBP> ** No cross posts or HTML encoding! ** TBP> (Related lists - TBP> http://lists.zope.org/mailman/listinfo/zope-announce TBP> http://lists.zope.org/mailman/listinfo/zope-dev )
if you are linking to an external css file , make sure to include both the rel atttribute , and the type..
<link rel="stylesheet" type="text/css" href="myUrl" />
In my standard_html_header I have: <link HREF="<dtml-var BASE2>/styles/global.css" rel="stylesheet" type="text/css">
- if you are adding them inline , remember the type-declaration : <style type="text/css"> </style>
I have these added to my CSS now but it still isn't having any effect. ------------------------------------------------- Craig Stoddart IT Software Development Officer Dundee City Council IT Division Northern College Technical Block Gardyne Road Dundee DD5 1NY Phone: 01382 438170 Fax: 01382 438002 E-mail: craig.stoddart@dundeecity.gov.uk -------------------------------------------------
Hi all, I'm trying to display hex values without success. I have a field in a table of DBMaker stored in hex dmSQL> select oid, distretto from marche; OID DISTRETTO ================ ========= a200000002000100 I10500 a200000002000200 I10500 a200000002000300 I10500 a200000002000400 I10500 a200000002000500 I10500 a200000002000600 I10500 but Zope display it as: OID DISTRETTO ------------------------- ¢ I10500 ¢ I10500 ¢ I10500 ¢ I10500 ¢ I10500 ¢ I10500 Any ideas ? Thank you for any help. Jose'
I'm trying to display hex values without success.
OID DISTRETTO ================ ========= a200000002000100 I10500 a200000002000200 I10500 a200000002000300 I10500 a200000002000400 I10500 a200000002000500 I10500 a200000002000600 I10500
I am a stupid beginner, but I would try something like <dtml-var .... fmt="%x"> because it seems that C-style printf formatting is supported - if this does not work, because ZOPE/python supports only 2-digi hex-values - then try to cut your larger numbers into smaller one by "/ $100" Kai -- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
Thank you Kai to reply to may question, I tried using fmt="%x" but Zope gives me the following message: TYPE: TypeError VALUE: illegal argument type for built-in operation Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: query1) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: query1) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: query1) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 549, in __call__ (Object: query1) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 637, in renderwb (Object: sql(cmd=cmd_sql)) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 717, in renderwob (Object: sequence-item) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Var.py, line 313, in render (Object: OID) (Info: ('OID', '\325\000\000\000\002\000\000\000', {'fmt': '%x', '': 'OID'})) TypeError: illegal argument type for built-in operation Any ideas? Kai Hofmann wrote:
I'm trying to display hex values without success.
OID DISTRETTO ================ ========= a200000002000100 I10500 a200000002000200 I10500 a200000002000300 I10500 a200000002000400 I10500 a200000002000500 I10500 a200000002000600 I10500
I am a stupid beginner, but I would try something like
<dtml-var .... fmt="%x">
because it seems that C-style printf formatting is supported - if this does not work, because ZOPE/python supports only 2-digi hex-values - then try to cut your larger numbers into smaller one by "/ $100"
Kai
-- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Looks like OID is a string. Try <dtml-var expr="_.int(oid)" fmt="%x"> --jfarr ----- Original Message ----- From: "Jose Soares" <jose@sferacarta.com> To: <hofmann@isl.org> Cc: <zope@zope.org> Sent: Friday, April 06, 2001 6:20 AM Subject: Re: [Zope] how to display hex data ?
Thank you Kai to reply to may question, I tried using fmt="%x" but Zope gives me the following message:
TYPE: TypeError
VALUE: illegal argument type for built-in operation
Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: query1) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: query1) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: query1) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 549, in __call__ (Object: query1) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 637, in renderwb (Object: sql(cmd=cmd_sql)) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 717, in renderwob (Object: sequence-item) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Var.py, line 313, in render (Object: OID) (Info: ('OID', '\325\000\000\000\002\000\000\000', {'fmt': '%x', '': 'OID'})) TypeError: illegal argument type for built-in operation
Any ideas?
Kai Hofmann wrote:
I'm trying to display hex values without success.
OID DISTRETTO ================ ========= a200000002000100 I10500 a200000002000200 I10500 a200000002000300 I10500 a200000002000400 I10500 a200000002000500 I10500 a200000002000600 I10500
I am a stupid beginner, but I would try something like
<dtml-var .... fmt="%x">
because it seems that C-style printf formatting is supported - if this does not work, because ZOPE/python supports only 2-digi hex-values - then try to cut your larger numbers into smaller one by "/ $100"
Kai
-- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I don't see any <style> element in what you have sent. Does the page as seen by the browser have a <style> element? If not, it is needed. What would be good is to send the source ***as seen by NS6***.
I added in the <style> tags to the beginning and end of my CSS but it didn't have any effect. I don't know if this is related but I've also noticed that none of my Javascript works in Netscape 6 that works perfectly well in Netscape 4.75. I've checked the preferences of the Browser and the Javascript Options are selected. I viewed the source of the style sheet in Netscape 6 and it appeared exactly as below except the <dtml-call> and <dtml-if> sections weren't there. I then tested it with those parts removed and it still didn't work! So my CSS now looks like this: <style type="text/css"> <dtml-call "RESPONSE.setHeader('Content-Type','text/css')"> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )"> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')"> <dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] == 'IE'"> <dtml-comment> ie needs smaller fonts than anyone else </dtml-comment> <dtml-call "REQUEST.set('font_size', 'x-small')"> <dtml-call "REQUEST.set('font_smaller', 'xx-small')"> <dtml-call "REQUEST.set('font_smallest', '7pt')"> <dtml-elif expr="sniffer['platform'] == 'Win32'"> <dtml-comment> Netscape or others on WIntel </dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-elif expr="sniffer['platform'] == 'Mac'"> <dtml-comment> Mac users need bigger fonts</dtml-comment> <dtml-call "REQUEST.set('font_size', 'medium')"> <dtml-call "REQUEST.set('font_smaller', 'small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-else> <dtml-comment> Linux and all other users</dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> </dtml-if> BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif; font-size: <dtml-var font_size>; } P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>; color: black;} H1 { font-size: 175%; font-family: <dtml-var site_fonts>; } H2 { font-size: 150%; font-family: <dtml-var site_fonts>; } H3 { font-size: 125%; font-family: <dtml-var site_fonts>; } H4 { font-size: 100%; font-family: <dtml-var site_fonts>; } H5 { font-size: 75%; font-family: <dtml-var site_fonts>; } H6 { font-size: 50%; font-family: <dtml-var site_fonts>; } PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var font_size>; } A:visited { color: purple; font-family : <dtml-var site_fonts>; } A: { color: blue; text-decoration: underline; font-family : <dtml-var site_fonts>; font-size : <dtml-var font_size>; ) A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menus:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smaller>; } A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:visited { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smallest>; } PRE { font-family : "Courier New", Courier, monospace; font-size : small; font-style : normal; font-variant : normal; font-weight : normal; color : Black} .DCCIntra { background-color: #FFFFFF; font-size: 26pt; font-weight: bold; color: black; font-family: Arial, Helvetica, sans-serif; font-style: italic} .match { background-color: "#FFFF00"; font-weight: bold; color: #0000CC} .newshead {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: black; background-color: #FFFFCC; font-size: 14pt; font-style: italic} .newsitem {font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: Black; font-style: normal} .breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>; font-weight: bold; color: blue; font-family: Arial, Helvetica, sans-serif; font-style: italic} <dtml-comment> Outdoor Activities Styles</dtml-comment> .OAA { background-color: green; font-size: 20pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .OAAmenuhead { background-color: #8E6B23; font-size: 11pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic} .menus { font-size: <dtml-var font_smaller>} </style> ------------------------------------------------- Craig Stoddart IT Software Development Officer Dundee City Council IT Division Northern College Technical Block Gardyne Road Dundee DD5 1NY Phone: 01382 438170 Fax: 01382 438002 E-mail: craig.stoddart@dundeecity.gov.uk -------------------------------------------------
Craig Stoddart wrote:
I don't see any <style> element in what you have sent. Does the page as seen by the browser have a <style> element? If not, it is needed. What would be good is to send the source ***as seen by NS6***.
I added in the <style> tags to the beginning and end of my CSS but it didn't have any effect. I don't know if this is related but I've also noticed that none of my Javascript works in Netscape 6 that works perfectly well in Netscape 4.75. I've checked the preferences of the Browser and the Javascript Options are selected.
I viewed the source of the style sheet in Netscape 6 and it appeared exactly as below except the <dtml-call> and <dtml-if> sections weren't there. I then tested it with those parts removed and it still didn't work!
So my CSS now looks like this:
<style type="text/css"> <dtml-call "RESPONSE.setHeader('Content-Type','text/css')"> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )"> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')">
<dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] == 'IE'"> <dtml-comment> ie needs smaller fonts than anyone else </dtml-comment> <dtml-call "REQUEST.set('font_size', 'x-small')"> <dtml-call "REQUEST.set('font_smaller', 'xx-small')"> <dtml-call "REQUEST.set('font_smallest', '7pt')"> <dtml-elif expr="sniffer['platform'] == 'Win32'"> <dtml-comment> Netscape or others on WIntel </dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-elif expr="sniffer['platform'] == 'Mac'"> <dtml-comment> Mac users need bigger fonts</dtml-comment> <dtml-call "REQUEST.set('font_size', 'medium')"> <dtml-call "REQUEST.set('font_smaller', 'small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> <dtml-else> <dtml-comment> Linux and all other users</dtml-comment> <dtml-call "REQUEST.set('font_size', 'small')"> <dtml-call "REQUEST.set('font_smaller', 'x-small')"> <dtml-call "REQUEST.set('font_smallest', 'x-small')"> </dtml-if>
BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif; font-size: <dtml-var font_size>; } P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>; color: black;} H1 { font-size: 175%; font-family: <dtml-var site_fonts>; } H2 { font-size: 150%; font-family: <dtml-var site_fonts>; } H3 { font-size: 125%; font-family: <dtml-var site_fonts>; } H4 { font-size: 100%; font-family: <dtml-var site_fonts>; } H5 { font-size: 75%; font-family: <dtml-var site_fonts>; } H6 { font-size: 50%; font-family: <dtml-var site_fonts>; } PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var font_size>; } A:visited { color: purple; font-family : <dtml-var site_fonts>; } A: { color: blue; text-decoration: underline; font-family : <dtml-var site_fonts>; font-size : <dtml-var font_size>; ) A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menus:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smaller>; } A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:visited { color: #FF6666; text-decoration: none; background: #ffa; font-size: <dtml-var font_smaller>; } A.menussel:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smaller>; } A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size: <dtml-var font_smallest>; } A.menusxxs:hover { text-decoration: none; color: #FF6666; background: #ffa; font-size: <dtml-var font_smallest>; }
PRE { font-family : "Courier New", Courier, monospace; font-size : small; font-style : normal; font-variant : normal; font-weight : normal; color : Black}
.DCCIntra { background-color: #FFFFFF; font-size: 26pt; font-weight: bold; color: black; font-family: Arial, Helvetica, sans-serif; font-style: italic}
.match { background-color: "#FFFF00"; font-weight: bold; color: #0000CC}
.newshead {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: black; background-color: #FFFFCC; font-size: 14pt; font-style: italic}
.newsitem {font-family: Arial, Helvetica, sans-serif; font-size: x-small; color: Black; font-style: normal}
.breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>; font-weight: bold; color: blue; font-family: Arial, Helvetica, sans-serif; font-style: italic}
<dtml-comment> Outdoor Activities Styles</dtml-comment>
.OAA { background-color: green; font-size: 20pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic}
.OAAmenuhead { background-color: #8E6B23; font-size: 11pt; font-weight: bold; color: gold; font-family: Arial, Helvetica, sans-serif; font-style: italic}
.menus { font-size: <dtml-var font_smaller>} </style>
Now wait a minute. You're linking to this CSS file not inlining it? Then you need to omit the <style></style> tags. They are HTML tags. They do not belong in a CSS file. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
participants (7)
-
Casey Duncan -
Craig Stoddart -
Geir B�kholt -
Jonothan Farr -
Jose Soares -
Kai Hofmann -
Thomas B. Passin