[Zope-CMF] Re: [dev] .objects support in DirectoryView.py

Tres Seaver tseaver at zope.com
Mon May 17 09:39:40 EDT 2004


yuppie wrote:
> Kapil Thangavelu wrote:
> 
>> On Sun, 2004-05-16 at 16:53, yuppie wrote:
>>
>>> DirectoryInformation reads '.objects' files if they exist. Seems 
>>> these are files created by the FSDump product.
>>>
>>> Is this cruft that can be removed or works FSDump still with Zope 2.7 
>>> / are there other use cases for '.objects' files?
>>
>>
>> i would keep it, some folks find it useful,
>> http://mail.zope.org/pipermail/zope-cmf/2004-April/020532.html
> 
> 
> Thanks for pointing to that thread! But given that the proposal was to 
> change the usage of '.objects' in a non backwards compatible way:
> 
> Wouldn't it be better to implement the requested feature for '.metadata'
> files? I think using '.objects' *and* '.metadata' for file properties is 
> confusing.

FSDump creates .objects for *directories*, rather than for individual 
templates / scripts.  I would prefer to leave the .objects code in 
place, as I *do* use it on occasion.  FSDumper is *not* broken on Zope 
2.7, although it doesn't know to add extensions in the name of the 
'.properties' file (a relatively minor glitch).  E.g., I just customized 
the 'main_template' and 'zpt_stylesheet.css' skin objects in a side, and 
then added a Dumper to the 'custom' folder.  It dumped to 
'/tmp/test_dumper':

   $ ls /tmp/test_dumper
   total 44
   drwxr-xr-x    2 tseaver  tseaver      4096 May 17 09:32 ./
   drwxr-xr-x    3 tseaver  tseaver      4096 May 17 09:32 ../
   -rw-r--r--    1 tseaver  tseaver        52 May 17 09:32 .objects
   -rw-r--r--    1 tseaver  tseaver        14 May 17 09:32 .properties
   -rw-r--r--    1 tseaver  tseaver        14 May 17 09:32 
main_template.properties
   -rw-r--r--    1 tseaver  tseaver      8626 May 17 09:32 main_template.pt
   -rw-r--r--    1 tseaver  tseaver      5196 May 17 09:32 
zpt_stylesheet.css
   -rw-r--r--    1 tseaver  tseaver        64 May 17 09:32 
zpt_stylesheet.css.properties
   $ cat /tmp/test_dumper/.objects
   main_template:Page Template
   zpt_stylesheet.css:File
   $ cat /tmp/test_dumper/.properties
   title:string=

I guess we could look for the same kind of data in a '[Objects]' section 
within the '.metadata' file in a directory;  it would be relatively easy 
to rev FSDump to generate that file instead.


Tres.
-- 
===============================================================
Tres Seaver                                 tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com




More information about the Zope-CMF mailing list