gustafn
committed
on 22 Nov 09
- pass parent_id via query_parameter in create_new to allow to create form-pages with different parent objects
/tcl/xowiki-callback-procs.tcl (+2 -2)
268 268           name "::xowiki::FormPage"
269 269           aliases {
270 270             datasource ::xowiki::datasource
271 271             url ::xowiki::url
272 272           }
273 273           contract_name FtsContentProvider
274 274           owner xowiki
275 275         }
276 276       }
277 277     }
278 278
279 279     if {[apm_version_names_compare $from_version_name "0.59"] == -1 &&
280 280         [apm_version_names_compare $to_version_name "0.59"] > -1} {
281 281       ns_log notice "-- upgrading to 0.59"
282 282       # Remove all old objects of tyoe ::xowiki::FormInstance and the type
283 283       # from the database.
284 284       if {[catch {
285 285         ::xo::db::sql::content_type drop_type -content_type ::xowiki::FormInstance \
286 286             -drop_children_p t -drop_table_p t -drop_objects_p t
287 287       } errorMsg]} {
288           ns_log notce "--upgrade produced error: $errorMsg"
  288         ns_log notice "--upgrade produced error: $errorMsg"
289 289       }
290 290     }
291 291
292 292     if {[apm_version_names_compare $from_version_name "0.60"] == -1 &&
293 293         [apm_version_names_compare $to_version_name "0.60"] > -1} {
294 294       ns_log notice "-- upgrading to 0.60"
295 295       # load for all xowiki package instances te weblog-portlet prototype page
296 296       foreach package_id [::xowiki::Package instances] {
297 297         ::xowiki::Package initialize -package_id $package_id -init_url false
298 298         $package_id import_prototype_page weblog-portlet
299 299       }
300 300     }
301 301
302 302     if {[apm_version_names_compare $from_version_name "0.65"] == -1 &&
303 303         [apm_version_names_compare $to_version_name "0.65"] > -1} {
304 304       ns_log notice "-- upgrading to 0.65"
305 305       catch {
306 306         # for new installs, the old column might not exist
307 307         db_dml drop_old_column \
308 308             "alter table xowiki_page_instance drop column old_page_template"