[Zope] [ANN] ZShell 1.0pre2

Jerome Alet alet@unice.fr
Wed, 23 May 2001 15:58:47 +0200 (MET DST)


On Wed, 23 May 2001, Peter Bengtsson wrote:

> If you ls a folder where there's broken products the
> bobobase_modification_time() of the object raises an error.
> I fixed it by something like this:
> try:
>   bbb_mod_time = str(obj.bobobase_modification_time())
> except:
>   bbb_mod_time = 'no date on broken ones'

Ok, I'll do that.

> The view command doesn't take into consideration to use the pwd you're
> having.
> This works:
> cd /
> view object_html
> 
> This does NOT work:
> cd /deep/folder
> view someobject_html

Thanks !
It's fixed in CVS right now.

> Design issue:
> 
> The date as it is printed is to me a bit too long and takes up too much
> space. I suggest a formatting string like this:
> '%Y/%d/%m %H:%M:%S'

I think the microseconds part is not important but the timezone is, so we
should keep it.

> Maybe I'm wrong, but I think I saw the words: self.PATH_INFO
> there.

You're wrong, all objects path are extracted using
absolute_url(), but skipping the http://server:port part. However that
wasn't the case for view, manage, and properties, which is now corrected,
thanks to you.

In pre 1.0pre1 code absolute_url(relative=1) was used, but seemed to cause
problem with virtual hosting. 

bye, and thanks again.

Jerome Alet