Excerpts from William Morgan's mail of 14 Jun 2005 (EDT): > In case anyone is still following this, I have comments 100% working > now on my fresh Hobix CVS checkout with the patch below.
Just curious---other people who have comments working, did you have to patch your code as I did below? Or am I in some weird special case? > diff -u -r1.3 webapp.rb > --- lib/hobix/webapp.rb 10 Jun 2005 14:46:16 -0000 1.3 > +++ lib/hobix/webapp.rb 14 Jun 2005 22:09:26 -0000 > @@ -334,10 +334,10 @@ > end > case uri > when URI > - uri = @urigen.base_uri + uri if uri.relative? > + #uri = @urigen.base_uri + uri if uri.relative? > when String > uri = URI.parse(uri) > - uri = @urigen.base_uri + uri if uri.relative? > + #uri = @urigen.base_uri + uri if uri.relative? > when Hash > uri = make_absolute_uri(uri) > else > diff -u -r1.23 filesys.rb > --- lib/hobix/storage/filesys.rb 11 Jun 2005 21:56:14 -0000 1.23 > +++ lib/hobix/storage/filesys.rb 14 Jun 2005 22:09:26 -0000 > @@ -242,7 +242,7 @@ > end > def last_modified( entries ) > entries.collect do |entry| > - @modified[entry.id] > + modified( entry.id ) > end.max > end > def last_created( entries ) > @@ -251,7 +251,10 @@ > end.max > end > def modified( entry_id ) > - @modified[entry_id] > + find_attached( entry_id ).inject( @modified[entry_id] ) do |max, ext| > + mtime = File.mtime( entry_path( entry_id, ext ) ) > + mtime > max ? mtime : max > + end > end > def get_months( entries ) > return [] if entries.empty? > -- William <[EMAIL PROTECTED]> _______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
