Branch: Tag:

2000-03-01

2000-03-01 21:41:17 by Martin Nilsson <mani@lysator.liu.se>

Sort entity lists. Added scope list. Fixed tagdoc.

Rev: server/modules/tags/rxmltags.pike:1.86

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version="$Id: rxmltags.pike,v 1.85 2000/03/01 15:36:07 nilsson Exp $"; + constant cvs_version="$Id: rxmltags.pike,v 1.86 2000/03/01 21:41:17 nilsson Exp $";   constant thread_safe=1;   constant language = roxen->language;   
584:    if(n = m->variables || m->scope) {    RXML.Context context=RXML.get_context();    if(n!="variables") -  return ({ html_encode_string(Array.map(context->list_var(m->scope), +  return ({ html_encode_string(Array.map(sort(context->list_var(m->scope)),    lambda(string s) {    return sprintf("%s=%O", s, context->get_var(s, m->scope) );    } ) * "\n")    }); -  return ({ String.implode_nicely(context->list_var(m->scope)) }); +  return ({ String.implode_nicely(sort(context->list_var(m->scope))) });    }    -  +  if(m->scopes) { +  return ({ String.implode_nicely(sort(RXML.get_context()->list_scopes())) }); +  } +     if(m->file)    {    if(m->nocache) {
1480: Inside #if defined(manual)
   The language must be given as metadata to be found.</desc>",   "&page.scope;":"<desc ent></desc>",   "&page.filesize;":"<desc ent>This file's size, in bytes.</desc>", - "&page.self;":"<desc ent>The name of this file.</desc>" + "&page.self;":"<desc ent>The name of this file.</desc>",      "roxen_automatic_charset_variable":#"<desc tag>    Internal Roxen tag. Not yet documented.
1988: Inside #if defined(manual)
   Inserts a variable listing.   </attr>    + <attr name=scopes> +  Inserts a listing of all present scopes. + </attr> +    <attr name=file value=string>    Inserts the contents of that file.   </attr>