Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'component': 0.15; 'dictionary.': 0.16; 'fine.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:start': 0.16; 'x,y,z': 0.16; 'wrote:': 0.17; 'creates': 0.18; 'example': 0.23; 'allows': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'values': 0.26; '(e.g.': 0.27; 'header:X-Complaints-To:1': 0.28; 'boundary': 0.29; 'dictionary': 0.29; 'finds': 0.29; 'class': 0.29; 'function': 0.30; 'space,': 0.32; 'instances': 0.33; 'received:comcast.net': 0.33; 'to:addr:python-list': 0.33; 'done': 0.34; 'skip:: 10': 0.35; 'doing': 0.35; 'received:org': 0.36; 'but': 0.36; 'does': 0.37; 'two': 0.37; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'to:addr:python.org': 0.39; 'called': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'side': 0.61; 'ever': 0.63; 'email addr:gmail.com': 0.63; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'subject:this': 0.84; 'moves': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Kene Meniru Subject: Re: Can't seem to start on this Followup-To: gmane.comp.python.general Date: Thu, 03 Jan 2013 19:08:57 -0500 Organization: illom.org References: <50E50D08.201@lightbird.net> <50E51BED.1030008@lightbird.net> <50E5CA01.3090200@lightbird.net> <50E60C05.5060506@lightbird.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: c-69-143-75-245.hsd1.md.comcast.net User-Agent: KNode/4.4.7 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Kene.Meniru@illom.org 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357258156 news.xs4all.nl 6967 [2001:888:2000:d::a6]:40967 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36090 Mitya Sirenef wrote: > Ok but if the user creates two sites, how does he then manipulate them, > if you are not binding instances in A? (e.g. you are not doing site1 = > Site("New Site")). > > If the user only ever needs one site, that's fine. > > -m In case of situations where the user needs to manipulate an existing component like a side (wall) for a Space, this will be done using the name of the component to find it in the dictionary. So for example if user enters: LinearSide.put("Dining", (x,y,z)) # moves 'Dining' to x,y,z location The put function of the LinearSide boundary class finds "Dining" (which is an entity class called LinearSideData) in the dictionary and then allows this LinearSideData class to calculate its new location using the x,y,z values provided. -- Kene :::::::::::::::::: KeMeniru@gmail.com