Re: New to Python - Easy way to open a text file



Nope. that's not what i mean...

Here's a quick run down:

edna, is a python mp3 server. (.py)

What it does is searches directories for:
1) mp3s
2) jpgs
3) mp3us
4) txt files
5) other folders

What I'd like it to do, is upon finding a folder, with a .txt file in it (in
my case is probably an album review from AMG), is to take the contents of
that text file and display it on the same page as the album, the artwork
etc..

I think the gang that has helped me so far, is pointing me in the right
direction. I just need to figure out how this template is used.

I'll have some time on sunday to play with the "simple" code that they've
provided. I will post my results.

Thanks again to all who has helped me thus far,
..\\ax

"Michael Tobis" <mtobis@xxxxxxxxx> wrote in message
news:1175289887.510619.166280@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I think it's pretty clear that we aren't understanding what you mean
by "open a text file and disply its content".

I conclude that by "edna" you mean this thing:
http://edna.sourceforge.net/

I suspect you are not asking a Python question at all.

Did you try opening

file:///<path-to-edna>/edna-0.6/templates/default.ezt

in your browser? This will show you the design of your (unpopulated)
template rendered in your browser.

Notes:

1) yes you do need three slashes after "file:" for some reason I've
never comprehended
2) you will need to replace <path to browser> with your local system
path to the edna directory. (In firefox you can, alternatively, browse
to the file from File->open; Safari will balk at the ezt extension; I
don't know what other browsers will do.)

If this is more like what your are after, consider that your question
was misleading (and entirely unrelated to Python). The edna miling
list is here:
http://www.lyra.org/mailman/listinfo/edna

hth
mt



.



Relevant Pages

  • Re: New to Python - Easy way to open a text file
    ... I think it's pretty clear that we aren't understanding what you mean ... I conclude that by "edna" you mean this thing: http://edna.sourceforge.net/ ... I suspect you are not asking a Python question at all. ... template rendered in your browser. ...
    (comp.lang.python)
  • Re: UI toolkits for Python
    ... >> Another possible scenario I have in mind is to control the Internet ... >> directly from a Python script using DHTML as a language for definition ... >> considered an UI toolkit for use in Python. ...
    (comp.lang.python)
  • Re: can i use the browser to show the result of python
    ... could put the script onto a web server with cgi enabled, ... browser, and see that generated web page. ... of python on that particular server. ... you can use webbrowser module to launch a browser. ...
    (comp.lang.python)
  • Re: object references/memory access
    ... between two python programs on the same machine. ... by the client web browser would improve? ... and connect this to Apache through the ... The CGI script has a file handle, and it is not possible to pass ...
    (comp.lang.python)
  • RE: what python technology for my app?
    ... As CF is a JAVA based technology you get the power of J2EE platform and its ... what python technology for my app? ... and display but I'm not sure how these would work in a browser based ...
    (comp.lang.python)