defron / ISSAMemberManager

Mozilla Public License 2.0
2 stars 14 forks source link

Create config reader class #19

Open defron opened 9 years ago

defron commented 9 years ago

Features:

1)Read a config.xml file for configuration (such as location of memberdb.sqlite3)

2) Create config.xml file (blank) if it does not exist already

3) Write to config.xml file to store data

bluu12 commented 9 years ago

Brian here.

defron commented 9 years ago

Tagged for @BLuu13

bluu12 commented 9 years ago

After doing some research, I found there are various ways to parse xml files. At this point, I think ElementTree (https://docs.python.org/3/library/xml.etree.elementtree.html#module-xml.etree.ElementTree) would be a good choice due to compatibility and it seems like a popular lightweight standard. Here are my questions to anyone:

-Any recommendations for reading xml in context of our project? -Read an xml file incrementally or as a whole? -Are memory, speed, or vulnerabilities a concern?

defron commented 9 years ago

ElementTree sounds fine if you think it's a good candidate, try implementing something with it as a POC

-Just use useful names for the keys so we can tell what's going on -Read just the values of the keys we're creating -memory and speed aren't too big of a deal. If there is a well-known vulnerability with ElementTree don't use it.