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


Groups > comp.lang.python > #36090

Re: Can't seem to start on this

From Kene Meniru <Kene.Meniru@illom.org>
Subject Re: Can't seem to start on this
Followup-To gmane.comp.python.general
Date 2013-01-03 19:08 -0500
Organization illom.org
References (3 earlier) <50E51BED.1030008@lightbird.net> <kc3uvi$7k1$1@ger.gmane.org> <50E5CA01.3090200@lightbird.net> <kc4m83$7lj$1@ger.gmane.org> <50E60C05.5060506@lightbird.net>
Newsgroups comp.lang.python
Message-ID <mailman.64.1357258156.2939.python-list@python.org> (permalink)

Followups directed to: gmane.comp.python.general

Show all headers | View raw


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

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


Thread

Re: Can't seem to start on this Kene Meniru <Kene.Meniru@illom.org> - 2013-01-03 19:08 -0500

csiph-web