468,133 Members | 1,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

Python Stripped CSS Background Image Calls

In my python file I have several css calls--they all works except for
the background image CSS call.

..mystyle { background-image:
url(http://www.mysite.com/images/background.gif); }

When I try to view it in the browser the code is somehow stripped. I
only get the following:

..mystyle { }

How can I get Python to ignore the codes? Sort of like cdata in XML.
Sorry I am very unfamilar with Python.

Can anyone explain?

Jul 25 '06 #1
3 1666
In <11**********************@b28g2000cwb.googlegroups .com>, JenAsh wrote:
In my python file I have several css calls--they all works except for
the background image CSS call.

.mystyle { background-image:
url(http://www.mysite.com/images/background.gif); }

When I try to view it in the browser the code is somehow stripped. I
only get the following:

.mystyle { }

How can I get Python to ignore the codes? Sort of like cdata in XML.
Sorry I am very unfamilar with Python.

Can anyone explain?
Can you explain in a little more detail what you are doing? Python
doesn't know about CSS and it's illegal syntax to just write CSS into
Python programs. I guess there's a web framework involved? Or CGI?

Ciao,
Marc 'BlackJack' Rintsch
Jul 25 '06 #2
Thanks Marc,

Yes, there is a web framework, basically the CSS is used as the layout
wrapper of the Python script. It is a include call within the Python
script.

Jul 25 '06 #3
JenAsh wrote:
Thanks Marc,

Yes, there is a web framework, basically the CSS is used as the layout
wrapper of the Python script. It is a include call within the Python
script.
Then first post to this framework's mailing list, or to the author.
FWIW, there are few chances you get any useful answer on a unspecified
web framework here.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Jul 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by David MacQuigg | last post: by
1 post views Thread by M.E.Farmer | last post: by
3 posts views Thread by fdsl ysnh | last post: by
15 posts views Thread by Qopit | last post: by
9 posts views Thread by corey.coughlin | last post: by
1 post views Thread by dpowc | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.