Zope Catalog, ZopeTime
Snippets
How to deal with Zope Catalog, DateTime
Catalog object / uncatalog object:
context.Catalog.catalog_object(obj)
op = '/'.join(context[req.news_id].getPhysicalPath())
container.Catalog.uncatalog_object(op)
Sorting results:
Catalog(sort_on='date',sort_order='reverse')
Zope set Local DateTime
file /bin/runzope
add as first line:
export TZ=Europe/Rome
context.Catalog.catalog_object(obj)
op = '/'.join(context[req.news_id].getPhysicalPath())
container.Catalog.uncatalog_object(op)
Sorting results:
Catalog(sort_on='date',sort_order='reverse')
Zope set Local DateTime
file /bin/runzope
add as first line:
export TZ=Europe/Rome
