[Tutor] django help....
hi, I am doing reading on django what ook would you recommend for a beginner? I have been trying to work with the documentations but get stock in between and totally become lost. this continous break is giving me too much headache to move on and i am getting discouraged. Please recommend a book for starters. Thanks. -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] django help....
I highly recommend www.djangobook.com The continuity is very good, and along the side of the book are comment boxes with further insight from users. After getting to about chapter 4, you should be able to toggle between djangoproject.com's documentation and the rest of the djangobook for further insight. On Mon, Jul 26, 2010 at 9:03 AM, Dipo Elegbede delegb...@dudupay.comwrote: hi, I am doing reading on django what ook would you recommend for a beginner? I have been trying to work with the documentations but get stock in between and totally become lost. this continous break is giving me too much headache to move on and i am getting discouraged. Please recommend a book for starters. Thanks. -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] xml question
Hi, I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. However, I've never created something like this before. Is this a suitable format, and, if so, what would the elementtree look like? Should I just use 'config' or something similar as root, and the information elements 1 through 3 as child elements? And should the manual edits be stored as an element 'edit' with various attributes (the edit itself, the time stamp, etc.)? Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xml question
On Mon, Jul 26, 2010 at 3:09 PM, Albert-Jan Roskam fo...@yahoo.com wrote: Hi, I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. However, I've never created something like this before. Is this a suitable format, and, if so, what would the elementtree look like? Should I just use 'config' or something similar as root, and the information elements 1 through 3 as child elements? And should the manual edits be stored as an element 'edit' with various attributes (the edit itself, the time stamp, etc.)? Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor I haven't used this, but I have heard others talk it up http://docs.python.org/library/configparser.html -- Joel Goldstick ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xml question
Joel Goldstick joel.goldst...@gmail.com wrote I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. I haven't used this, but I have heard others talk it up http://docs.python.org/library/configparser.html Config parser is great for simple name/value pairs but for more complex data XML is better. It sounds to me that this probably deserves an XML file... -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xml question
Albert-Jan Roskam fo...@yahoo.com wrote The file should contain information about: ... (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. Sounds sensible to me. ... what would the elementtree look like? Should I just use 'config' or something similar as root, and the information elements 1 through 3 as child elements? I'm no expert on XML but that sounds like a fair approach. And should the manual edits be stored as an element 'edit' with various attributes (the edit itself, the time stamp, etc.)? My limited experience says to avoid relying on attributes and stick to separate subnodes. Attributes are OK for very simple values that are always specified but anything at all complex or optional should have its own (possibly optional) node. As always, design from the outside in - make the XML reflect the data strucures you will be using in the code and the parsing will be easier and the XML more intuitive. YMMV... -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xml question
On Tue, 27 Jul 2010 05:09:09 am Albert-Jan Roskam wrote: Hi, I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. Why XML? Even though XML is plain text, it is *not* a human writable format, except perhaps for the simplest data. XML is one of those things which has become the in-thing and is used in all sorts of inappropriate places just because everybody else uses XML. Even *supporters* of XML describe themselves as having drunk the XML Kool-Aid. (For those who are unaware, drinking the Kool-Aid refers to the Reverend Jim Jones mass murder-suicide back in the 70s, when nearly a thousand cult members drank poison-laced Kool-Aid.) XML is extremely verbose and inefficient. It has its uses, but the best advice I can give is, don't use XML unless you need to communicate with something that expects XML, or unless your data is so complex that you need XML. Some alternatives: If you're using Python 2.6 or better, you might consider the plistlib module for a thin wrapper around XML. JSON is often considered a more friendly format. Some people prefer YAML over JSON, although YAML isn't in the standard library. If your data is in the form option:value, then ConfigParser (Windows-style ini files) may be all you need. However, I've never created something like this before. Is this a suitable format, and, if so, what would the elementtree look like? You tell us, it's your data :) Should I just use 'config' or something similar as root, and the information elements 1 through 3 as child elements? And should the manual edits be stored as an element 'edit' with various attributes (the edit itself, the time stamp, etc.)? How would you store the data in a Python class? Design your class first. -- Steven D'Aprano ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xml question
I agree with Steven D'Aprano. Keep the code as simple as possible. A simple text file with a variable/value pair on each line is very easy to parse and store in a Dictionary object. You can use any convenient delimiter; =, :, $, ... Nesting items under categories takes just a little more code logic, if you want to do that. I have been doing this for many years. Simple is usually better. - Original Message - From: Steven D'Aprano st...@pearwood.info Why XML? Even though XML is plain text, it is *not* a human writable format, except perhaps for the simplest data. XML is one of those things which has become the in-thing and is used in all sorts of inappropriate places just because everybody else uses XML. Even *supporters* of XML describe themselves as having drunk the XML Kool-Aid. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor