#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Singapore
    Posts
    0
    Rep Power
    0

    Question Parsing and displaying text files in Zope


    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.

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Australia
    Posts
    111
    Rep Power
    14

    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Singapore
    Posts
    0
    Rep Power
    0

    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!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Australia
    Posts
    111
    Rep Power
    14

    file


    My apologies - I did not read the dynamically bit.

    wabirdman
    Real programmers code in binary

IMN logo majestic logo threadwatch logo seochat tools logo