Changeset 4340 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
2003-05-27T11:39:16+12:00 (21 years ago)
Author:
sjboddie
Message:

Tidied up configaction slightly. Running 'a=config&cmd=add-collection'
will now correctly reconfigure the collection if it already exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/configaction.cpp

    r4290 r4340  
    5252  arg_ainfo.multiplechar = true;
    5353  arg_ainfo.defaultstatus = cgiarginfo::weak;
    54   arg_ainfo.argdefault = "configure-all";
     54  arg_ainfo.argdefault = "";
    5555  arg_ainfo.savedarginfo = cgiarginfo::mustnot;
    5656  argsinfo.addarginfo (NULL, arg_ainfo);
     
    9191// add it to the null protocol.
    9292void configaction::create_colservr (const text_t &collection, ostream &logout) {
     93
     94  // just in case we're adding a collection that already exists
     95  recpt->uncache_collection(collection);
    9396
    9497  recptprotolistclass *protos = recpt->get_recptprotolist_ptr();
Note: See TracChangeset for help on using the changeset viewer.