Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'json': 0.07; 'modify': 0.07; 'option,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'runs': 0.10; 'python': 0.11; 'jan': 0.12; 'stored': 0.12; 'wrote': 0.14; 'definition.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:n 50': 0.16; 'statement.': 0.16; 'unlikely': 0.16; 'yaml': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'earlier': 0.24; 'posts': 0.26; 'header:X-Complaints-To:1': 0.27; 'xml': 0.29; 'database,': 0.30; 'that.': 0.31; 'ones.': 0.31; 'anyone': 0.31; 'selection': 0.32; 'could': 0.34; 'definition': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; '+0200,': 0.36; 'format.': 0.36; 'done': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.38; 'little': 0.38; 'expect': 0.39; 'quote': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'read': 0.60; 'easy': 0.60; 'new': 0.61; 'skip:n 10': 0.64; 'our': 0.64; 'linked': 0.65; 'within': 0.65; 'here': 0.66; 'frank': 0.68; 'stated': 0.69; 'future,': 0.83; 'different.': 0.84; 'illustrated': 0.84; 'perspective.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Frank Millman" Subject: Re: Python declarative Date: Sun, 26 Jan 2014 08:03:18 +0200 References: <8fde6d34-47c5-49a1-a6d0-9ffe3df2d401@googlegroups.com> <52e473fc$0$29999$c3e8da3$5496439d@news.astraweb.com> X-Gmane-NNTP-Posting-Host: 197.87.50.27 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.4657 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 X-RFC2646: Format=Flowed; Original X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390716212 news.xs4all.nl 2882 [2001:888:2000:d::a6]:55650 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64764 "Steven D'Aprano" wrote in message news:52e473fc$0$29999$c3e8da3$5496439d@news.astraweb.com... > On Sat, 25 Jan 2014 09:18:44 +0200, Frank Millman wrote: > >> I have realised that we unlikely to come to an agreement on this in the >> near future, as our philosophies are completely different. >> >> You [Chris Angelo] have stated that your objective is to express as >> much as possible in Python code. >> >> I have stated that my objective is to express as little as possible in >> Python code. > > Interesting perspective. > [...] I did not really want to continue this, but I have to respond to that. There is a sub-context within which I made my statement. Here is a quote from one of my earlier posts - > Each form definition is stored as gzip'd XML in a database, and linked to > the > menu system. There is just one python program that responds to the > selection > of a menu option, retrieves the form from the database, unpacks it and > runs it. I do not expect anyone to read or edit the XML - it is just a storage format. I am sure it could be done in JSON or YAML as well. One objective is to make it easy for non-programmers to modify forms and create new ones. I showed a screenshot earlier that illustrated a 'button' definition. Frank