Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41582

Re: Best way to find starting directory

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'exception': 0.03; 'schema': 0.05; 'definitions': 0.07; 'interpreted': 0.07; 'option,': 0.07; 'type,': 0.07; 'input,': 0.09; 'parsed': 0.09; 'raised.': 0.09; 'stored': 0.10; 'belongs': 0.16; 'both,': 0.16; 'buttons,': 0.16; 'client,': 0.16; 'display,': 0.16; 'renders': 0.16; 'screen,': 0.16; 'selects': 0.16; 'syntactical': 0.16; 'wrote:': 0.17; 'directory.': 0.17; '>>>': 0.18; 'code,': 0.18; 'input': 0.18; 'code.': 0.20; 'equivalent': 0.20; 'written': 0.20; 'displayed': 0.22; 'imposed': 0.22; "user's": 0.22; 'elements': 0.23; 'purposes': 0.23; 'somewhere': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'execution': 0.27; 'all.': 0.28; 'document,': 0.29; 'definition': 0.29; 'source': 0.29; 'basic': 0.30; 'file': 0.32; 'structure': 0.32; 'says': 0.33; 'text,': 0.33; 'to:addr:python-list': 0.33; 'form.': 0.33; 'typically': 0.33; 'thanks': 0.34; 'along': 0.35; 'something': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'client': 0.36; 'beyond': 0.37; 'xml': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'description': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'containing': 0.61; 'more': 0.63; 'validate': 0.65; 'talking': 0.66; 'received:74.208': 0.71; 'frank': 0.75; 'entry,': 0.84; 'etc,': 0.84; 'fields,': 0.84; 'permanently.': 0.84; 'subject:find': 0.84; 'subject:Best': 0.91; 'angel': 0.93
Date Wed, 20 Mar 2013 06:17:31 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3
MIME-Version 1.0
To python-list@python.org
Subject Re: Best way to find starting directory
References <ki93v1$s7f$1@ger.gmane.org> <ki95lp$bel$1@ger.gmane.org> <ki975r$odu$1@ger.gmane.org> <51485E35.7090501@davea.name> <ki9snt$hrk$1@ger.gmane.org> <51487E55.6040704@davea.name> <kibj5h$nks$1@ger.gmane.org> <514979B0.3060406@davea.name> <kic02l$7qn$1@ger.gmane.org>
In-Reply-To <kic02l$7qn$1@ger.gmane.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:uD+W7OMk5sTLPcBAxvHWH6SzLtXe3Gg0e4yOqrrgpE4 sNABK99UqjvEPJm0do9JhZbUfYBpdPeAugtJsf14RftnsP+9El JkV0thysJW/j2B0U/ssNcZUDJEI3hRnocH/7/QSK7M5aGXQ/20 wzhmfASkngy0178kH4BKtqQ6ShG3M2zVmujK5In6hpzh5+L5eN CTx5gf4RwZsYfdE2l8QP1yjADqCu/eAlOUc+ZeBnLfqQZ5GyKd WE9fbLpoIQIue73w4FIrVS9tWv1gLVt2uuPHInuu0xrnx/dPQR YC1q5oQ50AbfHPEYse32FUAVKEOlsVUHDSxNIxx6xKaXsjVow= =
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3558.1363774665.2939.python-list@python.org> (permalink)
Lines 51
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363774665 news.xs4all.nl 6911 [2001:888:2000:d::a6]:57514
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41582

Show key headers only | View raw


On 03/20/2013 05:38 AM, Frank Millman wrote:
> On 20/03/2013 10:56, Dave Angel wrote:
>> On 03/20/2013 01:58 AM, Frank Millman wrote:
>>> On 19/03/2013 17:03, Dave Angel wrote:
>>
>>    <SNIP>
>
> Dave, I really appreciate your input, but we are talking at cross
> purposes somewhere along the line - I am not sure where.
>
> Firstly, just to ensure there is no confusion, I am not talking about
> *database* schemas, I am talking about *xml* schemas. From Wikipedia,
> "An XML schema is a description of a type of XML document, typically
> expressed in terms of constraints on the structure and content of
> documents of that type, above and beyond the basic syntactical
> constraints imposed by XML itself."
>
> Let's focus on 'form definitions'. What I call a 'form' is something
> that can be displayed on a user's screen, for data entry, data display,
> or both, containing text, input fields, checkboxes, buttons, etc, etc. I
> have devised an xml format to describe the form. When requested, the xml
> file is read in and sent to the client, which extracts the elements and
> renders them on the screen.
>
> All form definitions are stored in the database. To ensure that they
> conform to the standard structure which the client is expecting, I have
> written an XML schema that can be used to validate the content.
>
> The XML schema is stored in its sub-directory permanently. Once
> debugged, it will never be altered. It is the equivalent of source code,
> that is read and interpreted at execution time.

That paragraph says it all.  It's constant, so it belongs with the 
source code.  Somehow I thought you were writing the xml into that 
directory.  Thanks for clarifying.

>
> When a user selects a menu option, the form definition is read in from
> the database, parsed and validated by lxml using the schema, and if ok
> it will be sent to the client for rendering. Otherwise an exception will
> be raised.
>
> Hope this makes more sense.
>
> Frank
>
>


-- 
DaveA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Best way to find starting directory Dave Angel <davea@davea.name> - 2013-03-20 06:17 -0400

csiph-web