Changing the Appearance of a Local File System Object
Hello. I have a folder that I have created at the root level and inside this folder I have placed one Local File System object. The Local File System object contains two File objects. When I view the Local File System object by clicking on the 'View' option provided by the management interface, I can see that it contains two File objects. What I would like to do is to change the way that these File objects are displayed. Specifically, I would like to show only certain attributes that these File objects have and hide others. Right now, the following attributes are shown: type, icon, size, and last modified time(mtime). I would like to hide the size and last modified time(mtime) attributes. I want these attributes to be set but I do not want their values to show. FYI, I am using the Local File System Product. Any help would be greatly appreciated. Thanks. - Asad __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/
At 11/12/2003 10:20, you wrote:
When I view the Local File System object by clicking on the 'View' option provided by the management interface, I can see that it contains two File objects. What I would like to do is to change the way that these File objects are displayed. Specifically, I would like to show only certain attributes that these File objects have and hide others. Right now, the following attributes are
The 'View' tab is part of the Zope management interface. Why do you want to hide these attributes inside the ZMI? At the application level, you can create a Page Template to show the details you want to show and no more. Use tal:repeat to iterate the files. Gabriel Genellina Softlab SRL
Hello. Thanks for your input. I have one more question. Could I not just use DTML instead of TAL for this purpose? The <dtml-in> tag achieves the same thing as <tal:repeat> and since I am doing nothing more than just displaying some of the properties of local file objects(while hiding or ignoring other properties) that lie within a Local FS object, I don't feel the great need to use TAL. TAL does have the nice quality of separating logic from presentation but the logic involved in this case is on the light side unless I am mistaken. Anyone's input and help on this matter would be greatly appreciated. Thanks. - Asad
Asad Habib wrote:
Hello. Thanks for your input. I have one more question. Could I not just use DTML instead of TAL for this purpose? The <dtml-in> tag achieves the same thing as <tal:repeat> and since I am doing nothing more than just displaying some of the properties of local file objects(while hiding or ignoring other properties) that lie within a Local FS object, I don't feel the great need to use TAL. TAL does have the nice quality of separating logic from presentation but the logic involved in this case is on the light side unless I am mistaken. Anyone's input and help on this matter would be greatly appreciated.
You seem to think that DTML is significantly easier or lighter that ZPT, or that there's some overhead. I don't find that to be the case. (There's some overhead to learning to do something new, but remember that the best way to learn is to start with simple tasks.) I say: pick what you will generally use and do it with that. I don't think the differences between the two templating languages lend themselves to specific problem domains, at least within XMLish markup. (DTML may be preferred for some non-XMLish templating, though I continue to be less and less convinced of this.) --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
participants (4)
-
Asad Habib -
Asad Habib -
Gabriel Genellina -
J. Cameron Cooper