Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.113 2008/12/19 12:17:32 grubba Exp $ + // $Id: module.pmod,v 1.114 2009/06/24 09:33:31 jonasw Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1362:    //! that will be used for authentication against the database    //! manager. Typically called as    //! @expr{set_configuration_pointer(my_configuration)@}.    {    config = configuration;    return this_object();    }       array get_choice_list( )    { +  if (!functionp(config)) { +  // Some modules apparently send in a configration reference instead of +  // a function pointer when calling set_configuration_pointer(). +  report_warning("Incorrect usage of Variable.DatabaseChoice:\n\n%s", +  describe_backtrace(backtrace())); +  return ({ " none" }); +  }    return ({ " none" }) + sort(DBManager.list( config() ));    }       protected void create(string default_value, void|int flags,    void|LocaleString std_name, void|LocaleString std_doc)    {    ::create( default_value, ({}), flags, std_name, std_doc );    }   }