Index: openacs-4/contrib/packages/simulation/www/citybuild/object-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/citybuild/Attic/object-edit.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/contrib/packages/simulation/www/citybuild/object-edit.tcl 9 Jan 2004 11:52:41 -0000 1.10 +++ openacs-4/contrib/packages/simulation/www/citybuild/object-edit.tcl 12 Jan 2004 10:58:37 -0000 1.11 @@ -26,6 +26,10 @@ } set context [list [list "." "CityBuild"] $page_title] + +# TODO: LARS: Related images/order_n ... not sure what the issue was, if there's not a problem, let's drop it. + + ###################################################################### # # object @@ -512,8 +516,7 @@ } -new_data { - # TODO - # For now, assume we are always using this to create global objects + # TODO: For now, assume we are always using this to create global objects # When we use this form to create case objects, we should simply check for create permission on the case # we could alternately switch to using the cr folder system, in which case: # sim_object_create on package_id is replaced by 'create' on a root folder, and @@ -646,14 +649,14 @@ -revision_id $revision_id \ -status "live" - # TODO: The way we do this update is not very pretty: Delete all relations and re-add the new ones + # TODO B: The way we do this update is not very pretty: Delete all relations and re-add the new ones db_dml delete_all_relations { delete from cr_item_rels where item_id = :item_id } foreach elm $rel_elements { - # TODO: LARS HACK ALERT: This isn't a particularly pretty way to find all the related objects in the form + # TODO B: LARS HACK ALERT: This isn't a particularly pretty way to find all the related objects in the form regexp {__(.+)__} $elm match relation_tag regexp {__.+__(.+)$} $elm match order_n set related_object_id [set $elm] @@ -718,4 +721,4 @@ element set_properties object $elm -before_html $elm_before_html -after_html $elm_after_html } -#TODO: if a URI is submitted, filter it the same way as implicit URI from title. ie, replace spaces with dashes. \ No newline at end of file +#TODO: if a URI is submitted, filter it the same way as implicit URI from title. ie, replace spaces with dashes.