Deprecated Functions and Features in V5 and their Replacements

Error in Page en:deprecated-functions-and-features-in-V5-and-their-replacements: can't read "indicator_cnt": no such variable

Deprecated OpenACS Functions:

  • was:
    ad_get_user_id
    now:
    auth::require_login
  • was:
    ad_maybe_redirect_for_registration
    now:
    auth::require_login

Navi Server / AOLServer 

  • was:
    ns_log NOTICE
    now:
    ns_log Notice
  • was:
    ns_log ERROR
    now:
    ns_log Error

OpenACS Templating

  • was:
    if @indicator_cnt@ 
    now:
    if @indicator_cnt@ gt 0 
  • was:
    @context;noquote@ 
    now:
    @context;literal@

tcl:

  • Put expr arguments always in brackets:
    expr { $a + $b}

  • was:
    export_form_vars
    now:
    export_vars -form
  • Verify: export_vars: var notation "key=value" not allowed anymore?
           # set workflow($type,$key,url) [ad_decode \
                #       [set ${type}_link] \
                #       "" "" \
                #       "[set ${type}_link][export_vars -url { workflow_key ${type}_key=[ns_urlencode $key]}]"]

                eval "set ${type}_key [ns_urlencode $key]"
                set par [list]
                lappend par workflow_key "${type}_key"
                set workflow($type,$key,url) [ad_decode \
                        [set ${type}_link] \
                        "" "" \
                        "[set ${type}_link][export_vars -url $par]"]

 

Possible values are

  • __default_metaclass: '::xotcl::Class'
  • __default_superclass: '::xotcl::Object'
  • absolute_links: '0'
  • abstract_p: 'f'
  • auto_save: 'false'
  • creation_date: '2016-01-28 09:13:46.606501+01'
  • creation_user: '853'
  • creator: 'Klaus Hofeditz'
  • current_url: '/en/deprecated-functions-and-features-in-V5-and-their-replacements'
  • current_user: '0'
  • description: ''
  • do_substitutions: '1'
  • folder_id: '-100'
  • form: '::xowiki::WikiForm'
  • id_column: 'page_id'
  • last_modified: '2016-03-14 11:06:29.49144+01'
  • mime_type: 'text/html'
  • modifying_user: '853'
  • name: 'en:deprecated-functions-and-features-in-V5-and-their-replacements'
  • nls_language: 'en_US'
  • non_cached_instance_var_patterns: '__*'
  • object_id: '1709304'
  • object_type: '::xowiki::Page'
  • package_id: '252723'
  • page_id: '1709304'
  • page_order: ''
  • parent_id: '252746'
  • pretty_name: 'XoWiki Page'
  • pretty_plural: 'Wiki Pages'
  • publish_date: '2016-03-14 11:06:29.49144+01'
  • publish_status: 'ready'
  • recursion_count: '0'
  • render_adp: '1'
  • revision_id: '1709304'
  • security_inherit_p: 't'
  • sql_package_name: '::xowiki::Page'
  • storage_type: 'text'
  • supertype: 'content_revision'
  • table_name: 'xowiki_page'
  • title: 'Deprecated Functions and Features in V5 and their Replacements'
  • with_table: 'true'
  Contact Us
  Project Open Business Solutions S.L.

Calle Aprestadora 19, 12o-2a

08902 Hospitalet de Llobregat (Barcelona)

Spain

 Tel Europe: +34 609 953 751
 Tel US: +1 415 200 2465
 Mail: info@project-open.com