TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: RAGNAROK
from: DIGITAL MAN
date: 2020-12-14 09:44:00
subject: iniGetObject dotted keys

  Re: iniGetObject dotted keys
  By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon Dec 14 2020 03:14 am

 > Hi, i try to parse the binkstats.ini to generate a report
 >
 > I have two questions:
 >
 > 1) i use iniGetObjet()
 >
 > example = the_file.iniGetObject("inbound success: 4:902/25@fidonet");
 >
 > print (example.info.sys) result "info is undefined".
 >
 > how to get "dotted" keys like, info.sys, info.loc with iniGetObject()
 > function?

example["info.sys"]

I could change those "info." items to "info_" if that'd make it easier for you.

 > 2) I found that failed_sent_files key has "[object]" value text instead
 > of string human readable data like received_files key.
 >
 >
 > [inbound success: 4:902/25@fidonet]
 >      oper = Ragnarok
 >      AKAs = 4:902/25@fidonet
 >      caps = MO,CM,TCP,IFC,TEL,VMP,BND,IBN,BINKD
 >      vers = Argus/3.210/
 >      info.sys = Dock Sud Argus Node 25
 >      info.loc = Sarandi, BsAS, Argentina
 >      info.phn = nt4bbs
 >      info.time = Sat, 20 Jun 2020 05:29:05 -0300
 >      info.freq =
 >      localtime = Jun 20 2020 02:29:05
 >      failed_sent_files = [object Object],[object Object],[object
 > Object],[object Object],[object Object],[object Object],[object
 > Object],[object Object
 >      received_files = /sbbs/temp/0386001A.REQ

Ah, interesting. I'll have to take a look at that.
-- 
                                            digital man

This Is Spinal Tap quote #3:
How much more black could this be? and the answer is none. None more black.
Norco, CA WX: 56.5øF, 76.0% humidity, 3 mph WSW wind, 0.02 inches rain/24hrs
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.