• Enhancements to msg_areas and MsgBase.

    From deon@1:103/705 to Digital Man on Sun Apr 24 16:10:42 2022
    Hey DM,

    I have two requests if possible.

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows grp_number, but not index. Is that an ommission? (If so, can it be added).

    eg: My PVT_TEST shows just these keys for cfg.

    "number",
    "grp_number",
    "grp_name",
    "code",
    "name",
    "description",
    "qwk_name",
    "area_tag",
    "newsgroup",
    "ars",
    "read_ars",
    "post_ars",
    "operator_ars",
    "moderated_ars",
    "data_dir",
    "fidonet_origin",
    "qwknet_tagline",
    "settings",
    "ptridx",
    "qwk_conf",
    "max_crcs",
    "max_msgs",
    "max_age",
    "print_mode",
    "print_mode_neg"


    Is it possible to include in msg_areas.sub and msg_areas.grp_list.sub_list the fido address if configured? That might be useful in MsgBase as well.

    Thanks.. :)


    ...ëîåï

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to deon on Sun Apr 24 10:10:08 2022
    Re: Enhancements to msg_areas and MsgBase.
    By: deon to Digital Man on Sun Apr 24 2022 04:10 pm

    Hey DM,

    I have two requests if possible.

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows grp_number, but not index.

    The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.

    Is that an ommission? (If so, can it be added).

    It was intentional (there's no array being generated when a MsgBase object is created).

    eg: My PVT_TEST shows just these keys for cfg.

    "number",
    "grp_number",
    "grp_name",
    "code",

    Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).

    Is it possible to include in msg_areas.sub and msg_areas.grp_list.sub_list the fido address if configured? That might be useful in MsgBase as well.

    I'll add a issue/request to gitlab for that enhancement.
    --
    digital man (rob)

    Rush quote #53:
    He picks up scraps of conversation, radio and radiation .. Digital Man
    Norco, CA WX: 73.6øF, 21.0% humidity, 6 mph SW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deon@1:103/705 to Digital Man on Mon Apr 25 12:55:14 2022
    Re: Enhancements to msg_areas and MsgBase.
    By: Digital Man to deon on Sun Apr 24 2022 10:10 am

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows
    grp_number,
    but not index.

    The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.

    Is that an ommission? (If so, can it be added).

    It was intentional (there's no array being generated when a MsgBase object is created).

    OK, makes sense.

    I got it from here https://synchro.net/docs/jsobjs.html#MsgBase.cfg_object_properties, I guess it needs updating in case it throws somebody else off :)

    Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).

    Ahh, OK that should work too, thanks. I'll have a play.

    I'll add a issue/request to gitlab for that enhancement.

    Thank you :)


    ...ëîåï

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)