|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Am not able to dynamically parse and display a text file in Zope. It must be straightforward but I haven't been able to manage it. Any pointers?
Thanks. |
|
#2
|
|||
|
|||
|
parsing text file
If you want to have a text file show up, just add a file.
(screen shot - sort of) ID : Title: File: Browse(button) Click on the browse button and select the file. Then you need to create a dtml method and inside the dtml method you need to use this code <dtml-var name of file> thats it wabirdman
__________________
Real programmers code in binary |
|
#3
|
|||
|
|||
|
Parsing dynamic text files
The solution provided does work but not dynamically. The file gets uploaded once but if the file content changes, Zope continues to exhibit the old file content.
Finally got around this problem by choosing a module "Local File System" and installing it as an extension. Somewhat tedious but once installed, works neatly. Thanks! |
|
#4
|
|||
|
|||
|
file
My apologies - I did not read the dynamically bit.
wabirdman |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Parsing and displaying text files in Zope |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|