472,352 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

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 1787
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: David MacQuigg | last post by:
I am starting a new thread so we can avoid some of the non-productive argument following my earlier post "What is good about Prothon". At Mr....
1
by: M.E.Farmer | last post by:
Hello c.l.py!, I have just finished this and decided to share. PySourceColor is a module to convert Python source into colored html. Yes it has...
3
by: fdsl ysnh | last post by:
--- python-list-request@python.orgд: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or...
8
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size...
5
by: Dan Novak | last post by:
Hello, I'm trying to apply different backgrounds to a page based on the BODY element class. It's working on some browsers but not on others. ...
15
by: Qopit | last post by:
I'm setting up a system that consists of several small python applications that all communicate amongst each other on the same pc. When running...
9
by: corey.coughlin | last post by:
Alright, so I've been following some of the arguments about enhancing parallelism in python, and I've kind of been struck by how hard things still...
1
by: dpowc | last post by:
How do I print a background image? I read another article that says as long as print background becomes a default for IE settings, we need to...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.