Index: openacs-4/packages/xotcl-core/xotcl-core.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/xotcl-core.info,v diff -u -r1.22 -r1.23 --- openacs-4/packages/xotcl-core/xotcl-core.info 29 Dec 2006 11:04:16 -0000 1.22 +++ openacs-4/packages/xotcl-core/xotcl-core.info 19 Feb 2007 10:03:35 -0000 1.23 @@ -8,10 +8,10 @@ t xotcl - + Gustaf Neumann XOTcl library functionality (e.g. thread handling, online documentation, Generic Form and List Classes) - 2006-12-29 + 2007-02-19 This component contains some core functionality for OACS applications using XOTcl. It includes XOTcl thread handling for OACS (supporting persistent and @@ -34,7 +34,7 @@ BSD-Style 0 - + Index: openacs-4/packages/xotcl-core/tcl/generic-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/generic-procs.tcl,v diff -u -r1.44 -r1.45 --- openacs-4/packages/xotcl-core/tcl/generic-procs.tcl 1 Feb 2007 09:00:35 -0000 1.44 +++ openacs-4/packages/xotcl-core/tcl/generic-procs.tcl 19 Feb 2007 10:03:35 -0000 1.45 @@ -712,8 +712,9 @@ set revision_id [db_nextval acs_object_id_seq] if {$name eq ""} { - # we have an anonymous item, use a unique value for the name - set name $revision_id + # we have an autonamed item, use a unique value for the name + set name [expr {[my exists __autoname_prefix] ? + "[my set __autoname_prefix]$revision_id" : $revision_id}] } set item_id [db_string content_item__new \ @@ -876,6 +877,7 @@ CrCache instproc delete {-item_id} { next ns_cache flush xotcl_object_cache ::$item_id + # we should probably flush as well cached revisions } Class CrCache::Item